Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(712)

Unified Diff: samples/third_party/todomvc/test/todomvc_listorder_shadowdom_test.html

Issue 23224003: move polymer.dart into dart svn (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: add --deploy to todomvc sample Created 7 years, 4 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
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>
« no previous file with comments | « samples/third_party/todomvc/test/test.dart ('k') | samples/third_party/todomvc/test/todomvc_listorder_test.html » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698