@lvce-editor/test-worker 16.4.0 → 16.6.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 +18 -0
- package/dist/testWorkerMain.js +57 -1
- package/package.json +1 -1
package/dist/api.d.ts
CHANGED
|
@@ -238,6 +238,10 @@ export type ChatDebugInputName = "closeDetails" | "eventCategoryFilter" | "filte
|
|
|
238
238
|
|
|
239
239
|
export type ChatDebugCategoryId = "tools" | "network";
|
|
240
240
|
|
|
241
|
+
export type DiffMode = "inline" | "side-by-side";
|
|
242
|
+
|
|
243
|
+
export type DiffLayout = "horizontal" | "vertical";
|
|
244
|
+
|
|
241
245
|
export type TokenRow = readonly string[];
|
|
242
246
|
|
|
243
247
|
export type LayoutDirection = "horizontal" | "vertical" | number;
|
|
@@ -459,9 +463,23 @@ interface Dialog {
|
|
|
459
463
|
}
|
|
460
464
|
|
|
461
465
|
interface DiffView {
|
|
466
|
+
readonly handleClickAt: (clientX: number, clientY: number, targetName: string) => Promise<void>;
|
|
467
|
+
readonly handleResize: (width: number, height: number) => Promise<void>;
|
|
468
|
+
readonly handleSashPointerDown: (clientX: number, clientY: number) => Promise<void>;
|
|
469
|
+
readonly handleSashPointerMove: (clientX: number, clientY: number) => Promise<void>;
|
|
470
|
+
readonly handleSashPointerUp: (clientX: number, clientY: number) => Promise<void>;
|
|
471
|
+
readonly handleScrollBarPointerDown: (clientY: number) => Promise<void>;
|
|
472
|
+
readonly handleScrollBarPointerMove: (clientY: number) => Promise<void>;
|
|
473
|
+
readonly handleScrollBarPointerUp: (clientY: number) => Promise<void>;
|
|
474
|
+
readonly handleWheel: (deltaMode: number, deltaY: number) => Promise<void>;
|
|
475
|
+
readonly handleWorkspaceChange: () => Promise<void>;
|
|
462
476
|
readonly open: (leftUri: string, rightUri: string) => Promise<void>;
|
|
477
|
+
readonly setCursorPosition: (rowIndex: number, columnIndex: number) => Promise<void>;
|
|
478
|
+
readonly setDiffMode: (diffMode: DiffMode) => Promise<void>;
|
|
479
|
+
readonly setLayout: (layout: DiffLayout) => Promise<void>;
|
|
463
480
|
readonly shouldHaveContentLeft: (expectedContent: string) => Promise<void>;
|
|
464
481
|
readonly shouldHaveContentRight: (expectedContent: string) => Promise<void>;
|
|
482
|
+
readonly toggleDiffMode: () => Promise<void>;
|
|
465
483
|
}
|
|
466
484
|
|
|
467
485
|
interface Editor {
|
package/dist/testWorkerMain.js
CHANGED
|
@@ -2804,11 +2804,67 @@ const shouldHaveContentRight = async expectedContent => {
|
|
|
2804
2804
|
const contentRight = createLocator('.DiffEditorContentRight');
|
|
2805
2805
|
await expect$1(contentRight).toHaveText(expectedContent);
|
|
2806
2806
|
};
|
|
2807
|
+
const setDiffMode = async diffMode => {
|
|
2808
|
+
await execute$1('DiffView.setDiffMode', diffMode);
|
|
2809
|
+
};
|
|
2810
|
+
const toggleDiffMode = async () => {
|
|
2811
|
+
await execute$1('DiffView.toggleDiffMode');
|
|
2812
|
+
};
|
|
2813
|
+
const setLayout = async layout => {
|
|
2814
|
+
await execute$1('DiffView.setLayout', layout);
|
|
2815
|
+
};
|
|
2816
|
+
const handleWheel$3 = async (deltaMode, deltaY) => {
|
|
2817
|
+
await execute$1('DiffView.handleWheel', deltaMode, deltaY);
|
|
2818
|
+
};
|
|
2819
|
+
const handleResize = async (width, height) => {
|
|
2820
|
+
await execute$1('DiffView.handleResize', width, height);
|
|
2821
|
+
};
|
|
2822
|
+
const handleWorkspaceChange = async () => {
|
|
2823
|
+
await execute$1('DiffView.handleWorkspaceChange');
|
|
2824
|
+
};
|
|
2825
|
+
const handleClickAt$3 = async (clientX, clientY, targetName) => {
|
|
2826
|
+
await execute$1('DiffView.handleClickAt', clientX, clientY, targetName);
|
|
2827
|
+
};
|
|
2828
|
+
const handleSashPointerDown = async (clientX, clientY) => {
|
|
2829
|
+
await execute$1('DiffView.handleSashPointerDown', clientX, clientY);
|
|
2830
|
+
};
|
|
2831
|
+
const handleSashPointerMove = async (clientX, clientY) => {
|
|
2832
|
+
await execute$1('DiffView.handleSashPointerMove', clientX, clientY);
|
|
2833
|
+
};
|
|
2834
|
+
const handleSashPointerUp = async (clientX, clientY) => {
|
|
2835
|
+
await execute$1('DiffView.handleSashPointerUp', clientX, clientY);
|
|
2836
|
+
};
|
|
2837
|
+
const handleScrollBarPointerDown = async clientY => {
|
|
2838
|
+
await execute$1('DiffView.handleScrollBarPointerDown', clientY);
|
|
2839
|
+
};
|
|
2840
|
+
const handleScrollBarPointerMove = async clientY => {
|
|
2841
|
+
await execute$1('DiffView.handleScrollBarPointerMove', clientY);
|
|
2842
|
+
};
|
|
2843
|
+
const handleScrollBarPointerUp = async clientY => {
|
|
2844
|
+
await execute$1('DiffView.handleScrollBarPointerUp', clientY);
|
|
2845
|
+
};
|
|
2846
|
+
const setCursorPosition = async (rowIndex, columnIndex) => {
|
|
2847
|
+
await execute$1('DiffView.setCursorPosition', rowIndex, columnIndex);
|
|
2848
|
+
};
|
|
2807
2849
|
|
|
2808
2850
|
const DiffView = {
|
|
2851
|
+
handleClickAt: handleClickAt$3,
|
|
2852
|
+
handleResize,
|
|
2853
|
+
handleSashPointerDown,
|
|
2854
|
+
handleSashPointerMove,
|
|
2855
|
+
handleSashPointerUp,
|
|
2856
|
+
handleScrollBarPointerDown,
|
|
2857
|
+
handleScrollBarPointerMove,
|
|
2858
|
+
handleScrollBarPointerUp,
|
|
2859
|
+
handleWheel: handleWheel$3,
|
|
2860
|
+
handleWorkspaceChange,
|
|
2809
2861
|
open: open$9,
|
|
2862
|
+
setCursorPosition,
|
|
2863
|
+
setDiffMode,
|
|
2864
|
+
setLayout,
|
|
2810
2865
|
shouldHaveContentLeft,
|
|
2811
|
-
shouldHaveContentRight
|
|
2866
|
+
shouldHaveContentRight,
|
|
2867
|
+
toggleDiffMode
|
|
2812
2868
|
};
|
|
2813
2869
|
|
|
2814
2870
|
const isDiagnosticEqual = (actual, expected) => {
|