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/js/events.js | |
16 | |
17 TODO(sigmund): when we have support for mutation observers, render all of | |
18 the test in Dart (like events.js does in JS) | |
19 --> | |
20 </head> | |
21 <body> | |
22 | |
23 <polymer-element name="test-a" on-click="{{clickHandler}}"> | |
24 <template></template> | |
25 </polymer-element> | |
26 | |
27 <polymer-element name="test-b"> | |
28 <template> | |
29 <div> | |
30 <span id="b-1">1</span> | |
31 <span id="b-2" on-click="{{clickHandler}}">2</span> | |
32 </div> | |
33 </template> | |
34 </polymer-element> | |
35 | |
36 <polymer-element name="test-c"> | |
37 <template> | |
38 <div> | |
39 <span id="c-1">1</span> | |
40 <span id="c-2" on-click="{{clickHandler}}">2</span> | |
41 </div> | |
42 </template> | |
43 </polymer-element> | |
44 | |
45 <test-a id="a"></test-a> | |
46 <test-b id="b"></test-b> | |
47 <test-c id="c"></test-c> | |
48 | |
49 <script type="application/dart" src="events_test.dart"></script> | |
50 </body> | |
51 </html> | |
OLD | NEW |