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

Unified Diff: lib/src/runner.dart

Issue 1264043002: Display a pause screen in a paused browser. (Closed) Base URL: git@github.com:dart-lang/test@master
Patch Set: Created 5 years, 5 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 | « no previous file | lib/src/runner/browser/browser_manager.dart » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: lib/src/runner.dart
diff --git a/lib/src/runner.dart b/lib/src/runner.dart
index 3e2ab47aca656b98c601950377390f20e3fd5cf6..0ca8e67e99191c4c2cb9f0f3ef78c34c7b2d912e 100644
--- a/lib/src/runner.dart
+++ b/lib/src/runner.dart
@@ -238,10 +238,10 @@ class Runner {
"${suite.platform} and set breakpoints. Once you're finished, "
"return to this terminal and press Enter."));
- // TODO(nweiz): Display something in the paused browsers indicating that
- // they're paused.
-
- await stdinLines.next;
+ await race([
+ suite.environment.displayPause(),
+ cancelableNext(stdinLines)
+ ]);
} finally {
_reporter.resume();
}
« no previous file with comments | « no previous file | lib/src/runner/browser/browser_manager.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698