aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorJohn Resig <jeresig@gmail.com>2009-09-29 22:48:25 +0000
committerJohn Resig <jeresig@gmail.com>2009-09-29 22:48:25 +0000
commit805832afc7b7e6d1cc199949d0bfdd3ea21d94a3 (patch)
tree467544e42d65ad38c67f44699b582eb7ecf3f5b1
parent3b5de9df40249575ba575b63a0856d6f48c8382a (diff)
downloadjquery-805832afc7b7e6d1cc199949d0bfdd3ea21d94a3.tar.gz
jquery-805832afc7b7e6d1cc199949d0bfdd3ea21d94a3.zip
Updated the jQuery suite to use the updated QUnit CSS styling.
-rw-r--r--test/index.html4
-rw-r--r--test/unit/offset.js2
-rw-r--r--test/unit/selector.js6
3 files changed, 6 insertions, 6 deletions
diff --git a/test/index.html b/test/index.html
index 755757f77..adf176284 100644
--- a/test/index.html
+++ b/test/index.html
@@ -1,5 +1,5 @@
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
-<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en" dir="ltr" id="html" class="qunit">
+<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en" dir="ltr" id="html">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<title>jQuery Test Suite</title>
@@ -25,7 +25,7 @@
</head>
<body id="body">
- <h1 id="header">jQuery Test Suite</h1>
+ <h1 id="qunit-header">jQuery Test Suite</h1>
<h2 id="qunit-banner"></h2>
<div id="qunit-testrunner-toolbar"></div>
<h2 id="qunit-userAgent"></h2>
diff --git a/test/unit/offset.js b/test/unit/offset.js
index cafc4eb16..602f5e6ae 100644
--- a/test/unit/offset.js
+++ b/test/unit/offset.js
@@ -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." );
diff --git a/test/unit/selector.js b/test/unit/selector.js
index 37da3f3fa..3b18f16ae 100644
--- a/test/unit/selector.js
+++ b/test/unit/selector.js
@@ -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"] );
});