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

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

Issue 79353003: [polymer.dart] fix *Changed observers inheriting (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
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
« no previous file with comments | « pkg/polymer/test/property_change_test.html ('k') | pkg/polymer/test/publish_attributes_test.html » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: pkg/polymer/test/publish_attributes_test.dart
diff --git a/pkg/polymer/test/publish_attributes_test.dart b/pkg/polymer/test/publish_attributes_test.dart
index b22132e3cc26060dd81d38bc1d761fdfb790ae43..8701a7b080e5b245dbd0f948fff3bc7403b28664 100644
--- a/pkg/polymer/test/publish_attributes_test.dart
+++ b/pkg/polymer/test/publish_attributes_test.dart
@@ -37,10 +37,21 @@ class XSquid extends XZot {
XSquid.created() : super.created();
@published int baz = 13;
- @published int zot = 5;
+ @published int zot = 3;
@published int squid = 7;
}
+// Test inherited "attriubtes"
+class XBaz extends PolymerElement {
+ XBaz.created() : super.created();
+ @observable int qux = 13;
+}
+
+@CustomTag('x-qux')
+class XQux extends XBaz {
+ XQux.created() : super.created();
+}
+
main() {
initPolymer();
useHtmlConfiguration();
@@ -55,5 +66,6 @@ main() {
expect(published('x-bar'), [#Foo, #baz, #Bar]);
expect(published('x-zot'), [#Foo, #baz, #Bar, #zot]);
expect(published('x-squid'), [#Foo, #baz, #Bar, #zot, #squid]);
+ expect(published('x-qux'), [#qux]);
});
}
« no previous file with comments | « pkg/polymer/test/property_change_test.html ('k') | pkg/polymer/test/publish_attributes_test.html » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698