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 13 matching lines...) Expand all Loading... |
24 <section id="todoapp"> | 24 <section id="todoapp"> |
25 <header id="header"> | 25 <header id="header"> |
26 <h1 class='title'>todos</h1> | 26 <h1 class='title'>todos</h1> |
27 <x-todo-form></x-todo-form> | 27 <x-todo-form></x-todo-form> |
28 </header> | 28 </header> |
29 <section id="main"> | 29 <section id="main"> |
30 <x-toggle-all></x-toggle-all> | 30 <x-toggle-all></x-toggle-all> |
31 <ul id="todo-list"> | 31 <ul id="todo-list"> |
32 <template iterate="x in app.todos"> | 32 <template iterate="x in app.todos"> |
33 <template if="viewModel.isVisible(x)"> | 33 <template if="viewModel.isVisible(x)"> |
34 <x-todo-row data-value="todo:x"></x-todo-row> | 34 <x-todo-row todo="{{x}}"></x-todo-row> |
35 </template> | 35 </template> |
36 </template> | 36 </template> |
37 </ul> | 37 </ul> |
38 </section> | 38 </section> |
39 <template if="viewModel.hasElements"> | 39 <template if="viewModel.hasElements"> |
40 <x-todo-footer id="footer"></x-todo-footer> | 40 <x-todo-footer id="footer"></x-todo-footer> |
41 </template> | 41 </template> |
42 </section> | 42 </section> |
43 <footer id="info"> | 43 <footer id="info"> |
44 <p>Double-click to edit a todo.</p> | 44 <p>Double-click to edit a todo.</p> |
(...skipping 57 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
102 // The next extra check is only valid when polyfilling the shadow DOM: | 102 // The next extra check is only valid when polyfilling the shadow DOM: |
103 expect(node, same(document.queryAll('input[type=checkbox]')[4])); | 103 expect(node, same(document.queryAll('input[type=checkbox]')[4])); |
104 | 104 |
105 window.setTimeout(() => window.postMessage('done', '*'), 0); | 105 window.setTimeout(() => window.postMessage('done', '*'), 0); |
106 }, 0); | 106 }, 0); |
107 | 107 |
108 } | 108 } |
109 </script> | 109 </script> |
110 </body> | 110 </body> |
111 </html> | 111 </html> |
OLD | NEW |