]> source.dussan.org Git - jquery.git/commitdiff
Re-wrote context Ajax test to use an element instead of an object (a more realistic...
authorJohn Resig <jeresig@gmail.com>
Tue, 17 Nov 2009 19:36:10 +0000 (14:36 -0500)
committerJohn Resig <jeresig@gmail.com>
Tue, 17 Nov 2009 19:36:10 +0000 (14:36 -0500)
test/unit/ajax.js

index 1fcf5ea198be4f0364075f6109ee650369fb9fdd..75ef26c9834948ed2460f1f8f909a55175e8a38c 100644 (file)
@@ -74,7 +74,7 @@ test("Ajax events with context", function() {
        expect(6);
        
        stop();
-       var context = {};
+       var context = document.createElement("div");
        
        function event(e){
                equals( this, context, e.type );