@lvce-editor/test-worker 10.1.0 → 10.3.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/api.d.ts +6 -0
- package/dist/testWorkerMain.js +37 -7
- package/package.json +1 -1
package/dist/api.d.ts
CHANGED
|
@@ -85,6 +85,7 @@ interface ClipBoard {
|
|
|
85
85
|
readonly readNativeFiles: () => Promise<void>;
|
|
86
86
|
readonly shouldHaveText: (expectedText: string | RegExp) => Promise<void>;
|
|
87
87
|
readonly writeNativeFiles: (uris: readonly string[]) => Promise<void>;
|
|
88
|
+
readonly writeText: (text: string) => Promise<void>;
|
|
88
89
|
}
|
|
89
90
|
|
|
90
91
|
interface Command {
|
|
@@ -447,6 +448,10 @@ interface Search {
|
|
|
447
448
|
readonly focusNextPage: () => Promise<void>;
|
|
448
449
|
readonly focusPrevious: () => Promise<void>;
|
|
449
450
|
readonly focusPreviousPage: () => Promise<void>;
|
|
451
|
+
readonly handleInputCopy: (name: string) => Promise<void>;
|
|
452
|
+
readonly handleInputCut: (name: string) => Promise<void>;
|
|
453
|
+
readonly handleInputPaste: (name: string) => Promise<void>;
|
|
454
|
+
readonly handleInputSelectionChange: (name: string, start: number, end: number) => Promise<void>;
|
|
450
455
|
readonly handleListBlur: () => Promise<void>;
|
|
451
456
|
readonly handleWheel: (deltaMode: number, deltaY: number) => Promise<void>;
|
|
452
457
|
readonly open: () => Promise<void>;
|
|
@@ -510,6 +515,7 @@ interface TitleBarMenuBar {
|
|
|
510
515
|
readonly focusLast: () => Promise<void>;
|
|
511
516
|
readonly focusNext: () => Promise<void>;
|
|
512
517
|
readonly focusPrevious: () => Promise<void>;
|
|
518
|
+
readonly handleContextMenu: (button: number, x: number, y: number) => Promise<void>;
|
|
513
519
|
readonly handleKeyArrowDown: () => Promise<void>;
|
|
514
520
|
readonly handleKeyArrowLeft: () => Promise<void>;
|
|
515
521
|
readonly handleKeyArrowRight: () => Promise<void>;
|
package/dist/testWorkerMain.js
CHANGED
|
@@ -1617,7 +1617,7 @@ const focusPrevious$7 = async () => {
|
|
|
1617
1617
|
const handleClick$2 = async index => {
|
|
1618
1618
|
await invoke$1('ActivityBar.handleClick', index);
|
|
1619
1619
|
};
|
|
1620
|
-
const handleContextMenu$
|
|
1620
|
+
const handleContextMenu$3 = async () => {
|
|
1621
1621
|
await invoke$1('ActivityBar.handleContextMenu');
|
|
1622
1622
|
};
|
|
1623
1623
|
const selectCurrent = async () => {
|
|
@@ -1632,7 +1632,7 @@ const ActivityBar = {
|
|
|
1632
1632
|
focusNext: focusNext$8,
|
|
1633
1633
|
focusPrevious: focusPrevious$7,
|
|
1634
1634
|
handleClick: handleClick$2,
|
|
1635
|
-
handleContextMenu: handleContextMenu$
|
|
1635
|
+
handleContextMenu: handleContextMenu$3,
|
|
1636
1636
|
selectCurrent
|
|
1637
1637
|
};
|
|
1638
1638
|
|
|
@@ -1664,6 +1664,10 @@ const shouldHaveText$1 = async expectedText => {
|
|
|
1664
1664
|
throw new AssertionError(`expected clipboard to have text "${expectedText}" but was "${actualText}"`);
|
|
1665
1665
|
}
|
|
1666
1666
|
};
|
|
1667
|
+
const writeText = async text => {
|
|
1668
|
+
// @ts-ignore
|
|
1669
|
+
await invoke$1('ClipBoard.writeText', text);
|
|
1670
|
+
};
|
|
1667
1671
|
|
|
1668
1672
|
const ClipBoard = {
|
|
1669
1673
|
__proto__: null,
|
|
@@ -1671,7 +1675,8 @@ const ClipBoard = {
|
|
|
1671
1675
|
enableMemoryClipBoard,
|
|
1672
1676
|
readNativeFiles,
|
|
1673
1677
|
shouldHaveText: shouldHaveText$1,
|
|
1674
|
-
writeNativeFiles
|
|
1678
|
+
writeNativeFiles,
|
|
1679
|
+
writeText
|
|
1675
1680
|
};
|
|
1676
1681
|
|
|
1677
1682
|
const execute$1 = async (id, ...args) => {
|
|
@@ -2479,7 +2484,7 @@ const handleInput$4 = async value => {
|
|
|
2479
2484
|
// @ts-ignore
|
|
2480
2485
|
await invoke$1('Extensions.handleInput', value, Script$1);
|
|
2481
2486
|
};
|
|
2482
|
-
const handleContextMenu$
|
|
2487
|
+
const handleContextMenu$2 = async (button, x, y) => {
|
|
2483
2488
|
// @ts-ignore
|
|
2484
2489
|
await invoke$1('Extensions.handleContextMenu', button, x, y);
|
|
2485
2490
|
};
|
|
@@ -2501,7 +2506,7 @@ const ExtensionSearch = {
|
|
|
2501
2506
|
clearSearchResults: clearSearchResults$1,
|
|
2502
2507
|
copyExtensionId,
|
|
2503
2508
|
copyExtensionInfo,
|
|
2504
|
-
handleContextMenu: handleContextMenu$
|
|
2509
|
+
handleContextMenu: handleContextMenu$2,
|
|
2505
2510
|
handleInput: handleInput$4,
|
|
2506
2511
|
open: open$4
|
|
2507
2512
|
};
|
|
@@ -2862,7 +2867,7 @@ const sortByPrecedence = () => {
|
|
|
2862
2867
|
const stopRecordingKeys = () => {
|
|
2863
2868
|
return invoke$1('KeyBindings.stopRecordingKeys');
|
|
2864
2869
|
};
|
|
2865
|
-
const handleContextMenu = (button, x, y) => {
|
|
2870
|
+
const handleContextMenu$1 = (button, x, y) => {
|
|
2866
2871
|
return invoke$1('KeyBindings.handleContextMenu', button, x, y);
|
|
2867
2872
|
};
|
|
2868
2873
|
const copyCommandId = () => {
|
|
@@ -2900,7 +2905,7 @@ const KeyBindingsEditor = {
|
|
|
2900
2905
|
focusNext: focusNext$4,
|
|
2901
2906
|
focusPrevious: focusPrevious$4,
|
|
2902
2907
|
handleClick,
|
|
2903
|
-
handleContextMenu,
|
|
2908
|
+
handleContextMenu: handleContextMenu$1,
|
|
2904
2909
|
handleDoubleClick,
|
|
2905
2910
|
handleInput: handleInput$3,
|
|
2906
2911
|
handleWheel: handleWheel$1,
|
|
@@ -3395,6 +3400,22 @@ const copyPath = async () => {
|
|
|
3395
3400
|
// @ts-ignore
|
|
3396
3401
|
await invoke$1('Search.copyPath');
|
|
3397
3402
|
};
|
|
3403
|
+
const handleInputCut = async name => {
|
|
3404
|
+
// @ts-ignore
|
|
3405
|
+
await invoke$1('Search.handleInputCut', name);
|
|
3406
|
+
};
|
|
3407
|
+
const handleInputPaste = async name => {
|
|
3408
|
+
// @ts-ignore
|
|
3409
|
+
await invoke$1('Search.handleInputPaste', name);
|
|
3410
|
+
};
|
|
3411
|
+
const handleInputCopy = async name => {
|
|
3412
|
+
// @ts-ignore
|
|
3413
|
+
await invoke$1('Search.handleInputCopy', name);
|
|
3414
|
+
};
|
|
3415
|
+
const handleInputSelectionChange = async (name, start, end) => {
|
|
3416
|
+
// @ts-ignore
|
|
3417
|
+
await invoke$1('Search.handleInputSelectionChange', name, start, end);
|
|
3418
|
+
};
|
|
3398
3419
|
|
|
3399
3420
|
const Search = {
|
|
3400
3421
|
__proto__: null,
|
|
@@ -3410,6 +3431,10 @@ const Search = {
|
|
|
3410
3431
|
focusNextPage,
|
|
3411
3432
|
focusPrevious: focusPrevious$1,
|
|
3412
3433
|
focusPreviousPage,
|
|
3434
|
+
handleInputCopy,
|
|
3435
|
+
handleInputCut,
|
|
3436
|
+
handleInputPaste,
|
|
3437
|
+
handleInputSelectionChange,
|
|
3413
3438
|
handleListBlur,
|
|
3414
3439
|
handleWheel,
|
|
3415
3440
|
open,
|
|
@@ -3609,6 +3634,10 @@ const toggleMenu = async () => {
|
|
|
3609
3634
|
// @ts-ignore
|
|
3610
3635
|
await invoke$1('TitleBar.toggleMenu');
|
|
3611
3636
|
};
|
|
3637
|
+
const handleContextMenu = async (button, x, y) => {
|
|
3638
|
+
// @ts-ignore
|
|
3639
|
+
await invoke$1('TitleBar.handleContextMenu', button, x, y);
|
|
3640
|
+
};
|
|
3612
3641
|
|
|
3613
3642
|
const TitleBarMenuBar = {
|
|
3614
3643
|
__proto__: null,
|
|
@@ -3619,6 +3648,7 @@ const TitleBarMenuBar = {
|
|
|
3619
3648
|
focusLast,
|
|
3620
3649
|
focusNext,
|
|
3621
3650
|
focusPrevious,
|
|
3651
|
+
handleContextMenu,
|
|
3622
3652
|
handleKeyArrowDown,
|
|
3623
3653
|
handleKeyArrowLeft,
|
|
3624
3654
|
handleKeyArrowRight,
|