Index: samples/third_party/todomvc/test/todomvc_listorder_shadowdom_test.html |
diff --git a/samples/third_party/todomvc/test/todomvc_listorder_shadowdom_test.html b/samples/third_party/todomvc/test/todomvc_listorder_shadowdom_test.html |
deleted file mode 100644 |
index f72e96a9c508c7608c313041cb87e907727bde59..0000000000000000000000000000000000000000 |
--- a/samples/third_party/todomvc/test/todomvc_listorder_shadowdom_test.html |
+++ /dev/null |
@@ -1,63 +0,0 @@ |
-<!DOCTYPE html> |
-<!-- |
-Copyright (c) 2013, the Dart project authors. Please see the AUTHORS file |
-for details. All rights reserved. Use of this source code is governed by a |
-BSD-style license that can be found in the LICENSE file. |
---> |
-<html lang="en"> |
-<head> |
-<!-- |
-This test runs the TodoMVC app, adds a few elements, marks some as done, and |
-switches from back and forth between "Active" and "All". This will make some |
-nodes to be hidden and readded to the page. |
- |
-This is a regression test for a bug in dwc that made the nodes appear in the |
-wrong order when using lists and ifs together. |
---> |
- <meta charset="utf-8"> |
- <meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1"> |
- <link rel="import" href="../web/app.html"> |
- <link rel="stylesheet" href="../web/base.css"> |
- <script src="packages/web_ui/testing/testing.js"></script> |
- <title>Dart • TodoMVC</title> |
-</head> |
-<body> |
- <todo-app></todo-app> |
- <script type="application/dart"> |
-import 'dart:async'; |
-import 'dart:html'; |
-import 'package:unittest/unittest.dart'; |
-import 'package:web_ui/web_ui.dart'; |
-import 'package:web_ui/observe/html.dart'; |
-import '../web/model.dart'; |
- |
-main() { |
- useShadowDom = true; |
- |
- Timer.run(() { |
- app.todos.add(new Todo('one (unchecked)')); |
- app.todos.add(new Todo('two (checked)')..done = true); |
- app.todos.add(new Todo('three (unchecked)')); |
- locationHash = '#/'; |
- |
- var root = query('span[is=todo-app]').xtag.shadowRoot; |
- |
- deliverChangesSync(); |
- expect(root.queryAll('#todo-list li[is=todo-row]').length, 3); |
- |
- locationHash = '#/active'; |
- deliverChangesSync(); |
- expect(root.queryAll('#todo-list li[is=todo-row]').length, 2); |
- |
- locationHash = '#/completed'; |
- deliverChangesSync(); |
- expect(root.queryAll('#todo-list li[is=todo-row]').length, 1); |
- |
- locationHash = '#/'; |
- deliverChangesSync(); |
- window.postMessage('done', '*'); |
- }); |
-} |
- </script> |
-</body> |
-</html> |