| Index: pkg/polymer/test/publish_inherited_properties_test.dart
|
| diff --git a/pkg/polymer/test/publish_attributes_test.dart b/pkg/polymer/test/publish_inherited_properties_test.dart
|
| similarity index 76%
|
| copy from pkg/polymer/test/publish_attributes_test.dart
|
| copy to pkg/polymer/test/publish_inherited_properties_test.dart
|
| index c6ea12ab837635aa7b7a3a8f23fddf6b66a6d09c..f473d6f7635654fdb7d786c0e6f72fd576cea55d 100644
|
| --- a/pkg/polymer/test/publish_attributes_test.dart
|
| +++ b/pkg/polymer/test/publish_inherited_properties_test.dart
|
| @@ -10,19 +10,16 @@ import 'package:polymer/polymer.dart';
|
| // Dart note: unlike JS, you can't publish something that doesn't
|
| // have a corresponding field because we can't dynamically add properties.
|
| // So we define XFoo and XBar types here.
|
| -@CustomTag('x-foo')
|
| class XFoo extends PolymerElement {
|
| XFoo.created() : super.created();
|
|
|
| - @observable var Foo;
|
| - @observable var baz;
|
| + @published var Foo;
|
| }
|
|
|
| -@CustomTag('x-bar')
|
| class XBar extends XFoo {
|
| XBar.created() : super.created();
|
|
|
| - @observable var Bar;
|
| + @published var Bar;
|
| }
|
|
|
| @CustomTag('x-zot')
|
| @@ -32,8 +29,14 @@ class XZot extends XBar {
|
| @published int zot = 3;
|
| }
|
|
|
| +class XWho extends XZot {
|
| + XWho.created() : super.created();
|
| +
|
| + @published var zap;
|
| +}
|
| +
|
| @CustomTag('x-squid')
|
| -class XSquid extends XZot {
|
| +class XSquid extends XWho {
|
| XSquid.created() : super.created();
|
|
|
| @published int baz = 13;
|
| @@ -51,9 +54,7 @@ main() {
|
| published(tag) =>
|
| query('polymer-element[name=$tag]').publishedProperties;
|
|
|
| - expect(published('x-foo'), [#Foo, #baz]);
|
| - 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-zot'), [#Foo, #Bar, #zot]);
|
| + expect(published('x-squid'), [#Foo, #Bar, #zot, #zap, #baz, #squid]);
|
| });
|
| }
|
|
|