diff options
author | Jörn Zaefferer <joern.zaefferer@gmail.com> | 2006-11-03 11:30:57 +0000 |
---|---|---|
committer | Jörn Zaefferer <joern.zaefferer@gmail.com> | 2006-11-03 11:30:57 +0000 |
commit | 7b780def0d7843e26d6a26dbc60499ea75f09e59 (patch) | |
tree | 3c9ac88e74044f890ed1f36db33a10d6935846bc /build | |
parent | e9917ab8373b5e79c2a4315ad7f75be2cecf5ae1 (diff) | |
download | jquery-7b780def0d7843e26d6a26dbc60499ea75f09e59.tar.gz jquery-7b780def0d7843e26d6a26dbc60499ea75f09e59.zip |
Refactored ajax module: Dropped internal arguments from ajax(); Modified testsuite to improve display
Diffstat (limited to 'build')
-rw-r--r-- | build/test/data/testrunner.js | 7 | ||||
-rw-r--r-- | build/test/data/testsuite.css | 2 |
2 files changed, 5 insertions, 4 deletions
diff --git a/build/test/data/testrunner.js b/build/test/data/testrunner.js index 398ef3dcd..cf4777deb 100644 --- a/build/test/data/testrunner.js +++ b/build/test/data/testrunner.js @@ -43,8 +43,9 @@ function runTest(tests) { synchronize(function() { var runTime = new Date() - startTime; var result = document.createElement("div"); - result.innerHTML = 'Tests completed in ' + runTime + ' milliseconds.<br/>' + - stats.bad + ' tests of ' + stats.all + ' failed.'; + result.innerHTML = '<p class="result">Tests completed in ' + + runTime + ' milliseconds.<br/>' + + stats.bad + ' tests of ' + stats.all + ' failed.</p>'; document.getElementsByTagName("body")[0].appendChild(result); }); } @@ -68,7 +69,7 @@ function test(name, callback) { var good = 0, bad = 0; var ol = document.createElement("ol"); - + ol.style.display = "none"; var li = "", state = "pass"; for ( var i = 0; i < Test.length; i++ ) { var li = document.createElement("li"); diff --git a/build/test/data/testsuite.css b/build/test/data/testsuite.css index e7618fffd..4d443b9f6 100644 --- a/build/test/data/testsuite.css +++ b/build/test/data/testsuite.css @@ -5,4 +5,4 @@ h2 { padding: 10px; background-color: #eee; color: black; margin: 0; font-size: .pass { color: green; } .fail { color: red; } -#tests ol { display: none; margin-left: 1em; }
\ No newline at end of file +p.result { margin-left: 1em; }
\ No newline at end of file |