iron-selector
iron-selector copied to clipboard
One test failure in Chrome: test/multi.html » multi » updates selection when dom changes
This error started occurring with the addition of ShadowDOM-specific tests.
maybe related to https://github.com/PolymerElements/iron-selector/issues/75?
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!