aboutsummaryrefslogtreecommitdiffstats
path: root/test/data
diff options
context:
space:
mode:
authorRichard Gibson <richard.gibson@gmail.com>2012-12-03 00:49:40 -0500
committerRichard Gibson <richard.gibson@gmail.com>2012-12-03 00:49:40 -0500
commitad690f815108cc1e05c2eb265e46140fd3236671 (patch)
treedfdf78a0598e464225dd06658c094d52d357284d /test/data
parent5b9bf134390d56d6b6916225d86c1328e70e9970 (diff)
downloadjquery-ad690f815108cc1e05c2eb265e46140fd3236671.tar.gz
jquery-ad690f815108cc1e05c2eb265e46140fd3236671.zip
Improvements per @jaubourg
Diffstat (limited to 'test/data')
-rw-r--r--test/data/testinit.js4
-rw-r--r--test/data/testrunner.js2
2 files changed, 4 insertions, 2 deletions
diff --git a/test/data/testinit.js b/test/data/testinit.js
index 2088407a6..862616d8a 100644
--- a/test/data/testinit.js
+++ b/test/data/testinit.js
@@ -194,7 +194,9 @@ function ajaxTest( title, expect, options ) {
options.afterSend( request );
}
- return request.then( callIfDefined( "done", "success" ), callIfDefined( "fail", "error" ) );
+ return request
+ .done( callIfDefined( "done", "success" ) )
+ .fail( callIfDefined( "fail", "error" ) );
});
jQuery.when.apply( jQuery, requests ).always( complete, options.teardown, start);
diff --git a/test/data/testrunner.js b/test/data/testrunner.js
index 085203c96..ce9697fc4 100644
--- a/test/data/testrunner.js
+++ b/test/data/testrunner.js
@@ -141,7 +141,7 @@ var Globals = (function() {
return {
register: function( name ) {
globals[ name ] = true;
- jQuery.globalEval( "var " + name );
+ jQuery.globalEval( "var " + name + " = undefined;" );
},
cleanup: function() {
var name,