diff options
author | Richard Gibson <richard.gibson@gmail.com> | 2012-11-01 17:32:08 -0400 |
---|---|---|
committer | Richard Gibson <richard.gibson@gmail.com> | 2012-11-01 17:32:08 -0400 |
commit | 3f515045808dda2b4320a82894e875eb61d255e2 (patch) | |
tree | 1dc3c8a2420fc5822e330f06a1a5b95e3dd2c3fe /test/unit/ajax.js | |
parent | 395f1da76ba9faeb2f72548c28da228474a2434c (diff) | |
download | jquery-3f515045808dda2b4320a82894e875eb61d255e2.tar.gz jquery-3f515045808dda2b4320a82894e875eb61d255e2.zip |
No ticket: remove test suite external dependencies
Diffstat (limited to 'test/unit/ajax.js')
-rw-r--r-- | test/unit/ajax.js | 7 |
1 files changed, 4 insertions, 3 deletions
diff --git a/test/unit/ajax.js b/test/unit/ajax.js index c5185efb3..9367320d2 100644 --- a/test/unit/ajax.js +++ b/test/unit/ajax.js @@ -621,7 +621,7 @@ if ( jQuery.ajax && ( !isLocal || hasPHP ) ) { jQuery.ajax({ dataType: "jsonp", - url: loc.protocol + "//somewebsitethatdoesnotexist-656329477541.com:" + ( loc.port || 80 ), + url: loc.protocol + "//example.invalid:" + ( loc.port || 80 ), beforeSend: function( _, s ) { ok( s.crossDomain, "Test different hostnames are detected as cross-domain" ); return false; @@ -2377,7 +2377,8 @@ if ( jQuery.ajax && ( !isLocal || hasPHP ) ) { var i = 1; jQuery.ajax({ - url: "http://somewebsitethatdoesnotexist-67864863574657654.com", + // see RFC 2606 + url: "http://example.invalid", success: function() { ok( false, "success" ); }, @@ -2398,7 +2399,7 @@ if ( jQuery.ajax && ( !isLocal || hasPHP ) ) { var i = 1; jQuery.ajax({ - url: "http://www.google.com", + url: "http://" + externalHost, success: function() { ok( false, "success" ); }, |