macos fix part2
This commit is contained in:
@@ -871,9 +871,17 @@ describe('Mouse Tracking Tests', function(): void {
|
|||||||
await mouseUp('left');
|
await mouseUp('left');
|
||||||
await wheelDown();
|
await wheelDown();
|
||||||
await page.keyboard.up('Shift');
|
await page.keyboard.up('Shift');
|
||||||
assert.deepEqual(await getReports(encoding), [
|
if (noShift) {
|
||||||
{col: 45, row: 25, state: {action: 'down', button: 'wheel', modifier: {control: false, shift: false, meta: false}}}
|
assert.deepEqual(await getReports(encoding), [
|
||||||
]);
|
{col: 45, row: 25, state: {action: 'down', button: 'wheel', modifier: {control: false, shift: false, meta: false}}}
|
||||||
|
]);
|
||||||
|
} else {
|
||||||
|
assert.deepEqual(await getReports(encoding), [
|
||||||
|
{col: 44, row: 25, state: {action: 'press', button: 'left', modifier: {control: false, shift: false, meta: false}}},
|
||||||
|
{col: 44, row: 25, state: {action: 'release', button: '<none>', modifier: {control: false, shift: false, meta: false}}},
|
||||||
|
{col: 45, row: 25, state: {action: 'down', button: 'wheel', modifier: {control: false, shift: false, meta: false}}}
|
||||||
|
]);
|
||||||
|
}
|
||||||
|
|
||||||
/*
|
/*
|
||||||
// all modifiers
|
// all modifiers
|
||||||
@@ -1029,9 +1037,17 @@ describe('Mouse Tracking Tests', function(): void {
|
|||||||
await mouseUp('left');
|
await mouseUp('left');
|
||||||
await wheelDown();
|
await wheelDown();
|
||||||
await page.keyboard.up('Shift');
|
await page.keyboard.up('Shift');
|
||||||
assert.deepEqual(await getReports(encoding), [
|
if (noShift) {
|
||||||
{col: 45, row: 25, state: {action: 'down', button: 'wheel', modifier: {control: false, shift: false, meta: false}}}
|
assert.deepEqual(await getReports(encoding), [
|
||||||
]);
|
{col: 45, row: 25, state: {action: 'down', button: 'wheel', modifier: {control: false, shift: false, meta: false}}}
|
||||||
|
]);
|
||||||
|
} else {
|
||||||
|
assert.deepEqual(await getReports(encoding), [
|
||||||
|
{col: 44, row: 25, state: {action: 'press', button: 'left', modifier: {control: false, shift: false, meta: false}}},
|
||||||
|
{col: 44, row: 25, state: {action: 'release', button: '<none>', modifier: {control: false, shift: false, meta: false}}},
|
||||||
|
{col: 45, row: 25, state: {action: 'down', button: 'wheel', modifier: {control: false, shift: false, meta: false}}}
|
||||||
|
]);
|
||||||
|
}
|
||||||
|
|
||||||
/*
|
/*
|
||||||
// all modifiers
|
// all modifiers
|
||||||
@@ -1188,9 +1204,17 @@ describe('Mouse Tracking Tests', function(): void {
|
|||||||
await mouseUp('left');
|
await mouseUp('left');
|
||||||
await wheelDown();
|
await wheelDown();
|
||||||
await page.keyboard.up('Shift');
|
await page.keyboard.up('Shift');
|
||||||
assert.deepEqual(await getReports(encoding), [
|
if (noShift) {
|
||||||
{col: 45, row: 25, state: {action: 'down', button: 'wheel', modifier: {control: false, shift: false, meta: false}}}
|
assert.deepEqual(await getReports(encoding), [
|
||||||
]);
|
{col: 45, row: 25, state: {action: 'down', button: 'wheel', modifier: {control: false, shift: false, meta: false}}}
|
||||||
|
]);
|
||||||
|
} else {
|
||||||
|
assert.deepEqual(await getReports(encoding), [
|
||||||
|
{col: 44, row: 25, state: {action: 'press', button: 'left', modifier: {control: false, shift: false, meta: false}}},
|
||||||
|
{col: 44, row: 25, state: {action: 'release', button: 'left', modifier: {control: false, shift: false, meta: false}}},
|
||||||
|
{col: 45, row: 25, state: {action: 'down', button: 'wheel', modifier: {control: false, shift: false, meta: false}}}
|
||||||
|
]);
|
||||||
|
}
|
||||||
|
|
||||||
/*
|
/*
|
||||||
// all modifiers
|
// all modifiers
|
||||||
@@ -1346,9 +1370,17 @@ describe('Mouse Tracking Tests', function(): void {
|
|||||||
await mouseUp('left');
|
await mouseUp('left');
|
||||||
await wheelDown();
|
await wheelDown();
|
||||||
await page.keyboard.up('Shift');
|
await page.keyboard.up('Shift');
|
||||||
assert.deepEqual(await getReports(encoding), [
|
if (noShift) {
|
||||||
{col: 45, row: 25, state: {action: 'down', button: 'wheel', modifier: {control: false, shift: false, meta: false}}}
|
assert.deepEqual(await getReports(encoding), [
|
||||||
]);
|
{col: 45, row: 25, state: {action: 'down', button: 'wheel', modifier: {control: false, shift: false, meta: false}}}
|
||||||
|
]);
|
||||||
|
} else {
|
||||||
|
assert.deepEqual(await getReports(encoding), [
|
||||||
|
{col: 44, row: 25, state: {action: 'press', button: 'left', modifier: {control: false, shift: false, meta: false}}},
|
||||||
|
{col: 44, row: 25, state: {action: 'release', button: '<none>', modifier: {control: false, shift: false, meta: false}}},
|
||||||
|
{col: 45, row: 25, state: {action: 'down', button: 'wheel', modifier: {control: false, shift: false, meta: false}}}
|
||||||
|
]);
|
||||||
|
}
|
||||||
|
|
||||||
/*
|
/*
|
||||||
// all modifiers
|
// all modifiers
|
||||||
|
|||||||
Reference in New Issue
Block a user