Testing *, * was unnecessary - especially in slower browsers.

This commit is contained in:
jeresig 2010-10-14 22:06:27 -04:00
parent 40aa95c320
commit 21d389ccea

View file

@ -1,7 +1,7 @@
module("selector"); module("selector");
test("element", function() { test("element", function() {
expect(19); expect(18);
QUnit.reset(); QUnit.reset();
ok( jQuery("*").size() >= 30, "Select all" ); ok( jQuery("*").size() >= 30, "Select all" );
@ -27,7 +27,6 @@ test("element", function() {
ok( jQuery("#lengthtest input").length, '<input name="length"> cannot be found under IE, see #945' ); ok( jQuery("#lengthtest input").length, '<input name="length"> cannot be found under IE, see #945' );
// Check for unique-ness and sort order // Check for unique-ness and sort order
same( jQuery("*, *").get(), jQuery("*").get(), "Check for duplicates: *, *" );
same( jQuery("p, div p").get(), jQuery("p").get(), "Check for duplicates: p, div p" ); same( jQuery("p, div p").get(), jQuery("p").get(), "Check for duplicates: p, div p" );
t( "Checking sort order", "h2, h1", ["qunit-header", "qunit-banner", "qunit-userAgent"] ); t( "Checking sort order", "h2, h1", ["qunit-header", "qunit-banner", "qunit-userAgent"] );