add scroll test
This commit is contained in:
parent
f63920e25e
commit
b694afb7ce
6 changed files with 133 additions and 18 deletions
20
e2e/ambassador/src/client/scrolls.js
Normal file
20
e2e/ambassador/src/client/scrolls.js
Normal file
|
@ -0,0 +1,20 @@
|
|||
import { SCROLL_GET, SCROLL_SET } from '../shared/messages';
|
||||
import * as ipc from './ipc';
|
||||
|
||||
const get = (tabId) => {
|
||||
return ipc.send({
|
||||
type: SCROLL_GET,
|
||||
tabId,
|
||||
});
|
||||
};
|
||||
|
||||
const set = (tabId, x, y) => {
|
||||
return ipc.send({
|
||||
type: SCROLL_SET,
|
||||
tabId,
|
||||
x,
|
||||
y,
|
||||
});
|
||||
};
|
||||
|
||||
export { get, set };
|
Reference in a new issue