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

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

Issue 336013003: Version 1.5.0-dev.4.14 (Closed) Base URL: http://dart.googlecode.com/svn/trunk/
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 | « dart/pkg/polymer/test/noscript_test.html ('k') | dart/pkg/polymer/test/prop_attr_bind_reflection_test.html » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: dart/pkg/polymer/test/prop_attr_bind_reflection_test.dart
===================================================================
--- dart/pkg/polymer/test/prop_attr_bind_reflection_test.dart (revision 37358)
+++ dart/pkg/polymer/test/prop_attr_bind_reflection_test.dart (working copy)
@@ -9,8 +9,8 @@
@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 @@
// Make this a no-op, so we can verify the initial
// reflectPropertyToAttribute works.
- observeAttributeProperty(name) { }
+ @override
+ openPropertyObserver() { }
}
@CustomTag('my-element')
@@ -40,7 +41,7 @@
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 | « dart/pkg/polymer/test/noscript_test.html ('k') | dart/pkg/polymer/test/prop_attr_bind_reflection_test.html » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698