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

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

Issue 14322008: Version 0.4.7.3 . (Closed) Base URL: http://dart.googlecode.com/svn/trunk/dart/
Patch Set: Created 7 years, 8 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
===================================================================
--- samples/third_party/todomvc/test/todomvc_listorder_shadowdom_test.html (revision 21601)
+++ samples/third_party/todomvc/test/todomvc_listorder_shadowdom_test.html (working copy)
@@ -20,7 +20,8 @@
<link rel="stylesheet" href="../web/base.css">
<script src="packages/web_ui/testing/testing.js"></script>
<title>Dart • TodoMVC</title>
-</head><body>
+</head>
+<body>
<todo-app></todo-app>
<script type="application/dart">
import 'dart:async';
@@ -39,18 +40,18 @@
app.todos.add(new Todo('three (unchecked)'));
locationHash = '#/';
- var root = query('todo-app').xtag.shadowRoot;
+ var root = query('span[is=todo-app]').xtag.shadowRoot;
deliverChangesSync();
- expect(root.queryAll('#todo-list todo-row').length, 3);
+ expect(root.queryAll('#todo-list li[is=todo-row]').length, 3);
locationHash = '#/active';
deliverChangesSync();
- expect(root.queryAll('#todo-list todo-row').length, 2);
+ expect(root.queryAll('#todo-list li[is=todo-row]').length, 2);
locationHash = '#/completed';
deliverChangesSync();
- expect(root.queryAll('#todo-list todo-row').length, 1);
+ expect(root.queryAll('#todo-list li[is=todo-row]').length, 1);
locationHash = '#/';
deliverChangesSync();

Powered by Google App Engine
This is Rietveld 408576698