Improved testsuite (pass/fail indicator already exists in markup)
authorJörn Zaefferer <joern.zaefferer@gmail.com>
Mon, 20 Nov 2006 20:54:42 +0000 (20:54 +0000)
committerJörn Zaefferer <joern.zaefferer@gmail.com>
Mon, 20 Nov 2006 20:54:42 +0000 (20:54 +0000)
build/test/data/testrunner.js
build/test/data/testsuite.css
build/test/index.html

index c3afea3..3888ad9 100644 (file)
@@ -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");
        });
 }
 
index 58eb610..b42f2b7 100644 (file)
@@ -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
index db6cfd8..24d2064 100644 (file)
@@ -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 -->