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

Unified Diff: test/runner/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/runner/json_reporter_test.dart ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: test/runner/loader_test.dart
diff --git a/test/runner/loader_test.dart b/test/runner/loader_test.dart
index ab971f0889d7df3a677d9ca3e0536984730abe19..f93bae9c24b11709d831789283c6fb3fb046a24d 100644
--- a/test/runner/loader_test.dart
+++ b/test/runner/loader_test.dart
@@ -153,7 +153,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/runner/json_reporter_test.dart ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698