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

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: update element names 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
« no previous file with comments | « pkg/polymer/test/two_way_bind_test.dart ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: pkg/polymer/test/two_way_bind_test.html
diff --git a/pkg/polymer/test/two_way_bind_test.html b/pkg/polymer/test/two_way_bind_test.html
new file mode 100644
index 0000000000000000000000000000000000000000..94b4b21231cbfd1f0d7984f1cbd00ec6c5096ec3
--- /dev/null
+++ b/pkg/polymer/test/two_way_bind_test.html
@@ -0,0 +1,39 @@
+<!DOCTYPE html>
+<html>
+ <!--polymer-test: this comment is needed for test_suite.dart-->
+ <head>
+ <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">
+ <script src="/root_dart/tools/testing/dart/test_controller.js"></script>
+ </head>
+
+ <body>
+ <polymer-element name="inner-element">
+ <template>
+ <h1>Hello from the child</h1>
+ <p>The number is {{number}}</p>
+ <p>The boolean is {{boolean}}</p>
+ <p>The string is {{string}}</p>
+ </template>
+ </polymer-element>
+
+ <polymer-element name="outer-element">
+ <template>
+ <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>
+ <inner-element id="child" number="{{number}}"
+ boolean="{{boolean}}" string="{{string}}"></inner-element>
+ </p>
+ </template>
+ </polymer-element>
+
+ <outer-element></outer-element>
+
+ <script type="application/dart" src="two_way_bind_test.dart"></script>
+ </body>
+</html>
« no previous file with comments | « 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