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

Unified Diff: samples/third_party/todomvc/test/markdone_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
Index: samples/third_party/todomvc/test/markdone_test.dart
diff --git a/samples/third_party/todomvc/test/markdone_test.dart b/samples/third_party/todomvc/test/markdone_test.dart
index c967767368c51f02224aa3b84f8c95d6f4d63469..e7a7989def3e3d9f9f87275274d816829b74d957 100644
--- a/samples/third_party/todomvc/test/markdone_test.dart
+++ b/samples/third_party/todomvc/test/markdone_test.dart
@@ -4,6 +4,7 @@
library todomvc.test.markdone_test;
+import 'dart:async';
import 'dart:html';
import 'package:polymer/platform.dart' show endOfMicrotask;
import 'package:polymer/polymer.dart';
@@ -47,7 +48,8 @@ Node findShadowHost(Node node, ShadowRoot root) {
* This test runs the TodoMVC app, adds a few todos, marks some as done
* programatically, and clicks on a checkbox to mark others via the UI.
*/
-@initMethod init() {
+main() {
+ initPolymer();
useHtmlConfiguration();
setUp(() => Polymer.onReady);
« no previous file with comments | « samples/third_party/todomvc/test/markdone_shadow_test.html ('k') | samples/third_party/todomvc/test/markdone_test.html » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698