Skip to content
Permalink
Browse files
Improved testsuite (pass/fail indicator already exists in markup)
  • Loading branch information
jzaefferer committed Nov 20, 2006
1 parent 46faa03 commit a87fa0188b8e0f56881afdfe0e7a7afb49eb0619
Showing with 6 additions and 5 deletions.
  1. +1 −1 build/test/data/testrunner.js
  2. +3 −3 build/test/data/testsuite.css
  3. +2 −1 build/test/index.html
@@ -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");
});
}

@@ -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; }
#banner { height: 2em; border-bottom: 1px solid white; }
h2.pass { background-color: green; }
h2.fail { background-color: red; }
@@ -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 -->

0 comments on commit a87fa01

Please sign in to comment.