OLD | NEW |
(Empty) | |
| 1 <!doctype html> |
| 2 <!-- |
| 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 |
| 5 BSD-style license that can be found in the LICENSE file. |
| 6 --> |
| 7 <html> |
| 8 |
| 9 <head> |
| 10 <title>attached binding test</title> |
| 11 <script src="packages/web_components/dart_support.js"></script> |
| 12 <link rel="import" href="packages/polymer/polymer.html"> |
| 13 <script src="packages/unittest/test_controller.js"></script> |
| 14 </head> |
| 15 <body> |
| 16 This tests that eventController can properly be detected from dart, |
| 17 javascript, and native elements. |
| 18 <br> |
| 19 |
| 20 <polymer-element name="x-js" noscript> |
| 21 <template>click x-js!</template> |
| 22 </polymer-element> |
| 23 |
| 24 <polymer-element name="x-dart"> |
| 25 <template>click x-dart!</template> |
| 26 </polymer-element> |
| 27 |
| 28 <polymer-element name="x-controller"> |
| 29 <template> |
| 30 <button on-click="{{clickButton}}">Click me</button> |
| 31 <x-js on-click="{{clickXJs}}"></x-js> |
| 32 <x-dart on-click="{{clickXDart}}"></x-dart> |
| 33 </template> |
| 34 </polymer-element> |
| 35 |
| 36 <x-controller></x-controller> |
| 37 |
| 38 <script type="application/dart" src="event_controller_test.dart"></script> |
| 39 </body> |
| 40 </html> |
OLD | NEW |