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

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

Issue 293023008: Bring back initPolymer, allow boot.js only if using "polymer_experimental.html". (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Created 6 years, 7 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/build/script_compactor_test.dart ('k') | pkg/polymer/test/custom_event_test.html » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: pkg/polymer/test/custom_event_test.dart
diff --git a/pkg/polymer/test/custom_event_test.dart b/pkg/polymer/test/custom_event_test.dart
index 0b67e3e10eb1b1dcd4ec8d1bb43d458d5e2ab1af..04679a9426ba04b6e89b1967072a78bb826321bd 100644
--- a/pkg/polymer/test/custom_event_test.dart
+++ b/pkg/polymer/test/custom_event_test.dart
@@ -42,8 +42,7 @@ class TestCustomEvent extends PolymerElement {
barBazHandler(e) => events.add(['barbaz', e]);
}
-@initMethod
-main() {
+main() => initPolymer().run(() {
useHtmlConfiguration();
setUp(() => Polymer.onReady);
@@ -67,4 +66,4 @@ main() {
expect(events.map((e) => e[0]), ['foo', 'barbaz', 'foo']);
expect(events.map((e) => e[1].detail), [123, 42, 777]);
});
-}
+});
« no previous file with comments | « pkg/polymer/test/build/script_compactor_test.dart ('k') | pkg/polymer/test/custom_event_test.html » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698