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

Unified Diff: pkg/polymer_expressions/test/syntax_test.dart

Issue 232373002: pkg/polymer[_expressions] unittest fixes (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: oops Created 6 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
« no previous file with comments | « pkg/polymer_expressions/test/bindings_test.dart ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: pkg/polymer_expressions/test/syntax_test.dart
diff --git a/pkg/polymer_expressions/test/syntax_test.dart b/pkg/polymer_expressions/test/syntax_test.dart
index 618f999c496ca0168e7eb7d4e45c6ede16322628..5d15e172c5eb6e66849d7a697b6ecbcf02725f7e 100644
--- a/pkg/polymer_expressions/test/syntax_test.dart
+++ b/pkg/polymer_expressions/test/syntax_test.dart
@@ -33,11 +33,11 @@ main() {
<input id="input" value="{{ firstName }}">
</template>'''));
var person = new Person('John', 'Messerly', ['A', 'B', 'C']);
- templateBind(query('#test'))
+ templateBind(querySelector('#test'))
..bindingDelegate = new PolymerExpressions()
..model = person;
return new Future(() {}).then((_) {
- InputElement input = query('#input');
+ InputElement input = querySelector('#input');
expect(input.value, 'John');
input.focus();
input.value = 'Justin';
@@ -55,7 +55,7 @@ main() {
{{ item }}
</template>
</template>'''));
- templateBind(query('#test')).bindingDelegate =
+ templateBind(querySelector('#test')).bindingDelegate =
new PolymerExpressions(globals: {'items': null});
// the template should be the only node
expect(testDiv.nodes.length, 1);
@@ -67,7 +67,7 @@ main() {
runZoned(() {
testDiv.nodes.add(new Element.html('''
<template id="test" bind>{{ foo }}</template>'''));
- templateBind(query('#test'))
+ templateBind(querySelector('#test'))
..bindingDelegate = new PolymerExpressions()
..model = [];
return new Future(() {});
« no previous file with comments | « pkg/polymer_expressions/test/bindings_test.dart ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698