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 58cc551c2521ecbbdbcfd674c08411a7aa086670..5e19ca541682f2aa3e11f181ec7cd46beac29c01 100644 |
--- a/example/todomvc/test/todomvc_listorder_test.html |
+++ b/example/todomvc/test/todomvc_listorder_test.html |
@@ -44,19 +44,23 @@ main() { |
windowLocation.hash = '#/'; |
deliverChangeRecords(); |
- expect(root.queryAll('#todo-list li[is=todo-row]').length, 3); |
+ 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); |
+ windowLocation.hash = '#/active'; |
+ deliverChangeRecords(); |
+ 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'; |
+ deliverChangeRecords(); |
+ expect(root.queryAll('#todo-list li[is=todo-row]').length, 1); |
- windowLocation.hash = '#/'; |
- deliverChangeRecords(); |
- window.postMessage('done', '*'); |
+ windowLocation.hash = '#/'; |
+ deliverChangeRecords(); |
+ Timer.run(() { |
+ window.postMessage('done', '*'); |
+ }); |
+ }); |
}); |
} |
</script> |