mirror of
https://github.com/hodgef/simple-keyboard.git
synced 2025-01-19 16:52:59 +08:00
Tests update
This commit is contained in:
parent
8582350774
commit
dadad31fdd
@ -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');
|
||||||
|
Loading…
Reference in New Issue
Block a user