PolymerElements / test-fixture

21 stars 14 forks source link

Event handler firing twice? #27

Closed tpluscode closed 8 years ago

tpluscode commented 8 years ago

Hi. I'm using <test-fixture> to test my component.

When you run my tests with wct, you'll see that the test in line 77 fails in previous test's event listener (line 69) unless I explicitly remove the handler. Why is that? The document.getElementById('EmptyNavigator').restore() in afterEach has no effect here. On the other hand the handler on line 58 never gets fired twice.

Please help me understand my mistake.

cdata commented 8 years ago

Thanks for filing an issue. We need to see a reduced test case in order to verify that there is a problem. Please re-open the issue when you have a test case, and consult our contribution guidelines for more details on filing issues!