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

Unified Diff: pkg/polymer/test/events_test.dart

Issue 172923002: [polymer] fix editor hints -- query/queryAll and unused imports (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Created 6 years, 10 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/test/event_path_test.dart ('k') | pkg/polymer/test/instance_attrs_test.dart » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: pkg/polymer/test/events_test.dart
diff --git a/pkg/polymer/test/events_test.dart b/pkg/polymer/test/events_test.dart
index f14cf4a189540c94275cb08adc2d3416a67921b2..a1c601aa0b52b9541f687f8510d31a85edd1cd1d 100644
--- a/pkg/polymer/test/events_test.dart
+++ b/pkg/polymer/test/events_test.dart
@@ -53,34 +53,34 @@ main() {
test('host event', () {
// Note: this test is currently the only event in
// polymer/test/js/events.js at commit #7936ff8
- var testA = query('#a');
+ var testA = querySelector('#a');
expect(testA.clicks, isEmpty);
testA.click();
expect(testA.clicks, ['host click on: test-a (id a)']);
});
test('local event', () {
- var testB = query('#b');
+ var testB = querySelector('#b');
expect(testB.clicks, isEmpty);
testB.click();
expect(testB.clicks, []);
- var b1 = testB.shadowRoot.query('#b-1');
+ var b1 = testB.shadowRoot.querySelector('#b-1');
b1.click();
expect(testB.clicks, []);
- var b2 = testB.shadowRoot.query('#b-2');
+ var b2 = testB.shadowRoot.querySelector('#b-2');
b2.click();
expect(testB.clicks, ['local click under test-b (id b) on b-2']);
});
test('event on superclass', () {
- var testC = query('#c');
+ var testC = querySelector('#c');
expect(testC.clicks, isEmpty);
testC.click();
expect(testC.clicks, []);
- var c1 = testC.shadowRoot.query('#c-1');
+ var c1 = testC.shadowRoot.querySelector('#c-1');
c1.click();
expect(testC.clicks, []);
- var c2 = testC.shadowRoot.query('#c-2');
+ var c2 = testC.shadowRoot.querySelector('#c-2');
c2.click();
expect(testC.clicks, ['local click under test-c (id c) on c-2']);
});
« no previous file with comments | « pkg/polymer/test/event_path_test.dart ('k') | pkg/polymer/test/instance_attrs_test.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698