@lvce-editor/test-worker 3.13.0 → 3.15.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 +13 -11
- package/dist/testWorkerMain.js +11 -2
- package/package.json +1 -1
package/dist/api.d.ts
CHANGED
|
@@ -85,10 +85,12 @@ declare const rename$1: () => Promise<void>;
|
|
|
85
85
|
declare const cancelEdit: () => Promise<void>;
|
|
86
86
|
declare const acceptEdit: () => Promise<void>;
|
|
87
87
|
declare const updateEditingValue: (value: string) => Promise<void>;
|
|
88
|
-
declare const expandAll: (
|
|
88
|
+
declare const expandAll: () => Promise<void>;
|
|
89
89
|
declare const addWebExtension: (relativePath: string) => Promise<void>;
|
|
90
90
|
declare const addNodeExtension: (relativePath: string) => Promise<void>;
|
|
91
|
+
declare const selectFeature: (name: string) => Promise<void>;
|
|
91
92
|
declare const selectTab: (name: string) => Promise<void>;
|
|
93
|
+
declare const open: (extensionId: string) => Promise<void>;
|
|
92
94
|
declare const writeFile: (path: string, content: string) => Promise<void>;
|
|
93
95
|
declare const mkdir: (path: string) => Promise<void>;
|
|
94
96
|
declare const getTmpDir: ({ scheme }?: {
|
|
@@ -100,7 +102,7 @@ declare const createExecutableFrom: (path: string) => Promise<string>;
|
|
|
100
102
|
declare const focusNext$3: () => Promise<void>;
|
|
101
103
|
declare const setValue: (value: string) => Promise<void>;
|
|
102
104
|
declare const setIconTheme: (id: string) => Promise<void>;
|
|
103
|
-
declare const open: () => never;
|
|
105
|
+
declare const open$1: () => never;
|
|
104
106
|
declare const handleInput: (value: string) => Promise<void>;
|
|
105
107
|
declare const handleClick$2: (x: number, y: number) => Promise<void>;
|
|
106
108
|
declare const handleWheel: (deltaMode: number, deltaY: number) => Promise<void>;
|
|
@@ -113,11 +115,11 @@ declare const handleContextMenu$1: (button: number, x: number, y: number) => Pro
|
|
|
113
115
|
declare const press: (key: string) => Promise<void>;
|
|
114
116
|
declare const openUri: (uri: string) => Promise<void>;
|
|
115
117
|
declare const splitRight: () => Promise<void>;
|
|
116
|
-
declare const open$
|
|
118
|
+
declare const open$2: (id: string) => Promise<void>;
|
|
117
119
|
declare const getNodePath: () => Promise<string>;
|
|
118
120
|
declare const isFirefox: () => boolean;
|
|
119
121
|
declare const show$1: () => Promise<void>;
|
|
120
|
-
declare const open$
|
|
122
|
+
declare const open$3: () => Promise<void>;
|
|
121
123
|
declare const setValue$1: (value: string) => Promise<void>;
|
|
122
124
|
declare const focusNext$5: () => Promise<void>;
|
|
123
125
|
declare const focusIndex$1: (index: number) => Promise<void>;
|
|
@@ -146,7 +148,7 @@ declare const togglePreserveCase: () => Promise<void>;
|
|
|
146
148
|
declare const toggleUseRegularExpression: () => Promise<void>;
|
|
147
149
|
declare const toggleReplace: () => Promise<void>;
|
|
148
150
|
declare const update: (settings: any) => Promise<void>;
|
|
149
|
-
declare const open$
|
|
151
|
+
declare const open$4: (id: string) => Promise<void>;
|
|
150
152
|
declare const hide: () => Promise<void>;
|
|
151
153
|
declare const acceptInput: () => Promise<void>;
|
|
152
154
|
declare const handleInput$1: (text: string) => Promise<void>;
|
|
@@ -199,7 +201,7 @@ declare namespace Extension {
|
|
|
199
201
|
export { addNodeExtension, addWebExtension };
|
|
200
202
|
}
|
|
201
203
|
declare namespace ExtensionDetail {
|
|
202
|
-
export { selectTab };
|
|
204
|
+
export { open, selectFeature, selectTab };
|
|
203
205
|
}
|
|
204
206
|
declare namespace FileSystem {
|
|
205
207
|
export { chmod, createExecutable, createExecutableFrom, getTmpDir, mkdir, writeFile };
|
|
@@ -211,7 +213,7 @@ declare namespace IconTheme {
|
|
|
211
213
|
export { setIconTheme };
|
|
212
214
|
}
|
|
213
215
|
declare namespace KeyBindingsEditor {
|
|
214
|
-
export { focusFirst$2 as focusFirst, focusLast$2 as focusLast, focusNext$4 as focusNext, focusPrevious$2 as focusPrevious, handleClick$2 as handleClick, handleContextMenu$1 as handleContextMenu, handleDoubleClick, handleInput, handleWheel, open };
|
|
216
|
+
export { focusFirst$2 as focusFirst, focusLast$2 as focusLast, focusNext$4 as focusNext, focusPrevious$2 as focusPrevious, handleClick$2 as handleClick, handleContextMenu$1 as handleContextMenu, handleDoubleClick, handleInput, handleWheel, open$1 as open };
|
|
215
217
|
}
|
|
216
218
|
declare namespace KeyBoard {
|
|
217
219
|
export { press };
|
|
@@ -220,7 +222,7 @@ declare namespace Main {
|
|
|
220
222
|
export { openUri, splitRight };
|
|
221
223
|
}
|
|
222
224
|
declare namespace Panel {
|
|
223
|
-
export { open$
|
|
225
|
+
export { open$2 as open };
|
|
224
226
|
}
|
|
225
227
|
declare namespace Platform {
|
|
226
228
|
export { getNodePath, isFirefox };
|
|
@@ -229,7 +231,7 @@ declare namespace Problems {
|
|
|
229
231
|
export { show$1 as show };
|
|
230
232
|
}
|
|
231
233
|
declare namespace QuickPick {
|
|
232
|
-
export { executeCommand, focusIndex$1 as focusIndex, focusNext$5 as focusNext, focusPrevious$3 as focusPrevious, open$
|
|
234
|
+
export { executeCommand, focusIndex$1 as focusIndex, focusNext$5 as focusNext, focusPrevious$3 as focusPrevious, open$3 as open, selectItem$1 as selectItem, setValue$1 as setValue };
|
|
233
235
|
}
|
|
234
236
|
declare namespace Search {
|
|
235
237
|
export { clearSearchResults, dismissItem, focusFirst$3 as focusFirst, focusIndex$2 as focusIndex, focusNext$6 as focusNext, focusNextPage, focusPrevious$4 as focusPrevious, focusPreviousPage, handleWheel$1 as handleWheel, replaceAll, selectIndex, setExcludeValue, setIncludeValue, setReplaceValue, setValue$2 as setValue, toggleMatchCase, toggleMatchWholeWord, togglePreserveCase, toggleReplace, toggleSearchDetails, toggleUseRegularExpression };
|
|
@@ -238,7 +240,7 @@ declare namespace Settings {
|
|
|
238
240
|
export { update };
|
|
239
241
|
}
|
|
240
242
|
declare namespace SideBar {
|
|
241
|
-
export { hide, open$
|
|
243
|
+
export { hide, open$4 as open };
|
|
242
244
|
}
|
|
243
245
|
declare namespace SourceControl {
|
|
244
246
|
export { acceptInput, handleInput$1 as handleInput };
|
|
@@ -282,7 +284,7 @@ export interface TestApi {
|
|
|
282
284
|
readonly WebView: typeof WebView,
|
|
283
285
|
readonly Workspace: typeof Workspace,
|
|
284
286
|
readonly expect: any
|
|
285
|
-
readonly Locator: (selector: string) => any
|
|
287
|
+
readonly Locator: (selector: string, options?: any) => any
|
|
286
288
|
}
|
|
287
289
|
|
|
288
290
|
export interface Test {
|
package/dist/testWorkerMain.js
CHANGED
|
@@ -1587,8 +1587,8 @@ const acceptEdit = async () => {
|
|
|
1587
1587
|
const updateEditingValue = async value => {
|
|
1588
1588
|
await invoke('Explorer.updateEditingValue', value);
|
|
1589
1589
|
};
|
|
1590
|
-
const expandAll = async
|
|
1591
|
-
await invoke('Explorer.expandAll'
|
|
1590
|
+
const expandAll = async () => {
|
|
1591
|
+
await invoke('Explorer.expandAll');
|
|
1592
1592
|
};
|
|
1593
1593
|
|
|
1594
1594
|
const TestFrameWorkComponentExplorer = {
|
|
@@ -1629,12 +1629,21 @@ const TestFrameWorkComponentExtension = {
|
|
|
1629
1629
|
addWebExtension
|
|
1630
1630
|
};
|
|
1631
1631
|
|
|
1632
|
+
const selectFeature = name => {
|
|
1633
|
+
return invoke('ExtensionDetail.selectFeature', name);
|
|
1634
|
+
};
|
|
1632
1635
|
const selectTab = name => {
|
|
1633
1636
|
return invoke('ExtensionDetail.selectTab', name);
|
|
1634
1637
|
};
|
|
1638
|
+
const open$4 = extensionId => {
|
|
1639
|
+
const uri = `extension-detail://${extensionId}`;
|
|
1640
|
+
return invoke('Main.openUri', uri);
|
|
1641
|
+
};
|
|
1635
1642
|
|
|
1636
1643
|
const TestFrameWorkComponentExtensionDetail = {
|
|
1637
1644
|
__proto__: null,
|
|
1645
|
+
open: open$4,
|
|
1646
|
+
selectFeature,
|
|
1638
1647
|
selectTab
|
|
1639
1648
|
};
|
|
1640
1649
|
|