Updated the jQuery suite to use the updated QUnit CSS styling.

This commit is contained in:
John Resig 2009-09-29 22:48:25 +00:00
parent 3b5de9df40
commit 805832afc7
3 changed files with 6 additions and 6 deletions

View file

@ -305,7 +305,7 @@ test("offsetParent", function(){
equals( body.length, 1, "Only one offsetParent found." );
equals( body[0], document.body, "The body is its own offsetParent." );
var header = jQuery("#header").offsetParent();
var header = jQuery("#qunit-header").offsetParent();
equals( header.length, 1, "Only one offsetParent found." );
equals( header[0], document.body, "The body is the offsetParent." );

View file

@ -28,8 +28,8 @@ test("element", function() {
same( jQuery("*").get(), jQuery("*, *").get(), "Check for duplicates: *, *" );
same( jQuery("p").get(), jQuery("p, div p").get(), "Check for duplicates: p, div p" );
t( "Checking sort order", "h2, h1", ["header", "qunit-banner", "qunit-userAgent"] );
t( "Checking sort order", "h2:first, h1:first", ["header", "qunit-banner"] );
t( "Checking sort order", "h2, h1", ["qunit-header", "qunit-banner", "qunit-userAgent"] );
t( "Checking sort order", "h2:first, h1:first", ["qunit-header", "qunit-banner"] );
t( "Checking sort order", "p, p a", ["firstp", "simon1", "ap", "google", "groups", "anchor1", "mark", "sndp", "en", "yahoo", "sap", "anchor2", "simon", "first"] );
});
@ -409,6 +409,6 @@ test("pseudo (:) selectors", function() {
t( "Form element :checkbox:checked", "#form :checkbox:checked", ["check1"] );
t( "Form element :radio:checked, :checkbox:checked", "#form :radio:checked, #form :checkbox:checked", ["radio2", "check1"] );
t( "Headers", ":header", ["header", "qunit-banner", "qunit-userAgent"] );
t( "Headers", ":header", ["qunit-header", "qunit-banner", "qunit-userAgent"] );
t( "Has Children - :has()", "p:has(a)", ["firstp","ap","en","sap"] );
});