| 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>attached binding test</title> | 10 <title>attached binding test</title> |
| 11 <script src="packages/web_components/platform.js"></script> | |
| 12 <script src="packages/web_components/dart_support.js"></script> | 11 <script src="packages/web_components/dart_support.js"></script> |
| 13 <link rel="import" href="packages/polymer/polymer.html"> | 12 <link rel="import" href="packages/polymer/polymer.html"> |
| 14 <script src="/root_dart/tools/testing/dart/test_controller.js"></script> | 13 <script src="/root_dart/tools/testing/dart/test_controller.js"></script> |
| 15 </head> | 14 </head> |
| 16 <body> | 15 <body> |
| 17 This tests that elements inside the shadowRoot are properly upgraded and | 16 This tests that eventController can properly be detected from dart, |
| 18 attached is called on them. Essentially this is a Shadow DOM and Custom | 17 javascript, and native elements. |
| 19 Elements integration test. | |
| 20 <br> | 18 <br> |
| 21 | 19 |
| 22 <polymer-element name="x-inner"> | 20 <polymer-element name="x-js" noscript> |
| 23 <template>x-inner</template> | 21 <template>click x-js!</template> |
| 24 </polymer-element> | 22 </polymer-element> |
| 25 <polymer-element name="x-outer"> | 23 |
| 24 <polymer-element name="x-dart"> |
| 25 <template>click x-dart!</template> |
| 26 </polymer-element> |
| 27 |
| 28 <polymer-element name="x-controller"> |
| 26 <template> | 29 <template> |
| 27 <template if="{{expand}}"> | 30 <button on-click="{{clickButton}}">Click me</button> |
| 28 inner element: | 31 <x-js on-click="{{clickXJs}}"></x-js> |
| 29 <x-inner></x-inner> | 32 <x-dart on-click="{{clickXDart}}"></x-dart> |
| 30 </template> | |
| 31 </template> | 33 </template> |
| 32 </polymer-element> | 34 </polymer-element> |
| 33 | 35 |
| 34 outer element: | 36 <x-controller></x-controller> |
| 35 <x-outer></x-outer> | |
| 36 | 37 |
| 37 <script type="application/dart" src="entered_view_test.dart"></script> | 38 <script type="application/dart" src="event_controller_test.dart"></script> |
| 38 </body> | 39 </body> |
| 39 </html> | 40 </html> |
| OLD | NEW |