@lvce-editor/test-worker 3.0.0 → 3.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.
@@ -1195,9 +1195,17 @@ const handleClickClose = async () => {
1195
1195
  const handleClickCopy = async () => {
1196
1196
  return invoke('About.handleClickCopy');
1197
1197
  };
1198
+ const focusNext$6 = async () => {
1199
+ return invoke('About.focusNext');
1200
+ };
1201
+ const focusPrevious$4 = async () => {
1202
+ return invoke('About.focusPrevious');
1203
+ };
1198
1204
 
1199
1205
  const TestFrameWorkComponentAbout = {
1200
1206
  __proto__: null,
1207
+ focusNext: focusNext$6,
1208
+ focusPrevious: focusPrevious$4,
1201
1209
  handleClickClose,
1202
1210
  handleClickCopy,
1203
1211
  handleClickOk,
@@ -1456,6 +1464,12 @@ const showHover = async () => {
1456
1464
  const openRename = async () => {
1457
1465
  await invoke('Editor.openRename');
1458
1466
  };
1467
+ const shouldHaveText = async expectedText => {
1468
+ const text = await invoke('Editor.getText');
1469
+ if (text !== expectedText) {
1470
+ throw new Error(`Expected editor to have text ${expectedText} but was ${text}`);
1471
+ }
1472
+ };
1459
1473
 
1460
1474
  const TestFrameWorkComponentEditor = {
1461
1475
  __proto__: null,
@@ -1503,6 +1517,7 @@ const TestFrameWorkComponentEditor = {
1503
1517
  setCursor,
1504
1518
  setDeltaY,
1505
1519
  setSelections,
1520
+ shouldHaveText,
1506
1521
  showHover,
1507
1522
  sortImports,
1508
1523
  sourceActionsSelectCurrent,
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@lvce-editor/test-worker",
3
- "version": "3.0.0",
3
+ "version": "3.2.0",
4
4
  "description": "",
5
5
  "main": "dist/testWorkerMain.js",
6
6
  "type": "module",