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>enteredView binding test</title> | 10 <title>enteredView binding test</title> |
| 11 <link rel="import" href="packages/polymer/polymer.html"> |
11 <script src="/root_dart/tools/testing/dart/test_controller.js"></script> | 12 <script src="/root_dart/tools/testing/dart/test_controller.js"></script> |
12 </head> | 13 </head> |
13 <body> | 14 <body> |
14 This tests that elements inside the shadowRoot are properly upgraded and | 15 This tests that elements inside the shadowRoot are properly upgraded and |
15 enteredView is called on them. Essentially this is a Shadow DOM and Custom | 16 enteredView is called on them. Essentially this is a Shadow DOM and Custom |
16 Elements integration test. | 17 Elements integration test. |
17 <br> | 18 <br> |
18 | 19 |
19 <polymer-element name="x-inner"> | 20 <polymer-element name="x-inner"> |
20 <template>x-inner</template> | 21 <template>x-inner</template> |
21 </polymer-element> | 22 </polymer-element> |
22 <polymer-element name="x-outer"> | 23 <polymer-element name="x-outer"> |
23 <template> | 24 <template> |
24 <template if="{{expand}}"> | 25 <template if="{{expand}}"> |
25 inner element: | 26 inner element: |
26 <x-inner></x-inner> | 27 <x-inner></x-inner> |
27 </template> | 28 </template> |
28 </template> | 29 </template> |
29 </polymer-element> | 30 </polymer-element> |
30 | 31 |
31 outer element: | 32 outer element: |
32 <x-outer></x-outer> | 33 <x-outer></x-outer> |
33 | 34 |
34 <script type="application/dart" src="entered_view_test.dart"></script> | 35 <script type="application/dart" src="entered_view_test.dart"></script> |
35 </body> | 36 </body> |
36 </html> | 37 </html> |
OLD | NEW |