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

Unified Diff: tests/html/async_window_test.dart

Issue 89913002: Removing outdated & flaky async_window_test (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Created 7 years, 1 month 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/html/html.status » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: tests/html/async_window_test.dart
diff --git a/tests/html/async_window_test.dart b/tests/html/async_window_test.dart
deleted file mode 100644
index 6cdb5dda3bd8cd55d3cbd99559103ac2f08065d0..0000000000000000000000000000000000000000
--- a/tests/html/async_window_test.dart
+++ /dev/null
@@ -1,33 +0,0 @@
-library AsyncWindowTest;
-import '../../pkg/unittest/lib/unittest.dart';
-import '../../pkg/unittest/lib/html_config.dart';
-import 'dart:html';
-import 'dart:async';
-
-main() {
- useHtmlConfiguration();
- test('Timer', () {
- new Timer(const Duration(milliseconds: 10), expectAsync0((){}));
- });
- test('Timer.periodic', () {
- int counter = 0;
- int id = null;
- new Timer.periodic(const Duration(milliseconds: 10),
- expectAsyncUntil1(
- (timer) {
- if (counter == 3) {
- counter = 1024;
- timer.cancel();
- // Wait some more time to be sure callback won't be invoked any
- // more.
- new Timer(const Duration(milliseconds: 50), expectAsync0((){}));
- return;
- }
- // As callback should have been cleared on 4th invocation, counter
- // should never be greater than 3.
- assert(counter < 3);
- counter++;
- },
- () => counter == 3));
- });
-}
« no previous file with comments | « no previous file | tests/html/html.status » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698