aboutsummaryrefslogtreecommitdiffstats
path: root/test/harness/helper.js
diff options
context:
space:
mode:
authorDavid Fugate <dfugate@microsoft.com>2011-02-03 16:28:52 -0800
committerDavid Fugate <dfugate@microsoft.com>2011-02-03 16:28:52 -0800
commite4d4a7a870172e737eace6c81accffb326430260 (patch)
treeae6ad730265cee4cb04f0f8040a787e90dd05dd2 /test/harness/helper.js
parent2ec3b287d75fc27d1c9246eabe22ce8cde4b395d (diff)
test\harness\helper.js: extended the 'finished' method to accept as input the total elapsed execution time
of the tests. Emit this to the activity bar test\harness\sta.js: too many years of Python had me thinking JavaScript arrays have an append method:) Fixed. Also, added a pickled representation of all test helper functions found in this file test\harness\sth.js: detached most test helper functions from the iframe's document object (as globals) and inject these into the actual test cases. It's a bit slower and not as elegant, but it is cleaner from an ES5 purist perspective. Still need to move Sputnik helper functions into sta.js Extended Controller such that it now measures overall test execution time. Such a change is very useful for measuring performance-impact changes such as the aforementioned improvement
Diffstat (limited to 'test/harness/helper.js')
-rw-r--r--test/harness/helper.js4
1 files changed, 2 insertions, 2 deletions
diff --git a/test/harness/helper.js b/test/harness/helper.js
index 28d340501..fb3d04428 100644
--- a/test/harness/helper.js
+++ b/test/harness/helper.js
@@ -289,9 +289,9 @@ function Presenter() {
renderCurrentSection();
}
- this.finished = function() {
+ this.finished = function(elapsed) {
$('.button-start').attr('src', 'resources/images/start.png');
- activityBar.text('');
+ activityBar.text('Overall Execution Time: ' + elapsed + ' minutes');
}
/* Refresh display of the report */