@lvce-editor/test-worker 1.10.0 → 1.12.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/README.md CHANGED
@@ -1 +1,16 @@
1
- # test worker
1
+ # Test Worker
2
+
3
+ > A Web Worker for the e2e functionality in Lvce Editor.
4
+
5
+ ## Contributing
6
+
7
+ ```sh
8
+ git clone git@github.com:lvce-editor/test-worker.git &&
9
+ cd test-worker &&
10
+ npm ci &&
11
+ npm test
12
+ ```
13
+
14
+ ## Gitpod
15
+
16
+ [![Open in Gitpod](https://gitpod.io/button/open-in-gitpod.svg)](https://gitpod.io/#https://github.com/lvce-editor/test-worker)
@@ -1022,37 +1022,101 @@ const closeCompletionDetails = async () => {
1022
1022
  const toggleCompletionDetails = async () => {
1023
1023
  await invoke('EditorCompletion.toggleDetails');
1024
1024
  };
1025
+ const organizeImports = async () => {
1026
+ await invoke('Editor.organizeImports');
1027
+ };
1028
+ const toggleLineComment = async () => {
1029
+ await invoke('Editor.toggleLineComment');
1030
+ };
1031
+ const toggleBlockComment = async () => {
1032
+ await invoke('Editor.toggleBlockComment');
1033
+ };
1034
+ const selectAll = async () => {
1035
+ await invoke('Editor.toggleBlockComment');
1036
+ };
1037
+ const openColorPicker = async () => {
1038
+ await invoke('Editor.openColorPicker');
1039
+ };
1040
+ const openFind = async () => {
1041
+ await invoke('Editor.openFind2');
1042
+ };
1043
+ const deleteAllLeft = async () => {
1044
+ await invoke('Editor.deleteAllLeft');
1045
+ };
1046
+ const deleteAllRight = async () => {
1047
+ await invoke('Editor.deleteAllRight');
1048
+ };
1049
+ const cursorWordPartLeft = async () => {
1050
+ await invoke('Editor.cursorWordPartLeft');
1051
+ };
1052
+ const cursorWordPartRight = async () => {
1053
+ await invoke('Editor.cursorWordPartRight');
1054
+ };
1055
+ const cursorEnd = async () => {
1056
+ await invoke('Editor.cursorEnd');
1057
+ };
1058
+ const cursorHome = async () => {
1059
+ await invoke('Editor.cursorHome');
1060
+ };
1061
+ const copyLineUp = async () => {
1062
+ await invoke('Editor.copyLineUp');
1063
+ };
1064
+ const closeColorPicker = async () => {
1065
+ await invoke('Editor.closeColorPicker');
1066
+ };
1067
+ const openContextMenu$1 = async () => {
1068
+ await invoke('Editor.contextMenu');
1069
+ };
1070
+ const getText = async () => {
1071
+ await invoke('Editor.getText');
1072
+ };
1025
1073
 
1026
1074
  const TestFrameWorkComponentEditor = {
1027
1075
  __proto__: null,
1076
+ closeColorPicker,
1028
1077
  closeCompletionDetails,
1029
1078
  copyLineDown,
1079
+ copyLineUp,
1030
1080
  cursorCharacterLeft,
1031
1081
  cursorCharacterRight,
1032
1082
  cursorDown,
1083
+ cursorEnd,
1084
+ cursorHome,
1033
1085
  cursorUp,
1034
1086
  cursorWordLeft,
1087
+ cursorWordPartLeft,
1088
+ cursorWordPartRight,
1035
1089
  cursorWordRight,
1090
+ deleteAllLeft,
1091
+ deleteAllRight,
1036
1092
  executeTabCompletion,
1037
1093
  findAllImplementations,
1038
1094
  findAllReferences,
1039
1095
  format,
1096
+ getText,
1040
1097
  goToDefinition,
1041
1098
  goToTypeDefinition,
1042
1099
  insertLineBreak,
1043
1100
  invokeBraceCompletion,
1044
1101
  invokeTabCompletion,
1102
+ openColorPicker,
1045
1103
  openCompletion,
1046
1104
  openCompletionDetails,
1105
+ openContextMenu: openContextMenu$1,
1047
1106
  openEditorContextMenu,
1107
+ openFind,
1048
1108
  openFindWidget,
1049
1109
  openHover,
1050
1110
  openSourceActions,
1111
+ organizeImports,
1112
+ selectAll,
1051
1113
  setCursor,
1052
1114
  setDeltaY,
1053
1115
  setSelections,
1054
1116
  sourceActionsSelectCurrent,
1117
+ toggleBlockComment,
1055
1118
  toggleCompletionDetails,
1119
+ toggleLineComment,
1056
1120
  type
1057
1121
  };
1058
1122
 
@@ -1357,9 +1421,15 @@ const focusPrevious$1 = async () => {
1357
1421
  const selectItem = async label => {
1358
1422
  await invoke('QuickPick.selectItem', label);
1359
1423
  };
1424
+ const executeCommand = async label => {
1425
+ await invoke('QuickPick.showCommands');
1426
+ await invoke('QuickPick.handleInput', label, 0);
1427
+ await invoke('QuickPick.selectItem', label);
1428
+ };
1360
1429
 
1361
1430
  const TestFrameWorkComponentQuickPick = {
1362
1431
  __proto__: null,
1432
+ executeCommand,
1363
1433
  focusIndex: focusIndex$1,
1364
1434
  focusNext: focusNext$1,
1365
1435
  focusPrevious: focusPrevious$1,
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@lvce-editor/test-worker",
3
- "version": "1.10.0",
3
+ "version": "1.12.0",
4
4
  "description": "",
5
5
  "main": "dist/testWorkerMain.js",
6
6
  "type": "module",