export default { test ( { assert , target , window } ) { const wont = target . querySelector ( '.wont-focus' ) ; const will = target . querySelector ( '.will-focus' ) ; wont . dispatchEvent ( new window . MouseEvent ( 'click' ) ) ; assert . equal ( window . document . activeElement , window . document . body ) ; will . dispatchEvent ( new window . MouseEvent ( 'click' ) ) ; assert . equal ( window . document . activeElement , will ) ; } } ;