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

Unified Diff: dart/samples/third_party/todomvc/test/listorder_test.dart

Issue 66253002: Version 0.8.10.9 (Closed) Base URL: http://dart.googlecode.com/svn/trunk/
Patch Set: Created 7 years, 1 month 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: dart/samples/third_party/todomvc/test/listorder_test.dart
===================================================================
--- dart/samples/third_party/todomvc/test/listorder_test.dart (revision 30098)
+++ dart/samples/third_party/todomvc/test/listorder_test.dart (working copy)
@@ -23,7 +23,7 @@
ShadowRoot root;
setUp(() => Polymer.onReady.then((_) {
- root = query('todo-app').shadowRoot;
+ root = querySelector('todo-app').shadowRoot;
}));
test('programmatically add items to model', () {
@@ -34,12 +34,12 @@
]);
Observable.dirtyCheck();
return window.animationFrame.then((_) {
- expect(root.queryAll('#todo-list li[is=todo-row]').length, 3);
+ expect(root.querySelectorAll('#todo-list li[is=todo-row]').length, 3);
// TODO(jmesserly): HTML Imports breaks relative hash links when the
// component is at a different path from the main HTML document. For now
// fix it programmatically.
- for (var a in root.queryAll('#filters > li > a')) {
+ for (var a in root.querySelectorAll('#filters > li > a')) {
a.href = '#${Uri.parse(a.href).fragment}';
}
});
@@ -48,21 +48,21 @@
test('navigate to #/active', () {
windowLocation.hash = '#/active';
return window.animationFrame.then((_) {
- expect(root.queryAll('#todo-list li[is=todo-row]').length, 2);
+ expect(root.querySelectorAll('#todo-list li[is=todo-row]').length, 2);
});
});
test('navigate to #/completed', () {
windowLocation.hash = '#/completed';
return window.animationFrame.then((_) {
- expect(root.queryAll('#todo-list li[is=todo-row]').length, 1);
+ expect(root.querySelectorAll('#todo-list li[is=todo-row]').length, 1);
});
});
test('navigate back to #/', () {
windowLocation.hash = '#/';
return window.animationFrame.then((_) {
- expect(root.queryAll('#todo-list li[is=todo-row]').length, 3);
+ expect(root.querySelectorAll('#todo-list li[is=todo-row]').length, 3);
});
});
}
« no previous file with comments | « dart/samples/third_party/todomvc/.buildlog ('k') | dart/samples/third_party/todomvc/test/mainpage_test.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698