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

Unified Diff: tests/lib/async/stream_empty_test.dart

Issue 1188613008: Fix timing issue in stream_empty_test, and make analyzer expect it to pass. (Closed) Base URL: https://github.com/dart-lang/sdk.git@master
Patch Set: Created 5 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 | « no previous file | tests/lib/lib.status » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: tests/lib/async/stream_empty_test.dart
diff --git a/tests/lib/async/stream_empty_test.dart b/tests/lib/async/stream_empty_test.dart
index 133ea48b25ed6d99eb663936d1cb35d5257446fa..c1d4b7b34f82c365201fe4fefbdcded36a0a5b0f 100644
--- a/tests/lib/async/stream_empty_test.dart
+++ b/tests/lib/async/stream_empty_test.dart
@@ -7,7 +7,12 @@ import "package:expect/expect.dart";
import "dart:async";
import 'package:async_helper/async_helper.dart';
-main() async {
+main() {
+ asyncStart();
+ runTest().whenComplete(asyncEnd);
+}
+
+Future runTest() async {
unreachable([a,b]) { throw "UNREACHABLE"; }
int tick = 0;
ticker() { tick++; }
« no previous file with comments | « no previous file | tests/lib/lib.status » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698