OLD | NEW |
1 <!DOCTYPE html> | 1 <!DOCTYPE html> |
2 <!-- | 2 <!-- |
3 Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file | 3 Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file |
4 for details. All rights reserved. Use of this source code is governed by a | 4 for details. All rights reserved. Use of this source code is governed by a |
5 BSD-style license that can be found in the LICENSE file. | 5 BSD-style license that can be found in the LICENSE file. |
6 --> | 6 --> |
7 <html lang="en"> | 7 <html lang="en"> |
8 <head> | 8 <head> |
9 <!-- | 9 <!-- |
10 This test runs the TodoMVC app and evaluates that it renders correctly if a | 10 This test runs the TodoMVC app and evaluates that it renders correctly if a |
(...skipping 59 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
70 import 'package:web_ui/web_ui.dart'; | 70 import 'package:web_ui/web_ui.dart'; |
71 import 'example/todomvc/main.dart' as todomvc_main; | 71 import 'example/todomvc/main.dart' as todomvc_main; |
72 import 'example/todomvc/model.dart'; | 72 import 'example/todomvc/model.dart'; |
73 | 73 |
74 final addTodo = todomvc_main.addTodo; | 74 final addTodo = todomvc_main.addTodo; |
75 | 75 |
76 main() { | 76 main() { |
77 todomvc_main.main(); | 77 todomvc_main.main(); |
78 window.setTimeout(() { | 78 window.setTimeout(() { |
79 app.todos.add(new Todo('hola')); | 79 app.todos.add(new Todo('hola')); |
80 dispatch(); | 80 deliverChangesSync(); |
81 window.setTimeout(() => window.postMessage('done', '*'), 0); | 81 window.setImmediate(() => window.postMessage('done', '*')); |
82 }, 0); | 82 }, 0); |
83 } | 83 } |
84 </script> | 84 </script> |
85 </body> | 85 </body> |
86 </html> | 86 </html> |
OLD | NEW |