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

Unified Diff: pkg/polymer/test/event_path_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/event_path_declarative_test.html ('k') | pkg/polymer/test/event_path_test.html » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: pkg/polymer/test/event_path_test.dart
diff --git a/pkg/polymer/test/event_path_test.dart b/pkg/polymer/test/event_path_test.dart
index ecf922f5ce9955d4bf8f475e2f0a622a77289de1..97c3e351535f80095ca900fd24fcc88aac0b215c 100644
--- a/pkg/polymer/test/event_path_test.dart
+++ b/pkg/polymer/test/event_path_test.dart
@@ -25,8 +25,9 @@ class XMenuButton extends PolymerElement {
XMenuButton.created() : super.created();
}
-@initMethod
-main() {
+main() => initPolymer().run(() {
+ useHtmlConfiguration();
+
// TODO(sigmund): use @CustomTag instead of Polymer.regsiter. A bug is making
// this code sensitive to the order in which we register elements (e.g. if
// x-menu is registered before x-selector). See dartbug.com/17926.
@@ -35,8 +36,6 @@ main() {
Polymer.register('x-menu', XMenu);
Polymer.register('x-menu-button', XMenuButton);
- useHtmlConfiguration();
-
setUp(() => Polymer.onReady);
test('bubbling in the right order', () {
@@ -81,4 +80,4 @@ main() {
item1.dispatchEvent(new Event('x', canBubble: true));
});
-}
+});
« no previous file with comments | « pkg/polymer/test/event_path_declarative_test.html ('k') | pkg/polymer/test/event_path_test.html » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698