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

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

Issue 27307004: Converting Polymer's WebComponentsLoaded to an onReady future (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: pkg/polymer/test/take_attributes_test.dart
diff --git a/pkg/polymer/test/take_attributes_test.dart b/pkg/polymer/test/take_attributes_test.dart
index f4d55125a4f269b5ee51e88661419adb0d2e6be1..a17eecb6a4383548cd94ced82952e43b3199ac1a 100644
--- a/pkg/polymer/test/take_attributes_test.dart
+++ b/pkg/polymer/test/take_attributes_test.dart
@@ -2,7 +2,6 @@
// for details. All rights reserved. Use of this source code is governed by a
// BSD-style license that can be found in the LICENSE file.
-import 'dart:async';
import 'dart:html';
import 'package:unittest/unittest.dart';
import 'package:unittest/html_config.dart';
@@ -53,8 +52,7 @@ class XObj extends PolymerElement {
main() {
useHtmlConfiguration();
- // Delay for custom elements upgrading
- setUp(() => new Future.delayed(Duration.ZERO));
+ setUp(() => Polymer.onReady);
test('take attributes', () {
queryXTag(x) => document.query(x).xtag;

Powered by Google App Engine
This is Rietveld 408576698