| 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 <!--polymer-test: this comment is needed for test_suite.dart--> |
| 9 <head><title>event path declarative test</title> |
| 10 <script src="packages/unittest/test_controller.js"></script> |
| 11 <!-- |
| 12 Test ported from: |
| 13 https://github.com/Polymer/polymer/blob/7936ff8/test/html/event-path-declara
tive.html |
| 14 --> |
| 15 </head> |
| 16 <body> |
| 17 <x-bar><div id="target">Test</div></x-bar> |
| 18 <polymer-element name="x-zug" on-test-event="{{testEventHandler}}"> |
| 19 <template> |
| 20 x-zug: |
| 21 <div id="xZugDiv" on-test-event="{{divTestEventHandler}}"> |
| 22 <content id="xZugContent" on-test-event="{{contentTestEventHandler}}"> |
| 23 </content> |
| 24 </div> |
| 25 </template> |
| 26 </polymer-element> |
| 27 |
| 28 |
| 29 <polymer-element name="x-foo" on-test-event="{{testEventHandler}}"> |
| 30 <template> |
| 31 <style> |
| 32 @host { |
| 33 display: block; |
| 34 border: 1px solid green; |
| 35 padding: 10px; |
| 36 } |
| 37 </style> |
| 38 x-foo: |
| 39 <div id="xFooDiv" on-test-event="{{divTestEventHandler}}"> |
| 40 <x-zug><content id="xFooContent" |
| 41 on-test-event="{{contentTestEventHandler}}"></content> |
| 42 </x-zug> |
| 43 </div> |
| 44 </template> |
| 45 </polymer-element> |
| 46 |
| 47 |
| 48 <polymer-element name="x-bar" on-test-event="{{testEventHandler}}"> |
| 49 <template> |
| 50 <style> |
| 51 @host { |
| 52 display: block; |
| 53 border: 1px solid red; |
| 54 padding: 10px; |
| 55 } |
| 56 |
| 57 .clicky { |
| 58 border: 1px solid black; |
| 59 } |
| 60 |
| 61 </style> |
| 62 x-bar: |
| 63 <x-foo> |
| 64 <div class="clicky" id="xBarDiv" |
| 65 on-test-event="{{divTestEventHandler}}"> |
| 66 <content id="xBarContent" on-test-event="{{contentTestEventHandler}}"> |
| 67 </content> |
| 68 </div> |
| 69 </x-foo> |
| 70 </template> |
| 71 </polymer-element> |
| 72 |
| 73 <script type="application/dart" src="event_path_declarative_test.dart"></scrip
t> |
| 74 </body> |
| 75 </html> |
| OLD | NEW |