| 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 todos, marks some as done | 10 This test runs the TodoMVC app, adds a few todos, marks some as done |
| (...skipping 50 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 61 Learn more about | 61 Learn more about |
| 62 <a href="https://www.dartlang.org/articles/dart-web-components/">Dart + We
b Components</a> | 62 <a href="https://www.dartlang.org/articles/dart-web-components/">Dart + We
b Components</a> |
| 63 or | 63 or |
| 64 <a href="https://github.com/dart-lang/dart-web-components/tree/master/exam
ple/todomvc">view the source</a>. | 64 <a href="https://github.com/dart-lang/dart-web-components/tree/master/exam
ple/todomvc">view the source</a>. |
| 65 </p> | 65 </p> |
| 66 <p>Part of <a href="http://todomvc.com">TodoMVC</a>.</p> | 66 <p>Part of <a href="http://todomvc.com">TodoMVC</a>.</p> |
| 67 </footer> | 67 </footer> |
| 68 <script type="application/dart"> | 68 <script type="application/dart"> |
| 69 import 'dart:html'; | 69 import 'dart:html'; |
| 70 import 'package:unittest/unittest.dart'; | 70 import 'package:unittest/unittest.dart'; |
| 71 import 'package:web_components/web_components.dart'; | 71 import 'package:web_ui/web_ui.dart'; |
| 72 import 'example/todomvc/main.dart' as todomvc_main; | 72 import 'example/todomvc/main.dart' as todomvc_main; |
| 73 import 'example/todomvc/model.dart'; | 73 import 'example/todomvc/model.dart'; |
| 74 | 74 |
| 75 final addTodo = todomvc_main.addTodo; | 75 final addTodo = todomvc_main.addTodo; |
| 76 | 76 |
| 77 main() { | 77 main() { |
| 78 todomvc_main.main(); | 78 todomvc_main.main(); |
| 79 | 79 |
| 80 window.setTimeout(() { | 80 window.setTimeout(() { |
| 81 useShadowDom = false; | 81 useShadowDom = false; |
| (...skipping 26 matching lines...) Expand all Loading... |
| 108 // 'elementFromPoint' is fixed to return also nodes under the shadow DOM). | 108 // 'elementFromPoint' is fixed to return also nodes under the shadow DOM). |
| 109 // The next extra check is only valid when polyfilling the shadow DOM: | 109 // The next extra check is only valid when polyfilling the shadow DOM: |
| 110 expect(node, same(document.queryAll('input[type=checkbox]')[4])); | 110 expect(node, same(document.queryAll('input[type=checkbox]')[4])); |
| 111 | 111 |
| 112 window.setTimeout(() => window.postMessage('done', '*'), 0); | 112 window.setTimeout(() => window.postMessage('done', '*'), 0); |
| 113 }, 0); | 113 }, 0); |
| 114 } | 114 } |
| 115 </script> | 115 </script> |
| 116 </body> | 116 </body> |
| 117 </html> | 117 </html> |
| OLD | NEW |