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

Unified Diff: pkg/polymer/test/two_way_bind_test.html

Issue 379213002: Added test for two way bindings with strings, ints, and bools. (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: code review update Created 6 years, 5 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
Index: pkg/polymer/test/two_way_bind_test.html
diff --git a/pkg/polymer/test/prop_attr_bind_reflection_test.html b/pkg/polymer/test/two_way_bind_test.html
similarity index 56%
copy from pkg/polymer/test/prop_attr_bind_reflection_test.html
copy to pkg/polymer/test/two_way_bind_test.html
index cd0f674b46429b4437ab9aec5bbc6450e6d88da8..936889dda61f67e6e079a6946cd3e243246ef7cf 100644
--- a/pkg/polymer/test/prop_attr_bind_reflection_test.html
+++ b/pkg/polymer/test/two_way_bind_test.html
@@ -2,7 +2,7 @@
<html>
<!--polymer-test: this comment is needed for test_suite.dart-->
<head>
- <title>property to attribute reflection with bind</title>
+ <title>two way bindings</title>
<script src="packages/web_components/platform.js"></script>
<script src="packages/web_components/dart_support.js"></script>
<link rel="import" href="packages/polymer/polymer.html">
@@ -13,24 +13,27 @@
<polymer-element name="my-child-element">
<template>
<h1>Hello from the child</h1>
- <p>The camelCase is {{camelCase}}, attr {{attributes["camelCase"]}}</p>
- <p>The lowercase is {{lowercase}}, attr {{attributes["lowercase"]}}</p>
+ <p>The number is {{number}}</p>
+ <p>The boolean is {{boolean}}</p>
+ <p>The string is {{string}}</p>
</template>
</polymer-element>
<polymer-element name="my-element">
<template>
- <h1>Hello from the custom element. The volume is {{volume}}</h1>
+ <h1>Hello from the custom element</h1>
+ <p>The number is {{number}}</p>
+ <p>The boolean is {{boolean}}</p>
+ <p>The string is {{string}}</p>
<p>
- <my-child-element id="child"
- camelCase="{{volume}}" lowercase="{{volume}}"></my-child-element>
+ <my-child-element id="child" number="{{number}}"
+ boolean="{{boolean}}" string="{{string}}"></my-child-element>
</p>
</template>
</polymer-element>
<my-element></my-element>
- <script type="application/dart" src="prop_attr_bind_reflection_test.dart">
- </script>
+ <script type="application/dart" src="two_way_bind_test.dart"></script>
</body>
</html>
« pkg/polymer/test/two_way_bind_test.dart ('K') | « pkg/polymer/test/two_way_bind_test.dart ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698