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

Unified Diff: pkg/polymer/test/custom_event_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/build/static_clean_test.dart ('k') | pkg/polymer/test/entered_view_test.dart » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: pkg/polymer/test/custom_event_test.dart
diff --git a/pkg/polymer/test/custom_event_test.dart b/pkg/polymer/test/custom_event_test.dart
index 08c45af96fbaa388acc9f850ba4e065f626ef363..b5840294848533777bec13dbac28def0c4a70441 100644
--- a/pkg/polymer/test/custom_event_test.dart
+++ b/pkg/polymer/test/custom_event_test.dart
@@ -35,7 +35,7 @@ class FooBar extends PolymerElement {
class TestCustomEvent extends PolymerElement {
TestCustomEvent.created() : super.created();
- get fooBar => getShadowRoot('test-custom-event').query('foo-bar');
+ get fooBar => getShadowRoot('test-custom-event').querySelector('foo-bar');
final events = [];
fooHandler(e) => events.add(['foo', e]);
@@ -49,7 +49,7 @@ main() {
setUp(() => Polymer.onReady);
test('custom event', () {
- final testComp = query('test-custom-event');
+ final testComp = querySelector('test-custom-event');
final fooBar = testComp.fooBar;
final binding = nodeBind(fooBar).bindings['on-barbaz'];
« no previous file with comments | « pkg/polymer/test/build/static_clean_test.dart ('k') | pkg/polymer/test/entered_view_test.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698