From: John Resig Date: Tue, 17 Nov 2009 19:36:10 +0000 (-0500) Subject: Re-wrote context Ajax test to use an element instead of an object (a more realistic... X-Git-Url: http://git.asbjorn.biz/?p=jquery.git;a=commitdiff_plain;h=c08474580caa44d2b5f32be54c0d884832bbd1c3 Re-wrote context Ajax test to use an element instead of an object (a more realistic test and works with the new jQuery.extend logic for cloning object literals). --- diff --git a/test/unit/ajax.js b/test/unit/ajax.js index 1fcf5ea..75ef26c 100644 --- a/test/unit/ajax.js +++ b/test/unit/ajax.js @@ -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 );