@lvce-editor/test-worker 5.1.0 → 5.2.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 +6 -5
- package/dist/testWorkerMain.js +7 -1
- package/package.json +1 -1
package/dist/api.d.ts
CHANGED
|
@@ -92,6 +92,7 @@ declare const shouldHaveText$1: (expectedText: string) => Promise<void>;
|
|
|
92
92
|
declare const shouldHaveSelections: (expectedSelections: Uint32Array) => Promise<void>;
|
|
93
93
|
declare const selectIndex: (index: number) => Promise<void>;
|
|
94
94
|
declare const selectCurrentIndex: () => Promise<void>;
|
|
95
|
+
declare const handleWheel: (deltaMode: number, deltaY: number) => Promise<void>;
|
|
95
96
|
declare const selectIndex$1: (index: number) => Promise<void>;
|
|
96
97
|
declare const selectCurrentIndex$1: () => Promise<void>;
|
|
97
98
|
declare const openContextMenu$1: (index: number) => Promise<void>;
|
|
@@ -171,7 +172,7 @@ declare const focusLast$2: () => Promise<void>;
|
|
|
171
172
|
declare const open$1: () => Promise<void>;
|
|
172
173
|
declare const handleInput: (value: string) => Promise<void>;
|
|
173
174
|
declare const handleClick$2: (x: number, y: number) => Promise<void>;
|
|
174
|
-
declare const handleWheel: (deltaMode: number, deltaY: number) => Promise<void>;
|
|
175
|
+
declare const handleWheel$1: (deltaMode: number, deltaY: number) => Promise<void>;
|
|
175
176
|
declare const handleDoubleClick: (x: number, y: number) => Promise<void>;
|
|
176
177
|
declare const focusNext$5: () => Promise<void>;
|
|
177
178
|
declare const focusPrevious$3: () => Promise<void>;
|
|
@@ -256,7 +257,7 @@ declare const focusFirst$6: () => Promise<void>;
|
|
|
256
257
|
declare const focusIndex$4: (index: number) => Promise<void>;
|
|
257
258
|
declare const selectIndex$5: (index: number) => Promise<void>;
|
|
258
259
|
declare const focusNext$8: () => Promise<void>;
|
|
259
|
-
declare const handleWheel$
|
|
260
|
+
declare const handleWheel$2: (deltaMode: number, deltaY: number) => Promise<void>;
|
|
260
261
|
declare const focusNextPage: () => Promise<void>;
|
|
261
262
|
declare const focusPreviousPage: () => Promise<void>;
|
|
262
263
|
declare const focusPrevious$6: () => Promise<void>;
|
|
@@ -338,7 +339,7 @@ declare namespace Editor {
|
|
|
338
339
|
export { addAllMissingImports, closeColorPicker, closeCompletion, closeCompletionDetails, copy, copyLineDown, copyLineUp, cursorCharacterLeft, cursorCharacterRight, cursorDown, cursorEnd, cursorHome, cursorUp, cursorWordLeft, cursorWordPartLeft, cursorWordPartRight, cursorWordRight, deleteAllLeft, deleteAllRight, executeTabCompletion, findAllImplementations, findAllReferences, format, getSelections, getText, goToDefinition, goToTypeDefinition, growSelection, insertLineBreak, invokeBraceCompletion, invokeTabCompletion, openColorPicker, openCompletion, openCompletionDetails, openContextMenu, openEditorContextMenu, openFind, openFindWidget, openHover, openRename, openSourceActions, organizeImports, rename, rename2, selectAll, setCursor, setDeltaY, setSelections, shouldHaveSelections, shouldHaveText$1 as shouldHaveText, showHover, sortImports, sourceActionsSelectCurrent, toggleBlockComment, toggleCompletionDetails, toggleLineComment, type };
|
|
339
340
|
}
|
|
340
341
|
declare namespace EditorCompletion {
|
|
341
|
-
export { selectCurrentIndex, selectIndex };
|
|
342
|
+
export { handleWheel, selectCurrentIndex, selectIndex };
|
|
342
343
|
}
|
|
343
344
|
declare namespace EditorSourceAction {
|
|
344
345
|
export { selectCurrentIndex$1 as selectCurrentIndex, selectIndex$1 as selectIndex };
|
|
@@ -365,7 +366,7 @@ declare namespace IframeInspector {
|
|
|
365
366
|
export { focusFirst$2 as focusFirst, focusLast$2 as focusLast, focusNext$4 as focusNext, focusPrevious$2 as focusPrevious, selectIndex$2 as selectIndex };
|
|
366
367
|
}
|
|
367
368
|
declare namespace KeyBindingsEditor {
|
|
368
|
-
export { addKeyBinding, changeWhenExpression, clearInput, copyCommandId, copyCommandTitle, focusFirst$3 as focusFirst, focusIndex$1 as focusIndex, focusLast$3 as focusLast, focusNext$5 as focusNext, focusPrevious$3 as focusPrevious, handleClick$2 as handleClick, handleContextMenu$1 as handleContextMenu, handleDoubleClick, handleInput, handleWheel, open$1 as open, removeKeyBinding, resetKeyBinding, showSameKeyBindings, sortByPrecedence, startRecordingKeys, stopRecordingKeys, toggleRecordingKeys };
|
|
369
|
+
export { addKeyBinding, changeWhenExpression, clearInput, copyCommandId, copyCommandTitle, focusFirst$3 as focusFirst, focusIndex$1 as focusIndex, focusLast$3 as focusLast, focusNext$5 as focusNext, focusPrevious$3 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 };
|
|
369
370
|
}
|
|
370
371
|
declare namespace KeyBoard {
|
|
371
372
|
export { press };
|
|
@@ -392,7 +393,7 @@ declare namespace RunAndDebug {
|
|
|
392
393
|
export { acceptWatchExpressionEdit, addWatchExpression, handleClickSectionWatch, handleRename, handleSpace, handleWatchValueChange, selectIndex$4 as selectIndex, setPauseOnExceptions };
|
|
393
394
|
}
|
|
394
395
|
declare namespace Search {
|
|
395
|
-
export { clearSearchResults, collapseDetails, dismissItem, focusFirst$6 as focusFirst, focusIndex$4 as focusIndex, focusNext$8 as focusNext, focusNextPage, focusPrevious$6 as focusPrevious, focusPreviousPage, handleWheel$
|
|
396
|
+
export { clearSearchResults, collapseDetails, dismissItem, focusFirst$6 as focusFirst, focusIndex$4 as focusIndex, focusNext$8 as focusNext, focusNextPage, focusPrevious$6 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 };
|
|
396
397
|
}
|
|
397
398
|
declare namespace Settings {
|
|
398
399
|
export { update };
|
package/dist/testWorkerMain.js
CHANGED
|
@@ -1195,10 +1195,11 @@ const getLocatorInvoke = locator => {
|
|
|
1195
1195
|
const module = get(locator.webViewId);
|
|
1196
1196
|
return module.invoke;
|
|
1197
1197
|
}
|
|
1198
|
+
// @ts-ignore
|
|
1198
1199
|
return invoke$1;
|
|
1199
1200
|
};
|
|
1200
1201
|
|
|
1201
|
-
const locatorInvoke = (locator, method, ...params) => {
|
|
1202
|
+
const locatorInvoke = async (locator, method, ...params) => {
|
|
1202
1203
|
object(locator);
|
|
1203
1204
|
string$1(method);
|
|
1204
1205
|
const invoke = getLocatorInvoke(locator);
|
|
@@ -2155,9 +2156,14 @@ const selectIndex$6 = async index => {
|
|
|
2155
2156
|
const selectCurrentIndex$2 = async () => {
|
|
2156
2157
|
await invoke$1('EditorCompletion.selectCurrentIndex');
|
|
2157
2158
|
};
|
|
2159
|
+
const handleWheel$2 = async (deltaMode, deltaY) => {
|
|
2160
|
+
// @ts-ignore
|
|
2161
|
+
await invoke$1('EditorCompletion.handleWheel', deltaMode, deltaY);
|
|
2162
|
+
};
|
|
2158
2163
|
|
|
2159
2164
|
const TestFrameWorkComponentEditorCompletion = {
|
|
2160
2165
|
__proto__: null,
|
|
2166
|
+
handleWheel: handleWheel$2,
|
|
2161
2167
|
selectCurrentIndex: selectCurrentIndex$2,
|
|
2162
2168
|
selectIndex: selectIndex$6
|
|
2163
2169
|
};
|