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

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

Issue 307793002: update polymer, nodebind, and templatebinding (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Created 6 years, 6 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/mirror_loader_test.dart ('k') | pkg/polymer/test/prop_attr_reflection_test.dart » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: pkg/polymer/test/prop_attr_bind_reflection_test.dart
diff --git a/pkg/polymer/test/prop_attr_bind_reflection_test.dart b/pkg/polymer/test/prop_attr_bind_reflection_test.dart
index 29caabd2aa84494ad380a4cd1ca341706fea80be..6e891d3284b13a7becc1b6ff19583db971e7e1e4 100644
--- a/pkg/polymer/test/prop_attr_bind_reflection_test.dart
+++ b/pkg/polymer/test/prop_attr_bind_reflection_test.dart
@@ -9,8 +9,8 @@ import 'package:polymer/polymer.dart';
@CustomTag('my-child-element')
class MyChildElement extends PolymerElement {
- @published int camelCase;
- @published int lowercase;
+ @PublishedProperty(reflect: true) int camelCase;
+ @PublishedProperty(reflect: true) int lowercase;
// TODO(sigmund): remove once codegen in polymer is turned on.
@reflectable get attributes => super.attributes;
@@ -19,7 +19,8 @@ class MyChildElement extends PolymerElement {
// Make this a no-op, so we can verify the initial
// reflectPropertyToAttribute works.
- observeAttributeProperty(name) { }
+ @override
+ openPropertyObserver() { }
}
@CustomTag('my-element')
@@ -40,7 +41,7 @@ main() => initPolymer().run(() {
expect(child.lowercase, 11);
expect(child.camelCase, 11);
- expect('11', child.attributes['lowercase']);
- expect('11', child.attributes['camelcase']);
+ expect(child.attributes['lowercase'], '11');
+ expect(child.attributes['camelcase'], '11');
});
});
« no previous file with comments | « pkg/polymer/test/mirror_loader_test.dart ('k') | pkg/polymer/test/prop_attr_reflection_test.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698