diff --git a/test/browser/events.test.js b/test/browser/events.test.js
index 3f64e4378a..8a2732adf9 100644
--- a/test/browser/events.test.js
+++ b/test/browser/events.test.js
@@ -155,29 +155,23 @@ describe('event handling', () => {
// Skip test if browser doesn't support passive events
if (supportsPassiveEvents()) {
it('should use capturing for event props ending with *Capture', () => {
- let click = sinon.spy(),
- focus = sinon.spy();
+ let click = sinon.spy();
render(
-
-
+
+
,
scratch
);
- let root = scratch.firstChild;
- root.firstElementChild.click();
- root.firstElementChild.focus();
+ let btn = scratch.firstChild.firstElementChild;
+ btn.click();
expect(click, 'click').to.have.been.calledOnce;
- // Focus delegation requires a 50b hack I'm not sure we want to incur
- expect(focus, 'focus').to.have.been.calledOnce;
-
// IE doesn't set it
if (!/Edge/.test(navigator.userAgent)) {
expect(click).to.have.been.calledWithMatch({ eventPhase: 0 }); // capturing
- expect(focus).to.have.been.calledWithMatch({ eventPhase: 0 }); // capturing
}
});