| 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;
|
| + });
|
| });
|
| });
|
|
|