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 1fcf5ea..75ef26c 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 );