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

Unified Diff: samples/third_party/todomvc/test/mainpage_test.dart

Issue 27307004: Converting Polymer's WebComponentsLoaded to an onReady future (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: 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
Index: samples/third_party/todomvc/test/mainpage_test.dart
diff --git a/samples/third_party/todomvc/test/mainpage_test.dart b/samples/third_party/todomvc/test/mainpage_test.dart
index 8b9a8dc58f972f8a752c7be60e66830d9fcfe874..f28993f703b05e572d87597c09d3fb00dcff57c2 100644
--- a/samples/third_party/todomvc/test/mainpage_test.dart
+++ b/samples/third_party/todomvc/test/mainpage_test.dart
@@ -4,10 +4,10 @@
library todomvc.test.mainpage_test;
-import 'dart:async';
import 'dart:html';
-import 'package:unittest/unittest.dart';
+import 'package:polymer/polymer.dart';
import 'package:unittest/html_config.dart';
+import 'package:unittest/unittest.dart';
import '../web/app.dart';
import '../web/model.dart';
@@ -18,12 +18,12 @@ import '../web/model.dart';
main() {
useHtmlConfiguration();
- setUp(() => new Future.delayed(Duration.ZERO));
+ setUp(() => Polymer.onReady);
test('initial state', () {
final todoApp = query('todo-app');
expect(appModel.todos.length, 0);
- expect(todoApp.xtag is TodoApp, true, reason: 'TodoApp should bee created');
+ expect(todoApp.xtag is TodoApp, true, reason: 'TodoApp should be created');
final root = todoApp.shadowRoot;
final newTodo = root.query('#new-todo');
« no previous file with comments | « samples/third_party/todomvc/test/listorder_test.dart ('k') | samples/third_party/todomvc/test/markdone_test.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698