@lvce-editor/test-worker 3.12.0 → 3.13.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 +11 -6
- package/dist/testWorkerMain.js +11 -1
- package/package.json +1 -1
package/dist/api.d.ts
CHANGED
|
@@ -1,11 +1,11 @@
|
|
|
1
1
|
// Generated by dts-bundle-generator v9.5.1
|
|
2
2
|
|
|
3
|
-
declare const show: () => Promise<
|
|
4
|
-
declare const handleClickOk: () => Promise<
|
|
5
|
-
declare const handleClickClose: () => Promise<
|
|
6
|
-
declare const handleClickCopy: () => Promise<
|
|
7
|
-
declare const focusNext: () => Promise<
|
|
8
|
-
declare const focusPrevious: () => Promise<
|
|
3
|
+
declare const show: () => Promise<void>;
|
|
4
|
+
declare const handleClickOk: () => Promise<void>;
|
|
5
|
+
declare const handleClickClose: () => Promise<void>;
|
|
6
|
+
declare const handleClickCopy: () => Promise<void>;
|
|
7
|
+
declare const focusNext: () => Promise<void>;
|
|
8
|
+
declare const focusPrevious: () => Promise<void>;
|
|
9
9
|
declare const focus: () => Promise<void>;
|
|
10
10
|
declare const focusFirst: () => Promise<void>;
|
|
11
11
|
declare const focusLast: () => Promise<void>;
|
|
@@ -88,6 +88,7 @@ declare const updateEditingValue: (value: string) => Promise<void>;
|
|
|
88
88
|
declare const expandAll: (value: string) => Promise<void>;
|
|
89
89
|
declare const addWebExtension: (relativePath: string) => Promise<void>;
|
|
90
90
|
declare const addNodeExtension: (relativePath: string) => Promise<void>;
|
|
91
|
+
declare const selectTab: (name: string) => Promise<void>;
|
|
91
92
|
declare const writeFile: (path: string, content: string) => Promise<void>;
|
|
92
93
|
declare const mkdir: (path: string) => Promise<void>;
|
|
93
94
|
declare const getTmpDir: ({ scheme }?: {
|
|
@@ -197,6 +198,9 @@ declare namespace Explorer {
|
|
|
197
198
|
declare namespace Extension {
|
|
198
199
|
export { addNodeExtension, addWebExtension };
|
|
199
200
|
}
|
|
201
|
+
declare namespace ExtensionDetail {
|
|
202
|
+
export { selectTab };
|
|
203
|
+
}
|
|
200
204
|
declare namespace FileSystem {
|
|
201
205
|
export { chmod, createExecutable, createExecutableFrom, getTmpDir, mkdir, writeFile };
|
|
202
206
|
}
|
|
@@ -258,6 +262,7 @@ export interface TestApi {
|
|
|
258
262
|
readonly Editor: typeof Editor,
|
|
259
263
|
readonly Explorer: typeof Explorer,
|
|
260
264
|
readonly Extension: typeof Extension,
|
|
265
|
+
readonly ExtensionDetail: typeof ExtensionDetail,
|
|
261
266
|
readonly FileSystem: typeof FileSystem,
|
|
262
267
|
readonly FindWidget: typeof FindWidget,
|
|
263
268
|
readonly IconTheme: typeof IconTheme,
|
package/dist/testWorkerMain.js
CHANGED
|
@@ -968,7 +968,7 @@ const Assert = {
|
|
|
968
968
|
}
|
|
969
969
|
},
|
|
970
970
|
number(value, message) {
|
|
971
|
-
if (typeof value !== 'number' || isNaN(value)) {
|
|
971
|
+
if (typeof value !== 'number' || Number.isNaN(value)) {
|
|
972
972
|
throw new TypeError(message);
|
|
973
973
|
}
|
|
974
974
|
}
|
|
@@ -1629,6 +1629,15 @@ const TestFrameWorkComponentExtension = {
|
|
|
1629
1629
|
addWebExtension
|
|
1630
1630
|
};
|
|
1631
1631
|
|
|
1632
|
+
const selectTab = name => {
|
|
1633
|
+
return invoke('ExtensionDetail.selectTab', name);
|
|
1634
|
+
};
|
|
1635
|
+
|
|
1636
|
+
const TestFrameWorkComponentExtensionDetail = {
|
|
1637
|
+
__proto__: null,
|
|
1638
|
+
selectTab
|
|
1639
|
+
};
|
|
1640
|
+
|
|
1632
1641
|
const Memfs = 'memfs';
|
|
1633
1642
|
|
|
1634
1643
|
const Backslash = '\\';
|
|
@@ -2223,6 +2232,7 @@ const TestFrameWorkComponent = {
|
|
|
2223
2232
|
Editor: TestFrameWorkComponentEditor,
|
|
2224
2233
|
Explorer: TestFrameWorkComponentExplorer,
|
|
2225
2234
|
Extension: TestFrameWorkComponentExtension,
|
|
2235
|
+
ExtensionDetail: TestFrameWorkComponentExtensionDetail,
|
|
2226
2236
|
FileSystem: TestFrameWorkComponentFileSystem,
|
|
2227
2237
|
FindWidget: TestFrameWorkComponentFindWidget,
|
|
2228
2238
|
IconTheme: TestFrameWorkComponentIconTheme,
|