Skip to content
This repository has been archived by the owner on Dec 28, 2024. It is now read-only.

One test failure in Chrome: test/multi.html » multi » updates selection when dom changes #86

Open
cdata opened this issue Nov 20, 2015 · 2 comments

Comments

@cdata
Copy link
Contributor

cdata commented Nov 20, 2015

This error started occurring with the addition of ShadowDOM-specific tests.

@reinert
Copy link
Contributor

reinert commented Nov 20, 2015

maybe related to #75?

@bicknellr
Copy link
Contributor

The MutationObserver that Polymer.Base.async uses to queue microtasks is added earlier than the one that the iron-selector uses to monitor its children, so it ends up getting called first: adding a 1ms delay to the last async call in that test (causing it to use setTimeout) makes it pass. (JSBin showing this behavior.)

invokeLast strikes again!

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

No branches or pull requests

3 participants