Repository navigation
Expand file tree
/
Copy pathlanes.mjs
More file actions
57 lines (56 loc) · 3.13 KB
/
Copy pathlanes.mjs
File metadata and controls
57 lines (56 loc) · 3.13 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
// The lanes scripts/addin_test.mjs runs (addin-test.bat). A lane is one
// scenario file in this folder, run with node:test in a process of its own,
// with its own DevTools port, work folder and copy of the twinBASIC install;
// scripts/lib/tb-lane.mjs is what the file gets.
//
// file the scenario file
// name what --only matches and the report calls the lane; by default
// the file's name without ".test.mjs"
// settings every application name the lane's add-ins pass to SaveSetting.
// SaveSetting writes under HKCU\Software\VB and VBA Program
// Settings\<name>, the key any installed copy of the same add-in
// uses. The runner records those keys before the first lane
// starts, deletes them before this lane starts, so that its
// add-ins begin from their defaults, and puts them back as found
// once every lane has ended. Two lanes that name the same one
// never run at once. An add-in whose settings are not named here
// leaves them changed after the run.
// page the size of each IDE's page in CSS pixels, { width, height }, or
// null for the window's own; by default 1600 by 1000 (PAGE in
// scripts/lib/tb-lane.mjs), whatever size the user's IDE last left
// its window at
export default [
{ file: "sample10.test.mjs" },
// Sample 15 saves all four of its option boxes whenever one is clicked.
{ file: "sample15.test.mjs", settings: ["GlobalSearchAddIn"] },
// Stage 2 probes. Each finds what it needs in probes/<name>: an add-in it
// builds (keys, panes, appdata, arch, reload, entry, env, references) or a
// project it opens (symbols); ideserver needs neither. env's add-in prints the
// harness's environment variable and references' lists the packages a project
// references (the hosts it opens are in probes/references-*); neither saves
// anything.
{ file: "keys.test.mjs" },
// The same file with the help add-in loaded, which makes {ctrl} and {alt} shortcuts fire.
{ file: "keys.test.mjs", name: "keys-help", settings: ["tbDocsHelp"] },
{ file: "panes.test.mjs" },
{ file: "symbols.test.mjs" },
{ file: "ideserver.test.mjs" },
{ file: "appdata.test.mjs" },
{ file: "arch.test.mjs" },
{ file: "reload.test.mjs" },
{ file: "entry.test.mjs" },
{ file: "env.test.mjs" },
{ file: "references.test.mjs" },
// P21: one IDE per case reading the Parent of the file system's root, the
// add-in told the case by an environment variable; some cases crash the compiler.
{ file: "parent.test.mjs" },
// Hover help's two routes: widgets builds its add-in and saves nothing.
{ file: "widgets.test.mjs" },
// Detaching the help pane: a Form with a WebView2, shown by an add-in. Saves nothing.
{ file: "detach.test.mjs" },
// The help add-in, add-in/ at the repository's root. It saves the page its
// pane shows. The second lane builds it with the help archive, so its pane's
// pages come from the add-in's own server.
{ file: "help.test.mjs", settings: ["tbDocsHelp"] },
{ file: "help.test.mjs", name: "help-offline", settings: ["tbDocsHelp"] },
];