diff options
author | David Fugate <dfugate@microsoft.com> | 2011-02-08 09:42:59 -0800 |
---|---|---|
committer | David Fugate <dfugate@microsoft.com> | 2011-02-08 09:42:59 -0800 |
commit | 82c8d63eee1790e2c4e3ac837c85b97a7e25e54f (patch) | |
tree | 2888f73cc8504727301be6579f948316a55fd941 /test/harness/helper.js | |
parent | e4d4a7a870172e737eace6c81accffb326430260 (diff) |
Added a test harness 'debug' mode to Simple Test Harness. Accessible via appending
"?sitedebug" to the end of the Test262 URL.
There's a mismatch between the Test262 test harness and IE Test Center's harness
which invalidated 15.4.4.17-5-1.js, 15.4.4.18-5-1.js, and 15.4.4.20-5-1.js on Test262.
Essentially what's going on is Test262 uses the 'window' object as 'this' for the test
case functions whereas IE Test Center uses the test case object housing the test case
function as this. This causes problems for test cases pertaining to scoping. I've gone
ahead and adjusted the Test262 tests to expect 'window' to be 'this', and will be updating
IE Test Center's harness to use the 'window' object as well so we don't run into this
problem again.
Diffstat (limited to 'test/harness/helper.js')
-rw-r--r-- | test/harness/helper.js | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/test/harness/helper.js b/test/harness/helper.js index fb3d04428..110b23b07 100644 --- a/test/harness/helper.js +++ b/test/harness/helper.js @@ -291,7 +291,11 @@ function Presenter() { this.finished = function(elapsed) {
$('.button-start').attr('src', 'resources/images/start.png');
- activityBar.text('Overall Execution Time: ' + elapsed + ' minutes');
+ if (isSiteDebugMode()) {
+ activityBar.text('Overall Execution Time: ' + elapsed + ' minutes');
+ } else {
+ activityBar.text('');
+ }
}
/* Refresh display of the report */
|