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

Unified Diff: samples/tests/samples/lib/layout/layout_test.dart

Issue 12212200: "Reverting 18531" (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Created 7 years, 10 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 | « samples/tests/samples/dartcombat/dartcombat_test.dart ('k') | samples/tests/samples/swarm/swarm_test.dart » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: samples/tests/samples/lib/layout/layout_test.dart
diff --git a/samples/tests/samples/lib/layout/layout_test.dart b/samples/tests/samples/lib/layout/layout_test.dart
index ad6ba146a4419b73081ee8bc6b2fcdd9ce121dc3..031eb139530d684128601aa182a510f97b48ed45 100644
--- a/samples/tests/samples/lib/layout/layout_test.dart
+++ b/samples/tests/samples/lib/layout/layout_test.dart
@@ -4,7 +4,6 @@
library layout_tests;
-import 'dart:async';
import 'dart:html';
import '../../../../swarm/swarm_ui_lib/base/base.dart';
import '../../../../swarm/swarm_ui_lib/layout/layout.dart';
@@ -157,10 +156,10 @@ main() {
usingGrid(String example, void test_(View grid)) {
final grid = createGrid(GridExamples.styles[example]);
grid.addToDocument(document.body);
- Timer.run(() {
+ window.setTimeout(() {
test_(grid);
- Timer.run(expectAsync0(() { grid.removeFromDocument(); }));
- });
+ window.setTimeout(expectAsync0(() { grid.removeFromDocument(); }), 0);
+ }, 0);
}
verifyGrid(String example, [Map expected = null]) {
« no previous file with comments | « samples/tests/samples/dartcombat/dartcombat_test.dart ('k') | samples/tests/samples/swarm/swarm_test.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698