diff options
author | John Resig <jeresig@gmail.com> | 2007-03-25 18:06:18 +0000 |
---|---|---|
committer | John Resig <jeresig@gmail.com> | 2007-03-25 18:06:18 +0000 |
commit | d7a8794eb574a870fde9a8afdfd452e52804f65d (patch) | |
tree | f5f1deb10a27d3a31e091d1f6704f4a600f7d1eb /src/selector | |
parent | 00a2fa5f35aa46c29a568729ef6dce4a7d5959b9 (diff) | |
download | jquery-d7a8794eb574a870fde9a8afdfd452e52804f65d.tar.gz jquery-d7a8794eb574a870fde9a8afdfd452e52804f65d.zip |
Cleaned up a lot of the test suite - reorganized and renamed tests. Added a new triggerEvent() method to the test runner to help us better test actual event interactions.
Diffstat (limited to 'src/selector')
-rw-r--r-- | src/selector/selectorTest.js | 13 |
1 files changed, 5 insertions, 8 deletions
diff --git a/src/selector/selectorTest.js b/src/selector/selectorTest.js index d3004f05b..8200595c0 100644 --- a/src/selector/selectorTest.js +++ b/src/selector/selectorTest.js @@ -1,13 +1,16 @@ module("selector"); test("element", function() { - expect(6); + expect(8); ok( $("*").size() >= 30, "Select all" ); t( "Element Selector", "div", ["main","foo"] ); t( "Element Selector", "body", ["body"] ); t( "Element Selector", "html", ["html"] ); t( "Parent Element", "div div", ["foo"] ); ok( $("param", "#object1").length == 2, "Object/param as context" ); + + ok( $("#length").length, '<input name="length"> cannot be found under IE, see #945' ); + ok( $("#lengthtest input").length, '<input name="length"> cannot be found under IE, see #945' ); }); test("broken", function() { @@ -199,10 +202,4 @@ test("basic xpath", function() { $("#foo").each(function() { isSet( $("/p", this).get(), q("sndp", "en", "sap"), "Check XPath context" ); }); -}); - -test('<input name="length"> cannot be found under IE, see #945', function() { - expect(2); - ok( $("#length").length ); - ok( $("#lengthtest input").length ); -}); +});
\ No newline at end of file |