Lines Matching refs:callback

10         return function (node, callback) {
19 callback();
33 callback();
50 Y.jsonp("server/service.php?callback={callback}", function () {});
60 Y.jsonp("server/service.php?callback={callback}", {
73 // to allow JSONP the chance to clean up the callback registry
75 // was to wait() and resume() in the success callback, but for some
77 // success callback, so either the test fails because resume() is
89 Y.jsonp("server/service.php?callback={callback}", {
106 // to allow JSONP the chance to clean up the callback registry before
118 "failure handler in callback object should execute": true
122 "callback function as second arg should be success handler": function () {
125 Y.jsonp("server/service.php?&callback={callback}", function (json) {
126 //console.log(Y.Object.keys(YUI.Env.JSONP), "callback function as second arg should be success handler");
135 "success handler in callback object should execute": function () {
138 Y.jsonp("server/service.php?&callback={callback}", {
141 //console.log(Y.Object.keys(YUI.Env.JSONP), "success handler in callback object should execute");
152 "failure handler in callback object should execute": function () {
155 Y.jsonp("server/404.php?&callback={callback}", {
163 //console.log("failure handler in callback object should execute");
173 "failure handler in callback object should not execute for successful io": function () {
176 Y.jsonp("server/service.php?&callback={callback}", {
179 //console.log(Y.Object.keys(YUI.Env.JSONP), "failure handler in callback object should not execute for successful io");
199 service = new Y.JSONPRequest("server/service.php?callback={callback}", {
219 // missing {callback} (not sure how to test. No callback would be attached.
240 "allowCache should preserve the same callback": function () {
243 callback,
244 jsonp = new Y.JSONPRequest('server/service.php?&callback={callback}', {
248 //console.log(Y.Object.keys(YUI.Env.JSONP), "allowCache should preserve the same callback");
249 if (callback) {
250 if (callback !== data.callback) {
252 Y.Assert.areSame(callback, data.callback, "callback proxy name should be reused");
262 callback = data.callback;
279 jsonp = new Y.JSONPRequest('server/service.php?&callback={callback}', {
284 callbacks.push(data.callback);
292 } else if (!YUI.Env.JSONP[data.callback.split(/\./).pop()]) {
318 jsonp = new Y.JSONPRequest('server/service.php?&wait=2&callback={callback}', {
324 Y.Assert.fail("Success callback executed after timeout");
340 // Success is measured by the success callback NOT being executed,
352 // If the success callback is triggered, it will resume the test,
378 jsonp = new Y.JSONPRequest('server/service.php?wait=2&callback={callback}', {
383 Y.Assert.fail("Success callback executed after timeout");