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

Unified Diff: lib/src/runner/browser/iframe_listener.dart

Issue 1422963004: Add RunnerSuite.{on,is}Debugging properties. (Closed) Base URL: git@github.com:dart-lang/test@master
Patch Set: Code review changes Created 5 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 | « lib/src/runner/browser/browser_manager.dart ('k') | lib/src/runner/browser/suite.dart » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: lib/src/runner/browser/iframe_listener.dart
diff --git a/lib/src/runner/browser/iframe_listener.dart b/lib/src/runner/browser/iframe_listener.dart
index 834f3e1734d2f8d95fffdcfc0f06a7d182bcdf06..9708b71286512de650230b4c1ae581af3cf41986 100644
--- a/lib/src/runner/browser/iframe_listener.dart
+++ b/lib/src/runner/browser/iframe_listener.dart
@@ -39,6 +39,11 @@ class IframeListener {
static Future start(Function getMain()) async {
var channel = _postMessageChannel();
+ // Send periodic pings to the test runner so it can know when the suite is
+ // paused for debugging.
+ new Timer.periodic(new Duration(seconds: 1),
+ (_) => channel.sink.add({"type": "ping"}));
+
var main;
try {
main = getMain();
« no previous file with comments | « lib/src/runner/browser/browser_manager.dart ('k') | lib/src/runner/browser/suite.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698