/* jQuery.each arguments end */
);
- test( "jQuery ajax - failing cross-domain", function() {
-
- expect( 2 );
-
- stop();
+ asyncTest( "jQuery ajax - failing cross-domain (non-existing)", function() {
+ expect( 1 );
- var i = 2;
+ var i = 1;
jQuery.ajax({
url: "http://somewebsitethatdoesnotexist-67864863574657654.com",
ok( true, "file not found: " + xhr.status + " => " + e );
},
complete: function() {
- if ( ! --i ) {
+ if ( !--i ) {
start();
}
}
});
+ });
+
+ asyncTest( "jQuery ajax - failing cross-domain", function() {
+ expect( 1 );
+
+ var i = 1;
jQuery.ajax({
url: "http://www.google.com",
ok( true, "access denied: " + xhr.status + " => " + e );
},
complete: function() {
- if ( ! --i ) {
+ if ( !--i ) {
start();
}
}
});
-
});
test( "jQuery ajax - atom+xml", function() {