Chromium Code Reviews| Index: pkg/polymer/test/event_path_test.dart |
| diff --git a/pkg/polymer/test/event_path_test.dart b/pkg/polymer/test/event_path_test.dart |
| index 550731c22523767ae24b0dac2414a71dbcfb5456..f149c17d46bc6eb231ff54d3782530fa6bb25049 100644 |
| --- a/pkg/polymer/test/event_path_test.dart |
| +++ b/pkg/polymer/test/event_path_test.dart |
| @@ -14,7 +14,7 @@ main() { |
| test('bubbling in the right order', () { |
| // TODO(sigmund): this should change once we port over the |
| // 'WebComponentsReady' event. |
|
Jennifer Messerly
2013/09/23 22:55:20
any idea if WebComponentsReady works? it's a shame
blois
2013/09/23 23:03:41
I believe that WebComponentsReady is only in the C
|
| - runAsync(expectAsync0(() { |
| + return new Future.delayed(new Duration(milliseconds: 50)).then((_) { |
|
Jennifer Messerly
2013/09/23 22:55:20
does 0 work? I worry a number like 50ms is going t
blois
2013/09/23 23:03:41
Yeah, should be zero. Was hoping 50 would help wit
|
| var item1 = query('#item1'); |
| var menuButton = query('#menuButton'); |
| // Note: polymer uses automatic node finding (menuButton.$.menu) |
| @@ -22,14 +22,13 @@ main() { |
| // from the parent shadow (menu.$.selectorContent instead of |
| // menu.$.menuShadow.$.selectorContent) |
| var menu = menuButton.shadowRoot.query('#menu'); |
| - var selector = menu.shadowRoot.query("#menuShadow"); |
| var overlay = menuButton.shadowRoot.query('#overlay'); |
| var expectedPath = <Node>[ |
| item1, |
| menuButton.shadowRoot.query('#menuButtonContent'), |
| - selector.olderShadowRoot.query('#selectorContent'), |
| - selector.olderShadowRoot.query('#selectorDiv'), |
| - menu.shadowRoot.query('#menuShadow').olderShadowRoot, |
| + menu.shadowRoot.olderShadowRoot.query('#selectorContent'), |
| + menu.shadowRoot.olderShadowRoot.query('#selectorDiv'), |
| + menu.shadowRoot.olderShadowRoot, |
| menu.shadowRoot.query('#menuShadow'), |
| menu.shadowRoot.query('#menuDiv'), |
| menu.shadowRoot, |
| @@ -56,6 +55,6 @@ main() { |
| } |
| item1.dispatchEvent(new Event('x', canBubble: true)); |
| - })); |
| + }); |
| }); |
| } |