Chromium Code Reviews

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

Issue 2091173002: Add metadata to messages emitted by live tests. (Closed) Base URL: git@github.com:dart-lang/test@master
Patch Set: Created 4 years, 6 months ago
Use n/p to move between diff chunks; N/P to move between comments.
Jump to:
View side-by-side diff with in-line comments
« no previous file with comments | « lib/src/runner/load_suite.dart ('k') | lib/src/runner/reporter/compact.dart » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: lib/src/runner/remote_listener.dart
diff --git a/lib/src/runner/remote_listener.dart b/lib/src/runner/remote_listener.dart
index b368783210aec0182e90a7b0697c58ea9bbf44e8..958cbdf1380ae899759b4d5f69bd0ab89314c920 100644
--- a/lib/src/runner/remote_listener.dart
+++ b/lib/src/runner/remote_listener.dart
@@ -183,9 +183,13 @@ class RemoteListener {
});
});
- liveTest.onPrint.listen((line) {
- if (_printZone != null) _printZone.print(line);
- channel.sink.add({"type": "print", "line": line});
+ liveTest.onMessage.listen((message) {
+ if (_printZone != null) _printZone.print(message.text);
+ channel.sink.add({
+ "type": "message",
+ "message-type": message.type.name,
+ "text": message.text
+ });
});
liveTest.run().then((_) => channel.sink.add({"type": "complete"}));
« no previous file with comments | « lib/src/runner/load_suite.dart ('k') | lib/src/runner/reporter/compact.dart » ('j') | no next file with comments »

Powered by Google App Engine