Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(891)

Unified Diff: pkg/polymer/test/events_test.dart

Issue 27903006: Improves how to initialize polymer apps and fixes polymer build and linter to (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Created 7 years, 2 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « pkg/polymer/test/event_path_test.html ('k') | pkg/polymer/test/events_test.html » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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);
« no previous file with comments | « pkg/polymer/test/event_path_test.html ('k') | pkg/polymer/test/events_test.html » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698