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

Unified Diff: test/runner/compact_reporter_test.dart

Issue 1268013004: Don't print clock updates between prints. (Closed) Base URL: git@github.com:dart-lang/test@master
Patch Set: Fix changelog. Created 5 years, 4 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 | « lib/src/runner/reporter/compact.dart ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: test/runner/compact_reporter_test.dart
diff --git a/test/runner/compact_reporter_test.dart b/test/runner/compact_reporter_test.dart
index 967021f2664dc732528724091727a7dad0186ae1..5380d85e9f55ad2a7677c1d88af133ab67c4ad61 100644
--- a/test/runner/compact_reporter_test.dart
+++ b/test/runner/compact_reporter_test.dart
@@ -286,6 +286,23 @@ void main() {
+1: really ... longer than that. No, yet longer. A little more... okay, that should do it.
+1: All tests passed!""");
});
+
+ test("doesn't print a clock update between two prints", () {
+ _expectReport("""
+ test('slow', () async {
+ print('hello');
+ await new Future.delayed(new Duration(seconds: 3));
+ print('goodbye');
+ });""",
+ """
+ +0: loading test.dart
+ +0: slow
+ hello
+ goodbye
+
+ +1: slow
+ +1: All tests passed!""");
+ });
});
group("skip:", () {
« no previous file with comments | « lib/src/runner/reporter/compact.dart ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698