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

Unified Diff: dart/samples/third_party/todomvc/test/mainpage_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/mainpage_test.dart
===================================================================
--- dart/samples/third_party/todomvc/test/mainpage_test.dart (revision 30098)
+++ dart/samples/third_party/todomvc/test/mainpage_test.dart (working copy)
@@ -22,12 +22,12 @@
setUp(() => Polymer.onReady);
test('initial state', () {
- final todoApp = query('todo-app');
+ final todoApp = querySelector('todo-app');
expect(appModel.todos.length, 0);
expect(todoApp.xtag is TodoApp, true, reason: 'TodoApp should be created');
final root = todoApp.shadowRoot;
- final newTodo = root.query('#new-todo');
+ final newTodo = root.querySelector('#new-todo');
expect(newTodo.placeholder, "What needs to be done?");
// TODO(jmesserly): re-enable this. It fails on Firefox with ShadowDOM.
@@ -36,7 +36,7 @@
/*Timer.run(expectAsync0(() {
expect(document.activeElement, todoApp, reason: 'app should have focus');
expect(root.activeElement, newTodo, reason: 'New todo should have focus');
- expect(root.queryAll('[is=todo-row]').length, 0, reason: 'no items yet');
+ expect(root.querySelectorAll('[is=todo-row]').length, 0, reason: 'no items yet');
}));*/
});
}

Powered by Google App Engine
This is Rietveld 408576698