Skip to content

Commit

Permalink
Allow 304/Not Modified tests to complete in Opera.
Browse files Browse the repository at this point in the history
  • Loading branch information
jeresig committed Sep 27, 2010
1 parent 0be7f4e commit ea6a481
Showing 1 changed file with 16 additions and 1 deletion.
17 changes: 16 additions & 1 deletion test/unit/ajax.js
Expand Up @@ -1247,8 +1247,16 @@ test("jQuery.ajax - If-Modified-Since support", function() {
ok(data == null, "response body should be empty") ok(data == null, "response body should be empty")
} }
start(); start();
},
error: function() {
equals(false, "error");
start();
} }
}); });
},
error: function() {
equals(false, "error");
start();
} }
}); });
}); });
Expand Down Expand Up @@ -1278,13 +1286,20 @@ test("jQuery.ajax - Etag support", function() {
ok(data == null, "response body should be empty") ok(data == null, "response body should be empty")
} }
start(); start();
},
error: function() {
equals(false, "error");
start();
} }
}); });
},
error: function() {
equals(false, "error");
start();
} }
}); });
}); });



test("jQuery.ajax - active counter", function() { test("jQuery.ajax - active counter", function() {
ok( jQuery.ajax.active == 0, "ajax active counter should be zero: " + jQuery.ajax.active ); ok( jQuery.ajax.active == 0, "ajax active counter should be zero: " + jQuery.ajax.active );
}); });
Expand Down

0 comments on commit ea6a481

Please sign in to comment.