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

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

Issue 355133002: switch Node.bind to interop (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: 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/js_interop_test.dart ('k') | pkg/polymer_expressions/lib/polymer_expressions.dart » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: pkg/polymer/test/js_interop_test.html
diff --git a/pkg/polymer/test/js_interop_test.html b/pkg/polymer/test/js_interop_test.html
index 01fab3eddd5cfb80ab2c22cb264716fa332c21d8..5dab7fdae806471b858f70d990294f70d66329eb 100644
--- a/pkg/polymer/test/js_interop_test.html
+++ b/pkg/polymer/test/js_interop_test.html
@@ -38,6 +38,60 @@
<dart-element></dart-element>
<js-element></js-element>
+ <polymer-element name="js-element2" attributes="qux">
+ <template>QUX:{{qux.baz}}</template>
+ <script>Polymer('js-element2');</script>
+ </polymer-element>
+
+
+ <polymer-element name="dart-element2">
+ <template>
+ <js-element2 qux="{{quux}}"></js-element2>
+ </template>
+ </polymer-element>
+
+ <dart-element2>
+ <js-element baz="123" class="quux"></js-element>
+ </dart-element2>
+
+
+ <polymer-element name="js-element3" attributes="qux">
+ <template>FOOBAR</template>
+ <script>Polymer('js-element3', {
+ quxChanged: function() {
+ this.shadowRoot.textContent = 'js-element3[qux]:' +
+ this.qux.aDartMethod(321);
+ }
+ });</script>
+ </polymer-element>
+
+ <polymer-element name="dart-element3">
+ <template>
+ <js-element3 qux="{{quux}}"></js-element3>
+ </template>
+ </polymer-element>
+
+ <dart-element3></dart-element3>
+
+
+ <polymer-element name="js-two-way" attributes="foobar">
+ <template>FOOBAR:{{foobar}}</template>
+ <script>Polymer('js-two-way', {
+ foobar: 0,
+ aJsMethod: function(inc) {
+ this.foobar = this.foobar + inc;
+ },
+ });</script>
+ </polymer-element>
+
+ <polymer-element name="dart-two-way">
+ <template>
+ <js-two-way foobar="{{twoWay}}"></js-two-way>
+ </template>
+ </polymer-element>
+
+ <dart-two-way></dart-two-way>
+
<script type="application/dart" src="js_interop_test.dart"></script>
</body>
« no previous file with comments | « pkg/polymer/test/js_interop_test.dart ('k') | pkg/polymer_expressions/lib/polymer_expressions.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698