| 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>event path</title> | 10 <title>event path</title> |
| 11 <script src="packages/unittest/test_controller.js"></script> | 11 <script src="packages/unittest/test_controller.js"></script> |
| 12 <!-- | 12 <!-- |
| 13 Test ported from: | 13 Test ported from: |
| 14 https://github.com/Polymer/polymer/blob/7936ff8/test/js/events.js | 14 https://github.com/Polymer/polymer/blob/7936ff8/test/js/events.js |
| 15 | 15 |
| 16 TODO(sigmund): when we have support for mutation observers, render all of | 16 TODO(sigmund): when we have support for mutation observers, render all of |
| 17 the test in Dart (like events.js does in JS) | 17 the test in Dart (like events.js does in JS) |
| 18 --> | 18 --> |
| 19 </head> | 19 </head> |
| 20 <body> | 20 <body> |
| 21 | 21 |
| 22 <polymer-element name="test-a" on-click="clickHandler"> | 22 <polymer-element name="test-a" on-click="{{clickHandler}}"> |
| 23 <template></template> | 23 <template></template> |
| 24 </polymer-element> | 24 </polymer-element> |
| 25 | 25 |
| 26 <polymer-element name="test-b"> | 26 <polymer-element name="test-b"> |
| 27 <template> | 27 <template> |
| 28 <div> | 28 <div> |
| 29 <span id="b-1">1</span> | 29 <span id="b-1">1</span> |
| 30 <span id="b-2" on-click="clickHandler">2</span> | 30 <span id="b-2" on-click="{{clickHandler}}">2</span> |
| 31 </div> | 31 </div> |
| 32 </template> | 32 </template> |
| 33 </polymer-element> | 33 </polymer-element> |
| 34 | 34 |
| 35 <test-a id="a"></test-a> | 35 <test-a id="a"></test-a> |
| 36 <test-b id="b"></test-b> | 36 <test-b id="b"></test-b> |
| 37 | 37 |
| 38 <script type="application/dart" src="events_test.dart"></script> | 38 <script type="application/dart" src="events_test.dart"></script> |
| 39 </body> | 39 </body> |
| 40 </html> | 40 </html> |
| OLD | NEW |