| 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, adds a few elements, marks some as done, and | 10 This test runs the TodoMVC app, adds a few elements, marks some as done, and |
| (...skipping 54 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 65 Learn more about | 65 Learn more about |
| 66 <a href="https://www.dartlang.org/articles/dart-web-components/">Dart + We
b Components</a> | 66 <a href="https://www.dartlang.org/articles/dart-web-components/">Dart + We
b Components</a> |
| 67 or | 67 or |
| 68 <a href="https://github.com/dart-lang/dart-web-components/tree/master/exam
ple/todomvc">view the source</a>. | 68 <a href="https://github.com/dart-lang/dart-web-components/tree/master/exam
ple/todomvc">view the source</a>. |
| 69 </p> | 69 </p> |
| 70 <p>Part of <a href="http://todomvc.com">TodoMVC</a>.</p> | 70 <p>Part of <a href="http://todomvc.com">TodoMVC</a>.</p> |
| 71 </footer> | 71 </footer> |
| 72 <script type="application/dart"> | 72 <script type="application/dart"> |
| 73 import 'dart:html'; | 73 import 'dart:html'; |
| 74 import 'package:unittest/unittest.dart'; | 74 import 'package:unittest/unittest.dart'; |
| 75 import 'package:web_components/web_components.dart'; | 75 import 'package:web_ui/web_ui.dart'; |
| 76 import 'example/todomvc/main.dart' as todomvc_main; | 76 import 'example/todomvc/main.dart' as todomvc_main; |
| 77 import 'example/todomvc/model.dart'; | 77 import 'example/todomvc/model.dart'; |
| 78 | 78 |
| 79 final addTodo = todomvc_main.addTodo; | 79 final addTodo = todomvc_main.addTodo; |
| 80 | 80 |
| 81 main() { | 81 main() { |
| 82 todomvc_main.main(); | 82 todomvc_main.main(); |
| 83 | 83 |
| 84 window.setTimeout(() { | 84 window.setTimeout(() { |
| 85 app.todos.add(new Todo('one (unchecked)')); | 85 app.todos.add(new Todo('one (unchecked)')); |
| (...skipping 12 matching lines...) Expand all Loading... |
| 98 viewModel.showDone = true; | 98 viewModel.showDone = true; |
| 99 dispatch(); | 99 dispatch(); |
| 100 window.setTimeout(() => window.postMessage('done', '*'), 0); | 100 window.setTimeout(() => window.postMessage('done', '*'), 0); |
| 101 }, 0); | 101 }, 0); |
| 102 }, 0); | 102 }, 0); |
| 103 }, 0); | 103 }, 0); |
| 104 } | 104 } |
| 105 </script> | 105 </script> |
| 106 </body> | 106 </body> |
| 107 </html> | 107 </html> |
| OLD | NEW |