@lvce-editor/test-worker 5.3.0 → 5.5.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 +15 -14
- package/dist/testWorkerMain.js +15 -9
- package/package.json +1 -1
package/dist/api.d.ts
CHANGED
|
@@ -33,7 +33,7 @@ declare const toggleDeveloperTools: () => Promise<void>;
|
|
|
33
33
|
declare const showSaveFilePicker: () => Promise<void>;
|
|
34
34
|
declare const mockSaveFilePicker: (fn: () => string) => Promise<void>;
|
|
35
35
|
declare const mockConfirm: (fn: () => boolean) => Promise<void>;
|
|
36
|
-
declare const executeMock: (id: number) => string;
|
|
36
|
+
declare const executeMock: (id: number, ...args: readonly any[]) => string;
|
|
37
37
|
declare const setCursor: (rowIndex: number, columnIndex: number) => Promise<void>;
|
|
38
38
|
declare const openCompletion: () => Promise<void>;
|
|
39
39
|
declare const closeCompletion: () => Promise<void>;
|
|
@@ -163,11 +163,12 @@ declare const chmod: (uri: string, permissions: any) => Promise<void>;
|
|
|
163
163
|
declare const createExecutable: (content: string) => Promise<string>;
|
|
164
164
|
declare const createExecutableFrom: (uri: string) => Promise<string>;
|
|
165
165
|
declare const focusNext$3: () => Promise<void>;
|
|
166
|
+
declare const focusPrevious$2: () => Promise<void>;
|
|
166
167
|
declare const setValue: (value: string) => Promise<void>;
|
|
167
168
|
declare const setIconTheme: (id: string) => Promise<void>;
|
|
168
169
|
declare const selectIndex$2: (index: number) => Promise<void>;
|
|
169
170
|
declare const focusNext$4: () => Promise<void>;
|
|
170
|
-
declare const focusPrevious$
|
|
171
|
+
declare const focusPrevious$3: () => Promise<void>;
|
|
171
172
|
declare const focusFirst$2: () => Promise<void>;
|
|
172
173
|
declare const focusLast$2: () => Promise<void>;
|
|
173
174
|
declare const open$1: () => Promise<void>;
|
|
@@ -176,7 +177,7 @@ declare const handleClick$2: (x: number, y: number) => Promise<void>;
|
|
|
176
177
|
declare const handleWheel$1: (deltaMode: number, deltaY: number) => Promise<void>;
|
|
177
178
|
declare const handleDoubleClick: (x: number, y: number) => Promise<void>;
|
|
178
179
|
declare const focusNext$5: () => Promise<void>;
|
|
179
|
-
declare const focusPrevious$
|
|
180
|
+
declare const focusPrevious$4: () => Promise<void>;
|
|
180
181
|
declare const focusFirst$3: () => Promise<void>;
|
|
181
182
|
declare const focusIndex$1: (index: number) => Promise<void>;
|
|
182
183
|
declare const focusLast$3: () => Promise<void>;
|
|
@@ -204,7 +205,7 @@ declare const closeOthers: () => Promise<void>;
|
|
|
204
205
|
declare const closeActiveEditor: () => Promise<void>;
|
|
205
206
|
declare const focusFirst$4: () => Promise<void>;
|
|
206
207
|
declare const focusNext$6: () => Promise<void>;
|
|
207
|
-
declare const focusPrevious$
|
|
208
|
+
declare const focusPrevious$5: () => Promise<void>;
|
|
208
209
|
declare const focusLast$4: () => Promise<void>;
|
|
209
210
|
declare const show$1: () => Promise<void>;
|
|
210
211
|
declare const handleFilterInput: (text: string) => Promise<void>;
|
|
@@ -232,7 +233,7 @@ declare const focusNext$7: () => Promise<void>;
|
|
|
232
233
|
declare const focusFirst$5: () => Promise<void>;
|
|
233
234
|
declare const focusLast$5: () => Promise<void>;
|
|
234
235
|
declare const focusIndex$3: (index: number) => Promise<void>;
|
|
235
|
-
declare const focusPrevious$
|
|
236
|
+
declare const focusPrevious$6: () => Promise<void>;
|
|
236
237
|
declare const selectItem$1: (label: string) => Promise<void>;
|
|
237
238
|
declare const selectIndex$3: (index: number) => Promise<void>;
|
|
238
239
|
declare const selectCurrentIndex$2: () => Promise<void>;
|
|
@@ -264,7 +265,7 @@ declare const focusNext$8: () => Promise<void>;
|
|
|
264
265
|
declare const handleWheel$2: (deltaMode: number, deltaY: number) => Promise<void>;
|
|
265
266
|
declare const focusNextPage: () => Promise<void>;
|
|
266
267
|
declare const focusPreviousPage: () => Promise<void>;
|
|
267
|
-
declare const focusPrevious$
|
|
268
|
+
declare const focusPrevious$7: () => Promise<void>;
|
|
268
269
|
declare const toggleSearchDetails: () => Promise<void>;
|
|
269
270
|
declare const toggleMatchCase: () => Promise<void>;
|
|
270
271
|
declare const toggleMatchWholeWord: () => Promise<void>;
|
|
@@ -295,7 +296,7 @@ declare const focusFirst$7: () => Promise<void>;
|
|
|
295
296
|
declare const focusIndex$5: (index: number) => Promise<void>;
|
|
296
297
|
declare const focusLast$6: () => Promise<void>;
|
|
297
298
|
declare const focusNext$9: () => Promise<void>;
|
|
298
|
-
declare const focusPrevious$
|
|
299
|
+
declare const focusPrevious$8: () => Promise<void>;
|
|
299
300
|
declare const handleKeyArrowDown: () => Promise<void>;
|
|
300
301
|
declare const handleKeyArrowLeft: () => Promise<void>;
|
|
301
302
|
declare const handleKeyArrowRight: () => Promise<void>;
|
|
@@ -361,22 +362,22 @@ declare namespace FileSystem {
|
|
|
361
362
|
export { chmod, createExecutable, createExecutableFrom, getTmpDir, mkdir, readFile, remove, writeFile, writeJson };
|
|
362
363
|
}
|
|
363
364
|
declare namespace FindWidget {
|
|
364
|
-
export { focusNext$3 as focusNext, setValue };
|
|
365
|
+
export { focusNext$3 as focusNext, focusPrevious$2 as focusPrevious, setValue };
|
|
365
366
|
}
|
|
366
367
|
declare namespace IconTheme {
|
|
367
368
|
export { setIconTheme };
|
|
368
369
|
}
|
|
369
370
|
declare namespace IframeInspector {
|
|
370
|
-
export { focusFirst$2 as focusFirst, focusLast$2 as focusLast, focusNext$4 as focusNext, focusPrevious$
|
|
371
|
+
export { focusFirst$2 as focusFirst, focusLast$2 as focusLast, focusNext$4 as focusNext, focusPrevious$3 as focusPrevious, selectIndex$2 as selectIndex };
|
|
371
372
|
}
|
|
372
373
|
declare namespace KeyBindingsEditor {
|
|
373
|
-
export { addKeyBinding, changeWhenExpression, clearInput, copyCommandId, copyCommandTitle, focusFirst$3 as focusFirst, focusIndex$1 as focusIndex, focusLast$3 as focusLast, focusNext$5 as focusNext, focusPrevious$
|
|
374
|
+
export { addKeyBinding, changeWhenExpression, clearInput, copyCommandId, copyCommandTitle, focusFirst$3 as focusFirst, focusIndex$1 as focusIndex, focusLast$3 as focusLast, focusNext$5 as focusNext, focusPrevious$4 as focusPrevious, handleClick$2 as handleClick, handleContextMenu$1 as handleContextMenu, handleDoubleClick, handleInput, handleWheel$1 as handleWheel, open$1 as open, removeKeyBinding, resetKeyBinding, showSameKeyBindings, sortByPrecedence, startRecordingKeys, stopRecordingKeys, toggleRecordingKeys };
|
|
374
375
|
}
|
|
375
376
|
declare namespace KeyBoard {
|
|
376
377
|
export { press };
|
|
377
378
|
}
|
|
378
379
|
declare namespace Main {
|
|
379
|
-
export { closeActiveEditor, closeAllEditors, closeOthers, closeTabsLeft, closeTabsRight, focusFirst$4 as focusFirst, focusLast$4 as focusLast, focusNext$6 as focusNext, focusPrevious$
|
|
380
|
+
export { closeActiveEditor, closeAllEditors, closeOthers, closeTabsLeft, closeTabsRight, focusFirst$4 as focusFirst, focusLast$4 as focusLast, focusNext$6 as focusNext, focusPrevious$5 as focusPrevious, openKeyBindings, openUri, splitRight };
|
|
380
381
|
}
|
|
381
382
|
declare namespace Output {
|
|
382
383
|
export { clear, handleFilterInput, selectChannel, show$1 as show };
|
|
@@ -391,7 +392,7 @@ declare namespace Problems {
|
|
|
391
392
|
export { copyMessage, focusIndex$2 as focusIndex, handleArrowLeft$1 as handleArrowLeft, handleArrowRight, handleClickAt$1 as handleClickAt, handleFilterInput$1 as handleFilterInput, handleIconThemeChange, show$2 as show, viewAsList, viewAsTable };
|
|
392
393
|
}
|
|
393
394
|
declare namespace QuickPick {
|
|
394
|
-
export { executeCommand, focusFirst$5 as focusFirst, focusIndex$3 as focusIndex, focusLast$5 as focusLast, focusNext$7 as focusNext, focusPrevious$
|
|
395
|
+
export { executeCommand, focusFirst$5 as focusFirst, focusIndex$3 as focusIndex, focusLast$5 as focusLast, focusNext$7 as focusNext, focusPrevious$6 as focusPrevious, handleClickAt$2 as handleClickAt, handleInput$1 as handleInput, open$3 as open, selectCurrentIndex$2 as selectCurrentIndex, selectIndex$3 as selectIndex, selectItem$1 as selectItem, setValue$1 as setValue };
|
|
395
396
|
}
|
|
396
397
|
declare namespace References {
|
|
397
398
|
export { clear$1 as clear, collapseAll, refresh$1 as refresh };
|
|
@@ -400,7 +401,7 @@ declare namespace RunAndDebug {
|
|
|
400
401
|
export { acceptWatchExpressionEdit, addWatchExpression, handleClickSectionWatch, handleRename, handleSpace, handleWatchValueChange, selectIndex$4 as selectIndex, setPauseOnExceptions };
|
|
401
402
|
}
|
|
402
403
|
declare namespace Search {
|
|
403
|
-
export { clearSearchResults, collapseDetails, dismissItem, focusFirst$6 as focusFirst, focusIndex$4 as focusIndex, focusNext$8 as focusNext, focusNextPage, focusPrevious$
|
|
404
|
+
export { clearSearchResults, collapseDetails, dismissItem, focusFirst$6 as focusFirst, focusIndex$4 as focusIndex, focusNext$8 as focusNext, focusNextPage, focusPrevious$7 as focusPrevious, focusPreviousPage, handleWheel$2 as handleWheel, openDetails, replaceAll, selectIndex$5 as selectIndex, setExcludeValue, setIncludeValue, setReplaceValue, setValue$2 as setValue, toggleMatchCase, toggleMatchWholeWord, togglePreserveCase, toggleReplace, toggleSearchDetails, toggleUseRegularExpression };
|
|
404
405
|
}
|
|
405
406
|
declare namespace Settings {
|
|
406
407
|
export { update };
|
|
@@ -418,7 +419,7 @@ declare namespace StatusBar {
|
|
|
418
419
|
export { update$1 as update };
|
|
419
420
|
}
|
|
420
421
|
declare namespace TitleBarMenuBar {
|
|
421
|
-
export { closeMenu, focus$2 as focus, focusFirst$7 as focusFirst, focusIndex$5 as focusIndex, focusLast$6 as focusLast, focusNext$9 as focusNext, focusPrevious$
|
|
422
|
+
export { closeMenu, focus$2 as focus, focusFirst$7 as focusFirst, focusIndex$5 as focusIndex, focusLast$6 as focusLast, focusNext$9 as focusNext, focusPrevious$8 as focusPrevious, handleKeyArrowDown, handleKeyArrowLeft, handleKeyArrowRight, handleKeyArrowUp, handleKeyEnd, handleKeyEscape, handleKeyHome, handleKeySpace, toggleIndex, toggleMenu };
|
|
422
423
|
}
|
|
423
424
|
declare namespace Url {
|
|
424
425
|
export { resolve, setUrl };
|
package/dist/testWorkerMain.js
CHANGED
|
@@ -1626,14 +1626,14 @@ const handleClickCopy = async () => {
|
|
|
1626
1626
|
const focusNext$9 = async () => {
|
|
1627
1627
|
return invoke$1('About.focusNext');
|
|
1628
1628
|
};
|
|
1629
|
-
const focusPrevious$
|
|
1629
|
+
const focusPrevious$8 = async () => {
|
|
1630
1630
|
return invoke$1('About.focusPrevious');
|
|
1631
1631
|
};
|
|
1632
1632
|
|
|
1633
1633
|
const TestFrameWorkComponentAbout = {
|
|
1634
1634
|
__proto__: null,
|
|
1635
1635
|
focusNext: focusNext$9,
|
|
1636
|
-
focusPrevious: focusPrevious$
|
|
1636
|
+
focusPrevious: focusPrevious$8,
|
|
1637
1637
|
handleClickClose,
|
|
1638
1638
|
handleClickCopy,
|
|
1639
1639
|
handleClickOk,
|
|
@@ -1652,7 +1652,7 @@ const focusLast$6 = async () => {
|
|
|
1652
1652
|
const focusNext$8 = async () => {
|
|
1653
1653
|
await invoke$1('ActivityBar.focusNext');
|
|
1654
1654
|
};
|
|
1655
|
-
const focusPrevious$
|
|
1655
|
+
const focusPrevious$7 = async () => {
|
|
1656
1656
|
await invoke$1('ActivityBar.focusPrevious');
|
|
1657
1657
|
};
|
|
1658
1658
|
const handleClick$2 = async index => {
|
|
@@ -1671,7 +1671,7 @@ const TestFrameworkComponentActivityBar = {
|
|
|
1671
1671
|
focusFirst: focusFirst$7,
|
|
1672
1672
|
focusLast: focusLast$6,
|
|
1673
1673
|
focusNext: focusNext$8,
|
|
1674
|
-
focusPrevious: focusPrevious$
|
|
1674
|
+
focusPrevious: focusPrevious$7,
|
|
1675
1675
|
handleClick: handleClick$2,
|
|
1676
1676
|
handleContextMenu: handleContextMenu$1,
|
|
1677
1677
|
selectCurrent
|
|
@@ -1833,9 +1833,9 @@ const registerMock = fn => {
|
|
|
1833
1833
|
mocks[id] = fn;
|
|
1834
1834
|
return id;
|
|
1835
1835
|
};
|
|
1836
|
-
const executeMock$1 = id => {
|
|
1836
|
+
const executeMock$1 = (id, ...args) => {
|
|
1837
1837
|
const fn = mocks[id];
|
|
1838
|
-
return fn();
|
|
1838
|
+
return fn(...args);
|
|
1839
1839
|
};
|
|
1840
1840
|
|
|
1841
1841
|
const showSaveFilePicker = async () => {
|
|
@@ -1852,8 +1852,8 @@ const mockConfirm = async fn => {
|
|
|
1852
1852
|
// @ts-ignore
|
|
1853
1853
|
await invoke$1('ConfirmPrompt.mock', id);
|
|
1854
1854
|
};
|
|
1855
|
-
const executeMock = id => {
|
|
1856
|
-
return executeMock$1(id);
|
|
1855
|
+
const executeMock = (id, ...args) => {
|
|
1856
|
+
return executeMock$1(id, ...args);
|
|
1857
1857
|
};
|
|
1858
1858
|
|
|
1859
1859
|
const TestFrameWorkComponentDialog = {
|
|
@@ -2538,13 +2538,19 @@ const TestFrameWorkComponentFileSystem = {
|
|
|
2538
2538
|
const focusNext$6 = async () => {
|
|
2539
2539
|
await invoke$1('FindWidget.focusNext');
|
|
2540
2540
|
};
|
|
2541
|
+
const focusPrevious$6 = async () => {
|
|
2542
|
+
// @ts-ignore
|
|
2543
|
+
await invoke$1('FindWidget.focusPrevious');
|
|
2544
|
+
};
|
|
2541
2545
|
const setValue$2 = async value => {
|
|
2542
|
-
|
|
2546
|
+
// @ts-ignore
|
|
2547
|
+
await invoke$1('FindWidget.handleInput', value, Script);
|
|
2543
2548
|
};
|
|
2544
2549
|
|
|
2545
2550
|
const TestFrameWorkComponentFindWidget = {
|
|
2546
2551
|
__proto__: null,
|
|
2547
2552
|
focusNext: focusNext$6,
|
|
2553
|
+
focusPrevious: focusPrevious$6,
|
|
2548
2554
|
setValue: setValue$2
|
|
2549
2555
|
};
|
|
2550
2556
|
|