OLD | NEW |
1 <!DOCTYPE html> | 1 <!DOCTYPE html> |
2 <!-- | 2 <!-- |
3 Copyright (c) 2015, the Dart project authors. Please see the AUTHORS file | 3 Copyright (c) 2015, 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 <head> | 8 <head> |
9 <script src="packages/web_components/webcomponents-lite.min.js"></script> | 9 <script src="packages/web_components/webcomponents-lite.min.js"></script> |
10 <link rel="x-dart-test" href="polymer_mixin_test.dart"> | 10 <link rel="x-dart-test" href="polymer_mixin_test.dart"> |
11 <!--<script type="application/dart" src="polymer_mixin_test.dart"></script>--> | 11 <!--<script type="application/dart" src="polymer_mixin_test.dart"></script>--> |
12 <!--<script src="packages/browser/dart.js"></script>--> | 12 <!--<script src="packages/browser/dart.js"></script>--> |
13 <script src="packages/test/dart.js"></script></head> | 13 <script src="packages/test/dart.js"></script></head> |
14 <body> | 14 <body> |
15 <dom-module id="test-element"> | 15 <dom-module id="test-element"> |
16 <template> | 16 <template> |
17 <div id="parent"> | 17 <div id="parent"> |
18 parent | 18 parent |
19 <div id="child"> | 19 <div id="child"> |
20 child | 20 child |
21 </div> | 21 </div> |
22 </div> | 22 </div> |
| 23 <!-- This test makes sure that if a list is in a binding the updates |
| 24 don't happen twice --> |
| 25 <sub-element id="sub" my-ints="{{myInts}}" my-map="{{myMap}}" |
| 26 my-model="{{myModel}}"></sub-element> |
| 27 </template> |
| 28 </dom-module> |
| 29 |
| 30 <dom-module id="sub-element"> |
| 31 <template> |
| 32 <span id="modelValue">{{myModel.value}}</span> |
23 </template> | 33 </template> |
24 </dom-module> | 34 </dom-module> |
25 </body> | 35 </body> |
26 </html> | 36 </html> |
OLD | NEW |