Skip to content
Browse files

Added note to test for special Firefox 8 case

  • Loading branch information...
1 parent 9132c5f commit 17130c6238981ab116db489ba2ad06a512f9bc11 @JangoSteve JangoSteve committed Apr 3, 2012
Showing with 1 addition and 0 deletions.
  1. +1 −0 test/public/test/call-remote-callbacks.js
View
1 test/public/test/call-remote-callbacks.js
@@ -281,6 +281,7 @@ asyncTest('"ajax:beforeSend", "ajax:error" and "ajax:complete" are triggered on
form.bind('ajax:error', function(e, xhr, status, error) {
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');
+ // Firefox 8 returns "Forbidden " with trailing space
equal($.trim(error), 'Forbidden', 'third argument to ajax:error should be an HTTP status response');
// Opera returns "0" for HTTP code
equal(xhr.status, window.opera ? 0 : 403, 'status code should be 403');

0 comments on commit 17130c6

Please sign in to comment.
Something went wrong with that request. Please try again.