| OLD | NEW |
| 1 <!DOCTYPE html> | 1 <!DOCTYPE html> |
| 2 <!-- | 2 <!-- |
| 3 Copyright (c) 2013, the Dart project authors. Please see the AUTHORS file | 3 Copyright (c) 2013, 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 22 matching lines...) Expand all Loading... |
| 33 main() { | 33 main() { |
| 34 useShadowDom = false; | 34 useShadowDom = false; |
| 35 | 35 |
| 36 Timer.run(() { | 36 Timer.run(() { |
| 37 app.todos.add(new Todo('one (unchecked)')); | 37 app.todos.add(new Todo('one (unchecked)')); |
| 38 app.todos.add(new Todo('two (checked)')..done = true); | 38 app.todos.add(new Todo('two (checked)')..done = true); |
| 39 app.todos.add(new Todo('three (unchecked)')); | 39 app.todos.add(new Todo('three (unchecked)')); |
| 40 locationHash = '#/'; | 40 locationHash = '#/'; |
| 41 | 41 |
| 42 deliverChangesSync(); | 42 deliverChangesSync(); |
| 43 expect(queryAll('#todo-list todo-row').length, 3); | 43 expect(queryAll('#todo-list li[is=todo-row]').length, 3); |
| 44 | 44 |
| 45 locationHash = '#/active'; | 45 locationHash = '#/active'; |
| 46 deliverChangesSync(); | 46 deliverChangesSync(); |
| 47 expect(queryAll('#todo-list todo-row').length, 2); | 47 expect(queryAll('#todo-list li[is=todo-row]').length, 2); |
| 48 | 48 |
| 49 locationHash = '#/completed'; | 49 locationHash = '#/completed'; |
| 50 deliverChangesSync(); | 50 deliverChangesSync(); |
| 51 expect(queryAll('#todo-list todo-row').length, 1); | 51 expect(queryAll('#todo-list li[is=todo-row]').length, 1); |
| 52 | 52 |
| 53 locationHash = '#/'; | 53 locationHash = '#/'; |
| 54 deliverChangesSync(); | 54 deliverChangesSync(); |
| 55 window.postMessage('done', '*'); | 55 window.postMessage('done', '*'); |
| 56 }); | 56 }); |
| 57 } | 57 } |
| 58 </script> | 58 </script> |
| 59 </body> | 59 </body> |
| 60 </html> | 60 </html> |
| OLD | NEW |