| Index: pkg/polymer/test/events_test.dart
|
| diff --git a/pkg/polymer/test/events_test.dart b/pkg/polymer/test/events_test.dart
|
| index 2b936a8ca91880196a0ff895a4fc9054b8879450..cc803397ef71e0e1153f1a491f27dd5f88c36e1f 100644
|
| --- a/pkg/polymer/test/events_test.dart
|
| +++ b/pkg/polymer/test/events_test.dart
|
| @@ -9,7 +9,28 @@ import 'package:polymer/polymer.dart';
|
| import 'package:unittest/html_config.dart';
|
| import 'package:unittest/unittest.dart';
|
|
|
| -@initMethod _main() {
|
| +@CustomTag("test-b")
|
| +class TestB extends PolymerElement {
|
| + TestB.created() : super.created();
|
| +
|
| + List clicks = [];
|
| + void clickHandler(event, detail, target) {
|
| + clicks.add('local click under $localName (id $id) on ${target.id}');
|
| + }
|
| +}
|
| +
|
| +@CustomTag("test-a")
|
| +class TestA extends PolymerElement {
|
| + TestA.created() : super.created();
|
| +
|
| + List clicks = [];
|
| + void clickHandler() {
|
| + clicks.add('host click on: $localName (id $id)');
|
| + }
|
| +}
|
| +
|
| +main() {
|
| + initPolymer();
|
| useHtmlConfiguration();
|
|
|
| setUp(() => Polymer.onReady);
|
|
|