|
|
@ -1,7 +1,7 @@
|
|
|
|
export default {
|
|
|
|
export default {
|
|
|
|
html: '<button>0, 0</button>',
|
|
|
|
html: '<button>0, 0</button>',
|
|
|
|
|
|
|
|
|
|
|
|
test(assert, component, target, window) {
|
|
|
|
async test(assert, component, target, window) {
|
|
|
|
const event = new window.MouseEvent('click', {
|
|
|
|
const event = new window.MouseEvent('click', {
|
|
|
|
clientX: 42,
|
|
|
|
clientX: 42,
|
|
|
|
clientY: 42
|
|
|
|
clientY: 42
|
|
|
@ -9,7 +9,7 @@ export default {
|
|
|
|
|
|
|
|
|
|
|
|
const button = target.querySelector('button');
|
|
|
|
const button = target.querySelector('button');
|
|
|
|
|
|
|
|
|
|
|
|
button.dispatchEvent(event);
|
|
|
|
await button.dispatchEvent(event);
|
|
|
|
|
|
|
|
|
|
|
|
assert.equal(target.innerHTML, '<button>42, 42</button>');
|
|
|
|
assert.equal(target.innerHTML, '<button>42, 42</button>');
|
|
|
|
}
|
|
|
|
}
|
|
|
|