Commit a87fa018 authored by Jörn Zaefferer's avatar Jörn Zaefferer

Improved testsuite (pass/fail indicator already exists in markup)

parent 46faa038
...@@ -55,7 +55,7 @@ function runTest() { ...@@ -55,7 +55,7 @@ function runTest() {
_config.stats.bad, ' tests of ', _config.stats.all, ' failed.</p>'] _config.stats.bad, ' tests of ', _config.stats.all, ' failed.</p>']
.join('')) .join(''))
.appendTo("body"); .appendTo("body");
$("<div id='banner'>").addClass(_config.stats.bad ? "fail" : "pass").insertAfter("h1"); $("#banner").addClass(_config.stats.bad ? "fail" : "pass");
}); });
} }
......
...@@ -7,6 +7,6 @@ h2 { padding: 10px; background-color: #eee; color: black; margin: 0; font-size: ...@@ -7,6 +7,6 @@ h2 { padding: 10px; background-color: #eee; color: black; margin: 0; font-size:
.fail { color: red; } .fail { color: red; }
p.result { margin-left: 1em; } p.result { margin-left: 1em; }
#banner { height: 2em; } #banner { height: 2em; border-bottom: 1px solid white; }
div.pass { background-color: green; } h2.pass { background-color: green; }
div.fail { background-color: red; } h2.fail { background-color: red; }
\ No newline at end of file \ No newline at end of file
...@@ -11,7 +11,8 @@ ...@@ -11,7 +11,8 @@
</head> </head>
<body id="body"> <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> <h2 id="userAgent"></h2>
<!-- Test HTML --> <!-- Test HTML -->
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment