OLD | NEW |
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 Loading... |
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 <polymer-element name="dart-element2"> |
| 47 <template> |
| 48 <js-element2 qux="{{quux}}"></js-element2> |
| 49 </template> |
| 50 </polymer-element> |
| 51 |
| 52 <dart-element2> |
| 53 <js-element baz="123" class="quux"></js-element> |
| 54 </dart-element2> |
| 55 |
| 56 <polymer-element name="js-element3" attributes="qux"> |
| 57 <template>FOOBAR</template> |
| 58 <script>Polymer('js-element3', { |
| 59 quxChanged: function() { |
| 60 this.shadowRoot.textContent = 'js-element3[qux]:' + |
| 61 this.qux.aDartMethod(321); |
| 62 } |
| 63 });</script> |
| 64 </polymer-element> |
| 65 |
| 66 <polymer-element name="dart-element3"> |
| 67 <template> |
| 68 <js-element3 qux="{{quux}}"></js-element3> |
| 69 </template> |
| 70 </polymer-element> |
| 71 |
| 72 <dart-element3></dart-element3> |
| 73 |
41 <script type="application/dart" src="js_interop_test.dart"></script> | 74 <script type="application/dart" src="js_interop_test.dart"></script> |
42 | 75 |
43 </body> | 76 </body> |
44 </html> | 77 </html> |
OLD | NEW |