Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(78)

Unified Diff: test/perf/input/testing.js

Issue 11683002: Setting up benchmarks and perf utilities (Closed) Base URL: git@github.com:dart-lang/web-ui.git@master
Patch Set: john comments Created 7 years, 11 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « test/perf/input/start_dart.js ('k') | test/perf/input/todomvc2_test.html » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: test/perf/input/testing.js
diff --git a/test/data/input/testing.js b/test/perf/input/testing.js
similarity index 71%
copy from test/data/input/testing.js
copy to test/perf/input/testing.js
index 8754efa498062fc174f4332ddb7199296d452e9c..9d73c8e65acde049be2acdb773531a870e9e9463 100644
--- a/test/data/input/testing.js
+++ b/test/perf/input/testing.js
@@ -2,20 +2,14 @@
// for details. All rights reserved. Use of this source code is governed by a
// BSD-style license that can be found in the LICENSE file.
-if (navigator.webkitStartDart) {
- navigator.webkitStartDart();
-}
-
if (window.layoutTestController) {
+ window.layoutTestController.dumpAsText();
window.layoutTestController.waitUntilDone();
}
function messageHandler(e) {
- if (e.data == 'done') {
- // TODO(sigmund): use && in this condition, issue #41
- if (window.layoutTestController) {
- window.layoutTestController.notifyDone();
- }
+ if (e.data == 'done' && window.layoutTestController) {
+ window.layoutTestController.notifyDone();
}
}
« no previous file with comments | « test/perf/input/start_dart.js ('k') | test/perf/input/todomvc2_test.html » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698