@lvce-editor/test-worker 4.31.0 → 4.33.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 +16 -2
- package/dist/testWorkerMain.js +84 -15
- package/package.json +1 -1
package/dist/api.d.ts
CHANGED
|
@@ -245,11 +245,21 @@ declare const togglePreserveCase: () => Promise<void>;
|
|
|
245
245
|
declare const toggleUseRegularExpression: () => Promise<void>;
|
|
246
246
|
declare const toggleReplace: () => Promise<void>;
|
|
247
247
|
declare const update: (settings: any) => Promise<void>;
|
|
248
|
+
declare const show$2: () => Promise<void>;
|
|
249
|
+
declare const handleInput$2: (searchValue: string) => Promise<void>;
|
|
250
|
+
declare const usePreviousSearchValue: () => Promise<void>;
|
|
251
|
+
declare const useNextSearchValue: () => Promise<void>;
|
|
252
|
+
declare const clear: (searchValue: string) => Promise<void>;
|
|
253
|
+
declare const selectTab$1: (tabId: string) => Promise<void>;
|
|
254
|
+
declare const selectWorkspace: () => Promise<void>;
|
|
255
|
+
declare const selectTextEditor: () => Promise<void>;
|
|
256
|
+
declare const selectExtensions: () => Promise<void>;
|
|
257
|
+
declare const handleScroll$1: (scrollTop: number) => Promise<void>;
|
|
248
258
|
declare const open$4: (id: string) => Promise<void>;
|
|
249
259
|
declare const hide: () => Promise<void>;
|
|
250
260
|
declare const selectIndex$5: (index: number) => Promise<void>;
|
|
251
261
|
declare const acceptInput: () => Promise<void>;
|
|
252
|
-
declare const handleInput$
|
|
262
|
+
declare const handleInput$3: (text: string) => Promise<void>;
|
|
253
263
|
declare const handleClickSourceControlButtons: (index: number, name: string) => Promise<void>;
|
|
254
264
|
declare const update$1: () => Promise<void>;
|
|
255
265
|
declare const closeMenu: () => Promise<void>;
|
|
@@ -356,11 +366,14 @@ declare namespace Search {
|
|
|
356
366
|
declare namespace Settings {
|
|
357
367
|
export { update };
|
|
358
368
|
}
|
|
369
|
+
declare namespace SettingsView {
|
|
370
|
+
export { clear, handleInput$2 as handleInput, handleScroll$1 as handleScroll, selectExtensions, selectTab$1 as selectTab, selectTextEditor, selectWorkspace, show$2 as show, useNextSearchValue, usePreviousSearchValue };
|
|
371
|
+
}
|
|
359
372
|
declare namespace SideBar {
|
|
360
373
|
export { hide, open$4 as open };
|
|
361
374
|
}
|
|
362
375
|
declare namespace SourceControl {
|
|
363
|
-
export { acceptInput, handleClickSourceControlButtons, handleInput$
|
|
376
|
+
export { acceptInput, handleClickSourceControlButtons, handleInput$3 as handleInput, selectIndex$5 as selectIndex };
|
|
364
377
|
}
|
|
365
378
|
declare namespace StatusBar {
|
|
366
379
|
export { update$1 as update };
|
|
@@ -402,6 +415,7 @@ export interface TestApi {
|
|
|
402
415
|
readonly RunAndDebug: typeof RunAndDebug,
|
|
403
416
|
readonly Search: typeof Search,
|
|
404
417
|
readonly Settings: typeof Settings,
|
|
418
|
+
readonly SettingsView: typeof SettingsView,
|
|
405
419
|
readonly SideBar: typeof SideBar,
|
|
406
420
|
readonly SourceControl: typeof SourceControl,
|
|
407
421
|
readonly StatusBar: typeof StatusBar,
|
package/dist/testWorkerMain.js
CHANGED
|
@@ -1286,6 +1286,21 @@ const toHaveCss = async (locator, options) => {
|
|
|
1286
1286
|
}
|
|
1287
1287
|
return `expected ${locatorString} to have css ${key} ${value} but was ${actual}`;
|
|
1288
1288
|
};
|
|
1289
|
+
const toHaveJSProperty = async (locator, options) => {
|
|
1290
|
+
const {
|
|
1291
|
+
wasFound,
|
|
1292
|
+
actual
|
|
1293
|
+
} = await locatorInvoke(locator, 'TestFrameWork.checkConditionError', 'toHaveJSProperty', locator, options);
|
|
1294
|
+
const locatorString = printLocator(locator);
|
|
1295
|
+
const {
|
|
1296
|
+
key,
|
|
1297
|
+
value
|
|
1298
|
+
} = options;
|
|
1299
|
+
if (!wasFound) {
|
|
1300
|
+
return `expected ${locatorString} to have js property ${key} ${value} but element was not found`;
|
|
1301
|
+
}
|
|
1302
|
+
return `expected ${locatorString} to have js property ${key} ${value} but was ${actual}`;
|
|
1303
|
+
};
|
|
1289
1304
|
|
|
1290
1305
|
const getFunction = fnName => {
|
|
1291
1306
|
switch (fnName) {
|
|
@@ -1309,6 +1324,8 @@ const getFunction = fnName => {
|
|
|
1309
1324
|
return toHaveCss;
|
|
1310
1325
|
case 'toHaveClass':
|
|
1311
1326
|
return toHaveClass;
|
|
1327
|
+
case 'toHaveJSProperty':
|
|
1328
|
+
return toHaveJSProperty;
|
|
1312
1329
|
default:
|
|
1313
1330
|
throw new Error(`unexpected function name ${fnName}`);
|
|
1314
1331
|
}
|
|
@@ -1562,7 +1579,7 @@ const TestFrameWork = {
|
|
|
1562
1579
|
test
|
|
1563
1580
|
};
|
|
1564
1581
|
|
|
1565
|
-
const show$
|
|
1582
|
+
const show$2 = async () => {
|
|
1566
1583
|
return invoke('About.showAbout');
|
|
1567
1584
|
};
|
|
1568
1585
|
const handleClickOk = async () => {
|
|
@@ -1588,7 +1605,7 @@ const TestFrameWorkComponentAbout = {
|
|
|
1588
1605
|
handleClickClose,
|
|
1589
1606
|
handleClickCopy,
|
|
1590
1607
|
handleClickOk,
|
|
1591
|
-
show: show$
|
|
1608
|
+
show: show$2
|
|
1592
1609
|
};
|
|
1593
1610
|
|
|
1594
1611
|
const focus$2 = async () => {
|
|
@@ -2177,17 +2194,17 @@ const TestFrameWorkComponentExtension = {
|
|
|
2177
2194
|
const selectFeature = name => {
|
|
2178
2195
|
return invoke('ExtensionDetail.selectFeature', name);
|
|
2179
2196
|
};
|
|
2180
|
-
const selectTab = name => {
|
|
2197
|
+
const selectTab$1 = name => {
|
|
2181
2198
|
return invoke('ExtensionDetail.selectTab', name);
|
|
2182
2199
|
};
|
|
2183
2200
|
const selectDetails = async () => {
|
|
2184
|
-
await selectTab('Details');
|
|
2201
|
+
await selectTab$1('Details');
|
|
2185
2202
|
};
|
|
2186
2203
|
const selectFeatures = async () => {
|
|
2187
|
-
await selectTab('Features');
|
|
2204
|
+
await selectTab$1('Features');
|
|
2188
2205
|
};
|
|
2189
2206
|
const selectChangelog = async () => {
|
|
2190
|
-
await selectTab('Changelog');
|
|
2207
|
+
await selectTab$1('Changelog');
|
|
2191
2208
|
};
|
|
2192
2209
|
const open$4 = extensionId => {
|
|
2193
2210
|
const uri = `extension-detail://${extensionId}`;
|
|
@@ -2215,14 +2232,14 @@ const openJsonValidation = async () => {
|
|
|
2215
2232
|
const openSettings = async () => {
|
|
2216
2233
|
await openFeature('Settings');
|
|
2217
2234
|
};
|
|
2218
|
-
const handleScroll = async scrollTop => {
|
|
2235
|
+
const handleScroll$1 = async scrollTop => {
|
|
2219
2236
|
// @ts-ignore
|
|
2220
2237
|
return invoke('ExtensionDetail.handleScroll', scrollTop);
|
|
2221
2238
|
};
|
|
2222
2239
|
|
|
2223
2240
|
const TestFrameWorkComponentExtensionDetail = {
|
|
2224
2241
|
__proto__: null,
|
|
2225
|
-
handleScroll,
|
|
2242
|
+
handleScroll: handleScroll$1,
|
|
2226
2243
|
open: open$4,
|
|
2227
2244
|
openCommands,
|
|
2228
2245
|
openFeature,
|
|
@@ -2235,7 +2252,7 @@ const TestFrameWorkComponentExtensionDetail = {
|
|
|
2235
2252
|
selectDetails,
|
|
2236
2253
|
selectFeature,
|
|
2237
2254
|
selectFeatures,
|
|
2238
|
-
selectTab
|
|
2255
|
+
selectTab: selectTab$1
|
|
2239
2256
|
};
|
|
2240
2257
|
|
|
2241
2258
|
const Memfs = 'memfs';
|
|
@@ -2359,7 +2376,7 @@ const TestFrameWorkComponentIframeInspector = {
|
|
|
2359
2376
|
const open$3 = async () => {
|
|
2360
2377
|
await invoke('Main.openUri', 'app://keybindings');
|
|
2361
2378
|
};
|
|
2362
|
-
const handleInput$
|
|
2379
|
+
const handleInput$3 = value => {
|
|
2363
2380
|
return invoke('KeyBindings.handleInput', value);
|
|
2364
2381
|
};
|
|
2365
2382
|
const handleClick = (x, y) => {
|
|
@@ -2437,7 +2454,7 @@ const TestFrameWorkComponentKeyBindingsEditor = {
|
|
|
2437
2454
|
handleClick,
|
|
2438
2455
|
handleContextMenu,
|
|
2439
2456
|
handleDoubleClick,
|
|
2440
|
-
handleInput: handleInput$
|
|
2457
|
+
handleInput: handleInput$3,
|
|
2441
2458
|
handleWheel: handleWheel$1,
|
|
2442
2459
|
open: open$3,
|
|
2443
2460
|
removeKeyBinding,
|
|
@@ -2602,7 +2619,7 @@ const TestFrameWorkComponentPlatform = {
|
|
|
2602
2619
|
isFirefox
|
|
2603
2620
|
};
|
|
2604
2621
|
|
|
2605
|
-
const show = async () => {
|
|
2622
|
+
const show$1 = async () => {
|
|
2606
2623
|
// @ts-ignore
|
|
2607
2624
|
await invoke('Panel.selectIndex', 0);
|
|
2608
2625
|
};
|
|
@@ -2652,7 +2669,7 @@ const TestFrameWorkComponentProblems = {
|
|
|
2652
2669
|
handleClickAt: handleClickAt$1,
|
|
2653
2670
|
handleFilterInput,
|
|
2654
2671
|
handleIconThemeChange,
|
|
2655
|
-
show,
|
|
2672
|
+
show: show$1,
|
|
2656
2673
|
viewAsList,
|
|
2657
2674
|
viewAsTable
|
|
2658
2675
|
};
|
|
@@ -2663,7 +2680,7 @@ const open$1 = async () => {
|
|
|
2663
2680
|
// @ts-ignore
|
|
2664
2681
|
await invoke('Viewlet.openWidget', QuickPick, 'everything');
|
|
2665
2682
|
};
|
|
2666
|
-
const handleInput$
|
|
2683
|
+
const handleInput$2 = async value => {
|
|
2667
2684
|
// @ts-ignore
|
|
2668
2685
|
await invoke('QuickPick.handleInput', value, 0);
|
|
2669
2686
|
};
|
|
@@ -2725,7 +2742,7 @@ const TestFrameWorkComponentQuickPick = {
|
|
|
2725
2742
|
focusNext: focusNext$2,
|
|
2726
2743
|
focusPrevious: focusPrevious$2,
|
|
2727
2744
|
handleClickAt,
|
|
2728
|
-
handleInput: handleInput$
|
|
2745
|
+
handleInput: handleInput$2,
|
|
2729
2746
|
open: open$1,
|
|
2730
2747
|
selectCurrentIndex,
|
|
2731
2748
|
selectIndex: selectIndex$3,
|
|
@@ -2892,6 +2909,57 @@ const TestFrameWorkComponentSettings = {
|
|
|
2892
2909
|
update: update$1
|
|
2893
2910
|
};
|
|
2894
2911
|
|
|
2912
|
+
const show = async () => {
|
|
2913
|
+
return invoke('Main.openUri', 'settings://');
|
|
2914
|
+
};
|
|
2915
|
+
const handleInput$1 = async searchValue => {
|
|
2916
|
+
// @ts-ignore
|
|
2917
|
+
return invoke('Settings.handleInput', searchValue, Script);
|
|
2918
|
+
};
|
|
2919
|
+
const usePreviousSearchValue = async () => {
|
|
2920
|
+
// @ts-ignore
|
|
2921
|
+
return invoke('Settings.usePreviousSearchValue');
|
|
2922
|
+
};
|
|
2923
|
+
const useNextSearchValue = async () => {
|
|
2924
|
+
// @ts-ignore
|
|
2925
|
+
return invoke('Settings.useNextSearchValue');
|
|
2926
|
+
};
|
|
2927
|
+
const clear = async searchValue => {
|
|
2928
|
+
// @ts-ignore
|
|
2929
|
+
return invoke('Settings.clear', searchValue, Script);
|
|
2930
|
+
};
|
|
2931
|
+
const selectTab = async tabId => {
|
|
2932
|
+
// @ts-ignore
|
|
2933
|
+
return invoke('Settings.handleClickTab', tabId);
|
|
2934
|
+
};
|
|
2935
|
+
const selectWorkspace = async () => {
|
|
2936
|
+
await selectTab('workspace');
|
|
2937
|
+
};
|
|
2938
|
+
const selectTextEditor = async () => {
|
|
2939
|
+
await selectTab('text-editor');
|
|
2940
|
+
};
|
|
2941
|
+
const selectExtensions = async () => {
|
|
2942
|
+
await selectTab('extensions');
|
|
2943
|
+
};
|
|
2944
|
+
const handleScroll = async scrollTop => {
|
|
2945
|
+
// @ts-ignore
|
|
2946
|
+
await invoke('Settings.handleScroll', scrollTop, Script);
|
|
2947
|
+
};
|
|
2948
|
+
|
|
2949
|
+
const TestFrameWorkComponentSettingsView = {
|
|
2950
|
+
__proto__: null,
|
|
2951
|
+
clear,
|
|
2952
|
+
handleInput: handleInput$1,
|
|
2953
|
+
handleScroll,
|
|
2954
|
+
selectExtensions,
|
|
2955
|
+
selectTab,
|
|
2956
|
+
selectTextEditor,
|
|
2957
|
+
selectWorkspace,
|
|
2958
|
+
show,
|
|
2959
|
+
useNextSearchValue,
|
|
2960
|
+
usePreviousSearchValue
|
|
2961
|
+
};
|
|
2962
|
+
|
|
2895
2963
|
const open = async id => {
|
|
2896
2964
|
await invoke('SideBar.openViewlet', id);
|
|
2897
2965
|
};
|
|
@@ -3138,6 +3206,7 @@ const TestFrameWorkComponent = {
|
|
|
3138
3206
|
RunAndDebug: TestFrameWorkComponentRunAndDebug,
|
|
3139
3207
|
Search: TestFrameWorkComponentSearch,
|
|
3140
3208
|
Settings: TestFrameWorkComponentSettings,
|
|
3209
|
+
SettingsView: TestFrameWorkComponentSettingsView,
|
|
3141
3210
|
SideBar: TestFrameWorkComponentSideBar,
|
|
3142
3211
|
SourceControl: TestFrameWorkComponentSourceControl,
|
|
3143
3212
|
StatusBar: TestFrameWorkComponentStatusBar,
|