Commit 747dd8c0 authored by Rick Waldron's avatar Rick Waldron

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

Signed-off-by: 's avatarRick Waldron <waldron.rick@gmail.com>
parent 6d108011
...@@ -1635,25 +1635,6 @@ module( "ajax", { ...@@ -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" );
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment