aboutsummaryrefslogtreecommitdiffstats
path: root/build
diff options
context:
space:
mode:
authorJörn Zaefferer <joern.zaefferer@gmail.com>2006-11-20 20:54:42 +0000
committerJörn Zaefferer <joern.zaefferer@gmail.com>2006-11-20 20:54:42 +0000
commita87fa0188b8e0f56881afdfe0e7a7afb49eb0619 (patch)
treeb4428a9ad6f360bf05481ad4b09278ff541f8a4d /build
parent46faa03820f82e5b03e6b3d73bd9d5b194b2b310 (diff)
downloadjquery-a87fa0188b8e0f56881afdfe0e7a7afb49eb0619.tar.gz
jquery-a87fa0188b8e0f56881afdfe0e7a7afb49eb0619.zip
Improved testsuite (pass/fail indicator already exists in markup)
Diffstat (limited to 'build')
-rw-r--r--build/test/data/testrunner.js2
-rw-r--r--build/test/data/testsuite.css6
-rw-r--r--build/test/index.html3
3 files changed, 6 insertions, 5 deletions
diff --git a/build/test/data/testrunner.js b/build/test/data/testrunner.js
index c3afea339..3888ad9bd 100644
--- a/build/test/data/testrunner.js
+++ b/build/test/data/testrunner.js
@@ -55,7 +55,7 @@ function runTest() {
_config.stats.bad, ' tests of ', _config.stats.all, ' failed.</p>']
.join(''))
.appendTo("body");
- $("<div id='banner'>").addClass(_config.stats.bad ? "fail" : "pass").insertAfter("h1");
+ $("#banner").addClass(_config.stats.bad ? "fail" : "pass");
});
}
diff --git a/build/test/data/testsuite.css b/build/test/data/testsuite.css
index 58eb610f5..b42f2b79d 100644
--- a/build/test/data/testsuite.css
+++ b/build/test/data/testsuite.css
@@ -7,6 +7,6 @@ h2 { padding: 10px; background-color: #eee; color: black; margin: 0; font-size:
.fail { color: red; }
p.result { margin-left: 1em; }
-#banner { height: 2em; }
-div.pass { background-color: green; }
-div.fail { background-color: red; } \ No newline at end of file
+#banner { height: 2em; border-bottom: 1px solid white; }
+h2.pass { background-color: green; }
+h2.fail { background-color: red; } \ No newline at end of file
diff --git a/build/test/index.html b/build/test/index.html
index db6cfd813..24d206467 100644
--- a/build/test/index.html
+++ b/build/test/index.html
@@ -11,7 +11,8 @@
</head>
<body id="body">
- <h1 id="banner">jQuery Test Suite - Core</h1>
+ <h1>jQuery Test Suite - Core</h1>
+ <h2 id="banner"></h2>
<h2 id="userAgent"></h2>
<!-- Test HTML -->