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

Unified Diff: samples/third_party/todomvc/test/listorder_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/listorder_test.dart
diff --git a/samples/third_party/todomvc/test/listorder_test.dart b/samples/third_party/todomvc/test/listorder_test.dart
index 0d70dfadf4c516ad6189dd816cca576ce17434cf..acd52e42d178ac8581c8fcd13e2cb4d55e38613d 100644
--- a/samples/third_party/todomvc/test/listorder_test.dart
+++ b/samples/third_party/todomvc/test/listorder_test.dart
@@ -15,12 +15,13 @@ import '../web/model.dart';
* switches from back and forth between "Active" and "All". This will make some
* nodes to be hidden and readded to the page.
*/
-@initMethod
-_main() {
+main() {
+ initPolymer();
useHtmlConfiguration();
final root = query('todo-app').shadowRoot;
+ wrapMicrotask((){
setUp(() => Polymer.onReady);
test('programmatically add items to model', () {
@@ -57,4 +58,5 @@ _main() {
performMicrotaskCheckpoint();
expect(root.queryAll('#todo-list li[is=todo-row]').length, 3);
});
+ })();
}

Powered by Google App Engine
This is Rietveld 408576698