Tests update

This commit is contained in:
Francisco Hodge 2019-03-11 18:26:00 -04:00
parent 8582350774
commit dadad31fdd

View File

@ -900,7 +900,9 @@ it('Keyboard handleButtonMouseDown will work', () => {
let keyboard = new Keyboard(); let keyboard = new Keyboard();
keyboard.handleButtonMouseDown("q", { keyboard.handleButtonMouseDown("q", {
target: keyboard.getButtonElement("q") target: keyboard.getButtonElement("q"),
preventDefault: () => {},
stopPropagation: () => {}
}); });
var clickEvent = document.createEvent('MouseEvents'); var clickEvent = document.createEvent('MouseEvents');
@ -918,7 +920,9 @@ it('Keyboard handleButtonMouseDown will work with preventMouseDownDefault', () =
keyboard.options.preventMouseDownDefault = true; keyboard.options.preventMouseDownDefault = true;
keyboard.handleButtonMouseDown("q", { keyboard.handleButtonMouseDown("q", {
target: keyboard.getButtonElement("q") target: keyboard.getButtonElement("q"),
preventDefault: () => {},
stopPropagation: () => {}
}); });
var clickEvent = document.createEvent('MouseEvents'); var clickEvent = document.createEvent('MouseEvents');