Skip to content

Commit

Permalink
Added note to test for special Firefox 8 case
Browse files Browse the repository at this point in the history
  • Loading branch information
JangoSteve committed Apr 3, 2012
1 parent 9132c5f commit 17130c6
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions test/public/test/call-remote-callbacks.js
Original file line number Original file line Diff line number Diff line change
Expand Up @@ -281,6 +281,7 @@ asyncTest('"ajax:beforeSend", "ajax:error" and "ajax:complete" are triggered on
form.bind('ajax:error', function(e, xhr, status, error) { form.bind('ajax:error', function(e, xhr, status, error) {
ok(xhr.getResponseHeader, 'first argument to "ajax:error" should be an XHR object'); ok(xhr.getResponseHeader, 'first argument to "ajax:error" should be an XHR object');
equal(status, 'error', 'second argument to ajax:error should be a status string'); equal(status, 'error', 'second argument to ajax:error should be a status string');
// Firefox 8 returns "Forbidden " with trailing space
equal($.trim(error), 'Forbidden', 'third argument to ajax:error should be an HTTP status response'); equal($.trim(error), 'Forbidden', 'third argument to ajax:error should be an HTTP status response');
// Opera returns "0" for HTTP code // Opera returns "0" for HTTP code
equal(xhr.status, window.opera ? 0 : 403, 'status code should be 403'); equal(xhr.status, window.opera ? 0 : 403, 'status code should be 403');
Expand Down

0 comments on commit 17130c6

Please sign in to comment.