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

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

Issue 182193002: [polymer] interop with polymer-element and polymer.js (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Created 6 years, 9 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
Index: pkg/polymer/test/publish_inherited_properties_test.dart
diff --git a/pkg/polymer/test/publish_inherited_properties_test.dart b/pkg/polymer/test/publish_inherited_properties_test.dart
index dddbf292c7a3af13704073e744752a9909d2b259..2e7a4ac81ec80088cd01d7d31314ea04f81cb180 100644
--- a/pkg/polymer/test/publish_inherited_properties_test.dart
+++ b/pkg/polymer/test/publish_inherited_properties_test.dart
@@ -50,11 +50,13 @@ main() {
initPolymer();
useHtmlConfiguration();
- setUp(() => Polymer.onReady);
+ setUp(() => Polymer.onReady.then((_) {
+ Polymer.register('x-noscript', XZot);
+ }));
test('published properties', () {
- published(tag) => (querySelector('polymer-element[name=$tag]')
- as PolymerDeclaration).publishedProperties;
+ published(tag) => (new Element.tag(tag) as PolymerElement)
+ .declaration.publishedProperties;
expect(published('x-zot'), ['Foo', 'Bar', 'zot', 'm']);
expect(published('x-squid'), ['Foo', 'Bar', 'zot', 'm', 'baz', 'squid']);
« no previous file with comments | « pkg/polymer/test/publish_attributes_test.html ('k') | pkg/polymer/test/publish_inherited_properties_test.html » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698