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

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

Issue 19497002: Reducing the amount of code we generate in the compiler: We still continue (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 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>

Powered by Google App Engine
This is Rietveld 408576698