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

Unified Diff: dart/tests/try/web/sandbox.dart

Issue 667763005: Make incremental tests time out faster. (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge
Patch Set: Merged with r41480. Created 6 years, 1 month 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 | « dart/tests/try/web/incremental_compilation_update_test.dart ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: dart/tests/try/web/sandbox.dart
diff --git a/dart/tests/try/web/sandbox.dart b/dart/tests/try/web/sandbox.dart
index e11567c945d00b696f27cfda274e7b2483503f25..c0991659bc735a0b6eec8b39dfc26986ab50f63c 100644
--- a/dart/tests/try/web/sandbox.dart
+++ b/dart/tests/try/web/sandbox.dart
@@ -83,6 +83,10 @@ class Listener {
String expectedMessage;
+ Stopwatch wallclock;
+
+ int get elapsed => wallclock.elapsedMilliseconds ~/ 1000;
+
void onMessage(MessageEvent e) {
String message = e.data;
if (expectedMessage == message) {
@@ -117,6 +121,7 @@ class Listener {
}
void start() {
+ wallclock = new Stopwatch()..start();
window.onMessage.listen(onMessage);
}
}
« no previous file with comments | « dart/tests/try/web/incremental_compilation_update_test.dart ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698