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.
This commit is contained in:
parent
00a2fa5f35
commit
d7a8794eb5
5 changed files with 174 additions and 148 deletions
|
@ -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 );
|
||||
});
|
||||
});
|
Loading…
Add table
Add a link
Reference in a new issue