@lvce-editor/test-worker 4.28.0 → 4.30.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 +29 -10
- package/dist/testWorkerMain.js +108 -13
- package/package.json +1 -1
package/dist/api.d.ts
CHANGED
|
@@ -91,6 +91,7 @@ declare const handleInputBlur: () => Promise<void>;
|
|
|
91
91
|
declare const focus$1: () => Promise<void>;
|
|
92
92
|
declare const focusNext$2: () => Promise<void>;
|
|
93
93
|
declare const selectUp: () => Promise<void>;
|
|
94
|
+
declare const handleDragOverIndex: (index: number) => Promise<void>;
|
|
94
95
|
declare const selectDown: () => Promise<void>;
|
|
95
96
|
declare const refresh: () => Promise<void>;
|
|
96
97
|
declare const focusIndex: (index: number) => Promise<void>;
|
|
@@ -117,11 +118,20 @@ declare const handleCut: () => Promise<void>;
|
|
|
117
118
|
declare const handleCopy: () => Promise<void>;
|
|
118
119
|
declare const handlePaste: () => Promise<void>;
|
|
119
120
|
declare const selectIndices: (indices: readonly number[]) => Promise<void>;
|
|
121
|
+
declare const toggleIndividualSelection: (index: number) => Promise<void>;
|
|
120
122
|
declare const addWebExtension: (relativePath: string) => Promise<void>;
|
|
121
123
|
declare const addNodeExtension: (relativePath: string) => Promise<void>;
|
|
122
124
|
declare const selectFeature: (name: string) => Promise<void>;
|
|
123
125
|
declare const selectTab: (name: string) => Promise<void>;
|
|
126
|
+
declare const selectDetails: () => Promise<void>;
|
|
127
|
+
declare const selectFeatures: () => Promise<void>;
|
|
128
|
+
declare const selectChangelog: () => Promise<void>;
|
|
124
129
|
declare const open: (extensionId: string) => Promise<void>;
|
|
130
|
+
declare const openFeature: (featureName: string) => Promise<void>;
|
|
131
|
+
declare const openThemes: () => Promise<void>;
|
|
132
|
+
declare const openCommands: () => Promise<void>;
|
|
133
|
+
declare const openWebViews: () => Promise<void>;
|
|
134
|
+
declare const handleScroll: (scrollTop: number) => Promise<void>;
|
|
125
135
|
declare const writeFile: (path: string, content: string) => Promise<void>;
|
|
126
136
|
declare const mkdir: (path: string) => Promise<void>;
|
|
127
137
|
declare const remove: (uri: string) => Promise<void>;
|
|
@@ -178,14 +188,23 @@ declare const open$2: (id: string) => Promise<void>;
|
|
|
178
188
|
declare const getNodePath: () => Promise<string>;
|
|
179
189
|
declare const isFirefox: () => boolean;
|
|
180
190
|
declare const show$1: () => Promise<void>;
|
|
191
|
+
declare const handleFilterInput: (text: string) => Promise<void>;
|
|
192
|
+
declare const copyMessage: () => Promise<void>;
|
|
193
|
+
declare const focusIndex$1: (index: number) => Promise<void>;
|
|
194
|
+
declare const handleArrowLeft$1: () => Promise<void>;
|
|
195
|
+
declare const handleArrowRight: () => Promise<void>;
|
|
196
|
+
declare const handleClickAt$1: (x: number, y: number) => Promise<void>;
|
|
197
|
+
declare const handleIconThemeChange: () => Promise<void>;
|
|
198
|
+
declare const viewAsList: () => Promise<void>;
|
|
199
|
+
declare const viewAsTable: () => Promise<void>;
|
|
181
200
|
declare const open$3: () => Promise<void>;
|
|
182
201
|
declare const handleInput$1: (value: string) => Promise<void>;
|
|
183
|
-
declare const handleClickAt$
|
|
202
|
+
declare const handleClickAt$2: (x: number, y: number) => Promise<void>;
|
|
184
203
|
declare const setValue$1: (value: string) => Promise<void>;
|
|
185
204
|
declare const focusNext$7: () => Promise<void>;
|
|
186
205
|
declare const focusFirst$5: () => Promise<void>;
|
|
187
206
|
declare const focusLast$5: () => Promise<void>;
|
|
188
|
-
declare const focusIndex$
|
|
207
|
+
declare const focusIndex$2: (index: number) => Promise<void>;
|
|
189
208
|
declare const focusPrevious$5: () => Promise<void>;
|
|
190
209
|
declare const selectItem$1: (label: string) => Promise<void>;
|
|
191
210
|
declare const selectIndex$2: (index: number) => Promise<void>;
|
|
@@ -209,7 +228,7 @@ declare const openDetails: () => Promise<void>;
|
|
|
209
228
|
declare const collapseDetails: () => Promise<void>;
|
|
210
229
|
declare const dismissItem: () => Promise<void>;
|
|
211
230
|
declare const focusFirst$6: () => Promise<void>;
|
|
212
|
-
declare const focusIndex$
|
|
231
|
+
declare const focusIndex$3: (index: number) => Promise<void>;
|
|
213
232
|
declare const selectIndex$4: (index: number) => Promise<void>;
|
|
214
233
|
declare const focusNext$8: () => Promise<void>;
|
|
215
234
|
declare const handleWheel$1: (deltaMode: number, deltaY: number) => Promise<void>;
|
|
@@ -233,7 +252,7 @@ declare const update$1: () => Promise<void>;
|
|
|
233
252
|
declare const closeMenu: () => Promise<void>;
|
|
234
253
|
declare const focus$2: () => Promise<void>;
|
|
235
254
|
declare const focusFirst$7: () => Promise<void>;
|
|
236
|
-
declare const focusIndex$
|
|
255
|
+
declare const focusIndex$4: (index: number) => Promise<void>;
|
|
237
256
|
declare const focusLast$6: () => Promise<void>;
|
|
238
257
|
declare const focusNext$9: () => Promise<void>;
|
|
239
258
|
declare const focusPrevious$7: () => Promise<void>;
|
|
@@ -284,13 +303,13 @@ declare namespace EditorCompletion {
|
|
|
284
303
|
export { selectCurrentIndex, selectIndex };
|
|
285
304
|
}
|
|
286
305
|
declare namespace Explorer {
|
|
287
|
-
export { acceptEdit, cancelEdit, clickCurrent, expandAll, expandRecursively, focus$1 as focus, focusFirst$1 as focusFirst, focusIndex, focusLast$1 as focusLast, focusNext$2 as focusNext, handleArrowLeft, handleBlur, handleClick$1 as handleClick, handleClickAt, handleCopy, handleCut, handleDragLeave, handleDragOver, handleDrop, handleInputBlur, handlePaste, newFile, newFolder, openContextMenu$1 as openContextMenu, refresh, removeDirent, rename$1 as rename, renameDirent, selectAll$1 as selectAll, selectDown, selectIndices, selectUp, updateEditingValue };
|
|
306
|
+
export { acceptEdit, cancelEdit, clickCurrent, expandAll, expandRecursively, focus$1 as focus, focusFirst$1 as focusFirst, focusIndex, focusLast$1 as focusLast, focusNext$2 as focusNext, handleArrowLeft, handleBlur, handleClick$1 as handleClick, handleClickAt, handleCopy, handleCut, handleDragLeave, handleDragOver, handleDragOverIndex, handleDrop, handleInputBlur, handlePaste, newFile, newFolder, openContextMenu$1 as openContextMenu, refresh, removeDirent, rename$1 as rename, renameDirent, selectAll$1 as selectAll, selectDown, selectIndices, selectUp, toggleIndividualSelection, updateEditingValue };
|
|
288
307
|
}
|
|
289
308
|
declare namespace Extension {
|
|
290
309
|
export { addNodeExtension, addWebExtension };
|
|
291
310
|
}
|
|
292
311
|
declare namespace ExtensionDetail {
|
|
293
|
-
export { open, selectFeature, selectTab };
|
|
312
|
+
export { handleScroll, open, openCommands, openFeature, openThemes, openWebViews, selectChangelog, selectDetails, selectFeature, selectFeatures, selectTab };
|
|
294
313
|
}
|
|
295
314
|
declare namespace FileSystem {
|
|
296
315
|
export { chmod, createExecutable, createExecutableFrom, getTmpDir, mkdir, remove, writeFile };
|
|
@@ -320,16 +339,16 @@ declare namespace Platform {
|
|
|
320
339
|
export { getNodePath, isFirefox };
|
|
321
340
|
}
|
|
322
341
|
declare namespace Problems {
|
|
323
|
-
export { show$1 as show };
|
|
342
|
+
export { copyMessage, focusIndex$1 as focusIndex, handleArrowLeft$1 as handleArrowLeft, handleArrowRight, handleClickAt$1 as handleClickAt, handleFilterInput, handleIconThemeChange, show$1 as show, viewAsList, viewAsTable };
|
|
324
343
|
}
|
|
325
344
|
declare namespace QuickPick {
|
|
326
|
-
export { executeCommand, focusFirst$5 as focusFirst, focusIndex$
|
|
345
|
+
export { executeCommand, focusFirst$5 as focusFirst, focusIndex$2 as focusIndex, focusLast$5 as focusLast, focusNext$7 as focusNext, focusPrevious$5 as focusPrevious, handleClickAt$2 as handleClickAt, handleInput$1 as handleInput, open$3 as open, selectCurrentIndex$1 as selectCurrentIndex, selectIndex$2 as selectIndex, selectItem$1 as selectItem, setValue$1 as setValue };
|
|
327
346
|
}
|
|
328
347
|
declare namespace RunAndDebug {
|
|
329
348
|
export { acceptWatchExpressionEdit, addWatchExpression, handleClickSectionWatch, handleRename, handleSpace, handleWatchValueChange, selectIndex$3 as selectIndex, setPauseOnExceptions };
|
|
330
349
|
}
|
|
331
350
|
declare namespace Search {
|
|
332
|
-
export { clearSearchResults, collapseDetails, dismissItem, focusFirst$6 as focusFirst, focusIndex$
|
|
351
|
+
export { clearSearchResults, collapseDetails, dismissItem, focusFirst$6 as focusFirst, focusIndex$3 as focusIndex, focusNext$8 as focusNext, focusNextPage, focusPrevious$6 as focusPrevious, focusPreviousPage, handleWheel$1 as handleWheel, openDetails, replaceAll, selectIndex$4 as selectIndex, setExcludeValue, setIncludeValue, setReplaceValue, setValue$2 as setValue, toggleMatchCase, toggleMatchWholeWord, togglePreserveCase, toggleReplace, toggleSearchDetails, toggleUseRegularExpression };
|
|
333
352
|
}
|
|
334
353
|
declare namespace Settings {
|
|
335
354
|
export { update };
|
|
@@ -344,7 +363,7 @@ declare namespace StatusBar {
|
|
|
344
363
|
export { update$1 as update };
|
|
345
364
|
}
|
|
346
365
|
declare namespace TitleBarMenuBar {
|
|
347
|
-
export { closeMenu, focus$2 as focus, focusFirst$7 as focusFirst, focusIndex$
|
|
366
|
+
export { closeMenu, focus$2 as focus, focusFirst$7 as focusFirst, focusIndex$4 as focusIndex, focusLast$6 as focusLast, focusNext$9 as focusNext, focusPrevious$7 as focusPrevious, handleKeyArrowDown, handleKeyArrowLeft, handleKeyArrowRight, handleKeyArrowUp, handleKeyEnd, handleKeyEscape, handleKeyHome, handleKeySpace, toggleIndex, toggleMenu };
|
|
348
367
|
}
|
|
349
368
|
declare namespace Url {
|
|
350
369
|
export { resolve, setUrl };
|
package/dist/testWorkerMain.js
CHANGED
|
@@ -958,7 +958,7 @@ const listen$1 = async (module, options) => {
|
|
|
958
958
|
const ipc = module.wrap(rawIpc);
|
|
959
959
|
return ipc;
|
|
960
960
|
};
|
|
961
|
-
const create$
|
|
961
|
+
const create$d = async ({
|
|
962
962
|
commandMap,
|
|
963
963
|
messagePort,
|
|
964
964
|
isMessagePortOpen
|
|
@@ -976,7 +976,7 @@ const create$a = async ({
|
|
|
976
976
|
};
|
|
977
977
|
const MessagePortRpcParent = {
|
|
978
978
|
__proto__: null,
|
|
979
|
-
create: create$
|
|
979
|
+
create: create$d
|
|
980
980
|
};
|
|
981
981
|
const create$2 = async ({
|
|
982
982
|
commandMap
|
|
@@ -1045,15 +1045,14 @@ const create$1 = rpcId => {
|
|
|
1045
1045
|
};
|
|
1046
1046
|
const RendererWorker$1 = 1;
|
|
1047
1047
|
const {
|
|
1048
|
-
invoke: invoke$
|
|
1048
|
+
invoke: invoke$3,
|
|
1049
1049
|
invokeAndTransfer: invokeAndTransfer$3,
|
|
1050
1050
|
set: set$3} = create$1(RendererWorker$1);
|
|
1051
1051
|
const RendererWorker = {
|
|
1052
1052
|
__proto__: null,
|
|
1053
|
-
invoke: invoke$
|
|
1053
|
+
invoke: invoke$3,
|
|
1054
1054
|
invokeAndTransfer: invokeAndTransfer$3,
|
|
1055
|
-
set: set$3
|
|
1056
|
-
};
|
|
1055
|
+
set: set$3};
|
|
1057
1056
|
|
|
1058
1057
|
const {
|
|
1059
1058
|
set: set$1,
|
|
@@ -1386,6 +1385,13 @@ const expect$1 = locator => {
|
|
|
1386
1385
|
value
|
|
1387
1386
|
});
|
|
1388
1387
|
},
|
|
1388
|
+
async toHaveJSProperty(key, value) {
|
|
1389
|
+
string(key, 'key must be of type string');
|
|
1390
|
+
return this.checkSingleElementCondition('toHaveJSProperty', {
|
|
1391
|
+
key,
|
|
1392
|
+
value
|
|
1393
|
+
});
|
|
1394
|
+
},
|
|
1389
1395
|
async toHaveClass(className) {
|
|
1390
1396
|
string(className, 'className must be of type string');
|
|
1391
1397
|
return this.checkSingleElementCondition('toHaveClass', {
|
|
@@ -2020,19 +2026,23 @@ const focusNext$7 = async () => {
|
|
|
2020
2026
|
const selectUp = async () => {
|
|
2021
2027
|
await invoke('Explorer.selectUp');
|
|
2022
2028
|
};
|
|
2029
|
+
const handleDragOverIndex = async index => {
|
|
2030
|
+
// @ts-ignore
|
|
2031
|
+
await invoke('Explorer.handleDragOverIndex', index);
|
|
2032
|
+
};
|
|
2023
2033
|
const selectDown = async () => {
|
|
2024
2034
|
await invoke('Explorer.selectDown');
|
|
2025
2035
|
};
|
|
2026
2036
|
const refresh = async () => {
|
|
2027
2037
|
await invoke('Explorer.refresh');
|
|
2028
2038
|
};
|
|
2029
|
-
const focusIndex$
|
|
2039
|
+
const focusIndex$4 = async index => {
|
|
2030
2040
|
await invoke('Explorer.focusIndex', index);
|
|
2031
2041
|
};
|
|
2032
2042
|
const clickCurrent = async () => {
|
|
2033
2043
|
await invoke('Explorer.handleClickCurrent');
|
|
2034
2044
|
};
|
|
2035
|
-
const handleArrowLeft = async () => {
|
|
2045
|
+
const handleArrowLeft$1 = async () => {
|
|
2036
2046
|
await invoke('Explorer.handleArrowLeft');
|
|
2037
2047
|
};
|
|
2038
2048
|
const focusLast$5 = async () => {
|
|
@@ -2056,7 +2066,7 @@ const newFolder = async () => {
|
|
|
2056
2066
|
const handleClick$1 = async index => {
|
|
2057
2067
|
await invoke('Explorer.handleClick', index);
|
|
2058
2068
|
};
|
|
2059
|
-
const handleClickAt$
|
|
2069
|
+
const handleClickAt$2 = async (preventDefault, button, ctrlKey, shiftKey, x, y) => {
|
|
2060
2070
|
// @ts-ignore
|
|
2061
2071
|
await invoke('Explorer.handleClickAt', preventDefault, button, ctrlKey, shiftKey, x, y);
|
|
2062
2072
|
};
|
|
@@ -2103,6 +2113,10 @@ const handlePaste = async () => {
|
|
|
2103
2113
|
const selectIndices = async indices => {
|
|
2104
2114
|
await invoke('Explorer.selectIndices', indices);
|
|
2105
2115
|
};
|
|
2116
|
+
const toggleIndividualSelection = async index => {
|
|
2117
|
+
// @ts-ignore
|
|
2118
|
+
await invoke('Explorer.toggleIndividualSelection', index);
|
|
2119
|
+
};
|
|
2106
2120
|
|
|
2107
2121
|
const TestFrameWorkComponentExplorer = {
|
|
2108
2122
|
__proto__: null,
|
|
@@ -2113,17 +2127,18 @@ const TestFrameWorkComponentExplorer = {
|
|
|
2113
2127
|
expandRecursively,
|
|
2114
2128
|
focus: focus$1,
|
|
2115
2129
|
focusFirst: focusFirst$6,
|
|
2116
|
-
focusIndex: focusIndex$
|
|
2130
|
+
focusIndex: focusIndex$4,
|
|
2117
2131
|
focusLast: focusLast$5,
|
|
2118
2132
|
focusNext: focusNext$7,
|
|
2119
|
-
handleArrowLeft,
|
|
2133
|
+
handleArrowLeft: handleArrowLeft$1,
|
|
2120
2134
|
handleBlur,
|
|
2121
2135
|
handleClick: handleClick$1,
|
|
2122
|
-
handleClickAt: handleClickAt$
|
|
2136
|
+
handleClickAt: handleClickAt$2,
|
|
2123
2137
|
handleCopy,
|
|
2124
2138
|
handleCut,
|
|
2125
2139
|
handleDragLeave,
|
|
2126
2140
|
handleDragOver,
|
|
2141
|
+
handleDragOverIndex,
|
|
2127
2142
|
handleDrop,
|
|
2128
2143
|
handleInputBlur,
|
|
2129
2144
|
handlePaste,
|
|
@@ -2138,6 +2153,7 @@ const TestFrameWorkComponentExplorer = {
|
|
|
2138
2153
|
selectDown,
|
|
2139
2154
|
selectIndices,
|
|
2140
2155
|
selectUp,
|
|
2156
|
+
toggleIndividualSelection,
|
|
2141
2157
|
updateEditingValue
|
|
2142
2158
|
};
|
|
2143
2159
|
|
|
@@ -2164,15 +2180,49 @@ const selectFeature = name => {
|
|
|
2164
2180
|
const selectTab = name => {
|
|
2165
2181
|
return invoke('ExtensionDetail.selectTab', name);
|
|
2166
2182
|
};
|
|
2183
|
+
const selectDetails = async () => {
|
|
2184
|
+
await selectTab('Details');
|
|
2185
|
+
};
|
|
2186
|
+
const selectFeatures = async () => {
|
|
2187
|
+
await selectTab('Features');
|
|
2188
|
+
};
|
|
2189
|
+
const selectChangelog = async () => {
|
|
2190
|
+
await selectTab('Changelog');
|
|
2191
|
+
};
|
|
2167
2192
|
const open$4 = extensionId => {
|
|
2168
2193
|
const uri = `extension-detail://${extensionId}`;
|
|
2169
2194
|
return invoke('Main.openUri', uri);
|
|
2170
2195
|
};
|
|
2196
|
+
const openFeature = featureName => {
|
|
2197
|
+
// @ts-ignore
|
|
2198
|
+
return invoke('ExtensionDetail.handleFeaturesClick', featureName);
|
|
2199
|
+
};
|
|
2200
|
+
const openThemes = async () => {
|
|
2201
|
+
await openFeature('Themes');
|
|
2202
|
+
};
|
|
2203
|
+
const openCommands = async () => {
|
|
2204
|
+
await openFeature('Commands');
|
|
2205
|
+
};
|
|
2206
|
+
const openWebViews = async () => {
|
|
2207
|
+
await openFeature('WebView');
|
|
2208
|
+
};
|
|
2209
|
+
const handleScroll = async scrollTop => {
|
|
2210
|
+
// @ts-ignore
|
|
2211
|
+
return invoke('ExtensionDetail.handleScroll', scrollTop);
|
|
2212
|
+
};
|
|
2171
2213
|
|
|
2172
2214
|
const TestFrameWorkComponentExtensionDetail = {
|
|
2173
2215
|
__proto__: null,
|
|
2216
|
+
handleScroll,
|
|
2174
2217
|
open: open$4,
|
|
2218
|
+
openCommands,
|
|
2219
|
+
openFeature,
|
|
2220
|
+
openThemes,
|
|
2221
|
+
openWebViews,
|
|
2222
|
+
selectChangelog,
|
|
2223
|
+
selectDetails,
|
|
2175
2224
|
selectFeature,
|
|
2225
|
+
selectFeatures,
|
|
2176
2226
|
selectTab
|
|
2177
2227
|
};
|
|
2178
2228
|
|
|
@@ -2544,10 +2594,55 @@ const show = async () => {
|
|
|
2544
2594
|
// @ts-ignore
|
|
2545
2595
|
await invoke('Panel.selectIndex', 0);
|
|
2546
2596
|
};
|
|
2597
|
+
const handleFilterInput = async text => {
|
|
2598
|
+
// @ts-ignore
|
|
2599
|
+
await invoke('Problems.handleFilterInput', text);
|
|
2600
|
+
};
|
|
2601
|
+
const copyMessage = async () => {
|
|
2602
|
+
// @ts-ignore
|
|
2603
|
+
await invoke('Problems.copyMessage');
|
|
2604
|
+
};
|
|
2605
|
+
const focusIndex$3 = async index => {
|
|
2606
|
+
// @ts-ignore
|
|
2607
|
+
await invoke('Problems.focusIndex', index);
|
|
2608
|
+
};
|
|
2609
|
+
const handleArrowLeft = async () => {
|
|
2610
|
+
// @ts-ignore
|
|
2611
|
+
await invoke('Problems.handleArrowLeft');
|
|
2612
|
+
};
|
|
2613
|
+
const handleArrowRight = async () => {
|
|
2614
|
+
// @ts-ignore
|
|
2615
|
+
await invoke('Problems.handleArrowRight');
|
|
2616
|
+
};
|
|
2617
|
+
const handleClickAt$1 = async (x, y) => {
|
|
2618
|
+
// @ts-ignore
|
|
2619
|
+
await invoke('Problems.handleClickAt', x, y);
|
|
2620
|
+
};
|
|
2621
|
+
const handleIconThemeChange = async () => {
|
|
2622
|
+
// @ts-ignore
|
|
2623
|
+
await invoke('Problems.handleIconThemeChange');
|
|
2624
|
+
};
|
|
2625
|
+
const viewAsList = async () => {
|
|
2626
|
+
// @ts-ignore
|
|
2627
|
+
await invoke('Problems.viewAsList');
|
|
2628
|
+
};
|
|
2629
|
+
const viewAsTable = async () => {
|
|
2630
|
+
// @ts-ignore
|
|
2631
|
+
await invoke('Problems.viewAsTable');
|
|
2632
|
+
};
|
|
2547
2633
|
|
|
2548
2634
|
const TestFrameWorkComponentProblems = {
|
|
2549
2635
|
__proto__: null,
|
|
2550
|
-
|
|
2636
|
+
copyMessage,
|
|
2637
|
+
focusIndex: focusIndex$3,
|
|
2638
|
+
handleArrowLeft,
|
|
2639
|
+
handleArrowRight,
|
|
2640
|
+
handleClickAt: handleClickAt$1,
|
|
2641
|
+
handleFilterInput,
|
|
2642
|
+
handleIconThemeChange,
|
|
2643
|
+
show,
|
|
2644
|
+
viewAsList,
|
|
2645
|
+
viewAsTable
|
|
2551
2646
|
};
|
|
2552
2647
|
|
|
2553
2648
|
const QuickPick = 'QuickPick';
|