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

Unified Diff: tests/html/microtask_test.dart

Issue 27441002: Removing setImmediate and hiding WindowTimers interface (take 2) (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: The fix Created 7 years, 2 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 | « tests/html/html.status ('k') | tools/dom/scripts/htmlrenamer.py » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: tests/html/microtask_test.dart
diff --git a/tests/html/microtask_test.dart b/tests/html/microtask_test.dart
deleted file mode 100644
index 79adb284c72dd6dfa9a922b3145656993195c9a3..0000000000000000000000000000000000000000
--- a/tests/html/microtask_test.dart
+++ /dev/null
@@ -1,36 +0,0 @@
-// Copyright (c) 2011, the Dart project authors. Please see the AUTHORS file
-// for details. All rights reserved. Use of this source code is governed by a
-// BSD-style license that can be found in the LICENSE file.
-
-library microtask_;
-import '../../pkg/unittest/lib/unittest.dart';
-import '../../pkg/unittest/lib/html_config.dart';
-import 'dart:async';
-import 'dart:html';
-
-main() {
- useHtmlConfiguration();
-
- test('setImmediate', () {
- var timeoutCalled = false;
- var rafCalled = false;
- var immediateCalled = false;
-
- Timer.run(expectAsync0(() {
- timeoutCalled = true;
- expect(immediateCalled, true);
- }));
-
-
- window.requestAnimationFrame((_) {
- rafCalled = true;
- });
-
- window.setImmediate(expectAsync0(() {
- expect(timeoutCalled, false);
- expect(rafCalled, false);
- immediateCalled = true;
- }));
- expect(immediateCalled, false);
- });
-}
« no previous file with comments | « tests/html/html.status ('k') | tools/dom/scripts/htmlrenamer.py » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698