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

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

Issue 595373002: fix forceReady test in IE (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Created 6 years, 3 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 | « no previous file | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: pkg/polymer/test/force_ready_test.dart
diff --git a/pkg/polymer/test/force_ready_test.dart b/pkg/polymer/test/force_ready_test.dart
index 309ba7157967372bed4c56dc3a18d0265a1193d9..3314f1bbe1478d139c446cc4a6d86fda25954572 100644
--- a/pkg/polymer/test/force_ready_test.dart
+++ b/pkg/polymer/test/force_ready_test.dart
@@ -16,9 +16,11 @@ main() => initPolymer().run(() {
/// We do not port the full test, since this just proxies through to the
/// polymer js implementation.
test('can force ready', () {
- expect(Polymer.waitingFor.length, 1);
- expect(Polymer.waitingFor[0], querySelector('polymer-element'));
- Polymer.forceReady();
- return Polymer.onReady;
+ return new Future(() {}).then((_) {
+ expect(Polymer.waitingFor.length, 1);
+ expect(Polymer.waitingFor[0], querySelector('polymer-element'));
+ Polymer.forceReady();
+ return Polymer.onReady;
+ });
});
});
« no previous file with comments | « no previous file | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698