From 8effe3a7dee91c833cc1774646da9d743600c64c Mon Sep 17 00:00:00 2001 From: jeresig Date: Tue, 23 Mar 2010 12:12:16 -0400 Subject: Made it so that you no longer need to build jQuery in order to run the test suite (but you'll still need a checkout of QUnit and Sizzle, at least). --- test/index.html | 50 ++++++++++++++++++++++++++++++++----------------- test/unit/attributes.js | 12 ++++++++---- 2 files changed, 41 insertions(+), 21 deletions(-) (limited to 'test') diff --git a/test/index.html b/test/index.html index d6d02f47f..13abd97f9 100644 --- a/test/index.html +++ b/test/index.html @@ -6,23 +6,39 @@ - - - - - - - - - - - - - - - - - + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + diff --git a/test/unit/attributes.js b/test/unit/attributes.js index d7abbad35..21d3d94bc 100644 --- a/test/unit/attributes.js +++ b/test/unit/attributes.js @@ -482,8 +482,10 @@ test("addClass(Function) with incoming value", function() { }); div.addClass(function(i, val) { - equals( val, old[i], "Make sure the incoming value is correct." ); - return "test"; + if ( this.id !== "_firebugConsole" ) { + equals( val, old[i], "Make sure the incoming value is correct." ); + return "test"; + } }); var pass = true; @@ -553,8 +555,10 @@ test("removeClass(Function) with incoming value", function() { }); $divs.removeClass(function(i, val) { - equals( val, old[i], "Make sure the incoming value is correct." ); - return "test"; + if ( this.id !== "_firebugConsole" ) { + equals( val, old[i], "Make sure the incoming value is correct." ); + return "test"; + } }); ok( !$divs.is('.test'), "Remove Class" ); -- cgit v1.2.3