| Index: packages/polymer/test/events_test.html
|
| diff --git a/packages/polymer/test/events_test.html b/packages/polymer/test/events_test.html
|
| new file mode 100644
|
| index 0000000000000000000000000000000000000000..a8fb3a7955fd318ae59274617d7604786a82ef39
|
| --- /dev/null
|
| +++ b/packages/polymer/test/events_test.html
|
| @@ -0,0 +1,51 @@
|
| +<!doctype html>
|
| +<!--
|
| + Copyright (c) 2013, the Dart project authors. Please see the AUTHORS file
|
| + for details. All rights reserved. Use of this source code is governed by a
|
| + BSD-style license that can be found in the LICENSE file.
|
| +-->
|
| +<html>
|
| +
|
| + <head>
|
| + <title>event path</title>
|
| + <link rel="import" href="packages/polymer/polymer.html">
|
| + <script src="packages/unittest/test_controller.js"></script>
|
| + <!--
|
| + Test ported from:
|
| + https://github.com/Polymer/polymer/blob/7936ff8/test/js/events.js
|
| +
|
| + TODO(sigmund): when we have support for mutation observers, render all of
|
| + the test in Dart (like events.js does in JS)
|
| + -->
|
| + </head>
|
| + <body>
|
| +
|
| + <polymer-element name="test-a" on-click="{{clickHandler}}">
|
| + <template></template>
|
| + </polymer-element>
|
| +
|
| + <polymer-element name="test-b">
|
| + <template>
|
| + <div>
|
| + <span id="b-1">1</span>
|
| + <span id="b-2" on-click="{{clickHandler}}">2</span>
|
| + </div>
|
| + </template>
|
| + </polymer-element>
|
| +
|
| + <polymer-element name="test-c">
|
| + <template>
|
| + <div>
|
| + <span id="c-1">1</span>
|
| + <span id="c-2" on-click="{{clickHandler}}">2</span>
|
| + </div>
|
| + </template>
|
| + </polymer-element>
|
| +
|
| + <test-a id="a"></test-a>
|
| + <test-b id="b"></test-b>
|
| + <test-c id="c"></test-c>
|
| +
|
| + <script type="application/dart" src="events_test.dart"></script>
|
| + </body>
|
| +</html>
|
|
|