Remove invalid test "jQuery.getJSON() - Using Native JSON" from test/unit/ajax.js

Signed-off-by: Rick Waldron <waldron.rick@gmail.com>
This commit is contained in:
Rick Waldron 2012-12-31 13:31:03 -05:00
parent 6d1080114d
commit 747dd8c042

View File

@ -1635,25 +1635,6 @@ module( "ajax", {
}); });
}); });
asyncTest( "jQuery.getJSON() - Using Native JSON", 2, function() {
var restore = "JSON" in window,
old = window.JSON;
if ( !restore ) {
Globals.register("JSON");
}
window.JSON = {
parse: function( str ) {
ok( true, "Verifying that parse method was run" );
window.JSON = old;
return true;
}
};
jQuery.getJSON( url("data/json.php"), function( json ) {
strictEqual( json, true, "Verifying return value" );
start();
});
});
asyncTest( "jQuery.getJSON( String, Function ) - JSON object with absolute url to local content", 2, function() { asyncTest( "jQuery.getJSON( String, Function ) - JSON object with absolute url to local content", 2, function() {
jQuery.getJSON( url( window.location.href.replace( /[^\/]*$/, "" ) + "data/json.php" ), function( json ) { jQuery.getJSON( url( window.location.href.replace( /[^\/]*$/, "" ) + "data/json.php" ), function( json ) {
strictEqual( json.data.lang, "en", "Check JSON: lang" ); strictEqual( json.data.lang, "en", "Check JSON: lang" );