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

Unified Diff: example/todomvc/test/todomvc_listorder_test.html

Issue 20863002: Introduce boot.js: this finally makes it possible to load and run Todomvc (Closed) Base URL: git@github.com:dart-lang/web-ui.git@master
Patch Set: Created 7 years, 5 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: example/todomvc/test/todomvc_listorder_test.html
diff --git a/example/todomvc/test/todomvc_listorder_test.html b/example/todomvc/test/todomvc_listorder_test.html
index 5e19ca541682f2aa3e11f181ec7cd46beac29c01..bd3920615ab9a52ce73bdc6e87ee1120b8b18c95 100644
--- a/example/todomvc/test/todomvc_listorder_test.html
+++ b/example/todomvc/test/todomvc_listorder_test.html
@@ -43,22 +43,23 @@ main() {
var root = query('span[is=todo-app]').xtag.shadowRoot;
windowLocation.hash = '#/';
- deliverChangeRecords();
Timer.run(() {
expect(root.queryAll('#todo-list li[is=todo-row]').length, 3);
windowLocation.hash = '#/active';
- deliverChangeRecords();
- expect(root.queryAll('#todo-list li[is=todo-row]').length, 2);
+ Timer.run(() {
+ expect(root.queryAll('#todo-list li[is=todo-row]').length, 2);
- windowLocation.hash = '#/completed';
- deliverChangeRecords();
- expect(root.queryAll('#todo-list li[is=todo-row]').length, 1);
+ windowLocation.hash = '#/completed';
+ Timer.run(() {
+ expect(root.queryAll('#todo-list li[is=todo-row]').length, 1);
- windowLocation.hash = '#/';
- deliverChangeRecords();
- Timer.run(() {
- window.postMessage('done', '*');
+ windowLocation.hash = '#/';
+ // TODO(sigmund): investigate why is not enough to do Timer.run
+ new Timer(new Duration(milliseconds: 200), () {
+ window.postMessage('done', '*');
+ });
+ });
});
});
});
« no previous file with comments | « example/todomvc/test/expected/todomvc_markdone_test.html.txt ('k') | example/todomvc/test/todomvc_mainpage2_test.html » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698