Allow 304/Not Modified tests to complete in Opera.
authorjeresig <jeresig@gmail.com>
Mon, 27 Sep 2010 16:10:00 +0000 (12:10 -0400)
committerjeresig <jeresig@gmail.com>
Mon, 27 Sep 2010 16:10:00 +0000 (12:10 -0400)
test/unit/ajax.js

index 18122b9..6199270 100644 (file)
@@ -1247,8 +1247,16 @@ test("jQuery.ajax - If-Modified-Since support", function() {
                                                ok(data == null, "response body should be empty")
                                        }
                                        start();
+                               },
+                               error: function() {
+                                       equals(false, "error");
+                                       start();
                                }
                        });
+               },
+               error: function() {
+                       equals(false, "error");
+                       start();
                }
        });
 });
@@ -1278,13 +1286,20 @@ test("jQuery.ajax - Etag support", function() {
                                                ok(data == null, "response body should be empty")
                                        }
                                        start();
+                               },
+                               error: function() {
+                                       equals(false, "error");
+                                       start();
                                }
                        });
+               },
+               error: function() {
+                       equals(false, "error");
+                       start();
                }
        });
 });
 
-
 test("jQuery.ajax - active counter", function() {
     ok( jQuery.ajax.active == 0, "ajax active counter should be zero: " + jQuery.ajax.active );
 });