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

Unified Diff: lib/src/runner/reporter.dart

Issue 1248073003: Add a --pause-after-load flag for debugging. (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
Index: lib/src/runner/reporter.dart
diff --git a/lib/src/runner/reporter.dart b/lib/src/runner/reporter.dart
new file mode 100644
index 0000000000000000000000000000000000000000..a3f7126d346ffe03fcfb730db461612800253742
--- /dev/null
+++ b/lib/src/runner/reporter.dart
@@ -0,0 +1,27 @@
+// Copyright (c) 2015, the Dart project authors. Please see the AUTHORS file
+// 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.
+
+library test.runner.reporter;
+
+/// An interface for classes that watch the progress of an Engine and report it
+/// to the user.
+///
+/// A reporter should subscribe to the Engine's events as soon as it's created.
+abstract class Reporter {
+ /// Pauses the reporter's output.
+ ///
+ /// Subclasses should buffer any events from the engine while they're paused.
+ /// They should also ensure that this does nothing if the reporter is already
+ /// paused.
+ void pause();
+
+ /// Resumes the reporter's output after being [paused].
+ ///
+ /// Subclasses should ensure that this does nothing if the reporter isn't
+ /// paused.
+ void resume();
+
+ /// Cancels the reporter's output.
+ void cancel();
+}

Powered by Google App Engine
This is Rietveld 408576698