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

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: 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
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),
kevmoo 2015/11/06 18:13:56 const Duration
nweiz 2015/11/16 20:26:59 Generally we use "new" rather than "const" outside
+ (_) => channel.sink.add({"type": "ping"}));
+
var main;
try {
main = getMain();

Powered by Google App Engine
This is Rietveld 408576698