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

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

Issue 482763002: Revert "Roll polymer to 0.3.5" (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Created 6 years, 4 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/js_interop_test.dart ('k') | pkg/polymer/test/prop_attr_reflection_test.html » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: pkg/polymer/test/prop_attr_reflection_test.dart
diff --git a/pkg/polymer/test/prop_attr_reflection_test.dart b/pkg/polymer/test/prop_attr_reflection_test.dart
index cf260f55a5acc565bba977a832461c241f855b1b..ffae840414fb0b640bf7a3c4e640da654a92153f 100644
--- a/pkg/polymer/test/prop_attr_reflection_test.dart
+++ b/pkg/polymer/test/prop_attr_reflection_test.dart
@@ -8,14 +8,6 @@ import 'package:unittest/unittest.dart';
import 'package:unittest/html_config.dart';
import 'package:polymer/polymer.dart';
-
-class XAttrPublish extends PolymerElement {
- XAttrPublish.created() : super.created();
-
- @PublishedProperty(reflect: false)
- String nog = '';
-}
-
class XFoo extends PolymerElement {
XFoo.created() : super.created();
@@ -64,39 +56,18 @@ Future onAttributeChange(Element node) {
main() => initPolymer().run(() {
useHtmlConfiguration();
+ setUp(() => Polymer.onReady);
+
// Most tests use @CustomTag, here we test out the impertive register:
Polymer.register('x-foo', XFoo);
Polymer.register('x-bar', XBar);
Polymer.register('x-zot', XZot);
Polymer.register('x-compose', XCompose);
- Polymer.register('x-attr-publish', XAttrPublish);
-
- setUp(() => Polymer.onReady);
test('property to attribute reflection', () {
- var xbasic = querySelector('x-basic');
- expect(xbasic.getAttribute('nog'), null, reason:
- 'property published with `attributes` has correct initial value');
- xbasic.setAttribute('nog', 'hi');
- expect(xbasic.getAttribute('nog'), 'hi', reason:
- 'deserialization of property published via `attributes`');
-
- var xattrpublish = querySelector('x-attr-publish');
- expect(xattrpublish.nog, '', reason:
- 'property published with `attributes` has correct initial value');
- xattrpublish.setAttribute('nog', 'hi');
- expect(xattrpublish.nog, 'hi', reason:
- 'deserialization of property published via `attributes`');
-
var xcompose = querySelector('x-compose');
var xfoo = querySelector('x-foo');
- expect(xfoo.foo, '', reason:
- 'property published with info object has correct initial value');
var xbar = querySelector('x-bar');
- expect(xbar.zim, false, reason:
- 'property published with info object has correct initial value');
- expect(xbar.foo, '', reason:
- 'property published with info object has correct initial value');
var xzot = querySelector('x-zot');
xfoo.foo = 5;
xfoo.attributes['def1'] = '15';
« no previous file with comments | « pkg/polymer/test/js_interop_test.dart ('k') | pkg/polymer/test/prop_attr_reflection_test.html » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698