| 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', '*');
|
| + });
|
| + });
|
| });
|
| });
|
| });
|
|
|