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

Unified Diff: test/runner/browser/loader_test.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. 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 | « test/backend/invoker_test.dart ('k') | test/runner/compact_reporter_test.dart » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: test/runner/browser/loader_test.dart
diff --git a/test/runner/browser/loader_test.dart b/test/runner/browser/loader_test.dart
index 41f10391aecdb18ed1a893bd030f461b64248500..1c924d3e4c0f6c7e90621fab23b3c34fd75cbdb9 100644
--- a/test/runner/browser/loader_test.dart
+++ b/test/runner/browser/loader_test.dart
@@ -164,7 +164,8 @@ void main() {
var loadSuite = suites.first;
var liveTest = await loadSuite.group.entries.single.load(loadSuite);
- expect(liveTest.onPrint.first, completion(equals("print within test")));
+ expect(liveTest.onMessage.first.then((message) => message.text),
+ completion(equals("print within test")));
await liveTest.run();
expectTestPassed(liveTest);
});
« no previous file with comments | « test/backend/invoker_test.dart ('k') | test/runner/compact_reporter_test.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698