iron-selector icon indicating copy to clipboard operation
iron-selector copied to clipboard

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

Open cdata opened this issue 9 years ago • 2 comments

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

cdata avatar Nov 20 '15 01:11 cdata

maybe related to https://github.com/PolymerElements/iron-selector/issues/75?

reinert avatar Nov 20 '15 12:11 reinert

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!

bicknellr avatar Jan 06 '16 00:01 bicknellr