Commit Graph

228 Commits

Author SHA1 Message Date
James-Yu
d2b08d4e75 Remove test onlys 2022-12-28 12:37:58 +08:00
James-Yu
c2acaa5167 Fix incorrect file name, remove test log grep 2022-12-28 12:35:29 +08:00
James-Yu
8a4e038edb All build tests 2022-12-28 12:27:46 +08:00
James-Yu
ae9b00deeb latexmk from sub files should have -cd, more tests 2022-12-28 11:28:17 +08:00
James Yu
76f59606f6 New test framework 2022-12-27 23:00:28 +08:00
James Yu
dde27b173f
Merge pull request #3594 from James-Yu/fetch-texstudio-cwl
Load cwl from texstudio-org/texstudio, only a few
2022-12-23 08:54:14 +08:00
James-Yu
19cda1bdbd Fix package json test 2022-12-22 16:47:38 +08:00
Jerome Lelong
e4a9276b7c
Add unit tests for default commands and environments (#3590) 2022-12-21 21:08:06 +01:00
James-Yu
df4482fb0a Now we have argument intellisense 2022-12-16 15:31:13 +08:00
James-Yu
e4c625b3fd Remove the interfaces 2022-12-13 11:24:25 +08:00
James-Yu
136c797d19 Read package json only once 2022-12-12 11:24:25 +08:00
James Yu
b39c3e8d5c Undefined command name is a bad idea 2022-12-11 22:25:00 +08:00
James Yu
362f2f1234 Condense unittest of package json files 2022-12-11 21:53:43 +08:00
James-Yu
320cfc3174 Provide keyvals to commands and envs 2022-12-09 16:07:04 +08:00
James-Yu
4f37ead5ee New cwl parsing function 2022-12-09 14:58:41 +08:00
James-Yu
6b30963b35 Fix an erranous math preview test, add one more 2022-12-08 10:26:22 +08:00
Takashi Tamura
b5ea2a626b Add tests for cursorrenderer 2022-09-09 11:59:45 +09:00
Takashi Tamura
dd4761aac3 Use VS Code 1.71.0 for tests 2022-09-07 10:01:34 +09:00
Takashi Tamura
a11031014e Skip a test on macOS 2022-08-31 13:47:56 +09:00
James-Yu
4652f6727d Fix \input arg does not take underscore filename 2022-07-29 14:15:16 +08:00
James-Yu
c466ce1a6b Faster AST-based structure by removing text 2022-07-28 11:10:16 +08:00
Takashi Tamura
1de80a0844 Clarify with type annotations that Extension is a kind of service locator
- https://martinfowler.com/articles/injection.html#UsingAServiceLocator
2022-07-23 22:24:54 +09:00
James Yu
ec1974bcfd Support multiple linters simultaneously 2022-07-16 09:40:38 +08:00
James-Yu
4c6ea44d7a Do not use inheritance for linters 2022-07-15 13:49:36 +08:00
James-Yu
1de23d2b58 Rename folder linters to linterlib 2022-07-15 12:53:58 +08:00
James-Yu
e515ffc02d Unit-test linter log messages 2022-07-15 10:24:42 +08:00
James Yu
1b9f4279c4 Add linter tests 2022-07-15 02:09:02 +08:00
Takashi Tamura
34d2f1ab2d - Use a fake extension for synctexjs tests
- Add ILogger
2022-07-11 21:20:00 +09:00
Takashi Tamura
3954f675d0 Add tests for TextDocumentLike 2022-07-11 07:35:19 +09:00
Takashi Tamura
3035f40bca Use VS Code 1.68.1 for CI tests 2022-07-06 10:19:25 +09:00
James Yu
38fe7752e7
Add structure tests (#3366) 2022-07-05 10:28:11 +08:00
Jerome Lelong
8ac04e0ade Add test for \newabbr and \newabbreviation 2022-07-02 15:30:29 +02:00
Takashi Tamura
904b3a7c88 Use VS Code 1.67.2 for CI tests. 2022-06-08 17:33:34 +09:00
Takashi Tamura
beca19031b Skip a CI test on Windows 2022-05-31 11:19:32 +09:00
Takashi Tamura
5b3d07c05d Skip a CI test on Windows 2022-05-28 09:28:47 +09:00
Takashi Tamura
265ddb77c8 Fix completion tests 2022-05-13 14:46:50 +09:00
Takashi Tamura
3d4f7b8b3d Move viewer/components/protocol.ts -> types/latexworkshop-protocol-types/index.d.ts 2022-05-13 08:57:43 +09:00
Takashi Tamura
1c0ae3a2eb Re-export sleep from test/utils/ciutils.ts 2022-05-13 08:47:04 +09:00
Takashi Tamura
2cdedbb2f7 Fix a test for rootfile. We have to ignore the first findrootfileend event. 2022-05-13 07:59:16 +09:00
Takashi Tamura
f4f3a9fc85 Use VS Code 1.67.0 for CI tests 2022-05-08 08:43:35 +09:00
Jerome Lelong
c2c806653f Add glossary completion tests 2022-05-07 22:03:23 +02:00
Takashi Tamura
fad5410b3d Add waitRootFileFound 2022-05-07 15:33:15 +09:00
Takashi Tamura
3b985ef42a Add a test for isTriggerSuggestNeeded. Related to #3258 2022-04-22 08:39:34 +09:00
Takashi Tamura
ead52c2dff Tweak multiroot-ws/fixture040 2022-04-22 07:42:11 +09:00
Takashi Tamura
14571aad90 Tweak multiroot-ws/fixture040 2022-04-21 17:48:37 +09:00
Takashi Tamura
12d3d8bc34 Fix a viewer test 2022-04-20 07:32:10 +09:00
Takashi Tamura
3a0e354062 Fix CI test for the viewer 2022-04-19 17:11:01 +09:00
Takashi Tamura
373674959f Wait pdfviewerstatuschanged 2022-04-19 15:48:31 +09:00
Takashi Tamura
083129206b Use EventBus for CI tests 2022-04-16 16:08:18 +09:00
Takashi Tamura
6554a5ab06 Edit test/README.md [skip ci] 2022-04-06 15:07:38 +09:00
Takashi Tamura
c3964b8780 Edit test/README.md [skip ci] 2022-04-06 14:43:59 +09:00
Takashi Tamura
d9d27929c9 Edit test/README.md [skip ci] 2022-04-06 12:23:10 +09:00
Takashi Tamura
9f90a1fe1e Rename to fixture010_synctex 2022-04-06 10:56:36 +09:00
Takashi Tamura
c955f91db3 Fix test/utils/runnerutils.ts 2022-04-06 08:33:06 +09:00
Takashi Tamura
7d1dfea345 Extract to test/utils/decycle.ts 2022-04-06 08:25:23 +09:00
Takashi Tamura
452386a3bc Rename to ciutils.ts 2022-04-06 08:23:09 +09:00
Takashi Tamura
c5c30247d4 Move files to test/utils 2022-04-06 08:21:40 +09:00
Takashi Tamura
935b452296 Move files to test/config 2022-04-06 08:16:18 +09:00
Takashi Tamura
cb28b6ec8f Add a test for synctex 2022-04-06 07:57:43 +09:00
Takashi Tamura
56e3471c97 Enabe @typescript-eslint/prefer-includes 2022-04-04 13:50:05 +09:00
Takashi Tamura
87666b1fe8 Add latex-workshop.activate for tests 2022-04-02 14:27:47 +09:00
Takashi Tamura
b1bc6a36cd Edit test/README.md [skip ci] 2022-04-02 13:40:02 +09:00
Takashi Tamura
f061b29139 mkdir test/unittests 2022-04-02 11:42:31 +09:00
Takashi Tamura
bc3054f9ec Use VS Code 1.66.0 for tests 2022-04-02 11:25:35 +09:00
Takashi Tamura
0ce9f29858 Add runnerutils.ts 2022-04-02 09:11:21 +09:00
Takashi Tamura
8efa43cba4 - Remove writeSettingsJson
- Add some arguments to runTest
2022-04-02 08:35:37 +09:00
Jerome Lelong
1e05a5286b Do not use for ... in loops for arrays 2022-03-25 12:00:35 +01:00
Jerome Lelong
f60ca1ab61 Remove await statements with no effect 2022-03-25 11:59:45 +01:00
Jerome Lelong
c8b139bc16 Add tests 2022-03-25 11:53:00 +01:00
Jerome Lelong
938bd0cd32 Rename snippet into atSuggestion 2022-03-20 15:25:55 +01:00
Jerome Lelong
1f479b87d2 Add more tests with custom trigger 2022-03-19 19:22:29 +01:00
Jerome Lelong
1c4f0c2269 Add CI tests 2022-03-19 19:16:57 +01:00
Jerome Lelong
8bb93880ce Turn checkDictKeys into an assertion 2022-03-19 07:04:38 +01:00
Jerome Lelong
13342c01ba Cosmetic update 2022-03-19 06:56:14 +01:00
Jerome Lelong
fd5e022005 Test all .json files for completion 2022-03-18 22:01:41 +01:00
Takashi Tamura
92ca29054d Add an example of unittest 2022-03-18 22:01:41 +01:00
Takashi Tamura
b316683f49 Edit headings levels [skip ci] 2022-03-15 07:55:53 +09:00
Jerome Lelong
838e9e2d00 Add tests 2022-03-09 20:25:16 +01:00
Jerome Lelong
e625d6fabb Stop exposing SectionNodeProvider at the Extension level 2022-03-09 07:56:29 +01:00
Jerome Lelong
b233957364 Deactivate structure test on Windows
For some strange reason, the test always fails
2022-03-05 13:56:46 +01:00
Jerome Lelong
b6dfdafd4b Add waitGivenRootFile 2022-03-05 13:54:05 +01:00
Jerome Lelong
5a33152ecc Add message to assert.ok 2022-03-05 13:54:05 +01:00
Jerome Lelong
2744391faa Test list of watched files 2022-03-05 13:54:05 +01:00
Jerome Lelong
bfbbd41efc Add test for structure with multi-root workspace 2022-03-04 16:20:13 +01:00
Jerome Lelong
1a46e2502b Add more tests
latex-workshop.latex.search.rootFiles.include
latex-workshop.latex.search.rootFiles.exclude
2022-03-02 08:45:57 +01:00
Jerome Lelong
e1526cfe71 Add more tests
latex-workshop.latex.rootFile.useSubFile
latex-workshop.latex.autoBuild.run
latex-workshop.latex.rootFile.doNotPrompt
2022-03-02 08:34:49 +01:00
Jerome Lelong
e87096040d Add test for forceRecipeUsage 2022-03-02 08:34:49 +01:00
Jerome Lelong
e4f0f028e0 Add outDir test 2022-03-02 08:34:49 +01:00
Jerome Lelong
2c0bb58597 Use an empty file in the second root dir 2022-03-02 08:34:49 +01:00
Jerome Lelong
6b761fce5b Add test framework for multi-root workspaces 2022-03-02 08:34:49 +01:00
Takashi Tamura
7db24ba28c Use VS Code 1.64.2 for tests 2022-02-24 12:37:16 +09:00
Takashi Tamura
832857fa32 Update packages:
- @types/mocha to v9.1.0
- @types/ws to v8.2.3
- @typescript-eslint/eslint-plugin to v5.12.1
- @typescript-eslint/parser to v5.12.1
- @vscode/test-electron to v2.1.2
- mocha to v9.2.1
2022-02-24 12:27:49 +09:00
Takashi Tamura
cff1a372fd
Merge pull request #3008 from tamuratak/improve_pdfviewer_6
Support the internal PDF viewer on virtual workspaces
2021-12-25 21:19:44 +09:00
Takashi Tamura
7a4d03de17 Stop exposing API. Close #3009 2021-12-15 10:14:09 +09:00
Takashi Tamura
95015dd1f4 Use VS Code FileSystem to read a PDF file on the internal server. 2021-12-11 18:55:28 +09:00
Takashi Tamura
b51a9cd1b6 Fix a magic comment test. 2021-11-23 12:13:32 +09:00
Takashi Tamura
7d0501b21a - Use the height attribute of an img tag to scale an image.
- Remove a dependency on the jimp package.
- Drop the support for VS Code prior to v1.62.0
2021-11-06 11:19:21 +09:00
Takashi Tamura
aadfcd569d - Drop the supprot for VS Code prior to v1.61.2
- Add LwCompletionItem.
2021-10-26 17:22:17 +09:00
Takashi Tamura
6893ef03ed Use VS Code 1.60.2 for tests. 2021-09-26 11:53:48 +09:00
Takashi Tamura
a18295307f Use VS Coee v1.58.2 for tests. 2021-08-01 19:38:27 +09:00