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>event path</title> |
| 11 <link rel="import" href="packages/polymer/polymer.html"> |
| 12 <script src="packages/unittest/test_controller.js"></script> |
| 13 <!-- |
| 14 Test ported from: |
| 15 https://github.com/Polymer/polymer/blob/7936ff8/test/html/event-path.html |
| 16 |
| 17 This test actually doesn't test the polymer's event layer. It just ensures |
| 18 that tests are propagated in the right order when using Shadow DOM. |
| 19 --> |
| 20 </head> |
| 21 <body unresolved> |
| 22 |
| 23 <polymer-element name="x-selector"> |
| 24 <template> |
| 25 <div id="selectorDiv"> |
| 26 <content id="selectorContent"></content> |
| 27 </div> |
| 28 </template> |
| 29 </polymer-element> |
| 30 |
| 31 <polymer-element name="x-overlay"> |
| 32 <template> |
| 33 <content id="overlayContent"></content> |
| 34 </template> |
| 35 </polymer-element> |
| 36 |
| 37 <polymer-element name="x-menu" extends="x-selector"> |
| 38 <template> |
| 39 <div id="menuDiv"> |
| 40 <shadow id="menuShadow"></shadow> |
| 41 </div> |
| 42 </template> |
| 43 </polymer-element> |
| 44 |
| 45 <polymer-element name="x-menu-button"> |
| 46 <template> |
| 47 <div> |
| 48 <x-overlay id="overlay"> |
| 49 <div id="menuButtonDiv"> |
| 50 <x-menu id="menu"> |
| 51 <content id="menuButtonContent"></content> |
| 52 </x-menu> |
| 53 </div> |
| 54 </x-overlay> |
| 55 </div> |
| 56 </template> |
| 57 </polymer-element> |
| 58 |
| 59 <x-menu-button id="menuButton"> |
| 60 <div id="item1"><div id="source"></div>Item1</div> |
| 61 <div id="item2">Item2</div> |
| 62 </x-menu-button> |
| 63 |
| 64 |
| 65 <script type="application/dart" src="event_path_test.dart"></script> |
| 66 </body> |
| 67 </html> |
OLD | NEW |