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

Side by Side 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 unified diff | Download patch | Annotate | Revision Log
OLDNEW
1 <!doctype html> 1 <!doctype html>
2 <!-- 2 <!--
3 Copyright (c) 2013, the Dart project authors. Please see the AUTHORS file 3 Copyright (c) 2013, the Dart project authors. Please see the AUTHORS file
4 for details. All rights reserved. Use of this source code is governed by a 4 for details. All rights reserved. Use of this source code is governed by a
5 BSD-style license that can be found in the LICENSE file. 5 BSD-style license that can be found in the LICENSE file.
6 --> 6 -->
7 <html> 7 <html>
8 <!--polymer-test: this comment is needed for test_suite.dart--> 8 <!--polymer-test: this comment is needed for test_suite.dart-->
9 <head> 9 <head>
10 <title>polymer.js interop test</title> 10 <title>polymer.js interop test</title>
(...skipping 20 matching lines...) Expand all
31 31
32 <polymer-element name="dart-element"> 32 <polymer-element name="dart-element">
33 <template> 33 <template>
34 <js-element></js-element> 34 <js-element></js-element>
35 </template> 35 </template>
36 </polymer-element> 36 </polymer-element>
37 37
38 <dart-element></dart-element> 38 <dart-element></dart-element>
39 <js-element></js-element> 39 <js-element></js-element>
40 40
41 <polymer-element name="js-element2" attributes="qux">
42 <template>QUX:{{qux.baz}}</template>
43 <script>Polymer('js-element2');</script>
44 </polymer-element>
45
46
47 <polymer-element name="dart-element2">
48 <template>
49 <js-element2 qux="{{quux}}"></js-element2>
50 </template>
51 </polymer-element>
52
53 <dart-element2>
54 <js-element baz="123" class="quux"></js-element>
55 </dart-element2>
56
57
58 <polymer-element name="js-element3" attributes="qux">
59 <template>FOOBAR</template>
60 <script>Polymer('js-element3', {
61 quxChanged: function() {
62 this.shadowRoot.textContent = 'js-element3[qux]:' +
63 this.qux.aDartMethod(321);
64 }
65 });</script>
66 </polymer-element>
67
68 <polymer-element name="dart-element3">
69 <template>
70 <js-element3 qux="{{quux}}"></js-element3>
71 </template>
72 </polymer-element>
73
74 <dart-element3></dart-element3>
75
76
77 <polymer-element name="js-two-way" attributes="foobar">
78 <template>FOOBAR:{{foobar}}</template>
79 <script>Polymer('js-two-way', {
80 foobar: 0,
81 aJsMethod: function(inc) {
82 this.foobar = this.foobar + inc;
83 },
84 });</script>
85 </polymer-element>
86
87 <polymer-element name="dart-two-way">
88 <template>
89 <js-two-way foobar="{{twoWay}}"></js-two-way>
90 </template>
91 </polymer-element>
92
93 <dart-two-way></dart-two-way>
94
41 <script type="application/dart" src="js_interop_test.dart"></script> 95 <script type="application/dart" src="js_interop_test.dart"></script>
42 96
43 </body> 97 </body>
44 </html> 98 </html>
OLDNEW
« 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