diff options
author | jeresig <jeresig@gmail.com> | 2010-03-23 12:12:16 -0400 |
---|---|---|
committer | jeresig <jeresig@gmail.com> | 2010-03-23 12:12:16 -0400 |
commit | 8effe3a7dee91c833cc1774646da9d743600c64c (patch) | |
tree | 1d8c9b10b5a7431ffb9c5c70cf4654e7c98d9438 /test | |
parent | ba8938d444b9a49bdfb27213826ba108145c2e50 (diff) | |
download | jquery-8effe3a7dee91c833cc1774646da9d743600c64c.tar.gz jquery-8effe3a7dee91c833cc1774646da9d743600c64c.zip |
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).
Diffstat (limited to 'test')
-rw-r--r-- | test/index.html | 50 | ||||
-rw-r--r-- | test/unit/attributes.js | 12 |
2 files changed, 41 insertions, 21 deletions
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 @@ <link rel="Stylesheet" media="screen" href="qunit/qunit/qunit.css" /> <link rel="Stylesheet" media="screen" href="data/testsuite.css" /> <!-- Includes --> - <script type="text/javascript" src="data/testinit.js"></script> - <script type="text/javascript" src="../dist/jquery.js"></script> - <script type="text/javascript" src="qunit/qunit/qunit.js"></script> - <script type="text/javascript" src="data/testrunner.js"></script> - <script type="text/javascript" src="unit/core.js"></script> - <script type="text/javascript" src="unit/data.js"></script> - <script type="text/javascript" src="unit/queue.js"></script> - <script type="text/javascript" src="unit/attributes.js"></script> - <script type="text/javascript" src="unit/css.js"></script> - <script type="text/javascript" src="unit/traversing.js"></script> - <script type="text/javascript" src="unit/manipulation.js"></script> - <script type="text/javascript" src="unit/dimensions.js"></script> - <script type="text/javascript" src="unit/selector.js"></script> - <script type="text/javascript" src="unit/event.js"></script> - <script type="text/javascript" src="unit/ajax.js"></script> - <script type="text/javascript" src="unit/effects.js"></script> - <script type="text/javascript" src="unit/offset.js"></script> + <script src="data/testinit.js"></script> + + <script src="../src/core.js"></script> + <script src="../src/support.js"></script> + <script src="../src/sizzle/sizzle.js"></script> + <script src="../src/sizzle-jquery.js"></script> + <script src="../src/data.js"></script> + <script src="../src/queue.js"></script> + <script src="../src/attributes.js"></script> + <script src="../src/css.js"></script> + <script src="../src/traversing.js"></script> + <script src="../src/manipulation.js"></script> + <script src="../src/dimensions.js"></script> + <script src="../src/event.js"></script> + <script src="../src/ajax.js"></script> + <script src="../src/effects.js"></script> + <script src="../src/offset.js"></script> + + <script src="qunit/qunit/qunit.js"></script> + <script src="data/testrunner.js"></script> + <script src="unit/core.js"></script> + <script src="unit/data.js"></script> + <script src="unit/queue.js"></script> + <script src="unit/attributes.js"></script> + <script src="unit/css.js"></script> + <script src="unit/traversing.js"></script> + <script src="unit/manipulation.js"></script> + <script src="unit/dimensions.js"></script> + <script src="unit/selector.js"></script> + <script src="unit/event.js"></script> + <script src="unit/ajax.js"></script> + <script src="unit/effects.js"></script> + <script src="unit/offset.js"></script> </head> <body id="body"> 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" ); |