Index: example/todomvc/test/todomvc_mainpage2_test.html |
diff --git a/example/todomvc/test/todomvc_mainpage2_test.html b/example/todomvc/test/todomvc_mainpage2_test.html |
index 5ac7b5729e293d5f492a12bcdc959a90a307ced6..a6f8e43001fdf32a09a3a65fa552b56e118c2f3f 100644 |
--- a/example/todomvc/test/todomvc_mainpage2_test.html |
+++ b/example/todomvc/test/todomvc_mainpage2_test.html |
@@ -19,22 +19,14 @@ single item is present in the todo list. |
</head><body> |
<todo-app></todo-app> |
<script type="application/dart"> |
-import 'dart:async'; |
import 'dart:html'; |
-import 'package:mdv/mdv.dart' as mdv; |
-import 'package:observe/observe.dart'; |
import 'package:polymer/polymer.dart'; |
import '../web/model.dart'; |
main() { |
- mdv.initialize(); |
- |
- Timer.run(() { |
- appModel.todos.add(new Todo('hola')); |
- // TODO(sigmund): investigate why is not enough to do Timer.run |
- new Timer(new Duration(milliseconds: 200), |
- () => window.postMessage('done', '*')); |
- }); |
+ appModel.todos.add(new Todo('hola')); |
+ performMicrotaskCheckpoint(); |
+ window.postMessage('done', '*'); |
} |
</script> |
</body> |