diff --git a/BUGS-TO-REPORT.md b/BUGS-TO-REPORT.md index c76a51659..3c0353a8f 100644 --- a/BUGS-TO-REPORT.md +++ b/BUGS-TO-REPORT.md @@ -199,45 +199,6 @@ filed when the owner decides. --- -## The recent-projects list fills its empty slots with copies of its last entry - -*DEFERRED until after v1* - -**Describe the bug** -When the recent-projects list holds fewer entries than it has slots and a project is opened, the IDE writes a copy of the list's last entry into every empty slot, so the same project is repeated down the Recent tab. The list is 21 values, `"0"` to `"20"`, under `HKCU\Software\VB and VBA Program Settings\twinBASIC_IDE\RecentlyOpened`. A new installation has empty slots, so this is where it shows first. - -**To Reproduce** -Steps to reproduce the behavior: -1. Unzip `recent-projects-copies.zip` (it holds `recent-projects-copies.twinproj`, an ordinary project; any three projects will do) and copy the project to `A.twinproj`, `B.twinproj` and `C.twinproj` in one folder. -2. Export the key with `reg export` first if the list matters to you. Under `RecentlyOpened`, set `"0"` to the full path of `A.twinproj` and `"1"` to that of `B.twinproj`. Delete `"2"` to `"20"`, or set them to empty strings; both reproduce it. -3. Open `C.twinproj`: `twinBASIC.exe C:\path\C.twinproj` is enough. -4. Read the values of the key, with the IDE still running or after it has closed. -5. See `"0"` = `C`, `"1"` = `A`, and `"2"` to `"20"` all = `B`: nineteen copies of `B`. - -**Expected behavior** -The slots that held nothing stay empty, as they do when the key does not exist at all: `"0"` = `C`, `"1"` = `A`, `"2"` = `B`, and the rest empty. The Recent tab then shows three projects. - -**Desktop:** - - OS: Windows 10 Pro 22H2 (build 19045) - - twinBASIC compiler version: BETA 1010 - -**Additional context** -Severity: cosmetic, but it shows on a new installation, which is exactly when the list has empty slots. - -What does not reproduce it: - -| starting list | result | -|---|---| -| no `RecentlyOpened` key at all | `C` and 20 empty strings, which is correct | -| 21 distinct entries | 21 distinct entries, the oldest dropped, which is correct; read at the end of 41 successive opens | -| `C` already at the top | unchanged: the opened project itself is never duplicated | - -So it takes at least one existing entry and at least one slot with nothing in it, which looks like each slot being read with the previous slot's value as its default. Once a duplicate is there, the next opened project keeps it: 18 copies of one project became 20 after one more open, with the new project on top. - - - ---- - ## Clicking the greyed-out Undo or Redo button with no file open prints an IDE internal error **Describe the bug** @@ -537,7 +498,7 @@ Severity: low in practice, since the keys must be almost together. The result is Tested on a copy of BETA 1034 with this change (1 edit in `main.js`, every other byte the same): the entry's two tests fail because the restart shows the right list, and the lane's other 10 tests pass. With F9 and the save in one task the saved list was right in 10 of 10 tries, five each way. F9, F9 and Ctrl+S with no wait brought the breakpoint back in 0 of 10 tries, where the install brought it back in 7 of 10. - + --- @@ -13410,97 +13371,6 @@ On a patched copy of the BETA 1042 install, the lane's test of the second emptyi --- -## A call of a `stdole.IDispatch` method on a Collection ends the program with an access violation - -**Describe the bug** -A call of one of the four `IDispatch` methods through a variable declared `As stdole.IDispatch` is a late-bound call by name (the entry *Calling a method of `stdole.IDispatch` is a late-bound call by name and fails with error 438* above). For an object of a twinBASIC class it raises error 438. When the object is a `Collection`, BETA 1042 ends the program with an access violation instead, and `On Error Resume Next` does not catch it. BETA 1034 raised 438 for both. - -**To Reproduce** -Steps to reproduce the behavior: -1. Open `stdole-idispatch-collection-crash.twinproj` (attached as `stdole-idispatch-collection-crash.zip`). Its `RegressionTests.twin` holds the regression tests below, one `[TestCase]` per behaviour, each asserting the correct result. -2. Or run: - - ```vb - Dim c As New Collection - Dim d As stdole.IDispatch = c - Dim count As Long = -1 - On Error Resume Next - d.GetTypeInfoCount count - Debug.Print Err.Number - ``` -3. See the program end with an access violation, where `438` is expected. - -The regression tests (the first fails on BETA 1042, the two controls pass): - -```vb -Class Widget - Public Hits As Long - Public Sub Hello() - Hits += 1 - End Sub -End Class - -[TestFixture] -Module StdoleDispatchTests - - [TestCase] - Public Sub Collection_GetTypeInfoCount_RaisesAnErrorAndDoesNotCrash() - Dim c As New Collection - Dim d As stdole.IDispatch = c - Dim count As Long = -1 - On Error Resume Next - d.GetTypeInfoCount count - Dim n As Long = Err.Number - On Error GoTo 0 - Assert.Strict.AreEqual 438, n - End Sub - - [TestCase] - Public Sub Control_TwinBasicClass_GetTypeInfoCount_Raises438() - Dim w As New Widget - Dim d As stdole.IDispatch = w - Dim count As Long = -1 - On Error Resume Next - d.GetTypeInfoCount count - Dim n As Long = Err.Number - On Error GoTo 0 - Assert.Strict.AreEqual 438, n - End Sub - - [TestCase] - Public Sub Control_Collection_ThroughObject_CountWorks() - Dim c As New Collection - c.Add 1 - Dim o As Object = c - Assert.Strict.AreEqual 1, CLng(o.Count) - End Sub - -End Module -``` - -What decides it: -- The object: a `Collection` crashes, an object of a twinBASIC class raises 438. -- Not the run: a run in the IDE, the test mode and a built exe each crash, in a 32-bit and a 64-bit build. -- Not the late-bound call itself: through an `As Object` variable, the same `Collection` answers `Count`. - -**Expected behavior** -Error 438, which `On Error` can handle, as for an object of a twinBASIC class and as BETA 1034 gave. Better, the call goes through the interface, as the entry above asks, and returns what the `Collection`'s own `IDispatch` answers. - -VB6 does not accept a variable declared `As IDispatch` (the entry above). - -**Desktop:** - - OS: Windows 10 Pro 22H2 (build 19045) - - twinBASIC compiler version: BETA 1042 - -**Additional context** -Severity: high. An access violation that `On Error` cannot catch ends the program and loses its unsaved data, where the program asked for an error it could handle. - -Checked on BETA 1034, which raises 438 for the `Collection` too, so the crash is new in a build after 1034. - - - ---- - ## Applying a panel layout loses an add-in's tool window that floats shown or is docked: it leaves the page, and the add-in's OnClose never runs **Describe the bug** @@ -13682,118 +13552,6 @@ Severity: low. The box shows a second line, but nothing says that the replacemen --- -## `UserControl.PropertyChanged` leaves `Err.Number` set in the caller, 438 with a name and 13 without, though no error is raised - -**Describe the bug** -`PropertyChanged` in a UserControl raises no error, but after it returns, the code that called the control's member reads `Err.Number` 438 (*Object doesn't support this property or method*) when `PropertyChanged` was given a property name, and 13 (*Type mismatch*) when it was called with none. Every property of a VB6-style control ends its `Property Let` with `PropertyChanged ""`, so after an ordinary assignment such as `MyControl1.Caption = "x"` the caller sees error 438 that did not happen. It does so with or without an `On Error` statement in the caller; an `On Error GoTo` handler is not entered. - -**To Reproduce** -Steps to reproduce the behavior: -1. Open `usercontrol-propertychanged-leaves-err.twinproj` (attached as `usercontrol-propertychanged-leaves-err.zip`): a form with one UserControl of the project on it, and `RegressionTests.twin`, one `[TestCase]` per behaviour, each asserting the correct result. -2. Or, with a UserControl `ProbeControl` on `Form1` whose property is - - ```vb - Public Property Let WithChanged(ByVal Value As Long) - m_A = Value - UserControl.PropertyChanged "WithChanged" - End Property - ``` - - run: - - ```vb - Load Form1 - Err.Clear - Form1.ProbeControl1.WithChanged = 1 - Debug.Print Err.Number - ``` -3. See `438`, where `0` is expected. - -The regression tests (the first three fail on BETA 1042, the two controls pass): - -```vb -[TestFixture] -Module RegressionTests - - [TestCase] - Public Sub PropertyLet_CallingPropertyChanged_LeavesErrZero() - Load Form1 - On Error Resume Next - Err.Clear - Form1.ProbeControl1.WithChanged = 1 - Dim n As Long = Err.Number - On Error GoTo 0 - Unload Form1 - Assert.Strict.AreEqual 0, n - End Sub - - [TestCase] - Public Sub PropertyChangedWithNoName_LeavesErrZero() - Load Form1 - On Error Resume Next - Err.Clear - Form1.ProbeControl1.CallsChangedNoName - Dim n As Long = Err.Number - On Error GoTo 0 - Unload Form1 - Assert.Strict.AreEqual 0, n - End Sub - - [TestCase] - Public Sub PropertyLet_CallingPropertyChanged_LeavesErrZero_WithNoHandler() - Load Form1 - Err.Clear - Form1.ProbeControl1.WithChanged = 2 - Dim n As Long = Err.Number - Unload Form1 - Assert.Strict.AreEqual 0, n - End Sub - - [TestCase] - Public Sub PropertyLet_CallingPropertyChanged_StoresTheValue() - Load Form1 - Form1.ProbeControl1.WithChanged = 3 - Dim v As Long = Form1.ProbeControl1.WithChanged - Unload Form1 - Assert.Strict.AreEqual 3, v - End Sub - - [TestCase] - Public Sub Control_PropertyLet_WithoutPropertyChanged_LeavesErrZero() - Load Form1 - On Error Resume Next - Err.Clear - Form1.ProbeControl1.WithoutChanged = 1 - Dim n As Long = Err.Number - On Error GoTo 0 - Unload Form1 - Assert.Strict.AreEqual 0, n - End Sub - -End Module -``` - -What decides it: -- `PropertyChanged`: the same `Property Let` without it leaves `Err.Number` at 0. -- Its argument: 438 with a property name, 13 without one. -- Not the form being shown: the same with `Form1.Show` and `DoEvents` first. -- Not the build: a 32-bit and a 64-bit run in the IDE, and the test mode, each give the same. -- Not the control: the same in Krool's VBFlexGrid (TWINSERV package VBFLXGRD18 1.8.69.0), where every property assignment leaves 438. - -**Expected behavior** -`Err.Number` stays 0, as `PropertyChanged` raised nothing and the assignment worked. VB6 leaves it at 0 in all four cases (the `vb6/` project of the reproducer). - -**Desktop:** - - OS: Windows 10 Pro 22H2 (build 19045) - - twinBASIC compiler version: BETA 1042 - -**Additional context** -Severity: medium. Nothing fails, but a program that checks `Err.Number` after setting a property of a control (a common VB6 pattern under `On Error Resume Next`) takes the assignment for a failure, silently. - - - ---- - ## A WinNativeCommonCtls TreeView draws its nodes' pictures in every Style, the four text-only ones included **Describe the bug** @@ -14262,35 +14020,6 @@ Severity: low. --- -## An add-in's tool window keeps the --themeAddin colours of the theme it was made in - -**Describe the bug** -BETA 1045 gives add-ins eight theme colours as CSS variables, `--themeAddinBackColor` and the rest. A tool window that an add-in made under one theme keeps that theme's values after the user chooses another: its CSS goes on drawing the old colours until the add-in makes the window again. A designer's tab follows the change, and so does a tool window made after it. It was observed in an IDE started with an `APPDATA` of its own, with a probe add-in (`test/addin/probes/menus`) loaded into a copy of the install. - -**To Reproduce** -Steps to reproduce the behavior: -1. Under the Dark theme, an add-in makes a tool window whose CSS is `body { background: var(--themeAddinBackColor) }`. The background is `#2b2b2b`. -2. Choose **Window → Theme → Light**. The tool window's background stays `#2b2b2b`; the IDE's own panels turn light. -3. Control: a tool window made now has Light's `#FFFFFF`. - -**Expected behavior** -The variables in an open tool window change with the theme, as they do in a designer. - -**Desktop:** - - OS: Windows 10 Pro 22H2 (build 19045) - - twinBASIC compiler version: BETA 1045 - -**Additional context** -`createToolWindowById` in `ide/main.js` copies the eight values onto the tool window's body as inline styles when it makes the window, and nothing copies them again; `resyncTheme`, which `notifyChangedTheme` calls, does it for designers only. The inline values hide the page's own, which do change. - -A `datasheet` in such a tool window keeps the old theme too: it reads the variables from its root, which computes the window's stale values, so after a switch from Dark to Light it goes on painting Dark's colours. - -Severity: low. An add-in can set its own elements' colours in `OnChangedTheme`, but not a datasheet's, which reads only the variables. - - - ---- - ## A datasheet draws a 0 as an empty cell **Describe the bug** @@ -14583,3 +14312,219 @@ What does not reproduce it: the literal `""` as the key with `vbBinaryCompare`, +--- + +## ToolWindow.GetComputedStyleOfChild opens an alert for every property read + +**Describe the bug** +`ToolWindow.GetComputedStyleOfChild(ChildId, PsuedoElement)` returns the computed style of an element of the tool window. Each read of a property of the result, such as `.Item("color").Value`, opens a JavaScript `alert` in the IDE that holds the whole computed style as JSON, several hundred properties, and the read returns only once the box is closed. The handler, `toolWindowElementGetEventInfo`, calls `alert(JSON.stringify(t))` on the style before it answers: a debugging line left in. It was observed in an IDE started with an `APPDATA` of its own, with a probe add-in (`test/addin/probes/integration`) loaded into a copy of the install. + +**To Reproduce** +Steps to reproduce the behavior: +1. An add-in whose tool window has a child added with `ChildDomElements.Add("probeChild", "div")`, shown. +2. Read `Pane.GetComputedStyleOfChild("probeChild").Item("color").Value`. +3. A message box opens, starting `{"0":"accent-color","1":"align-content",...`. The value comes back once it is closed with OK. + +**Expected behavior** +The value comes back with no box. + +**Desktop:** + - OS: Windows 10 Pro 22H2 (build 19045) + - twinBASIC compiler version: BETA 1052 + +**Additional context** +The method arrived in BETA 1046. The same handler answers the reads of an event's properties, which open no box: only the branch for a computed style (`eventInfoId === -1`) has the `alert`. + +Severity: medium. The method is unusable in a loop or a timer, and every read stops the IDE until the user answers. + + + +--- + +## SourceCommand.Enabled always reads True, and setting it to True does not add the command again + +**Describe the bug** +`SourceCommand.Enabled = False` removes the command from Monaco: a lens or a hover's link that names its `CommandID` then gets *command '...' not found*. But `Enabled` still reads `True`, and `Enabled = True` does not register the command again: it stays removed, three times out of three, until the compiler restarts and the add-in adds a new one. It looks as if the Property Get answers a value the Let never stores, and the Let of `True` compares with it and does nothing. It was observed in an IDE started with an `APPDATA` of its own, with a probe add-in (`test/addin/probes/integration`) loaded into a copy of the install. + +**To Reproduce** +Steps to reproduce the behavior: +1. An add-in that adds a command with `Host.Integration.AddSourceCommand("probeCmd")`. +2. Set its `Enabled` to `False`, and read it: `True`. Monaco no longer has the command. +3. Set `Enabled` to `True`, and run the command from a lens or a hover's link: Monaco reports `command 'tbaddin.probeCmd.1' not found`, and `Execute` does not fire. + +**Expected behavior** +`Enabled` reads what was set, and `Enabled = True` registers the command again under its `CommandID`, as it does for a `SourceHoverProvider` and a `SourceCodeLensProvider`. + +**Desktop:** + - OS: Windows 10 Pro 22H2 (build 19045) + - twinBASIC compiler version: BETA 1052 + +**Additional context** +The page keeps one entry for the command in `g_CustomCommandDisposables` throughout; no second `SourceCommandCreate` reaches it. `Enabled` of a hover provider and of a CodeLens provider, turned off and on in the same way, reads back and works. + +Severity: medium. An add-in that turns a command off loses it for good, and cannot tell from `Enabled`. + + + +--- + +## HostAIProviders.Item with a name returns the first provider, whatever the name + +**Describe the bug** +`HostAIProviders.Item(IndexOrName)` takes a `Variant`. With a number it returns the provider at that place. With a `String` it returns provider 0 whatever the string is: the provider's `FriendlyName`, its model's name, or a name that no provider has. It raises no error for a name that matches nothing. It was observed in an IDE started with an `APPDATA` of its own, with a probe add-in (`test/addin/probes/integration`) loaded into a copy of the install, the models set in the page's options. + +**To Reproduce** +Steps to reproduce the behavior: +1. In IDE Options, AI: Models, two enabled models, First (the default) and Second. +2. In an add-in, read `Host.AI.Providers("Second").FriendlyName`: `First`. +3. `Host.AI.Providers("probe-second")`, by the model's name, and `Host.AI.Providers("No such provider")` give `First` too. + +**Expected behavior** +The provider whose `FriendlyName` is the string, and an error when none has it. + +**Desktop:** + - OS: Windows 10 Pro 22H2 (build 19045) + - twinBASIC compiler version: BETA 1052 + +**Additional context** +The page's `getAIModelsInfo` sends the compiler the enabled models' names; the look-up by name is the compiler's. With no models, a string raises error -2147467259, as an index does. + +Severity: medium. An add-in that picks a model by name silently talks to another one. + + + +--- + +## HostAIProvider.StartConversation uses the model at the provider's index among all the models, enabled or not + +**Describe the bug** +`Host.AI.Providers` lists only the models whose **Enabled** box is ticked in IDE Options. `StartConversation` on provider *n* starts the conversation on model *n* of the whole list, enabled or not. With a model that is not enabled above an enabled one, the conversation goes to the wrong model: the request carries the other model's endpoint, model name and API key. It was observed in an IDE started with an `APPDATA` of its own, with a probe add-in (`test/addin/probes/integration`) loaded into a copy of the install, the models set in the page's options, and a fake chat-completions service on 127.0.0.1 recording the requests. + +**To Reproduce** +Steps to reproduce the behavior: +1. In IDE Options, AI: Models, a model that is not enabled first in the list (Disabled), then an enabled one (First). +2. In an add-in, `Host.AI.Providers(0).FriendlyName` is `First`. Call `Host.AI.Providers(0).StartConversation().Ask "hello", False`. +3. The request goes to Disabled's endpoint, with Disabled's model name and key. + +**Expected behavior** +The conversation uses the model the provider stands for, First. + +**Desktop:** + - OS: Windows 10 Pro 22H2 (build 19045) + - twinBASIC compiler version: BETA 1052 + +**Additional context** +In the page, `getAIModelsInfo` filters the models by `isEnabled`, while `AIConversationManager.create(providerId)` indexes `tips_decodeAiModels(liveIDEOptions["aiModels"])`, the whole list. Provider 1 likewise gets model 1 of the whole list. With every enabled model above the others, the two agree. + +Severity: high. The user's messages, and the API key of a model the user turned off, go to a service the user did not choose for them. + + + +--- + +## AIConversation.State never reads Busy + +**Describe the bug** +`AIConversation.State` is declared to be `Idle`, `Busy` or `Closed`. While a question is being answered it reads `Idle` (0): straight after `Ask`, and in the `Started`, `Chunk` and `ToolCall` events of the question, streamed or not. It reads `Closed` (2) after `Close`. It was observed in an IDE started with an `APPDATA` of its own, with a probe add-in (`test/addin/probes/integration`) loaded into a copy of the install, against a fake chat-completions service on 127.0.0.1. + +**To Reproduce** +Steps to reproduce the behavior: +1. In an add-in, start a conversation with an AI model and call `Ask "hello", False`. +2. Read `State` straight after the call, and in the `Started` and `Chunk` events: 0, Idle, each time. + +**Expected behavior** +`Busy` from `Ask` until `Completed`, `Failed` or `Cancelled`. + +**Desktop:** + - OS: Windows 10 Pro 22H2 (build 19045) + - twinBASIC compiler version: BETA 1052 + +**Additional context** +The page's `AIConversationRuntime` does keep a state of `"busy"`, and refuses a second `Ask` in it; the compiler's `State` does not reflect it. A second `Ask` during a reply does nothing, with no error and no event, so an add-in that trusts `State` loses the question. + +Severity: medium. An add-in cannot tell whether its question will be taken. + + + +--- + +## The Endpoint URL example in IDE Options ends with /chat/completions, which the IDE then adds again + +**Describe the bug** +In IDE Options, AI: Models, the **Endpoint URL** box's placeholder is `https://api.example.com/v1/chat/completions`. The IDE adds `/chat/completions` to the endpoint for each request (`OpenAIClient.complete`), so a model whose endpoint is written as the example shows gets every request at `.../v1/chat/completions/chat/completions`, and the service answers with an error. It was observed in an IDE started with an `APPDATA` of its own, with a probe add-in (`test/addin/probes/integration`) loaded into a copy of the install, against a fake chat-completions service on 127.0.0.1. + +**To Reproduce** +Steps to reproduce the behavior: +1. In IDE Options, AI: Models, add a model and write its Endpoint URL as the box's example does, ending `/v1/chat/completions`. +2. In an add-in, start a conversation with it and ask a question. +3. The request goes to `.../v1/chat/completions/chat/completions`, and `Failed` fires with the service's error. + +**Expected behavior** +The example shows the address to write, `https://api.example.com/v1`; or the IDE takes either form. + +**Desktop:** + - OS: Windows 10 Pro 22H2 (build 19045) + - twinBASIC compiler version: BETA 1052 + +**Additional context** +For an endpoint at `api.openai.com` the IDE adds `/responses` instead, and the example misleads the same way. + +Severity: low. The error names the HTTP status, and the docs say what to write. + + + +--- + +## copyEvent reads the event's target before testing it, so every datasheet request fails and the Data Explorer loads nothing + +**Describe the bug** +In BETA 1052 `copyEvent` in `ide/main.js` starts `if (e.target.id === "") e.target.id = "uniqueId" + uniqueId++;`, and only on the next line tests `if (e.target)`. BETA 1045's tested the target first. An add-in event registered as a property callback (`toolWindowElementSetPropertyCallback`) passes its own argument to `copyEvent`, and a datasheet's requests, `onGetInfo` and `onGetRows`, pass an object with no `target`. So each throws *Cannot read properties of undefined (reading 'id')* in the page, the datasheet's load fails with that message, and the add-in's handler is never called. The Data Explorer that ships with the IDE (Sample 27) opens a `.tbdata` file with its toolbar and no rows. It was observed in an IDE started with an `APPDATA` of its own, with a probe add-in (`test/addin/probes/datasheet`) loaded into a copy of the install, and with the shipped Data Explorer. + +**To Reproduce** +Steps to reproduce the behavior: +1. An add-in whose tool window holds a `datasheet` element, with `onGetInfo` and `onGetRows` handlers added to its parent with `AddEventListener`. +2. Call the parent's `Ready()` and then the controller's `loadData()`. +3. The load fails at once: `getLastError()` is "Cannot read properties of undefined (reading 'id')", and the add-in's `onGetInfo` is never called. +4. Open a `.tbdata` file in the Data Explorer: it shows its toolbar and no rows. + +**Expected behavior** +The request reaches the add-in, as in BETA 1045. + +**Desktop:** + - OS: Windows 10 Pro 22H2 (build 19045) + - twinBASIC compiler version: BETA 1052 + +**Additional context** +The fix is the order of the two tests: `if (e.target && e.target.id === "")`. With that one change in the page, `copyEvent` recompiled in place, every test of the datasheet lane passes again, as on BETA 1045 (`bugs/copyevent-no-target-typeerror/fix.js`; the harness applies it to every IDE it starts, as `IDE_FIXES` in `scripts/lib/tb-defaults.mjs`). The line that assigns an id to a target with none came with the `tagName` and `href` fields of BETA 1046. + +Severity: high. The Data Explorer, an add-in that ships with the IDE, shows no data, and so does any add-in's datasheet. + + + +--- + +## The code editor menu's Drag And Drop Selection item stays ticked when the option is off + +**Describe the bug** +The code editor's menu (the **...** icon in the EDITOR panel's header) ends with **Drag And Drop Selection**, new in BETA 1048. Clicking it turns the IDE option `monaco.dragAndDrop` off and on, and the code editor's `dragAndDrop` follows. Its tick does not: it is shown whether the option is on or off. It was observed in an IDE started with an `APPDATA` of its own, on a copy of the install. + +**To Reproduce** +Steps to reproduce the behavior: +1. Open a project and a code file. Open the code editor's menu: Drag And Drop Selection is ticked. +2. Click it. The option is now off: `liveIDEOptions["monaco.dragAndDrop"]` is `false`, and so is the code editor's `dragAndDrop` option. +3. Open the menu again: the item is still ticked. + +**Expected behavior** +The item is unticked while the option is off. + +**Desktop:** + - OS: Windows 10 Pro 22H2 (build 19045) + - twinBASIC compiler version: BETA 1052 + +**Additional context** +In `showCodeEditorOptionsContextMenu`, the item's `iconClass` reads `g_CachedProjectSettings["monaco.dragAndDrop"]`, a project setting the project does not have, while its action, `tbEditor_ToggleDragDropSelection`, sets `liveIDEOptions["monaco.dragAndDrop"]`. The item above it, Show CodeLens Run Procedure, is a project setting, which is likely where the line came from. + +Severity: low. The option works; the menu misreports it. + + + diff --git a/WIP.BugHunt.md b/WIP.BugHunt.md index d075359e9..2af8baae3 100644 --- a/WIP.BugHunt.md +++ b/WIP.BugHunt.md @@ -72,20 +72,23 @@ the control opens the database, moves through it, and the bound TextBox shows ea Seen on BETA 1042 with VBCCR18 1.8.136.0's controls on a form. None checked in VB6, and none narrowed to a UserControl of our own. -- **`Err.Number` is 438 after a property assignment that succeeded.** Under `On Error Resume - Next`, `ProgressBar1.MarqueeSpeed = 5` leaves `Err.Number` 438 (*Object doesn't support this - property or method*), though the value is set and nothing is raised: the same statement with - no handler runs on. Every setter that ends with `UserControl.PropertyChanged ""` does it - (FontQuality, MousePointer, Max); `Value`, whose setter runs an `On Error Resume Next` block - after that call, leaves 0. So the suspect is `PropertyChanged`, failing inside and leaving - `Err` set. - **A form does not make option buttons that are UserControls exclusive.** OptionButtonW's `Value` is `OLE_OPTEXCLUSIVE`, and the control calls `UserControl.PropertyChanged "Value"` when it becomes True, on which a VB6 form clears the other such controls of the container. Two OptionButtonW on one form stay True together, set by code or clicked (`BM_CLICK`), the form loaded or shown, win32 and win64. The OptionButtonW page has a WARNING and a probe - sample (`optionbuttonw-group`). Probably one defect with the 438 above: `PropertyChanged` - failing inside. + sample (`optionbuttonw-group`). Not the `Err.Number` 438 that `PropertyChanged` left in the + caller: BETA 1052 fixed that, and the sample still shows two buttons True. +- **A UserControl buddy's default member is not reached through `As Control`.** VBCCR18's + `UpDown.SyncBuddy = True` with a TextBoxW buddy and no BuddyProperty raises 380: its Let calls + `CallByName BuddyControl, "", vbGet` on `Dim BuddyControl As Control` (UpDown.ctl.twin 834-860) + and tests `Err.Number`. Since BETA 1052 a named property of the buddy's own class (`Text`) is + reached that way; the default member is not. One run of the package's cases on 1052 (the + recheck's) passed the case on win32 and win64, and the two after it (win64; win32 and win64) + failed it, so something + that varies between runs decides. NOTE and failing case on UpDown.md + (`UpDownTests.SyncBuddy_True_UsesTheDefaultPropertyOfTheBuddy`). Not narrowed to a UserControl + of our own; VB6 not checked. - **A process stops returning after about ten thousand loads of a VBCCR18 control.** A form with one control (ToolBar, LabelW), made with `New`, loaded, unloaded and set to Nothing in a loop inside one `[TestCase]`, runs at a steady speed (about 3 to 5 ms a load) and does not return @@ -118,12 +121,6 @@ narrowed to a UserControl of our own. keeps of itself are different objects to `Is`. Whose doing (twinBASIC's extender, its `Is`, or the package's `Shadow...` reference) is not known; VB6 not checked. The pages say nothing of 35700 until this is settled. -- **A UserControl's own property is not reached through `As Control`.** VBCCR18's - `UpDown.BuddyProperty = "Text"` with a TextBoxW buddy raises 380: its Let checks the name - through `Dim BuddyControl As Control` (UpDown.ctl.twin 786-829), and only the extender's - members (Tag, ToolTipText, Width) pass. NOTE and failing case on UpDown.md - (`UpDownTests.BuddyProperty_Text_ShowsTheValue`). Not narrowed to a UserControl of our own; - VB6 not checked. - **MCIWnd's string getters give Windows twice the buffer's length**: `LenB(Buffer)` (512) for a 256-character buffer, where the MCIWnd messages take a count of characters (MCIWnd.ctl.twin 1288, 1303, 1339, 1375, 1439, 1464). A value over 255 characters would be @@ -200,6 +197,32 @@ None of them run yet. - **The Hex Editor's grid tooltip** says Ctrl+C "uses that column", but Ctrl+C always copies hex. **Page affected**: HexEditor.md says what the code does. +BETA 1052: met in its update, running `test/addin/integration.test.mjs`. + +- **Turning a command, two hover providers and a CodeLens provider back on together can end the + IDE's page.** Twice in five runs, the DevTools connection closed while the add-in set the four + `Enabled = True` in one handler and the test then rested the mouse on code; the lane's close found + no alert and no compiler crash. One at a time (`integration-toggle.test.mjs`, three cycles each) + never did. The lane now does it last, and only off. Not narrowed: which of the four, the order, + and whether a hover or a lens request pending at the moment is what matters. **Page affected**: + none says the three may be turned on together. +- **A command run through Monaco that does not exist ends the page**: the rejected promise of + `editor._commandService.executeCommand` is unhandled, and the IDE reports it as *IDE startup + failure*, then the page goes. A user meets it by clicking a lens or a hover's link whose command + the add-in removed (`SourceCommand.Enabled = False`). Not yet tried from a real click. +- **A double-clicked `Resources/ICON/AppIcon.ico` opens a tab with no preview** (BETA 1052, + `shoot_docs.mjs`'s `projects` setup, both themes, twice): the tab `AppIcon.ico` is there, and no + `` and no `` is in the page, where BETA 1045 showed the icon in an ``. + `fileHandler_preview` and the choice of handler are the same as BETA 1045's, so the likely + cause is that the tab is never activated: `bufferToBase64Async`'s callback, which activates it, + not called. Not narrowed; not tried by hand. **Page affected**: Projects/Adding-Files.md's + picture Resource_Preview, which keeps its BETA 1045 version, and the text beside it. +- **The Global Search add-in (BETA 1049 on) loses the first key typed after Ctrl+A in its box**: + Ctrl+A, then `Button1` at 150 ms a key, gave `utton1`, in both themes, every time + (`shoot_docs.mjs`'s `gsSearch`, which now empties the box first). Keys sent with no delay lost + more of the start. Its `HandleSearchSelectAll` is the likely place. Not yet tried by hand. + **Page affected**: GlobalSearch.md says nothing of Ctrl+A. + ### VBFLXGRD18 - **Without an explicit `Load Form1`**, `Form1.VBFlexGrid1` through the implicit instance diff --git a/WIP.Harness.md b/WIP.Harness.md index 1ff1d6a89..281d4433d 100644 --- a/WIP.Harness.md +++ b/WIP.Harness.md @@ -1114,10 +1114,10 @@ theme and the other options are not written, so there is nothing to check). `ideLists` and `rememberedTargets` only read. The lane runner calls them after the put-back and fails the run (exit 3) when an entry names a lane's folder, because that means the flags did not do their work, or an IDE started without them (another session's, an older install's) -wrote it. A repair would hide exactly that. `test/ide/recent-projects-copies.test.mjs` is the -one test that must see the recent list change, so its IDE gets `IDE_FLAGS` less -`--no-update-recent-files` (`flags` in `Lane.open`), and the test records and restores the key -itself. +wrote it. A repair would hide exactly that. No test needs the recent list to change: the one that +did, of the slots filled with copies of the last entry, was retired at BETA 1052, whose lane IDE +writes no recent list on open, close or exit even with neither flag (a probe the owner allowed +once, 2026-12-04). **A build target is never saved by a harness IDE, and is still read.** A project opens in the target the IDE remembers for its path (`IDESettings\targetArchitectureMemory`, one JSON object @@ -1251,8 +1251,8 @@ A new build can add a key, which is read from the user's registry until it is bl New / Open Project dialog's section) were. After a new BETA, list the keys the page passes to `GetIDESetting` (a search of the install's `ide/*.js` for the call) and compare them with `BLANKED_KEYS`, and list the `SaveIDESetting` calls that do not test `g_DontSaveIdeSettings`. -The recent lists are left alone: `test/ide/recent-projects-copies.test.mjs` needs the IDE's own, and -`shoot_docs.mjs`'s `PAGE_DEFAULTS` empties them where a picture shows them. +The recent lists are not blanked: `shoot_docs.mjs`'s `PAGE_DEFAULTS` empties them where a picture +shows them. A page's document can begin before the script is added (a probe of 50 launches hooked 49). `attachIde` therefore checks `window.__tbDefaults`, the marker the script sets (it lists the keys diff --git a/WIP.Screenshots.md b/WIP.Screenshots.md index 66fffee25..9b49b2b24 100644 --- a/WIP.Screenshots.md +++ b/WIP.Screenshots.md @@ -266,6 +266,17 @@ every theme, would say `tone: "light"`. each part is captured as its own clip; the tool then lays the parts out in a full-window layer in the same page (`` of each part on a plain background, with a gap), maps each part's anchors through its placement, draws the overlay across, and captures the layer. +**Torn menus** (`scripts/lib/shot-tear.mjs`; Menu_View_PackagePublishing): a long menu shown with the rows between two items left out and a zig-zag tear in +their place, and cut off below a third item by another. The owner's choices: each tooth 4 CSS px +deep from peak to peak and 10 wide, the tear 6 wide, and **each tear cut through a row of +text**, 3 px from its middle away from what is kept, never through the space between rows: the +drop-downs are near white in every theme, and a tear there reads as a gap in the border only. +Cut at the middle, the two half-lines of text run together; 3 px off, each still reads. The +same in both themes. The tear is a CSS mask on the body, which the IDE sizes to the window, not +on the menu: a mask shows nothing outside its own element's border box, and the menu's 1 px +outline lies outside the menu's; svgshot draws the mask (`bench/torn-menu.html`, 0.001% off). +The rows are hidden and the row below the tear moved up in the page only, and put back after. + **Native ` select ${thumb ? `${esc(p.out)}` : ""}

${esc(p.out)}

@@ -1126,14 +1138,15 @@ const rectsText = (rects) => const AGAINST = { revision: "HEAD", disk: "the file", dark: "the dark picture" }; // The pager of a picture's page: the overview, its neighbours in the list it was opened from, -// and its place there. -function pagerHtml({ p, filter, place, prev, next }) { +// and its place there. `group` is the group the pager places the picture in, the one the page +// was opened in (pinnedList), which a decision made on the page does not change. +function pagerHtml({ p, filter, place, prev, next, group = p.group }) { const filterLabel = (FILTERS.find(([k]) => k === filter) ?? FILTERS[0])[1]; - const groupTitle = (GROUPS.find(([k]) => k === p.group) ?? [null, p.group])[1]; + const groupTitle = (GROUPS.find(([k]) => k === group) ?? [null, group])[1]; return ``; } @@ -1212,7 +1225,7 @@ ${actionsHtml([ * outsideSectionHtml takes it; `map` the difference map's address, or null; the rest as * detailHtml's. */ -export function outsideHtml({ p, filter, place, prev, next, files, map, baseline, busy = null }) { +export function outsideHtml({ p, filter, place, prev, next, group, files, map, baseline, busy = null }) { const size = files.docs?.size ?? files.head?.size ?? null; const headLabel = `HEAD (${baseline.short})`; const figs = []; @@ -1237,7 +1250,7 @@ export function outsideHtml({ p, filter, place, prev, next, files, map, baseline : null, }) : `
${figs.join("\n")}
`; - const body = `${pagerHtml({ p, filter, place, prev, next })} + const body = `${pagerHtml({ p, filter, place, prev, next, group })}

${esc(sizeText(size))}; ${chipsOf(p)}

No run of this session reported this picture. It has no verdict to override; a retake of it through this tool judges it.

${outsideSectionHtml(p, files.svg, baseline)} @@ -1454,7 +1467,9 @@ ${drawOn(svgPic, "svg-ignore", entry?.svg?.ignore)} /** * The detail page of one picture: `p` reviewPictures' picture; `filter` the filter it was * opened from, `place` {index, total, group} its place in that filter's list, `prev` and - * `next` its neighbours there (pictures, or null); `files` {head, reference, capture, svgPng, + * `next` its neighbours there (pictures, or null), `group` the group the pager places it in (by + * default its own; pinnedList's, when a decision has moved it out of the group it was opened + * in); `files` {head, reference, capture, svgPng, * svg}, each {src, size} or null, and `maps` {png, svg}, each an address or null; `rules` * {png: pngRule, svg: svgRule} of its entry in the manifest, `entry` that entry (or null), * `build` the build the manifest records for its file, or null; `baseline` the session's; @@ -1467,6 +1482,7 @@ export function detailHtml({ place, prev, next, + group, files, maps, rules, @@ -1479,7 +1495,7 @@ export function detailHtml({ outside = null, }) { const groupTitle = (GROUPS.find(([k]) => k === p.group) ?? [null, p.group])[1]; - const nav = pagerHtml({ p, filter, place, prev, next }); + const nav = pagerHtml({ p, filter, place, prev, next, group }); const act = hrefs.act(p.out); const png = p.png; const svg = p.svg; diff --git a/scripts/lib/shot-policy.mjs b/scripts/lib/shot-policy.mjs index 17415285a..a7f3b71c3 100644 --- a/scripts/lib/shot-policy.mjs +++ b/scripts/lib/shot-policy.mjs @@ -44,8 +44,10 @@ function wordsOver(a, b) { * @param {{whole: string[], cut: string[]}} dark the text the dark pass read, block by block: * `whole` the blocks with a line that shows in full, `cut` those an edge cuts * @param {{whole: string[], cut: string[]}} light the text the light pass read - * @param {{dark?: string[], light?: string[]} | null} [allow] the words a shot says must differ - * (the name of the theme in a list that shows it), each on its own side, and no others + * @param {{dark?: (string|RegExp)[], light?: (string|RegExp)[]} | null} [allow] the words a + * shot says may differ, each on its own side, and no others: a string is one word (the name of + * the theme in a list that shows it), a RegExp every word it matches whole (a duration the page + * measured, which no two passes agree on) * @returns {{dark: string[], light: string[]} | null} the words only each side shows, or null * when they say the same */ @@ -53,8 +55,10 @@ export function themeTextDifference(dark, light, allow = null) { const all = (side) => [...side.whole, ...side.cut]; if (noSpace(all(dark)) === noSpace(all(light))) return null; const words = (texts) => texts.join(" ").split(/\s+/).filter(Boolean); - const left = wordsOver(words(dark.whole), words(all(light))).filter((w) => !allow?.dark?.includes(w)); - const right = wordsOver(words(light.whole), words(all(dark))).filter((w) => !allow?.light?.includes(w)); + const allowed = (list, w) => + !!list?.some((a) => (a instanceof RegExp ? new RegExp(`^(?:${a.source})$`, a.flags).test(w) : a === w)); + const left = wordsOver(words(dark.whole), words(all(light))).filter((w) => !allowed(allow?.dark, w)); + const right = wordsOver(words(light.whole), words(all(dark))).filter((w) => !allowed(allow?.light, w)); return left.length || right.length ? { dark: left, light: right } : null; } diff --git a/scripts/lib/shot-review.mjs b/scripts/lib/shot-review.mjs index 0d0266ee1..2a039849c 100644 --- a/scripts/lib/shot-review.mjs +++ b/scripts/lib/shot-review.mjs @@ -344,6 +344,30 @@ export function filterPictures(pictures, filter, { overridden = () => false, exi /** Whether a manifest entry holds a decision or an allowance: anything but the build. */ export const isOverridden = (entry) => !!(entry?.png || entry?.svg); +/** + * `list` (pictures, in the overview's order) with the picture `p` placed in the group `group`, + * where reviewPictures would put a picture of that group: a picture page keeps the list it was + * opened from, so that a decision that moves its picture to another group (Needs a look to Only + * noise) leaves its neighbours as they were (owner, 2026-12-04). Within a group the place is by + * path, and in Changed by `measure`, most first, as reviewPictures orders them; a group the list + * has no picture of comes where GROUPS puts it. `p` is taken out of the list first, wherever it + * is; the copy put back has `group` as its group. Returns `list` itself when `p` is in it and in + * `group` already. + */ +export function pinnedList(list, p, group) { + if (list.some((q) => q.out === p.out && q.group === group)) return list; + const rank = (key) => GROUPS.findIndex(([k]) => k === key); + const g = rank(group); + const before = (q) => + group === "changed" + ? (q.measure ?? 0) < (p.measure ?? 0) || ((q.measure ?? 0) === (p.measure ?? 0) && q.out > p.out) + : q.out > p.out; + const rest = list.filter((q) => q.out !== p.out); + let at = rest.findIndex((q) => rank(q.group) > g || (q.group === group && before(q))); + if (at < 0) at = rest.length; + return [...rest.slice(0, at), { ...p, group }, ...rest.slice(at)]; +} + /** Where `out` is in `list` (pictures): {index, prev, next}, index -1 and no neighbours when it is not there. */ export function neighbours(list, out) { const index = list.findIndex((p) => p.out === out); diff --git a/scripts/lib/shot-server.mjs b/scripts/lib/shot-server.mjs index 9b132f288..43142dfc9 100644 --- a/scripts/lib/shot-server.mjs +++ b/scripts/lib/shot-server.mjs @@ -54,8 +54,10 @@ import { commitPlan, FILTERS, filterPictures, + GROUPS, isOverridden, neighbours, + pinnedList, reviewPictures, undecidedRefusal, } from "./shot-review.mjs"; @@ -769,23 +771,37 @@ export function createReviewServer({ busy: busyRun(), }); } - function detail(out, wanted) { + // `wanted` the filter the page was opened from, `pinned` the group it was opened in (the + // overview's, with no filter): the pager stays in that list whatever a decision made on the + // page does to the picture (pinnedList). Needs a look is the one filter a decision takes a + // picture out of, and it pins the picture in its own group. + function detail(out, wanted, pinned = null) { const m = model(); const p = m.pictures.find((q) => q.out === out); // a picture not taken yet has no verdict: the page of every picture's plain page shows it, // with Retake this picture if (!p || p.untaken) return null; let filter = wanted; + let group = filter === "look" ? "look" : filter === "all" ? pinned : null; + if (group && !GROUPS.some(([k]) => k === group)) group = null; let list = filterPictures(m.pictures, filter, filterOptions); + if (group && p.group !== group) list = pinnedList(list, p, group); let place = neighbours(list, out); if (place.index < 0) { filter = "all"; + group = null; list = m.pictures; place = neighbours(list, out); } if (filter === "look") session.setPlace(out); const file = (src, bytes) => (bytes ? { src, size: pngSize(bytes) } : null); - const pager = { filter, place: { index: place.index, total: list.length }, prev: place.prev, next: place.next }; + const pager = { + filter, + place: { index: place.index, total: list.length }, + prev: place.prev, + next: place.next, + group: group ?? p.group, + }; // the SVG as the baseline has it and as the file is, for a review of an SVG changed outside the runs const svgFiles = () => { const s = svgOf(out); @@ -1261,7 +1277,7 @@ export function createReviewServer({ const out = rest.join("/"); if (!isDocsImage(out)) return notFound(res, `${out} is not a picture`); // a picture of the session has its page of verdicts; any other image under docs, a plain one - const html = detail(out, filter); + const html = detail(out, filter, url.searchParams.get("group")); if (html) return page(req, res, html); return plainPage(out).then((plain) => plain ? page(req, res, plain) : notFound(res, `${out} is not a picture of this session or under docs`), diff --git a/scripts/lib/shot-tear.mjs b/scripts/lib/shot-tear.mjs new file mode 100644 index 000000000..c7da7c224 --- /dev/null +++ b/scripts/lib/shot-tear.mjs @@ -0,0 +1,97 @@ +// A menu shown torn, for shoot_docs.mjs: the open drop-down with the rows between two of its +// items left out and a zig-zag tear in their place, and cut off below a third item by another +// tear, so that a picture of one item of a long menu is short. The owner's choices are in +// WIP.Screenshots.md (Annotations). +// +// const { bottom } = await tearMenu(conn, { from: "PROJECT EXPLORER", to: "DIAGNOSTICS", end: "TOOLBAR" }); +// ... capture down to `bottom` ... +// await untearMenu(conn); +// +// Each tear is cut through a row of text, OFF px from the middle of the row away from what is +// kept, so that its teeth show in every theme: the menus are near white in each, and a tear +// through the space between two rows reads as no more than a gap in the border. The rows +// between `from` and `to` are hidden and `to` is moved up, so that the two cuts of the tear are +// DEPTH + GAP apart. The tears are cut by a CSS mask on the body, which the IDE sizes to the +// whole window, rather than on the menu: a mask shows nothing outside its own element's border +// box, and the menu's 1 px outline lies outside the menu's. svgshot draws the mask as an SVG +// (scripts/svgshot/bench/torn-menu.html holds the idiom). + +// CSS px: a tooth DEPTH deep from peak to peak and TOOTH wide, the tear GAP wide, each cut OFF +// from the middle of its row; the band reaches MARGIN past each side of the menu, past its outline. +const DEPTH = 4; +const TOOTH = 10; +const GAP = 6; +const OFF = 3; +const MARGIN = 2; + +// The attribute that marks what tearMenu changed, so that untearMenu puts back only that. +const MARK = "data-tb-shot-torn"; + +const TEAR_JS = (from, to, end) => `(() => { + const DEPTH = ${DEPTH}, TOOTH = ${TOOTH}, GAP = ${GAP}, OFF = ${OFF}, MARGIN = ${MARGIN}; + const menu = document.getElementById("contextMenu"); + const rows = [...menu.children]; + const find = (text) => { + const i = rows.findIndex((e) => e.innerText.trim().split(/\\n|\\t|\\s{2,}/)[0].trim() === text); + if (i < 0) throw new Error("the menu has no item " + text + ": " + JSON.stringify(rows.map((e) => e.innerText.trim()))); + return i; + }; + const a = find(${JSON.stringify(from)}); + const b = find(${JSON.stringify(to)}); + const z = find(${JSON.stringify(end)}); + if (!(a < b && b < z)) throw new Error("the tear's items are not in the menu's order"); + for (const e of rows.slice(a + 1, b)) { + e.setAttribute(${JSON.stringify(MARK)}, e.style.display); + e.style.display = "none"; + } + const mid = (e) => { const r = e.getBoundingClientRect(); return r.top + r.height / 2; }; + const top = rows[a]; + const below = rows[b]; + below.setAttribute(${JSON.stringify(MARK)}, ""); + below.dataset.tbShotTornMargin = below.style.marginTop; + const now = mid(below) - OFF - (mid(top) + OFF); + below.style.marginTop = (parseFloat(getComputedStyle(below).marginTop) + DEPTH + GAP - now) + "px"; + const m = menu.getBoundingClientRect(); + const x0 = m.left - MARGIN, x1 = m.right + MARGIN; + // a zig-zag from x0 to x1 about y, its first point a peak, every tear in phase + const zig = (y) => { + const pts = []; + for (let i = 0; ; i++) { + const x = Math.min(x0 + (i * TOOTH) / 2, x1); + pts.push([x, y + (i % 2 ? DEPTH / 2 : -DEPTH / 2)]); + if (x >= x1) return pts; + } + }; + const ring = (pts) => "M" + pts.map(([x, y]) => x + " " + y).join("L") + "Z"; + const y1 = mid(top) + OFF; + const y3 = mid(rows[z]) + OFF; + const W = document.body.clientWidth, H = document.body.clientHeight; + const d = "M0 0H" + W + "V" + H + "H0Z" + + ring([...zig(y1), ...zig(y1 + DEPTH + GAP).reverse()]) + + ring([...zig(y3), [x1, H], [x0, H]]); + const svg = ''; + const s = document.body.style; + s.maskImage = 'url("data:image/svg+xml,' + encodeURIComponent(svg) + '")'; + s.maskSize = W + "px " + H + "px"; + s.maskRepeat = "no-repeat"; + return { bottom: y3 + DEPTH / 2 }; +})()`; + +const UNTEAR_JS = `(() => { + for (const e of document.querySelectorAll("[${MARK}]")) { + if ("tbShotTornMargin" in e.dataset) { + e.style.marginTop = e.dataset.tbShotTornMargin; + delete e.dataset.tbShotTornMargin; + } else e.style.display = e.getAttribute(${JSON.stringify(MARK)}); + e.removeAttribute(${JSON.stringify(MARK)}); + } + const s = document.body.style; + s.maskImage = s.maskSize = s.maskRepeat = ""; +})()`; + +// Tears the open drop-down between the items `from` and `to` and cuts it off through `end`, +// each named by its text without its key. Returns the lowest point of the picture, in CSS px. +export const tearMenu = (conn, { from, to, end }) => conn.evaluate(TEAR_JS(from, to, end)); + +// Puts the menu and the body back, whether or not a tear is there. +export const untearMenu = (conn) => conn.evaluate(UNTEAR_JS); diff --git a/scripts/lib/shot-verdicts.mjs b/scripts/lib/shot-verdicts.mjs index f7beb6dbd..4e4f40acc 100644 --- a/scripts/lib/shot-verdicts.mjs +++ b/scripts/lib/shot-verdicts.mjs @@ -32,6 +32,7 @@ import { existsSync, readFileSync, rmSync, writeFileSync } from "node:fs"; import path from "node:path"; import { copyBundle, readBundle } from "../svgshot/bundle.mjs"; +import { holderText } from "./file-holders.mjs"; import { staleBundle } from "../svgshot/redraw.mjs"; import { applyPicture, @@ -341,7 +342,7 @@ export function createApplier({ session, docsRoot, bundlesRoot, revision, manife return true; } catch (e) { m.save(); - errors.set(out, e.message); + errors.set(out, holderText(e)); return false; } } @@ -396,7 +397,7 @@ export function createApplier({ session, docsRoot, bundlesRoot, revision, manife errors.delete(out); } catch (e) { m.save(); - errors.set(out, e.message); + errors.set(out, holderText(e)); } } @@ -428,7 +429,7 @@ export function createApplier({ session, docsRoot, bundlesRoot, revision, manife errors.delete(out); } catch (e) { m.save(); - errors.set(out, e.message); + errors.set(out, holderText(e)); } } @@ -448,8 +449,8 @@ export function createApplier({ session, docsRoot, bundlesRoot, revision, manife reapply(out, layers, m); errors.delete(out); } catch (e) { - failed.set(out, e.message); - errors.set(out, e.message); + failed.set(out, holderText(e)); + errors.set(out, failed.get(out)); } } m.save(); diff --git a/scripts/lib/tb-defaults.mjs b/scripts/lib/tb-defaults.mjs index 6930ad2e7..b268767ab 100644 --- a/scripts/lib/tb-defaults.mjs +++ b/scripts/lib/tb-defaults.mjs @@ -50,6 +50,11 @@ export const BLANKED_KEYS = { OBJECT_BROWSER: "", NEWFRONTPAGE: "", ALLOWERRORREPORTINGV3: "DISAGREED_TOOLS", + // BETA 1052's Black Friday box, a modal one the page shows to every edition, licensed or not, + // until 6 December 2026, once the debugger connects, unless this key says it was seen. A tool's + // IDE never saves the key, so without this answer every tool's IDE would show it, over the + // buttons a lane clicks and in every picture. "1" is what the page saves once it was shown. + BF_2026_1: "1", }; // Defects of the IDE itself that every tool's IDE has fixed in its page, each named by the slug of @@ -63,7 +68,11 @@ export const BLANKED_KEYS = { // with its useCachedItemHeights unset, and the first setUseCachedItemHeights(false) empties it. The // page sets the flag false as main.js assigns the list to `debugConsoleContent`, a `var` of // main.js with no initialiser, so the setter put on window here stays and sees the assignment. -export const IDE_FIXES = ["console-cleared-at-open"]; +// copyevent-no-target-typeerror: BETA 1052's copyEvent reads the event's target.id before it +// tests that there is a target, so every add-in event raised with no target, the datasheet's +// requests among them, throws a TypeError in the page and never reaches the add-in. The page +// recompiles copyEvent with the test first, once main.js has run. +export const IDE_FIXES = ["console-cleared-at-open", "copyevent-no-target-typeerror"]; // Runs in the page, in every document of the IDE's browser; only main.htm does anything. // `window.__tbDefaults` is the marker that it ran, its `keys` the keys it answered @@ -93,6 +102,28 @@ export function pageHook(answers, fixes = []) { }, }); } + if (fixes.includes("copyevent-no-target-typeerror")) { + // copyEvent is a function declaration of main.js, so it is replaced once main.js has run: + // recompiled from its own source with the test of the target first, in the global scope (its + // free names, shallowclone and uniqueId, are main.js's globals). A build whose copyEvent + // tests the target first has no `.target.id===""` before it, and is left alone. + const patch = () => { + const fn = window.copyEvent; + if (typeof fn !== "function" || fn.__tbFixed) return; + const src = String(fn); + const fixed = src.replace(/if\(([\w$]+)\.target\.id===""\)/, 'if($1.target&&$1.target.id==="")'); + if (fixed === src) return; + const replaced = (0, eval)(`(${fixed})`); + replaced.__tbFixed = true; + window.copyEvent = replaced; + if (!marker.fixes.includes("copyevent-no-target-typeerror")) marker.fixes.push("copyevent-no-target-typeerror"); + }; + // DOMContentLoaded reaches the window too; a stand-in page with no events (the unit tests) gets none + if (typeof window.addEventListener === "function") { + window.addEventListener("DOMContentLoaded", patch); + window.addEventListener("load", patch); + } + } const send = window.fetch; window.fetch = function (resource, ...rest) { if (!/\/\/(www\.)?twinbasic\.com\/notify\b/i.test(String(resource?.url ?? resource))) { diff --git a/scripts/lib/tb-ide.mjs b/scripts/lib/tb-ide.mjs index e628d7da0..7209c7b8c 100644 --- a/scripts/lib/tb-ide.mjs +++ b/scripts/lib/tb-ide.mjs @@ -244,8 +244,7 @@ export async function leaseSlot({ tag = "", port = false } = {}) { * scaling * @param {string[]} [o.flags] the IDE's own command-line flags (default IDE_FLAGS). * Only a test of the very thing a flag guards leaves - * one out, and it puts back what it writes: the recent - * list's test (test/ide/recent-projects-copies.test.mjs) + * one out, and it puts back what it writes; none does now * @param {boolean} [o.userSettings] the IDE keeps the user's own settings (default false: * the IDE is answered "no saved value" for its options, panel * layouts and keyboard groups, in the page only, so it runs with diff --git a/scripts/shoot_docs.mjs b/scripts/shoot_docs.mjs index b5f548044..90fe7f310 100644 --- a/scripts/shoot_docs.mjs +++ b/scripts/shoot_docs.mjs @@ -37,9 +37,9 @@ // of Project Settings (-symbols, -webview2 and -fusion have the // references those pictures list); glyphs is the sample itself, for // the icons the pages show inline -// global-search Sample 15, the Global Search add-in, built into the copy, and -// the sample's own project open: the add-in's pictures and the toolbar -// that has its button +// global-search the Global Search add-in that the install ships, its DLL copied +// into the copy, and Sample 15's project open: the add-in's pictures and +// the toolbar that has its button // sample6 Sample 6, the CustomControls sample, open: its package in the Project // Explorer, and the package as JSON // designer the sample with the forms of test/shots/designer staged onto it and the @@ -66,7 +66,8 @@ // code-chapter the same project with test/shots/codechapter staged onto it: the // "Writing code" chapter's pictures of the editor (tabs, combo boxes, menus, // IntelliSense, finding, bookmarks, Outline, DIAGNOSTICS) and the Edit and -// View menus with the code focused +// View menus with the code focused, the View menu torn as well to show +// PACKAGE PUBLISHING (lib/shot-tear.mjs) // debugging the same with test/shots/debugging staged as well: the "Running and // debugging" chapter's pictures of a paused program, run from the IDE // assert test/shots/assert, AssertDemo: the Testing with Assert tutorial's tests, @@ -219,6 +220,7 @@ import { frameEval, frameOf, serveLoopback } from "../test/addin/pages.mjs"; import { launchBrowser } from "./lib/browser.mjs"; import { annotate as annotateOver, LAYER_ID, resolveAnchors, unannotate } from "./svgshot/annotate.mjs"; import { COMPOSITE_ID, composite, uncomposite } from "./lib/shot-composite.mjs"; +import { tearMenu, untearMenu } from "./lib/shot-tear.mjs"; import { decodePng, encodePng, pngSize } from "./lib/png.mjs"; import { iconGroup, iconImage, manifestResource, resFile } from "./lib/res-file.mjs"; import { inRects, pngsNear, withinNoise } from "./lib/shot-change.mjs"; @@ -369,8 +371,8 @@ the menus, dialogs, bars and panels that need no project (setups no-project and the splash and the status bar's COMMUNITY EDITION and LIMITED badges (setups splash and community), the panels, editor, Project Settings and icons of a sample project (setups sample, -settings and glyphs), those of the IDE's Samples 15 and 6 (setups -global-search and sample6), the form and report designers and the Format menu +settings and glyphs), those of the Global Search add-in the IDE ships, with +Sample 15 open, and of Sample 6 (setups global-search and sample6), the form and report designers and the Format menu (setup designer), the Toolbox and PROPERTIES with a control on a form (setups forms and settings-webview2), and the CustomControls tutorial's pictures of a custom control's code and PROPERTIES (setup customcontrols), and the editor alone: @@ -1630,21 +1632,22 @@ async function prepareFusion(run) { return ctx; } -// ---- global-search: Sample 15, the Global Search add-in, built into the copy (never into -// the install, nor into %APPDATA%) and loaded, with the sample's own project open, as the -// pictures have always had it. Its options are saved with SaveSetting, under GS_SETTINGS, -// which the run records first and puts back. +// ---- global-search: the Global Search add-in that the install ships, its DLL copied into the +// copy's addins\win32 (never into the install, nor into %APPDATA%) and loaded, with Sample 15's +// project open, as the pictures have always had it. Since BETA 1049 the shipped DLL is newer than +// Sample 15, whose source is the add-in as it was, so the pictures take the DLL, not the sample. +// Its options and its history are saved with SaveSetting, under GS_SETTINGS, which the run +// records first and puts back. -// Builds Sample 15 into the lane's copy of the install, as the help setup builds; returns -// the sample's exported tree. +// Puts the install's own Global Search DLL into the lane's copy of the install; returns Sample +// 15's exported tree, the project the setup opens. async function buildGlobalSearch(run) { const { lane } = run; run.step = "build"; - say(run.name, `building Sample 15, the Global Search add-in, into a copy of ${ide}`); - // the install is only read: the sample is exported into the work folder - const src = lane.exportSample("Sample 15"); - await lane.addAddin(src, { show: false }); - return src; + say(run.name, `copying the Global Search add-in of ${ide} into a copy of it`); + // the install is only read: its DLL is copied, and the sample exported into the work folder + lane.placeAddin(path.join(path.dirname(ide), "addins", "win32", "tbGlobalSearchAddIn1.dll")); + return lane.exportSample("Sample 15"); } // Waits for the add-in's button on the toolbar, which says it has loaded. @@ -2449,16 +2452,18 @@ async function atSize(c, width, height, fn) { } // The status bar's last region names the command under the mouse and keeps it after -// the mouse has left. Hovering File > Close Project (greyed out with no project, and -// named all the same) puts tbProject_Close there, as the pictures have always shown; -// the mouse then rests on the editor, which has no command of its own. -async function nameCloseProject(c) { +// the menu has closed under it. Hovering File > Open Project puts tbProject_Open there; +// the mouse then rests on the editor, which has no command of its own. (Until BETA 1045 +// the pictures named tbProject_Close, greyed out with no project; since BETA 1052 a +// greyed-out item names nothing.) +const NAMED_COMMAND = "tbProject_Open"; +async function nameHoveredCommand(c) { await openMenu(c, "File"); - const item = (await menuItems(c)).find((i) => i.text.startsWith("Close Project")); - if (!item) throw new Error("the File menu has no Close Project"); + const item = (await menuItems(c)).find((i) => i.text.startsWith("Open Project")); + if (!item) throw new Error("the File menu has no Open Project"); await mouseMove(c, item.x + 8, item.y + item.height / 2); const hovered = () => c.evaluate(`document.getElementById("statusHoveringCommand").innerText`); - await waitFor(c, async () => (await hovered()) === "tbProject_Close", { timeout: 2000, interval: 50 }); + await waitFor(c, async () => (await hovered()) === NAMED_COMMAND, { timeout: 2000, interval: 50 }); await pressKey(c, "Escape"); // a closed menu leaves its box in the page, 2 by 8 pixels and empty if (!(await waitFor(c, async () => (await menuItems(c)).length === 0, { timeout: 2000, interval: 50 }))) { @@ -2468,7 +2473,7 @@ async function nameCloseProject(c) { await mouseMove(c, w / 2, h / 2); await frames(c); const named = await hovered(); - if (named !== "tbProject_Close") throw new Error(`the status bar names "${named}", not tbProject_Close`); + if (named !== NAMED_COMMAND) throw new Error(`the status bar names "${named}", not ${NAMED_COMMAND}`); } // The IDE's whole window at the size of a full-HD screen, as it opens with no project. The @@ -2482,7 +2487,7 @@ const ideWindowShot = { await resetUi(c); await command(c, "tbPanels_SetActiveLayoutDefault"); await frames(c); - await nameCloseProject(c); + await nameHoveredCommand(c); return capture(c, "IDE", snapOut({ x: 0, y: 0, width: 1920, height: 1032 }, 1920, 1032)); }), }; @@ -2560,7 +2565,7 @@ const statusBarShot = { setup: "no-project", take: ({ c }) => atSize(c, 661, IDE_SIZE.height, async () => { - await nameCloseProject(c); + await nameHoveredCommand(c); const bar = await rectOf(c, "#rootStatusBar"); return capture(c, "StatusBar", snapOut(bar, 661, IDE_SIZE.height)); }), @@ -2768,7 +2773,10 @@ function annotatedPanelShot( area = grow(drawn ? union(area, drawn) : area, 8); return await capture(c, name, snapOut(area), { away: away ? () => parkMouse(c) : null, - keep: [sel, "#contextMenu", "#contextMenuSUB", `#${LAYER_ID}`], + // the menus only when they are open: a closed one leaves its box in the page, 2 + // by 8 pixels and empty, where it last was, which a kept one draws over the panel + // (a sliver beside packLicenceFiles' Sources row, after 2b32ab8c's menu) + keep: [sel, ...(menu ? ["#contextMenu"] : []), ...(submenu ? ["#contextMenuSUB"] : []), `#${LAYER_ID}`], solid: ground, }); } finally { @@ -4309,18 +4317,23 @@ const glyphShots = [ }), ]; -// ---- the Global Search add-in (Sample 15), with the sample's own project open +// ---- the Global Search add-in that the install ships, with Sample 15's project open const GS_FILE = "/tbGlobalSearchAddIn1/Sources/MainModule.twin"; // the floating panel that holds the add-in's tool window, and the window's body const GS_PANEL = `toolWindowsById[${JSON.stringify(GS_WINDOW)}]?.shadowDom.host.closest(".floatingPanel")`; const GS_BODY = `toolWindowsById[${JSON.stringify(GS_WINDOW)}].bodyElement`; const GS_OPTIONS = [ - "searchBarInsidePackages", "searchBarMatchCase", "searchBarMatchWholeWordOnly", + "searchBarRegex", + "searchBarInsidePackages", "searchBarExcludeComments", ]; +// the status bar under the results says how long the search took, which no two runs agree on: +// its pixels, and its words in the two themes +const GS_STATUS = { on: { css: "#searchStatus" } }; +const GS_TOOK = { dark: [/\d+ms/], light: [/\d+ms/] }; const gsPanelRect = (c) => c.evaluate(`(() => { @@ -4366,30 +4379,57 @@ async function gsHide(c) { await parkMouse(c); } -// The number of files the search lists, from the list view's data (it draws only the rows -// that fit). +// What the search found, as the status bar under the results says it, less the time it took +// ("2 matches · 2 files"), and the number of rows the results draw. const gsResults = (c) => - c.evaluate( - `(() => { const l = ${GS_BODY}.querySelector("#resultsList")?.listview; return l ? l.itemCount : null; })()`, - ); + c.evaluate(`(() => { + const b = ${GS_BODY}; + const status = b.querySelector("#searchStatus")?.innerText.replace(/ · took .*$/, "") ?? null; + return status + " / " + (b.querySelector("#gsVirtualRows")?.children.length ?? 0); +})()`); -// A search for `query` with only In packages ticked, or none, each option set with a real -// click (which the add-in saves with SaveSetting). The add-in searches a second after the -// last key, and adds the files it finds one at a time: done when the list has not changed -// for two seconds. +// A search for `query` with only Packages ticked, or none, and All files, each option set with +// a real click or a pick (which the add-in saves with SaveSetting). The add-in searches a +// moment after the last key: done when the status bar and the rows have not changed for two +// seconds. async function gsSearch(c, query, { packages = false } = {}) { for (const id of GS_OPTIONS) { const want = packages && id === "searchBarInsidePackages"; if ((await c.evaluate(`${GS_BODY}.querySelector("#${id}").checked`)) !== want) { - await click(c, { toolWindow: GS_WINDOW, css: `#${id}` }); + await click(c, { toolWindow: GS_WINDOW, css: `#${id}Label` }); } } + if ((await c.evaluate(`${GS_BODY}.querySelector("#searchFileType").value`)) !== "all") { + await c.evaluate(`(() => { + const s = ${GS_BODY}.querySelector("#searchFileType"); + s.value = "all"; + s.dispatchEvent(new Event("change", { bubbles: true })); +})()`); + } if ((await c.evaluate(`${GS_BODY}.querySelector("#searchBarInput").value`)) !== query) { await click(c, { toolWindow: GS_WINDOW, css: "#searchBarInput" }); - await pressKey(c, "a", { ctrl: true }); - if (query) await typeText(c, query); - else await pressKey(c, "Backspace"); + const focused = await waitFor( + c, + () => c.evaluate(`${GS_BODY}.getRootNode().activeElement?.id === "searchBarInput"`), + { timeout: 3000, interval: 50 }, + ); + if (!focused) throw new Error("the search box did not take the focus"); + // Emptied first, and typed into once it is empty: the key after the add-in's own Ctrl+A + // is lost (the BETA 1052 add-in searched "utton1" for "Button1"). + if (await c.evaluate(`${GS_BODY}.querySelector("#searchBarInput").value !== ""`)) { + await pressKey(c, "a", { ctrl: true }); + await pressKey(c, "Backspace"); + const empty = await waitFor(c, () => c.evaluate(`${GS_BODY}.querySelector("#searchBarInput").value === ""`), { + timeout: 3000, + interval: 50, + }); + if (!empty) throw new Error("the search box did not empty"); + await sleep(500); + } + if (query) await typeText(c, query, { delay: 150 }); } + const typed = await c.evaluate(`${GS_BODY}.querySelector("#searchBarInput").value`); + if (typed !== query) throw new Error(`the search box holds ${JSON.stringify(typed)}, not ${JSON.stringify(query)}`); let last = null; let since = 0; const settled = await waitFor( @@ -4403,54 +4443,31 @@ async function gsSearch(c, query, { packages = false } = {}) { ); if (!settled) throw new Error(`the search for "${query}" never settled`); await c.evaluate(`${GS_BODY}.getRootNode().activeElement?.blur()`); - // The list keeps each row's height from when it first measured it and sets its scroll range - // from those: a row measured while the panel or its fonts were settling keeps a height a - // little too tall, and a thumb showed over two results that fit (owner: measure them again). - // The list's own notifyChangedItem, which the IDE calls when a row changes, drops a row's - // height; the list measures it again when it repaints. - const LIST = `${GS_BODY}.querySelector("#resultsList")?.listview`; - const before = await c.evaluate(`(() => { - const l = ${LIST}; - if (!l || typeof l.notifyChangedItem !== "function" || l.useCachedItemHeights) return null; - const at = { paint: l.lastRepaintTime ?? 0, range: l.lastScrollRangeUpdateTime ?? 0 }; - for (let i = 0; i < l.itemCount; i++) l.notifyChangedItem(i); - return at; -})()`); - if (!before) throw new Error("the results list cannot be told to measure its rows again"); - if (last) { - const measured = await waitFor( - c, - () => - c.evaluate(`(() => { - const l = ${LIST}; - return !l.repaintTimer && !l.scrollrangeTimer && - ((l.lastRepaintTime ?? 0) > ${before.paint} || (l.lastScrollRangeUpdateTime ?? 0) > ${before.range}); -})()`), - { timeout: 3000, interval: 50 }, - ); - if (!measured) throw new Error("the results list did not repaint after its rows were measured again"); - } await frames(c); return last; } // The tool window 389 pixels tall after a search for `query`; with `head`, its part above -// the results list (the window scrolls its whole body when it is any shorter). +// the results. const gsShot = (name, query, { packages = false, head = false } = {}) => ({ out: `IDE/AddIns/Images/${name}.png`, setup: "global-search", + themeWords: head ? null : GS_TOOK, async take({ c }) { await resetUi(c); try { const panel = await gsShow(c, { width: 352, height: 389 }); - const files = await gsSearch(c, query, { packages }); - if (query) say(c.shot.name, ` the search for "${query}" lists ${files} files`); + const found = await gsSearch(c, query, { packages }); + if (query) say(c.shot.name, ` the search for "${query}" finds ${found}`); let clip = panel; if (head) { - const list = await c.evaluate(`${GS_BODY}.querySelector("#resultsList").getBoundingClientRect().top`); + const list = await c.evaluate(`${GS_BODY}.querySelector("#gsResults").getBoundingClientRect().top`); clip = { ...panel, height: list - panel.y }; } - return await capture(c, name, snapOut(clip), { away: () => parkMouse(c) }); + return await capture(c, name, snapOut(clip), { + away: () => parkMouse(c), + unsteady: head ? null : [GS_STATUS], + }); } finally { await gsHide(c); } @@ -6931,7 +6948,14 @@ const projectsShots = [ })()`), { timeout: 10000, interval: 100 }, ); - if (!shown) throw new Error("the double-click opened no preview of AppIcon.ico"); + if (!shown) { + const what = await c.evaluate(`({ + tabs: [...document.querySelectorAll(".tabItem")].map((t) => t.innerText.trim()), + embeds: [...document.querySelectorAll("embed")].map((x) => x.getBoundingClientRect().width + "x" + x.getBoundingClientRect().height), + imgs: [...document.querySelectorAll("img")].filter((x) => x.getBoundingClientRect().width > 40).map((x) => (x.src || "").slice(0, 60)), +})`); + throw new Error(`the double-click opened no preview of AppIcon.ico: ${JSON.stringify(what)}`); + } await sleep(1000); await parkMouse(c); const editor = await dockedRect(c, "EDITOR 1"); @@ -9683,6 +9707,37 @@ const focusCode = async (c) => { if (!(await c.evaluate("editor.hasTextFocus()"))) throw new Error("the code editor does not have the focus"); }; +// The View menu as Menu_View shows it, torn so that it shows only its first rows and PACKAGE +// PUBLISHING, in a box, between the rows next to it: where a package's author opens the panel +// (Creating a TWINPACK package). +const tornViewMenuShot = { + out: "Features/Packages/Images/Menu_View_PackagePublishing.png", + setup: "code-chapter", + async take({ c }) { + await resetUi(c); + try { + await focusCode(c); + await openMenu(c, "View", { close: false }); + const { bottom } = await tearMenu(c, { from: "PROJECT EXPLORER", to: "DIAGNOSTICS", end: "TOOLBAR" }); + const { box: drawn } = await annotateOver(c, [ + { type: "box", on: { css: "#contextMenu > .contextMenuItem", text: "PACKAGE PUBLISHING" } }, + ]); + const title = await rectOf(c, `#${TOP.View}`); + const drop = await rectOf(c, "#contextMenu"); + const u = union(union(title, { ...drop, height: bottom - drop.y }), drawn); + // the outline is outside the sides; the bar is above + const area = { x: u.x - OUTLINE, y: u.y, width: u.width + 2 * OUTLINE, height: u.height }; + return await capture(c, "Menu_View_PackagePublishing", snapOut(area), { + keep: [`#${TOP.View}`, "#contextMenu", `#${LAYER_ID}`], + }); + } finally { + await unannotate(c); + await untearMenu(c); + await closeMenus(c); + } + }, +}; + // ---- the EDITOR panel, its parts named // The EDITOR panel of the default layout on its own (a cut-out on the window's ground), Helpers @@ -10226,6 +10281,7 @@ const codeChapterShots = [ // the Edit and View menus are shown as they are while a person types code menuShot("Menu_Edit", "Edit", null, { setup: "code-chapter", before: focusCode }), menuShot("Menu_View", "View", null, { setup: "code-chapter", before: focusCode }), + tornViewMenuShot, codeCombosShot, signatureShot("SignatureHelp", { after: "Dim i As Long", nth: 2, call: "i = InStr", sigs: 2 }), signatureShot("SignatureHelp_Expanded", { after: "count = 0", call: "MsgBox", sigs: 1, expand: true }), diff --git a/scripts/svgshot/bench.mjs b/scripts/svgshot/bench.mjs index e7cc5c4f9..a3aa72d3d 100644 --- a/scripts/svgshot/bench.mjs +++ b/scripts/svgshot/bench.mjs @@ -4,7 +4,7 @@ // So a change that draws a replicated part or a text decoration wrongly -- a // scrollbar, a drop-down list, a native text field, a textarea that wraps its lines, a checkbox or radio button (disabled ones over // two grounds), a list marker painted as a shape, a search field's clear button, an underline, a focus ring, a frame, a web font -// split by unicode-range, a web font declared twice whose later file lacks a glyph, an inline , a CSS mask, a canvas scaled pixelated, the annotation layer on a scrolled +// split by unicode-range, a web font declared twice whose later file lacks a glyph, an inline , a CSS mask, a menu torn by a mask on the body, a canvas scaled pixelated, the annotation layer on a scrolled // page -- shows here without an IDE, in seconds. The documents of the frames page // are under bench/frames/, which is no page of its own. // diff --git a/scripts/svgshot/bench/baseline.json b/scripts/svgshot/bench/baseline.json index 3ab2df7f3..8e9a808e5 100644 --- a/scripts/svgshot/bench/baseline.json +++ b/scripts/svgshot/bench/baseline.json @@ -96,6 +96,11 @@ "pct96": 0.001, "tile": 0.029 }, + "torn-menu": { + "pct32": 0.001, + "pct96": 0, + "tile": 0.012 + }, "webfont-split": { "pct32": 0.041, "pct96": 0.001, diff --git a/scripts/svgshot/bench/torn-menu.html b/scripts/svgshot/bench/torn-menu.html new file mode 100644 index 000000000..b4bafc9be --- /dev/null +++ b/scripts/svgshot/bench/torn-menu.html @@ -0,0 +1,74 @@ + + + +A torn menu + + +
View
+ + + + diff --git a/test/addin/datasheet-copyevent.test.mjs b/test/addin/datasheet-copyevent.test.mjs new file mode 100644 index 000000000..b124efc44 --- /dev/null +++ b/test/addin/datasheet-copyevent.test.mjs @@ -0,0 +1,74 @@ +// The datasheet of the DatasheetProbe add-in (probes/datasheet) in an IDE whose page does not fix +// copyevent-no-target-typeerror: BETA 1052's copyEvent reads the event's target before it tests +// that there is one, and a datasheet's request has none, so the load fails with a TypeError in the +// page and the add-in's onGetInfo handler is never called. datasheet.test.mjs runs with the fix +// (IDE_FIXES in scripts/lib/tb-defaults.mjs), and tests the datasheet behind it. +// +// The tests not named `control` assert the defect: they fail once it is fixed. Then remove the +// entry in BUGS-TO-REPORT.md, its fix from IDE_FIXES, and this file. +// +// Run it with addin-test.bat, which gives it a lane; on its own it is skipped. + +import assert from "node:assert/strict"; +import path from "node:path"; +import { before, test } from "node:test"; +import { fileURLToPath } from "node:url"; +import { consoleMark, linesSince } from "../../scripts/lib/tb-ide-console.mjs"; +import { click, toolWindow, waitFor } from "../../scripts/lib/tb-operate.mjs"; +import { scenario } from "./scenario.mjs"; + +const HERE = path.dirname(fileURLToPath(import.meta.url)); +const HOST = path.join(HERE, "host"); +const PROBE = path.join(HERE, "probes", "datasheet"); +const W = "DatasheetProbeData"; +const ROOT = `toolWindowsById[${JSON.stringify(W)}].bodyElement`; +const CTL = `${ROOT}.controller`; +const probeLines = (c, mark) => linesSince(c, mark, { prefix: "[DatasheetProbe] " }); + +async function cmd(c, text) { + const mark = await consoleMark(c); + await c.evaluate(`(() => { const r = ${ROOT}; r.probeCmd = ${JSON.stringify(text)}; + r.querySelector("#dscmd").click(); })()`); + const head = `cmd ${text} -> `; + const line = await waitFor(c, async (c) => (await probeLines(c, mark)).find((l) => l.startsWith(head)), { + timeout: 15 * 1000, + }); + assert.ok(line, `the add-in did not answer "${text}": ${JSON.stringify(await probeLines(c, mark))}`); + return line.slice(head.length); +} + +scenario("the datasheet with BETA 1052's copyEvent, unfixed", (lane) => { + let c; + before(async () => { + await lane.addAddin(PROBE); + c = await lane.open(HOST, { unfixed: ["copyevent-no-target-typeerror"] }); + }); + + test("control: the page has the defect, and the hook left it alone", async () => { + assert.match(await c.evaluate("String(copyEvent)"), /if\([\w$]+\.target\.id===""\)/); + assert.ok(!(await c.evaluate("window.__tbDefaults.fixes")).includes("copyevent-no-target-typeerror")); + }); + + test("Ready and a load: the load fails with a TypeError reading 'id', and onGetInfo never reaches the add-in", async (t) => { + // copyevent-no-target-typeerror + await click(c, "addinButton-DatasheetProbeShow"); + assert.ok(await waitFor(c, async (c) => (await toolWindow(c, W))?.visible), "the tool window did not appear"); + assert.equal(await cmd(c, "ready"), "done"); + const mark = await consoleMark(c); + await cmd(c, "load"); + const state = await waitFor( + c, + async (c) => ((await c.evaluate(`${CTL}.getState()`)) === "error" ? "error" : null), + { + timeout: 10000, + interval: 50, + }, + ); + const error = await c.evaluate(`${CTL}.getLastError()`); + const lines = await probeLines(c, mark); + t.diagnostic(JSON.stringify({ state, error, lines })); + assert.equal(state, "error"); + assert.equal(error, "Cannot read properties of undefined (reading 'id')"); + assert.ok(!lines.some((l) => l.startsWith("info asked")), JSON.stringify(lines)); + }); +}); diff --git a/test/addin/datasheet.test.mjs b/test/addin/datasheet.test.mjs index a585626bb..61efe0e40 100644 --- a/test/addin/datasheet.test.mjs +++ b/test/addin/datasheet.test.mjs @@ -220,15 +220,15 @@ scenario("The datasheet element in a tool window", (lane) => { await c.evaluate(WRAP_ROWS_JS); }); - test("Ready() stops at its debugger statement when a DevTools client has the debugger on", async () => { + test("Ready() does not stop when a DevTools client has the debugger on (BETA 1045's did, at a debugger statement)", async () => { await c.send("Debugger.enable"); try { - // The scenario resumes the pause at once, so Ready() returns. + // A pause would be resumed at once, so Ready() returns either way. assert.equal(await cmd(c, "ready"), "done"); } finally { await c.send("Debugger.disable"); } - assert.deepEqual(paused, [{ reason: "other", fn: "n.Ready" }]); + assert.deepEqual(paused, []); }); test("after Ready(): one controller on the root and on the element, state created, nothing asked", async () => { @@ -853,9 +853,9 @@ scenario("The datasheet element in a tool window", (lane) => { rootBack: cs.getPropertyValue("--themeAddinBackColor").trim(), rootControl: cs.getPropertyValue("--themeAddinControlBackColor").trim() }; })()`; - // An IDE defect, toolwindow-addin-colours-stale: the tool window's body keeps the --themeAddin* - // values of the theme it was made in, so the grid, which reads them, keeps Dark's colours. - test("a theme change: a grid in a tool window keeps the colours of the theme the window was made in", async (t) => { + // Since BETA 1052 the tool window's body takes the new theme's --themeAddin* values, and the + // grid, which reads them, paints with them. + test("a theme change: a grid in a tool window takes the new theme's colours", async (t) => { const colours = () => c.evaluate(GRID_COLOURS_JS); const dark = await colours(); assert.deepEqual(dark, { @@ -871,7 +871,14 @@ scenario("The datasheet element in a tool window", (lane) => { const light = await colours(); await chooseTheme("Dark"); t.diagnostic(JSON.stringify(light)); - assert.deepEqual(light, { ...dark, theme: "light" }); + assert.deepEqual(light, { + theme: "light", + back: "#e0e4e8", + color: "#1a1d22", + header: "#f5f5f5", + rootBack: "#FFFFFF", + rootControl: "#E1E4E6", + }); }); test("nothing else threw in the page", () => { diff --git a/test/addin/integration-toggle.test.mjs b/test/addin/integration-toggle.test.mjs new file mode 100644 index 000000000..b91ef0c5c --- /dev/null +++ b/test/addin/integration-toggle.test.mjs @@ -0,0 +1,113 @@ +// Turning one of the IntegrationProbe add-in's Integration objects (probes/integration) off and on +// again, one IDE for each: the source command, the CodeLens provider and a hover provider. The +// add-in is told which by the environment variable INTEG_ONE. Each is turned off and on three +// times, and after each time it is on it is used: the command run through Monaco's command +// service, the mouse rested on the code for the hover, the lenses refreshed. +// +// Turning the three back on together has twice ended the IDE's page in integration.test.mjs (its +// DevTools connection closed, with no alert); one at a time, as here, it has not (WIP.BugHunt.md). +// A command run through Monaco that does not exist rejects a promise, which the IDE reports as an +// "IDE startup failure" alert and which ends the page, so every run here catches it. +// +// Each test states what BETA 1052 does. If one fails after an IDE update, the IDE has changed: +// update docs/Reference/Built-In/tbIDE/SourceCommand.md, SourceHoverProvider.md and +// SourceCodeLensProvider.md, then this file. +// +// Run it with addin-test.bat, which gives it a lane; on its own it is skipped. + +import assert from "node:assert/strict"; +import path from "node:path"; +import { before, test } from "node:test"; +import { fileURLToPath } from "node:url"; +import { sleep } from "../../scripts/lib/tb-ide.mjs"; +import { consoleMark, linesSince } from "../../scripts/lib/tb-ide-console.mjs"; +import { click, openFile, waitFor } from "../../scripts/lib/tb-operate.mjs"; +import { mouseAway, restMouse } from "./hover.mjs"; +import { scenario } from "./scenario.mjs"; + +const HERE = path.dirname(fileURLToPath(import.meta.url)); +const HOST = path.join(HERE, "host"); +const PROBE = path.join(HERE, "probes", "integration"); +const MAIN = "/AddinHost/Sources/Main.twin"; +const PREFIX = "[IntegProbe] "; +const CYCLES = 3; +const J = JSON.stringify; + +scenario("tbIDE Integration objects turned off and on again (BETA 1052)", (lane) => { + before(async () => { + await lane.addAddin(PROBE); + }); + + // Off and on CYCLES times in one IDE; after each time on, whether the object did its work. + async function cycle(which) { + const c = await lane.open(HOST, { env: { INTEG_ONE: which }, timeout: 60 * 1000 }); + const lines = (mark) => linesSince(c, mark, { prefix: PREFIX }); + const waitLine = (mark, re, timeout = 10 * 1000) => + waitFor(c, async () => (await lines(mark)).find((l) => re.test(l)) ?? null, { timeout }); + const seen = []; + try { + await waitLine(null, /^loaded/, 30 * 1000); + const commandId = (await lines(null)).find((l) => l.startsWith("command ")).split(" ")[2]; + await openFile(c, MAIN); + await sleep(1500); + for (let i = 0; i < CYCLES; i++) { + for (const id of ["IntegOneOff", "IntegOneOn"]) { + const mark = await consoleMark(c); + await click(c, `addinButton-${id}`); + await waitLine(mark, /^one /); + await sleep(1500); + if (id === "IntegOneOff") continue; + const m2 = await consoleMark(c); + if (which === "cmd") { + // caught: an unhandled rejection is the IDE's "IDE startup failure", which ends the page + const ran = await c.evaluate( + `Promise.resolve(editor._commandService.executeCommand(${J(commandId)}, "again")).then(() => "ran", (e) => String(e))`, + { awaitPromise: true }, + ); + const ids = await c.evaluate(`g_CustomCommandDisposables.map((d) => d.fullCommandId).join(" ")`); + const id = (await lines(mark)).find((l) => l.startsWith("one ")); + seen.push(ran === "ran" ? ((await waitLine(m2, /^execute /)) ?? "no execute") : `${ran} [${ids}] ${id}`); + } else if (which === "hover") { + await restMouse(c, 4, 18); + seen.push((await waitLine(m2, /^hover1 /)) ? "hover1" : "no hover1"); + await mouseAway(c); + } else if (await waitLine(m2, /^lens \//, 5000)) { + seen.push("lens"); + } else { + await click(c, "addinButton-IntegRefresh"); + seen.push((await waitLine(m2, /^lens \//)) ? "lens after Refresh" : "no lens"); + } + } + } + } catch (e) { + seen.push(`stopped: ${e.message}`); + } + await lane.closeProject().catch((e) => seen.push(`close: ${e.message}`)); + return seen; + } + + test("SourceCommand: once Enabled = False has removed the command, Enabled = True does not add it again, and Enabled reads True throughout (an IDE defect)", async (t) => { + // sourcecommand-enabled-reads-true: the Property Get answers True whatever was set, and the + // Let of True does nothing, so a command turned off stays off + const seen = await cycle("cmd"); + t.diagnostic(J(seen)); + assert.deepEqual( + seen, + Array(CYCLES).fill( + "Error: command 'tbaddin.probeCmd.1' not found [tbaddin.probeCmd.1] one cmd True tbaddin.probeCmd.1 True", + ), + ); + }); + + test("SourceHoverProvider: Enabled off and on again, three times; each time on, the provider is called again", async (t) => { + const seen = await cycle("hover"); + t.diagnostic(J(seen)); + assert.deepEqual(seen, Array(CYCLES).fill("hover1")); + }); + + test("SourceCodeLensProvider: Enabled off and on again, three times; each time on, GetResults is not called until Refresh, and then is", async (t) => { + const seen = await cycle("lens"); + t.diagnostic(J(seen)); + assert.deepEqual(seen, Array(CYCLES).fill("lens after Refresh")); + }); +}); diff --git a/test/addin/integration.test.mjs b/test/addin/integration.test.mjs new file mode 100644 index 000000000..d687f8ed4 --- /dev/null +++ b/test/addin/integration.test.mjs @@ -0,0 +1,628 @@ +// The Integration, AI and ToolWindow features of tbIDE new in BETA 1046, measured rather than +// read off the IDE's code. The IntegrationProbe add-in (probes/integration) adds a source command, +// two hover providers and a CodeLens provider as the project loads; its toolbar buttons turn them +// off and on, refresh the CodeLens provider, open a tool window for GetChildElementById and +// GetComputedStyleOfChild, and run AI conversations. The project opened is the add-in scenarios' +// host, test/addin/host. +// +// The AI models are set in the page's liveIDEOptions, as the IDE Options dialog would set them, +// and the compiler restarted, which the IDE itself does when the option changes. Each model's +// endpoint is a server this file starts on 127.0.0.1, which answers as an OpenAI-compatible chat +// completions service would and records every request; nothing leaves the machine, and the API +// key is a made-up test value. The IDE runs with --no-save-ide-settings, so the models are not +// saved. The add-in calls no SaveSetting. +// +// Each test states what BETA 1052 does. If one fails after an IDE update, the IDE has changed: +// update the tbIDE pages that rest on it (docs/Reference/Built-In/tbIDE/Integration.md, +// SourceCommand.md, SourceHoverProvider.md, SourceCodeLensProvider.md, AsyncResultResolver.md, +// ToolWindow.md, HostAI.md, HostAIProviders.md, HostAIProvider.md, AIConversation.md) and +// docs/IDE/Customising/IDE-Options.md, then the steps of the reproducers that name a test here +// (bugs/*/repro.json with "addin:integration"), and then this file. A test whose comment names an +// IDE defect asserts the defect: it fails once it is fixed. +// +// Run it with addin-test.bat, which gives it a lane; on its own it is skipped. + +import assert from "node:assert/strict"; +import http from "node:http"; +import path from "node:path"; +import { before, test } from "node:test"; +import { fileURLToPath } from "node:url"; +import { sleep } from "../../scripts/lib/tb-ide.mjs"; +import { consoleMark, linesSince } from "../../scripts/lib/tb-ide-console.mjs"; +import { click, clickAt, openFile, waitFor } from "../../scripts/lib/tb-operate.mjs"; +import { hoverLink, hoverText, mouseAway, restMouse } from "./hover.mjs"; +import { scenario } from "./scenario.mjs"; + +const HERE = path.dirname(fileURLToPath(import.meta.url)); +const HOST = path.join(HERE, "host"); +const PROBE = path.join(HERE, "probes", "integration"); +const MAIN = "/AddinHost/Sources/Main.twin"; +const PREFIX = "[IntegProbe] "; +const J = JSON.stringify; +// a made-up key for the fake server, which checks it came through +const KEY = "probe-test-key"; + +// ------------------------------------------------------------------ the fake AI service + +// What the fake service answers, by the text of the conversation's last user message. +function answer(body, res) { + const msgs = body.messages ?? []; + const lastUser = [...msgs].reverse().find((m) => m.role === "user"); + const text = + typeof lastUser?.content === "string" + ? lastUser.content + : (lastUser?.content?.find?.((p) => p.type === "text")?.text ?? ""); + const last = msgs[msgs.length - 1]; + const reply = (content, extra = {}) => { + res.writeHead(200, { "Content-Type": "application/json" }); + res.end( + J({ + id: "x", + object: "chat.completion", + choices: [ + { + index: 0, + message: { role: "assistant", content, ...extra }, + finish_reason: extra.tool_calls ? "tool_calls" : "stop", + }, + ], + }), + ); + }; + if (body.stream) { + res.writeHead(200, { "Content-Type": "text/event-stream" }); + const send = (delta, finish = null) => + res.write( + `data: ${J({ id: "x", object: "chat.completion.chunk", choices: [{ index: 0, delta, finish_reason: finish }] })}\n\n`, + ); + if (text === "slow please") { + send({ role: "assistant", content: "Slow" }); + return; // left open: the add-in cancels + } + send({ role: "assistant", reasoning_content: "Thinking." }); + send({ content: "Hel" }); + send({ content: "lo" }, "stop"); + res.write("data: [DONE]\n\n"); + res.end(); + return; + } + if (last?.role === "tool") return reply(`The tool said ${last.content}`); + if (text === "use the tool") { + return reply(null, { + tool_calls: [{ id: "call_1", type: "function", function: { name: "get_number", arguments: J({ which: "x" }) } }], + }); + } + if (text === "what is this") return reply("A picture."); + if (text === "again") return reply("Again from fake."); + return reply("Hi from fake."); +} + +function fakeService() { + const requests = []; + const open = new Set(); + const server = http.createServer((req, res) => { + open.add(res); + res.on("close", () => open.delete(res)); + let data = ""; + req.on("data", (d) => (data += d)); + req.on("end", () => { + let body = null; + try { + body = JSON.parse(data); + } catch {} + requests.push({ method: req.method, url: req.url, auth: req.headers.authorization ?? null, body }); + if (!req.url.endsWith("/v1/chat/completions") || req.url.includes("/chat/completions/chat")) { + res.writeHead(404, { "Content-Type": "text/plain" }); + res.end("not found here"); + return; + } + answer(body ?? {}, res); + }); + }); + return { + requests, + start: () => new Promise((r) => server.listen(0, "127.0.0.1", () => r(server.address().port))), + stop: () => + new Promise((r) => { + for (const res of open) res.destroy(); + server.close(() => r()); + }), + }; +} + +// ------------------------------------------------------------------ reading the page + +// The CodeLens items Monaco draws in the code editor: their text and centre. +const LENSES_JS = `[...document.querySelectorAll(".contentWidgets .codelens-decoration a, .codelens-decoration a")].map((a) => { + const r = a.getBoundingClientRect(); + return { text: a.textContent.trim(), x: r.left + r.width / 2, y: r.top + r.height / 2, shown: r.width > 0 }; +})`; + +// The HTML of the hover the page shows, or null. +const HOVER_HTML_JS = `(() => { + const h = [...document.querySelectorAll(".monaco-hover")].find((e) => !e.classList.contains("hidden") && e.getBoundingClientRect().height > 0); + return h ? h.innerHTML : null; +})()`; + +// ------------------------------------------------------------------ the tests + +scenario("tbIDE Integration, AI and ToolWindow (BETA 1046 to 1052)", (lane) => { + let c; + const service = fakeService(); + let port; + const lines = (mark) => linesSince(c, mark, { prefix: PREFIX }); + const waitLine = async (mark, re, timeout = 15 * 1000) => { + const found = await waitFor(c, async () => (await lines(mark)).find((l) => re.test(l)) ?? null, { timeout }); + assert.ok(found, `the add-in printed no line matching ${re}: ${J(await lines(mark))}`); + return found; + }; + // Click a toolbar button of the add-in, and wait for a line it prints. + async function press(id, re, timeout) { + const mark = await consoleMark(c); + await click(c, `addinButton-${id}`); + await waitLine(mark, re, timeout); + return lines(mark); + } + const lenses = () => c.evaluate(LENSES_JS); + // A reloaded add-in's CodeLens provider is asked for the open file's lenses at any moment; the + // tests of other features leave its lines out. + const noLens = (out) => out.filter((l) => !l.startsWith("lens /")); + // Take the javascript dialogs the page opened out of c.dialogs, so the lane's close does not report them. + const takeDialogs = () => c.dialogs.splice(0).map((d) => `${d.type}: ${d.message}`); + let commandId; + // what one test saw, for the defect test after it + let toggledOff = ""; + let styleDialogs = []; + let providersOut = []; + let lastAsk = []; + + // The models the options list, as the IDE Options dialog writes them; their endpoints are the fake service's. + const model = (friendlyName, endpoint, modelName, isDefault, isEnabled, flags) => () => ({ + friendlyName, + endpoint: `http://127.0.0.1:${port}${endpoint}`, + apiKey: KEY, + modelName, + isDefault, + isEnabled, + flags, + }); + const DISABLED = model("Disabled", "/disabled/v1", "probe-disabled", false, false, 0); + const FIRST = model("First", "/v1", "probe-model", true, true, 1); + const SECOND = model("Second", "/v1/chat/completions", "probe-second", false, true, 6); + const NONAME = model("", "/v1", "probe-noname", false, true, 0); + // Set the models and restart the compiler, which reloads the add-in. + async function setModels(list) { + await c.evaluate(`liveIDEOptions.aiModels = tips_encodeAiModels(${J(list.map((m) => m()))})`); + const mark = await consoleMark(c); + await lane.restartCompiler(); + await waitLine(mark, /^loaded/, 30 * 1000); + } + + before(async () => { + port = await service.start(); + await lane.addAddin(PROBE); + c = await lane.open(HOST); + const loaded = await lines(null); + if (!loaded.some((l) => /^loaded/.test(l))) await waitLine(null, /^loaded/, 30 * 1000); + }); + + test("the add-in loads: AddSourceCommand's CommandID is tbaddin.., and the three are enabled", async (t) => { + const all = await lines(null); + t.diagnostic(J(all)); + const cmd = all.find((l) => l.startsWith("command ")); + assert.match(cmd, /^command probeCmd tbaddin\.probeCmd\.\d+ enabled True$/); + commandId = cmd.split(" ")[2]; + assert.ok(all.includes("hover probeHover enabled True"), J(all)); + assert.ok(all.includes("lens probeLens twinbasic enabled True"), J(all)); + assert.ok( + all.some((l) => /^loaded 0\.15\.1052/.test(l)), + J(all), + ); + }); + + test("CodeLens: GetResults gets the file's path in the project, with no twinbasic:, and the lens of its JSON shows with its title", async (t) => { + const mark = await consoleMark(c); + await openFile(c, MAIN); + const l = await waitLine(mark, /^lens /); + t.diagnostic(l); + assert.equal(l, `lens ${MAIN} 1`); + const shown = await waitFor( + c, + async () => (await lenses()).find((x) => x.shown && /ProbeLens/.test(x.text)) ?? null, + { timeout: 10 * 1000 }, + ); + t.diagnostic(J(await lenses())); + assert.ok(shown, "no ProbeLens item drawn"); + assert.equal(shown.text, "ProbeLens 1"); + }); + + test("clicking the lens runs the command: Execute gets the lens's arguments as a JSON array", async (t) => { + const lens = (await lenses()).find((x) => x.shown && /ProbeLens/.test(x.text)); + const mark = await consoleMark(c); + await clickAt(c, lens.x, lens.y); + const l = await waitLine(mark, /^execute /); + t.diagnostic(l); + assert.equal(l, `execute <["lens",7,{"a":true}]>`); + }); + + test("Refresh asks for the lenses again", async (t) => { + const out = await press("IntegRefresh", /^lens .* 2$/); + t.diagnostic(J(out)); + const shown = await waitFor( + c, + async () => (await lenses()).find((x) => x.shown && x.text === "ProbeLens 2") ?? null, + { timeout: 10 * 1000 }, + ); + assert.ok(shown, J(await lenses())); + }); + + test("Hover: each provider gets the file's twinbasic: path, the line and the column, IsDebugging False; the parts show lowest priority first, as markdown", async (t) => { + const mark = await consoleMark(c); + await restMouse(c, 4, 18); + const h1 = await waitLine(mark, /^hover1 /); + await waitLine(mark, /^hover2 /); + assert.ok( + await waitFor(c, async () => /ProbeHover1/.test((await hoverText(c)) ?? ""), { timeout: 8000 }), + `no hover: ${await hoverText(c)}`, + ); + const text = await hoverText(c); + const html = await c.evaluate(HOVER_HTML_JS); + t.diagnostic(J({ h1, text, html })); + assert.equal(h1, `hover1 twinbasic:${MAIN} 4 18 False`); + // the IDE's own hover first, then the add-ins' parts by priority, the lower first + const own = text.indexOf("FindTheNeedle"); + const i1 = text.indexOf("ProbeHover1"); + const i2 = text.indexOf("ProbeHover2"); + assert.ok(own >= 0 && own < i2 && i2 < i1, text); + assert.match(html, /ProbeHover1<\/strong>/); + // an HTML tag in the markdown is dropped, and the text inside it kept + assert.match(html, /

ProbeHover2 html<\/p>/); + }); + + test("a link to command:? in a hover runs the command, with the arguments", async (t) => { + const link = await hoverLink(c, "Run probe"); + t.diagnostic(J(link)); + assert.ok(link?.top, J(link)); + const mark = await consoleMark(c); + await clickAt(c, link.x, link.y); + const l = await waitLine(mark, /^execute /); + assert.equal(l, `execute <["hover",3]>`); + }); + + test("a link to command: with no arguments runs the command with an empty array", async (t) => { + await restMouse(c, 4, 18); + assert.ok(await waitFor(c, async () => /No args/.test((await hoverText(c)) ?? ""), { timeout: 8000 })); + const link = await hoverLink(c, "No args"); + assert.ok(link?.top, J(link)); + const mark = await consoleMark(c); + await clickAt(c, link.x, link.y); + const l = await waitLine(mark, /^execute /); + t.diagnostic(l); + assert.equal(l, "execute <[]>"); + await mouseAway(c); + }); + + test("an edit to the file asks for its lenses again", async (t) => { + const mark = await consoleMark(c); + await c.evaluate(`editor.getModel().applyEdits([{ range: new monaco.Range(7, 11, 7, 11), text: " " }])`); + const l = await waitLine(mark, /^lens \//); + t.diagnostic(l); + await c.evaluate(`editor.getModel().applyEdits([{ range: new monaco.Range(7, 11, 7, 12), text: "" }])`); + assert.match(l, /^lens \/AddinHost\/Sources\/Main\.twin \d+$/); + }); + + test('Resolve "" adds nothing to the hover', async (t) => { + const mark = await consoleMark(c); + await restMouse(c, 3, 14); + await waitLine(mark, /^hover2 3$/); + await sleep(1500); + const text = (await hoverText(c)) ?? ""; + t.diagnostic(text); + assert.match(text, /ProbeHover2/); + assert.doesNotMatch(text, /ProbeHover1/); + await mouseAway(c); + }); + + test("ToolWindow: GetChildElementById returns the element whose id is given; for an id no element has, an object all the same", async (t) => { + const out = await press("IntegPane", /^(missing|pane error) /); + t.diagnostic(J(out)); + assert.deepEqual(out, ["pane shown", "child False ", "missing False"]); + }); + + test("ToolWindow: GetComputedStyleOfChild reads a property of the child's computed style, or of its pseudo-element given as before or ::before; :before and an id no element has raise an error", async (t) => { + takeDialogs(); + const out = await press("IntegStyle", /^style done/, 30 * 1000); + t.diagnostic(J(out)); + assert.deepEqual(out, [ + "style ", + "style before ", + "style colon error -2147467259 ", + "style colons ", + "style missing error -2147467259 ", + "style done", + ]); + styleDialogs = takeDialogs(); + }); + + test("ToolWindow: each property read on GetComputedStyleOfChild's result opens an alert with the whole style as JSON (an IDE defect)", (t) => { + // getcomputedstyle-alert: the IDE's handler calls alert(JSON.stringify(style)) before it answers + t.diagnostic(J(styleDialogs.map((d) => d.slice(0, 60)))); + assert.equal(styleDialogs.length, 3, J(styleDialogs.map((d) => d.slice(0, 60)))); + for (const d of styleDialogs) assert.match(d, /^alert: \{"0":"accent-color",/); + }); + + test("AI with no models: Providers.Count is 0, and Item and DefaultProvider raise an error", async (t) => { + const out = await press("IntegProviders", /^providers (done|error)/); + t.diagnostic(J(out)); + assert.deepEqual(out, [ + "providers 0", + "item 0 error -2147467259 ", + "item byname error -2147467259 ", + "item bymodel error -2147467259 ", + "item unknown error -2147467259 ", + "providers error -2147467259 ", + ]); + }); + + test("AI models set in the options, the compiler restarted: Providers lists the enabled ones from 0, with their names, default and permissions; one with no friendly name has its model's name", async (t) => { + await setModels([DISABLED, FIRST, SECOND, NONAME]); + const out = noLens(await press("IntegProviders", /^providers (done|error)/)); + providersOut = out; + t.diagnostic(J(out)); + assert.equal(out[0], "providers 3"); + assert.equal(out[1], "item 0 default True read True write False execute False"); + assert.equal(out[2], "item 1 default False read False write True execute True"); + assert.equal(out[3], "item 2 default False read False write False execute False"); + assert.equal(out[4], "item 3 error -2147467259 "); + assert.ok(out.includes("default First"), J(out)); + }); + + test("Providers(name) returns the first provider whatever the name (an IDE defect)", (t) => { + // ai-provider-by-name-first: Item with a string answers provider 0 for any name, or none + t.diagnostic(J(providersOut)); + const first = " default True read True write False execute False"; + assert.ok(providersOut.includes(`item byname ${first}`), J(providersOut)); + assert.ok(providersOut.includes(`item bymodel ${first}`), J(providersOut)); + assert.ok(providersOut.includes(`item unknown ${first}`), J(providersOut)); + }); + + // The requests a button's run made: [url, body] each. + async function run(id, re, timeout = 20 * 1000) { + const n = service.requests.length; + const out = noLens(await press(id, re, timeout)); + return { out, reqs: service.requests.slice(n) }; + } + + test("StartConversation on provider 0 starts it on the first model of the options' list, disabled or not (an IDE defect)", async (t) => { + // ai-provider-index-counts-disabled: Providers counts the enabled models, StartConversation indexes all of them + const { out, reqs } = await run("IntegAsk", /^ev (completed|failed)/); + t.diagnostic(J({ out, reqs })); + assert.deepEqual( + reqs.map((r) => [r.url, r.body.model]), + [["/disabled/v1/chat/completions", "probe-disabled"]], + ); + }); + + test("StartConversation on provider 1 starts it on the second model of the list", async (t) => { + const { out, reqs } = await run("IntegSecond", /^ev (completed|failed)|second error|start error/); + t.diagnostic(J({ out, reqs: reqs.map((r) => r.url) })); + assert.deepEqual( + reqs.map((r) => [r.url, r.body.model]), + [["/v1/chat/completions", "probe-model"]], + ); + }); + + test("models listed with no disabled one: each conversation goes to its own model; the request is the endpoint with /chat/completions added, the model's name, the key as a bearer token", async (t) => { + await setModels([FIRST, SECOND]); + const { out, reqs } = await run("IntegAsk", /^ev (completed|failed)/); + t.diagnostic(J({ out, reqs })); + assert.equal(reqs.length, 1); + assert.equal(reqs[0].url, "/v1/chat/completions"); + assert.equal(reqs[0].auth, `Bearer ${KEY}`); + assert.deepEqual(reqs[0].body, { + model: "probe-model", + messages: [ + { role: "system", content: "You are a probe." }, + { role: "user", content: "hello" }, + ], + stream: false, + }); + }); + + test("Ask, not streamed: Started, one Chunk with the whole reply, Completed with it; State reads 0, Idle, throughout", async (t) => { + const { out } = await run("IntegAsk", /^ev (completed|failed)/); + lastAsk = out; + t.diagnostic(J(out)); + assert.deepEqual(out, [ + "started state 0", + "prompt ", + "asked state 0", + "ev started state 0", + "ev chunk state 0", + "ev completed state 0", + ]); + }); + + test("State reads Idle while the conversation is busy (an IDE defect)", (t) => { + // ai-conversation-state-never-busy: State answers 0 straight after Ask and in Started, Chunk and ToolCall + const busy = lastAsk.filter((l) => /^(asked|ev started|ev chunk)/.test(l)); + t.diagnostic(J(busy)); + assert.ok(busy.length >= 3 && busy.every((l) => l.endsWith("state 0")), J(busy)); + }); + + test("a second Ask: the conversation sends its earlier messages again; a SystemPrompt or a RegisterTool after the first Ask does not reach the model, though SystemPrompt reads the new text", async (t) => { + const { out, reqs } = await run("IntegAgain", /^ev (completed|failed)|again error/); + t.diagnostic(J({ out, reqs })); + assert.equal(out[0], "prompt "); + assert.deepEqual(reqs[0].body.messages, [ + { role: "system", content: "You are a probe." }, + { role: "user", content: "hello" }, + { role: "assistant", content: "Hi from fake." }, + { role: "user", content: "again" }, + ]); + assert.equal(reqs[0].body.tools, undefined); + }); + + test("Ask, streamed: ThinkingChunk with the reasoning, Chunk with the text, Completed with the whole reply", async (t) => { + const { out, reqs } = await run("IntegStream", /^ev (completed|failed)/); + t.diagnostic(J(out)); + assert.equal(reqs[0].body.stream, true); + assert.deepEqual(out.slice(3), [ + "ev thinking ", + "ev chunk state 0", + "ev completed state 0", + ]); + }); + + test("a tool: ToolCall gets the name and the arguments, themselves a JSON string; what Resolve gives goes back as the tool's result; a tool with an invalid name or schema is left out", async (t) => { + const { out, reqs } = await run("IntegTool", /^ev (completed|failed)/, 30 * 1000); + t.diagnostic(J({ out, reqs })); + assert.ok(out.includes(`ev toolcall <${J({ name: "get_number", arguments: J({ which: "x" }) })}> state 0`), J(out)); + assert.equal(out.at(-1), `ev completed state 0`); + assert.deepEqual( + reqs[0].body.tools.map((x) => x.function.name), + ["get_number"], + ); + assert.deepEqual(reqs[0].body.tools[0], { + type: "function", + function: { + name: "get_number", + description: "Returns a number for the probe", + parameters: { type: "object", properties: { which: { type: "string" } }, required: ["which"] }, + }, + }); + assert.equal(reqs[0].body.tool_choice, "auto"); + assert.deepEqual(reqs[1].body.messages.at(-1), { + role: "tool", + tool_call_id: "call_1", + content: J({ number: 42 }), + }); + }); + + test("a tool's result given with a MIME type: the tool message says an image follows, and a user message after it holds the image", async (t) => { + const { out, reqs } = await run("IntegToolImage", /^ev (completed|failed)|toolimage error/, 30 * 1000); + t.diagnostic(J({ out, reqs: reqs.map((r) => r.body.messages.slice(-2)) })); + assert.equal(reqs.length, 2); + const [tool, user] = reqs[1].body.messages.slice(-2); + assert.equal(tool.role, "tool"); + assert.deepEqual(JSON.parse(tool.content), { + ok: true, + mime_type: "image/png", + message: "Image returned by tool; see the following attached image.", + }); + assert.equal(user.role, "user"); + assert.equal(user.content[1].type, "image_url"); + assert.match(user.content[1].image_url.url, /^data:image\/png;base64,iVBOR/); + }); + + test("an image attachment: the user message holds the text and the image as a data: URL", async (t) => { + const { out, reqs } = await run("IntegImage", /^ev (completed|failed)|image error/); + t.diagnostic(J({ out, reqs })); + const content = reqs[0].body.messages.at(-1).content; + assert.equal(content[0].type, "text"); + assert.equal(content[1].type, "image_url"); + assert.match(content[1].image_url.url, /^data:image\/png;base64,iVBOR/); + }); + + test("an attachment of an unsupported type: Failed with the reason, and no request", async (t) => { + const { out, reqs } = await run("IntegBadImage", /^ev (completed|failed)|badimage error/); + t.diagnostic(J(out)); + assert.equal(reqs.length, 0); + assert.equal( + out.at(-1), + "ev failed state 0", + ); + }); + + test("Cancel while the reply streams: Cancelled, and no Completed", async (t) => { + const { out } = await run("IntegCancel", /^ev (cancelled|completed|failed)|cancel error/); + await sleep(1000); + t.diagnostic(J(out)); + assert.equal(out.at(-1), "ev cancelled state 0"); + assert.ok(!out.some((l) => /^ev (completed|failed)/.test(l)), J(out)); + }); + + test("after Cancel the conversation can be asked again", async (t) => { + const { out } = await run("IntegAgain", /^ev (completed|failed)|again error/); + t.diagnostic(J(out)); + assert.equal(out.at(-1), "ev completed state 0"); + }); + + test("an Ask while the conversation answers another does nothing: no error, no event, no request", async (t) => { + const { out, reqs } = await run("IntegTwice", /^asked twice|twice error/); + await sleep(2000); + const after = noLens(await lines(null)).slice(-4); + t.diagnostic(J({ out, reqs: reqs.map((r) => r.body.messages.at(-1).content), after })); + assert.ok(out.includes("asked twice state 0"), J(out)); + assert.equal(reqs.length, 1); + assert.equal(service.requests.slice(-1)[0].body.messages.at(-1).content, "slow please"); + assert.ok(!after.some((l) => /^ev (completed|failed)/.test(l)), J(after)); + await press("IntegCancelOnly", /^ev cancelled/); + }); + + test("Close: State is 2, Closed; an Ask after it raises no error, and Failed says the conversation is unknown", async (t) => { + const mark = await consoleMark(c); + await click(c, "addinButton-IntegClose"); + await waitLine(mark, /^ev failed/); + const out = await lines(mark); + t.diagnostic(J(out)); + assert.equal(out[0], "closed state 2"); + assert.equal(out[1], "asked state 2"); + assert.match(out[2], /^ev failed state 2$/); + }); + + test("an endpoint written as the dialog's example shows it, ending /chat/completions: the request goes to .../chat/completions/chat/completions, and Failed has the service's answer (an IDE defect)", async (t) => { + // ai-endpoint-example-doubled-path: the Endpoint URL box's example is the whole request address, + // and the IDE adds /chat/completions to the endpoint + const { out, reqs } = await run("IntegSecond", /^ev (completed|failed)|second error|start error/); + t.diagnostic(J({ out, reqs: reqs.map((r) => r.url) })); + assert.deepEqual( + reqs.map((r) => r.url), + ["/v1/chat/completions/chat/completions"], + ); + assert.equal(out.at(-1), "ev failed state 0"); + }); + + // Last, since turning the three back on together has ended the IDE's page (WIP.BugHunt.md); + // integration-toggle.test.mjs turns each off and on alone. The compiler restarts above gave the + // add-in a new command, so its CommandID is read again. + test("Enabled = False on the providers: they are not called, the IDE's own hover still shows, and the lens goes", async (t) => { + const all = await lines(null); + commandId = all.findLast((l) => l.startsWith("command ")).split(" ")[2]; + await openFile(c, MAIN); + await sleep(1500); + const out = await press("IntegToggle", /^toggle(d| error)/); + await sleep(1500); + const mark = await consoleMark(c); + await restMouse(c, 4, 18); + await sleep(2500); + const text = await hoverText(c); + const got = await lines(mark); + const drawn = (await lenses()).filter((x) => x.shown && /ProbeLens/.test(x.text)).map((x) => x.text); + t.diagnostic(J({ out, got, text, drawn })); + await mouseAway(c); + toggledOff = out[0]; + assert.ok(out[0].startsWith("toggled to False: hover False lens False"), J(out)); + assert.deepEqual(got, []); + assert.match(text ?? "", /FindTheNeedle/); + assert.doesNotMatch(text ?? "", /ProbeHover/); + assert.deepEqual(drawn, []); + }); + + test("SourceCommand.Enabled = False reads back True (an IDE defect)", (t) => { + // sourcecommand-enabled-reads-true: the Property Let removes the command, but Get still answers True + t.diagnostic(J(toggledOff)); + assert.match(toggledOff, /command True$/); + }); + + test("SourceCommand.Enabled = False removes the command: Monaco has no command of its CommandID", async (t) => { + const ran = await c.evaluate( + `Promise.resolve(editor._commandService.executeCommand(${J(commandId)}, "page")).then(() => "ran", (e) => String(e))`, + { awaitPromise: true }, + ); + t.diagnostic(ran); + assert.equal(ran, `Error: command '${commandId}' not found`); + }); + + return () => service.stop(); +}); diff --git a/test/addin/lanes.mjs b/test/addin/lanes.mjs index ac8018f60..798ccdc0b 100644 --- a/test/addin/lanes.mjs +++ b/test/addin/lanes.mjs @@ -61,9 +61,16 @@ export default [ { file: "ico-cur.test.mjs" }, // The datasheet element of BETA 1045 in a tool window: its events, controller and replies. Its add-in saves nothing. { file: "datasheet.test.mjs", settings: [] }, + // The same add-in with BETA 1052's copyEvent left unfixed: an IDE defect. Saves nothing. + { file: "datasheet-copyevent.test.mjs", settings: [] }, // The custom-designer API of BETA 1045: its probe add-in registers designers for the files // of probes/designers-host and logs every call on them. Saves nothing. { file: "designers.test.mjs" }, + // tbIDE's Integration (commands, hovers, CodeLens), AI conversations and ToolWindow V2, new in + // BETA 1046, against a fake chat-completions service the file starts on 127.0.0.1. Saves nothing. + { file: "integration.test.mjs", settings: [] }, + // The same add-in's Integration objects turned off and on again, one IDE for each. Saves nothing. + { file: "integration-toggle.test.mjs", settings: [] }, // 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. diff --git a/test/addin/menus.test.mjs b/test/addin/menus.test.mjs index d104059d6..429f6806f 100644 --- a/test/addin/menus.test.mjs +++ b/test/addin/menus.test.mjs @@ -251,10 +251,13 @@ scenario("tbIDE Menus, ProjectExplorer and theme colours (BETA 1045)", (lane) => // menu on a file, after the IDE's own items. const tail = (all) => all.slice(all.indexOf("P unknown command")); - test("both add-ins load, and Host.CompilerVersion is 0.15.1045", async () => { + test("both add-ins load, and Host.CompilerVersion is 0.15 and the BETA's number", async () => { const names = (await loadedAddins(c)).map((a) => a.name); assert.deepEqual(names.slice().sort(), ["", "MenusProbe AddIn"]); - assert.ok((await lines(null)).includes("version <0.15.1045>"), J(await lines(null))); + // the BETA's number, from the folder of the install the lane copies (twinBASIC_IDE_BETA_) + const beta = /BETA_(\d+)/i.exec(lane.ide)?.[1]; + assert.ok(beta, `no BETA number in ${lane.ide}`); + assert.ok((await lines(null)).includes(`version <0.15.${beta}>`), J(await lines(null))); }); test("UnsupportedHostAddin: listed with an empty name, drawn as a separator in the Add-Ins menu, and nothing in the console", async () => { @@ -593,14 +596,15 @@ scenario("tbIDE Menus, ProjectExplorer and theme colours (BETA 1045)", (lane) => await chooseTheme("Dark"); }); - // An IDE defect, toolwindow-addin-colours-stale. - test("--themeAddin*: a tool window keeps the values of the theme it was made in", () => { + // Since BETA 1052: BETA 1045 kept the values of the theme the window was made in. + test("--themeAddin*: a tool window takes the values of the new theme", (t) => { assert.ok(seen.lightOld && seen.hcNew, "the test before this one did not switch the themes"); + t.diagnostic(JSON.stringify(seen)); // Made in Dark, after the switch to Light. const s = seen.lightOld; - assert.deepEqual([s.inline, s.computed, s.box], [DARK, DARK, "rgb(43, 43, 43)"]); - // Made in Light, after the switch to High Contrast Dark. - assert.deepEqual(seen.hcNew.inline, LIGHT); + assert.deepEqual([s.inline, s.computed], [LIGHT, LIGHT]); + // Made in Light, after the switch to High Contrast Dark, which has Dark's values. + assert.deepEqual(seen.hcNew.inline, DARK); }); // An IDE defect, menus-removealladdedentries-noop. diff --git a/test/addin/probes/integration/Settings b/test/addin/probes/integration/Settings new file mode 100644 index 000000000..b3a3d25ac --- /dev/null +++ b/test/addin/probes/integration/Settings @@ -0,0 +1,42 @@ +{ + "configuration.inherits": "Defaults", + "project.appTitle": "IntegrationProbe", + "project.buildPath": "${SourcePath}\\Build\\${ProjectName}_${Architecture}.${FileExtension}", + "project.buildType": "Standard DLL", + "project.description": "The Integration, AI and ToolWindow features of tbIDE new in BETA 1046: a source command, hover providers, a CodeLens provider, GetChildElementById and GetComputedStyleOfChild, and an AI conversation with a tool. test/addin/integration.test.mjs builds it into the copy of the install its lane makes; never put it in your own %APPDATA%\\twinBASIC\\addins or in a real install's addins folder.", + "project.exportPathIsV2": true, + "project.id": "{7B247100-0000-4000-9000-7B2471000030}", + "project.name": "IntegrationProbe", + "project.optionExplicit": true, + "project.references": [ + { + "id": "{00020430-0000-0000-C000-000000000046}", + "lcid": 0, + "name": "OLE Automation", + "path32": "C:\\Windows\\SysWOW64\\stdole2.tlb", + "path64": "C:\\Windows\\System32\\stdole2.tlb", + "versionMajor": 2, + "versionMinor": 0 + }, + { + "id": "{99DEC38C-75F6-4488-8EE7-2D52D83881D2}", + "isCompilerPackage": true, + "licence": "MIT", + "name": "[COMPILER PACKAGE] twinBASIC IDE Extensibility Package", + "path32": "", + "path64": "", + "publisher": "TWINBASIC-COMPILER", + "symbolId": "tbIDE", + "versionBuild": 0, + "versionMajor": 0, + "versionMinor": 0, + "versionRevision": 1 + } + ], + "project.settingsVersion": 1, + "project.warnings": { + "errors": [], + "ignored": [] + }, + "runtime.useUnicodeStandardLibrary": true +} diff --git a/test/addin/probes/integration/Sources/MainModule.twin b/test/addin/probes/integration/Sources/MainModule.twin new file mode 100644 index 000000000..af26b9dc1 --- /dev/null +++ b/test/addin/probes/integration/Sources/MainModule.twin @@ -0,0 +1,429 @@ +' The Integration, AI and ToolWindow features of tbIDE new in BETA 1046, for +' integration.test.mjs. As the project loads it adds a source command, two +' hover providers (Hover first, Hover2 second, with priorities 2 and 1) and a +' CodeLens provider for "twinbasic" whose lens runs the command. Its toolbar +' buttons turn the three off and on, refresh the CodeLens provider, open a tool +' window for GetChildElementById and GetComputedStyleOfChild, and run AI +' conversations against whatever models the IDE's options list. Every line it +' prints starts "[IntegProbe]". It saves nothing. +Module MainModule + [DllExport] + Public Function tbCreateCompilerAddin(ByVal Host As Host) As AddIn + Return New IntegrationProbeAddin(Host) + End Function +End Module + +Private Class IntegrationProbeAddin + Implements AddIn + Private WithEvents Host As Host + Private WithEvents Cmd As SourceCommand + Private WithEvents Hover As SourceHoverProvider + Private WithEvents Hover2 As SourceHoverProvider + Private WithEvents Lens As SourceCodeLensProvider + Private WithEvents Conv As AIConversation + Private WithEvents ToggleButton As Button + Private WithEvents RefreshButton As Button + Private WithEvents PaneButton As Button + Private WithEvents StyleButton As Button + Private WithEvents ProvidersButton As Button + Private WithEvents AskButton As Button + Private WithEvents AgainButton As Button + Private WithEvents StreamButton As Button + Private WithEvents ToolButton As Button + Private WithEvents ImageButton As Button + Private WithEvents BadImageButton As Button + Private WithEvents CancelButton As Button + Private WithEvents CloseButton As Button + Private WithEvents SecondButton As Button + Private WithEvents OneOffButton As Button + Private WithEvents OneOnButton As Button + Private Pane As ToolWindow + Private WithEvents ToolImageButton As Button + Private WithEvents TwiceButton As Button + Private WithEvents CancelOnlyButton As Button + Private LensCalls As Long + Private ToolAnswer As String + Private ToolMime As String + + ' A PNG of one pixel, as base64. + Private Const PNG As String = "iVBORw0KGgoAAAANSUhEUgAAAAEAAAABCAYAAAAfFcSJAAAADUlEQVR42mP8z8DwHwAFBQIAX8jx0gAAAABJRU5ErkJggg==" + + Public Sub New(ByVal Host As Host) + Set Me.Host = Host + End Sub + + Private Property Get AddIn_Name() As String + Return "IntegrationProbe AddIn" + End Property + + Public Sub Say(ByVal Text As String) + Host.DebugConsole.PrintText "[IntegProbe] " & Text + End Sub + + Private Sub Host_OnProjectLoaded() + On Error GoTo Failed + Set Cmd = Host.Integration.AddSourceCommand("probeCmd") + Say "command " & Cmd.Name & " " & Cmd.CommandID & " enabled " & Cmd.Enabled + Set Hover = Host.Integration.AddSourceHoverProvider("probeHover") + Say "hover " & Hover.Name & " enabled " & Hover.Enabled + Set Hover2 = Host.Integration.AddSourceHoverProvider("probeHover2") + Set Lens = Host.Integration.AddSourceCodeLensProvider("probeLens", "twinbasic") + Say "lens " & Lens.Name & " " & Lens.LanguageId & " enabled " & Lens.Enabled + With Host.Toolbars(0) + Set ToggleButton = .AddButton("IntegToggle", "Integration: toggle") + Set RefreshButton = .AddButton("IntegRefresh", "Integration: refresh") + Set PaneButton = .AddButton("IntegPane", "Integration: pane") + Set StyleButton = .AddButton("IntegStyle", "Integration: style") + Set ProvidersButton = .AddButton("IntegProviders", "AI: providers") + Set AskButton = .AddButton("IntegAsk", "AI: ask") + Set AgainButton = .AddButton("IntegAgain", "AI: ask again") + Set StreamButton = .AddButton("IntegStream", "AI: stream") + Set ToolButton = .AddButton("IntegTool", "AI: tool") + Set ImageButton = .AddButton("IntegImage", "AI: image") + Set BadImageButton = .AddButton("IntegBadImage", "AI: bad image") + Set CancelButton = .AddButton("IntegCancel", "AI: cancel") + Set CloseButton = .AddButton("IntegClose", "AI: close") + Set SecondButton = .AddButton("IntegSecond", "AI: second model") + Set OneOffButton = .AddButton("IntegOneOff", "one off") + Set OneOnButton = .AddButton("IntegOneOn", "one on") + Set ToolImageButton = .AddButton("IntegToolImage", "AI: tool image") + Set TwiceButton = .AddButton("IntegTwice", "AI: ask twice") + Set CancelOnlyButton = .AddButton("IntegCancelOnly", "AI: cancel only") + End With + Say "loaded " & Host.CompilerVersion + Exit Sub + Failed: + Say "load error " & Err.Number & " <" & Err.Description & ">" + End Sub + + ' ------------------------------------------------------------ Integration + + Private Sub Cmd_Execute(ByVal JsonArgs As String) + Say "execute <" & JsonArgs & ">" + End Sub + + Private Sub Hover_Hover(ByVal Uri As String, ByVal LineNumber As Long, ByVal CharOffset As Long, ByVal IsDebugging As Boolean, ByVal ResultResolver As AsyncResultResolver) + Say "hover1 " & Uri & " " & LineNumber & " " & CharOffset & " " & IsDebugging + ResultResolver.SetPriority 2 + If LineNumber = 3 Then + ResultResolver.Resolve "" + Else + ResultResolver.Resolve "**ProbeHover1** L" & LineNumber & " C" & CharOffset & " [Run probe](command:" & Cmd.CommandID & "?%5B%22hover%22%2C3%5D) [No args](command:" & Cmd.CommandID & ")" + End If + End Sub + + Private Sub Hover2_Hover(ByVal Uri As String, ByVal LineNumber As Long, ByVal CharOffset As Long, ByVal IsDebugging As Boolean, ByVal ResultResolver As AsyncResultResolver) + Say "hover2 " & LineNumber + ResultResolver.SetPriority 1 + ResultResolver.Resolve "ProbeHover2 html" + End Sub + + Private Sub Lens_GetResults(ByVal Uri As String, ByVal ResultResolver As AsyncResultResolver) + LensCalls = LensCalls + 1 + Say "lens " & Uri & " " & LensCalls + ResultResolver.Resolve "{""lenses"":[{""range"":{""startLineNumber"":2,""startColumn"":1,""endLineNumber"":2,""endColumn"":1},""command"":{""id"":""" & Cmd.CommandID & """,""title"":""ProbeLens " & LensCalls & """,""arguments"":[""lens"",7,{""a"":true}]}}]}" + End Sub + + ' Turns the three off when the hover provider is on, and on when it is off. Each is set to a + ' value, never to Not itself, and read back. + Private Sub ToggleButton_OnClick() + On Error GoTo Failed + Dim v As Boolean = Not Hover.Enabled + Hover.Enabled = v + Hover2.Enabled = v + Lens.Enabled = v + Cmd.Enabled = v + Say "toggled to " & v & ": hover " & Hover.Enabled & " lens " & Lens.Enabled & " command " & Cmd.Enabled + Exit Sub + Failed: + Say "toggle error " & Err.Number & " <" & Err.Description & ">" + End Sub + + ' One of the three turned off or on, named by the environment variable INTEG_ONE: "cmd", + ' "lens" or "hover". For narrowing down what ends the IDE's page. + Private Sub OneOffButton_OnClick() + SetOne False + End Sub + + Private Sub OneOnButton_OnClick() + SetOne True + End Sub + + Private Sub SetOne(ByVal v As Boolean) + On Error GoTo Failed + Select Case Environ$("INTEG_ONE") + Case "cmd": Cmd.Enabled = v + Case "lens": Lens.Enabled = v + Case "hover": Hover.Enabled = v + End Select + Say "one " & Environ$("INTEG_ONE") & " " & v & " " & Cmd.CommandID & " " & Cmd.Enabled + Exit Sub + Failed: + Say "one error " & Err.Number & " <" & Err.Description & ">" + End Sub + + Private Sub RefreshButton_OnClick() + Lens.Refresh + Say "refreshed" + End Sub + + ' ------------------------------------------------------------ ToolWindow V2 + + Private Sub PaneButton_OnClick() + On Error GoTo Failed + Set Pane = Host.ToolWindows.Add("Integration probe", "IntegProbePane") + Pane.Title = "INTEGRATION PROBE" + With Pane.RootDomElement + .Properties.suggestedWidth = "400px" + .Properties.suggestedHeight = "300px" + With .ChildDomElements.Add("probeChild", "div") + .Properties.innerText = "child" + .Properties.style.color = "rgb(1, 2, 3)" + End With + End With + Pane.ApplyCss "#probeChild::before { content: ""B""; color: rgb(4, 5, 6); }" + Pane.Visible = True + Say "pane shown" + Dim el As HtmlElement = Pane.GetChildElementById("probeChild") + Say "child " & (el Is Nothing) & " <" & el.Properties.innerText & ">" + Dim none As HtmlElement = Pane.GetChildElementById("noSuchChild") + Say "missing " & (none Is Nothing) + Exit Sub + Failed: + Say "pane error " & Err.Number & " <" & Err.Description & ">" + End Sub + + Private Sub StyleButton_OnClick() + Say "style " & StyleOf("probeChild", "", "color") + Say "style before " & StyleOf("probeChild", "before", "color") + Say "style colon " & StyleOf("probeChild", ":before", "color") + Say "style colons " & StyleOf("probeChild", "::before", "color") + Say "style missing " & StyleOf("noSuchChild", "", "color") + Say "style done" + End Sub + + Private Function StyleOf(ByVal Id As String, ByVal Pseudo As String, ByVal Name As String) As String + On Error GoTo Failed + Dim s As HtmlEventProperties + If Len(Pseudo) Then + Set s = Pane.GetComputedStyleOfChild(Id, Pseudo) + Else + Set s = Pane.GetComputedStyleOfChild(Id) + End If + Return "<" & CStr(s.Item(Name).Value) & ">" + Failed: + Return "error " & Err.Number & " <" & Err.Description & ">" + End Function + + ' ------------------------------------------------------------ AI + + Private Sub ProvidersButton_OnClick() + On Error GoTo Failed + Dim ps As HostAIProviders = Host.AI.Providers + Say "providers " & ps.Count + Dim i As Long + For i = 0 To ps.Count + Say "item " & i & " " & Describe(i) + Next + Say "item byname " & Describe("Second") + Say "item bymodel " & Describe("probe-second") + Say "item unknown " & Describe("No such provider") + Dim d As HostAIProvider = ps.DefaultProvider + If d Is Nothing Then + Say "default nothing" + Else + Say "default " & d.FriendlyName + End If + Say "providers done" + Exit Sub + Failed: + Say "providers error " & Err.Number & " <" & Err.Description & ">" + End Sub + + Private Function Describe(ByVal IndexOrName As Variant) As String + On Error GoTo Failed + Dim p As HostAIProvider = Host.AI.Providers(IndexOrName) + If p Is Nothing Then Return "nothing" + With p.Permissions + Return "<" & p.FriendlyName & "> default " & p.IsDefault & " read " & .AllowRead & " write " & .AllowWrite & " execute " & .AllowExecute + End With + Failed: + Return "error " & Err.Number & " <" & Err.Description & ">" + End Function + + Private Function Start(ByVal IndexOrName As Variant) As Boolean + On Error GoTo Failed + Set Conv = Host.AI.Providers(IndexOrName).StartConversation() + Say "started state " & Conv.State + Return True + Failed: + Say "start error " & Err.Number & " <" & Err.Description & ">" + End Function + + Private Sub AskButton_OnClick() + On Error GoTo Failed + If Not Start(0) Then Exit Sub + Conv.SystemPrompt = "You are a probe." + Say "prompt <" & Conv.SystemPrompt & ">" + Dim v1 As IAIConversationV1 = Conv + v1.Ask "hello", False + Say "asked state " & Conv.State + Exit Sub + Failed: + Say "ask error " & Err.Number & " <" & Err.Description & ">" + End Sub + + Private Sub AgainButton_OnClick() + On Error GoTo Failed + Conv.SystemPrompt = "Changed after the first Ask." + Conv.RegisterTool "late_tool", "Registered after the first Ask", "{""type"":""object"",""properties"":{}}" + Say "prompt <" & Conv.SystemPrompt & ">" + Conv.Ask "again", False, "" + Say "asked state " & Conv.State + Exit Sub + Failed: + Say "again error " & Err.Number & " <" & Err.Description & ">" + End Sub + + Private Sub StreamButton_OnClick() + On Error GoTo Failed + If Not Start(0) Then Exit Sub + Conv.Ask "stream please", True, "" + Say "asked state " & Conv.State + Exit Sub + Failed: + Say "stream error " & Err.Number & " <" & Err.Description & ">" + End Sub + + Private Sub ToolButton_OnClick() + On Error GoTo Failed + If Not Start(0) Then Exit Sub + Conv.RegisterTool "get_number", "Returns a number for the probe", "{""type"":""object"",""properties"":{""which"":{""type"":""string""}},""required"":[""which""]}" + Conv.RegisterTool "bad name", "A name the IDE refuses", "{""type"":""object"",""properties"":{}}" + Conv.RegisterTool "no_schema", "Parameters that are not an object schema", "[]" + ToolAnswer = "{""number"":42}" + ToolMime = "" + Conv.Ask "use the tool", False, "" + Say "asked state " & Conv.State + Exit Sub + Failed: + Say "tool error " & Err.Number & " <" & Err.Description & ">" + End Sub + + Private Sub ImageButton_OnClick() + On Error GoTo Failed + If Not Start(0) Then Exit Sub + Conv.Ask "what is this", False, "[{""mimeType"":""image/png"",""base64"":""" & PNG & """}]" + Say "asked state " & Conv.State + Exit Sub + Failed: + Say "image error " & Err.Number & " <" & Err.Description & ">" + End Sub + + Private Sub BadImageButton_OnClick() + On Error GoTo Failed + If Not Start(0) Then Exit Sub + Conv.Ask "what is this", False, "[{""mimeType"":""image/bmp"",""base64"":""Qk0=""}]" + Say "asked state " & Conv.State + Exit Sub + Failed: + Say "badimage error " & Err.Number & " <" & Err.Description & ">" + End Sub + + Private Sub CancelButton_OnClick() + On Error GoTo Failed + If Not Start(0) Then Exit Sub + Conv.Ask "slow please", True, "" + Say "asked state " & Conv.State + Conv.Cancel + Say "cancel called state " & Conv.State + Exit Sub + Failed: + Say "cancel error " & Err.Number & " <" & Err.Description & ">" + End Sub + + Private Sub CloseButton_OnClick() + On Error GoTo Failed + Conv.Close + Say "closed state " & Conv.State + Conv.Ask "after close", False, "" + Say "asked state " & Conv.State + Exit Sub + Failed: + Say "close error " & Err.Number & " <" & Err.Description & ">" + End Sub + + Private Sub SecondButton_OnClick() + On Error GoTo Failed + If Not Start(1) Then Exit Sub + Conv.Ask "hello", False, "" + Say "asked state " & Conv.State + Exit Sub + Failed: + Say "second error " & Err.Number & " <" & Err.Description & ">" + End Sub + + Private Sub Conv_Started() + Say "ev started state " & Conv.State + End Sub + + Private Sub Conv_Chunk(ByVal Text As String) + Say "ev chunk <" & Text & "> state " & Conv.State + End Sub + + Private Sub Conv_ThinkingChunk(ByVal Text As String) + Say "ev thinking <" & Text & ">" + End Sub + + Private Sub Conv_Completed(ByVal Response As String) + Say "ev completed <" & Response & "> state " & Conv.State + End Sub + + Private Sub Conv_Failed(ByVal ErrorMessage As String) + Say "ev failed <" & ErrorMessage & "> state " & Conv.State + End Sub + + Private Sub Conv_Cancelled() + Say "ev cancelled state " & Conv.State + End Sub + + Private Sub Conv_ToolCall(ByVal ToolRequestJson As String, ByVal ResultResolver As AsyncResultResolver) + Say "ev toolcall <" & ToolRequestJson & "> state " & Conv.State + If Len(ToolMime) Then + ResultResolver.Resolve ToolAnswer, ToolMime + Else + ResultResolver.Resolve ToolAnswer + End If + End Sub + + ' A second Ask while the first one's streamed reply is still coming. + Private Sub TwiceButton_OnClick() + On Error GoTo Failed + If Not Start(0) Then Exit Sub + Conv.Ask "slow please", True + Conv.Ask "hello", False + Say "asked twice state " & Conv.State + Exit Sub + Failed: + Say "twice error " & Err.Number & " <" & Err.Description & ">" + End Sub + + Private Sub CancelOnlyButton_OnClick() + Conv.Cancel + Say "cancel only" + End Sub + + ' The tool answers with an image, given with its MIME type. + Private Sub ToolImageButton_OnClick() + On Error GoTo Failed + If Not Start(0) Then Exit Sub + Conv.RegisterTool "get_number", "Returns a number for the probe", "{""type"":""object"",""properties"":{""which"":{""type"":""string""}},""required"":[""which""]}" + ToolAnswer = PNG + ToolMime = "image/png" + Conv.Ask "use the tool", False + Say "asked state " & Conv.State + Exit Sub + Failed: + Say "toolimage error " & Err.Number & " <" & Err.Description & ">" + End Sub +End Class diff --git a/test/ide/code-find.test.mjs b/test/ide/code-find.test.mjs index 3b395dde4..1c798c20b 100644 --- a/test/ide/code-find.test.mjs +++ b/test/ide/code-find.test.mjs @@ -235,9 +235,19 @@ scenario("the Find / Replace panel", (lane) => { assert.fail(`${what}: ${JSON.stringify(await quick())}`); } - // Clicks a part of the Quick Find widget, once nothing covers it. + // Clicks a part of the Quick Find widget, once the widget's transitions have finished and + // nothing covers the part. The widget slides down into view when it opens; a click aimed while + // it moves lands in the code above the part (BETA 1052, where typing into the box no longer + // outlasts the slide). An animation that repeats for ever is not waited for, and one cancelled + // counts as finished. async function clickWidget(selector, what) { const part = `${WIDGET}.querySelector(${JSON.stringify(selector)})`; + await c.evaluate( + `Promise.all(${WIDGET}.getAnimations({ subtree: true }) + .filter((a) => a.effect?.getComputedTiming().iterations !== Infinity) + .map((a) => a.finished.catch(() => null))).then(() => true)`, + { awaitPromise: true }, + ); const at = await c.evaluate(centreOf(part)); assert.ok(at, `${what} of Quick Find is not on screen`); assert.ok( diff --git a/test/ide/console-cleared.test.mjs b/test/ide/console-cleared.test.mjs index c4e3c46bc..8b5c09154 100644 --- a/test/ide/console-cleared.test.mjs +++ b/test/ide/console-cleared.test.mjs @@ -102,7 +102,10 @@ scenario("the DEBUG CONSOLE when a project opens", (lane) => { // Every other tool's IDE has this defect fixed in its page (IDE_FIXES, tb-defaults.mjs); this // lane states it, so its IDE is left as the build is. c = await lane.openNoProject({ unfixed: ["console-cleared-at-open"] }); - assert.deepEqual(await c.evaluate("window.__tbDefaults.fixes"), [], "the page fixed the defect it tests"); + assert.ok( + !(await c.evaluate("window.__tbDefaults.fixes")).includes("console-cleared-at-open"), + "the page fixed the defect it tests", + ); assert.ok(await waitFor(c, () => c.evaluate(READY_JS)), "the page never became ready"); await c.evaluate("cancelAllModalDialogs()"); const first = pack("ConsoleClearedProbe"); diff --git a/test/ide/drag-drop-option.test.mjs b/test/ide/drag-drop-option.test.mjs new file mode 100644 index 000000000..e00938cec --- /dev/null +++ b/test/ide/drag-drop-option.test.mjs @@ -0,0 +1,108 @@ +// The Drag And Drop Selection option of BETA 1048: its row in IDE Options (monaco.dragAndDrop) and +// its item at the end of the code editor's menu, the ... icon in the EDITOR panel's header. The item +// turns the option off and on, and the code editor's own dragAndDrop option follows it; its tick is +// read from the project's settings rather than from the option, so it stays ticked +// (bugs/drag-drop-menu-tick-stays). +// +// Each test states what BETA 1052 does. If one fails after an IDE update, the IDE has changed: +// update docs/IDE/Customising/IDE-Options.md, then this file. A test whose comment names an IDE +// defect asserts the defect: it fails once it is fixed. +// +// Run it with ide-test.bat, which gives it a lane; on its own it is skipped. + +import assert from "node:assert/strict"; +import path from "node:path"; +import { before, test } from "node:test"; +import { fileURLToPath } from "node:url"; +import { sleep } from "../../scripts/lib/tb-ide.mjs"; +import { clickAt, openFile, waitFor } from "../../scripts/lib/tb-operate.mjs"; +import { scenario } from "../addin/scenario.mjs"; + +const HERE = path.dirname(fileURLToPath(import.meta.url)); +const HOST = path.join(HERE, "..", "addin", "host"); +const MAIN = "/AddinHost/Sources/Main.twin"; +const ITEM = "Drag And Drop Selection"; +const J = JSON.stringify; + +// The centre of the ... icon in the EDITOR panel's header. +const ICON_JS = `(() => { + const i = [...document.querySelectorAll(".ellipsesIcon2")].find((e) => { + const h = e.parentElement; + return h && /^EDITOR/.test(h.innerText.trim()) && e.getBoundingClientRect().width > 0; + }); + if (!i) return null; + const r = i.getBoundingClientRect(); + return { x: r.x + r.width / 2, y: r.y + r.height / 2 }; +})()`; + +// The open menu's items: text, ticked, centre. +const ITEMS_JS = `(() => { + const m = document.querySelector("#contextMenu"); + if (!m || !m.getBoundingClientRect().width) return []; + return [...m.children].filter((e) => e.tagName !== "HR").map((e) => { + const r = e.getBoundingClientRect(); + return { text: e.innerText.trim(), ticked: !!e.querySelector(".tickIcon"), x: r.x + r.width / 2, y: r.y + r.height / 2 }; + }); +})()`; + +// The option as the IDE holds it, and the code editor's own. +const STATE_JS = `({ option: liveIDEOptions["monaco.dragAndDrop"], editor: editor.getRawOptions().dragAndDrop })`; + +scenario("the Drag And Drop Selection option and its menu item (BETA 1048 to 1052)", (lane) => { + let c; + const states = []; + + before(async () => { + c = await lane.open(HOST); + await openFile(c, MAIN); + }); + + async function openMenu() { + const icon = await c.evaluate(ICON_JS); + assert.ok(icon, "no ... icon in the EDITOR panel's header"); + await clickAt(c, icon.x, icon.y); + const items = await waitFor(c, async () => ((await c.evaluate(ITEMS_JS)).length ? c.evaluate(ITEMS_JS) : null), { + timeout: 5000, + }); + assert.ok(items, "the menu did not open"); + return items; + } + async function closeMenu() { + await c.evaluate("try { hideContextMenu() } catch {}"); + await sleep(300); + } + + test("the option is on by default, and so is the code editor's dragAndDrop", async () => { + assert.deepEqual(await c.evaluate(STATE_JS), { option: true, editor: true }); + }); + + test("the item is the last of the editor's menu, after Show CodeLens Run Procedure, and ticked", async (t) => { + const items = await openMenu(); + t.diagnostic(J(items.map((i) => `${i.ticked ? "+" : "-"} ${i.text}`))); + await closeMenu(); + assert.equal(items.at(-1).text, ITEM); + assert.equal(items.at(-2).text, "Show CodeLens Run Procedure"); + assert.equal(items.at(-1).ticked, true); + }); + + test("clicking the item turns the option off, and the code editor's dragAndDrop with it; clicking it again turns both on", async (t) => { + for (let i = 0; i < 2; i++) { + const items = await openMenu(); + const it = items.find((x) => x.text === ITEM); + states.push({ tickedBefore: it.ticked }); + await clickAt(c, it.x, it.y); + await sleep(800); + states.at(-1).after = await c.evaluate(STATE_JS); + await closeMenu(); + } + t.diagnostic(J(states)); + assert.deepEqual(states[0].after, { option: false, editor: false }); + assert.deepEqual(states[1].after, { option: true, editor: true }); + }); + + test("the item stays ticked while the option is off (an IDE defect)", (t) => { + // drag-drop-menu-tick-stays: the tick is read from g_CachedProjectSettings, not liveIDEOptions + t.diagnostic(J(states)); + assert.equal(states[1].tickedBefore, true); + }); +}); diff --git a/test/ide/lanes.mjs b/test/ide/lanes.mjs index 41ef058c1..794a628bd 100644 --- a/test/ide/lanes.mjs +++ b/test/ide/lanes.mjs @@ -21,6 +21,8 @@ export default [ { file: "export.test.mjs" }, + // The Drag And Drop Selection option and its item in the code editor's menu. Saves nothing. + { file: "drag-drop-option.test.mjs" }, { file: "debugger.test.mjs" }, { file: "assert.test.mjs" }, { file: "packages.test.mjs" }, @@ -30,7 +32,6 @@ export default [ { file: "console-completion.test.mjs" }, { file: "console-space.test.mjs" }, { file: "build-and-exit-silent.test.mjs" }, - { file: "recent-projects-copies.test.mjs" }, { file: "typing-after-open.test.mjs" }, { file: "restart-file-order.test.mjs" }, { file: "customising.test.mjs" }, diff --git a/test/ide/language.test.mjs b/test/ide/language.test.mjs index 62e13f83e..35ba26cab 100644 --- a/test/ide/language.test.mjs +++ b/test/ide/language.test.mjs @@ -194,7 +194,7 @@ scenario("language", (lane) => { await openFile(c, FILE, { line: DIM_LINE, column: 1 }); }); - test("en-gb.lang names the warnings and the error TB5079, the Dutch, Hungarian and Swedish packs the same codes, and no other pack that ships with the IDE names a code", async (t) => { + test("en-gb.lang names the warnings and the error TB5079, the Catalan, Dutch, French, Greek, Hungarian, Spanish and Swedish packs the same codes, and no other pack that ships with the IDE names a code", async (t) => { const codes = await c.evaluate(PACK_CODES_JS); t.diagnostic(JSON.stringify(codes)); const british = codes["en-gb.lang"]; @@ -206,8 +206,17 @@ scenario("language", (lane) => { "en-gb.lang names a code that is neither a warning nor TB5079", ); assert.ok(!british.includes("TB5179"), "en-gb.lang names TB5179"); - // In BETA 1045 the Dutch, Hungarian and Swedish packs translate the same messages. - const translated = ["hu-hu.lang", "nl-nl.lang", "sv-sv.lang"]; + // In BETA 1052 these packs translate the same messages; in BETA 1045 only the Dutch, + // Hungarian and Swedish ones did. + const translated = [ + "ca-es.lang", + "el_gr.lang", + "es-es.lang", + "fr-fr.lang", + "hu-hu.lang", + "nl-nl.lang", + "sv-sv.lang", + ]; for (const f of translated) assert.deepEqual(codes[f], british, `${f} names other codes than en-gb.lang`); const others = ["en-gb.lang", "zz-zz.lang", ...translated]; const shipped = Object.entries(codes).filter(([f, k]) => !others.includes(f) && k.length); diff --git a/test/ide/recent-projects-copies.test.mjs b/test/ide/recent-projects-copies.test.mjs deleted file mode 100644 index 18fb6b1a1..000000000 --- a/test/ide/recent-projects-copies.test.mjs +++ /dev/null @@ -1,125 +0,0 @@ -// The IDE's recent-projects list, tested against the entry "The recent-projects -// list fills its empty slots with copies of its last entry" in BUGS-TO-REPORT.md -// (reproducer: bugs/recent-projects-copies). -// -// With "0" = A and "1" = B and "2" to "20" holding nothing, opening C leaves -// "0" = C, "1" = A and "2" to "20" all = B: nineteen copies. -// -// THIS TEST WRITES THE USER'S OWN LIST, HKCU\Software\VB and VBA Program -// Settings\twinBASIC_IDE\RecentlyOpened. Every IDE of every install reads and -// writes that key whatever its APPDATA is. So the test records the key as it -// is, value by value with the type of each, before it writes anything, and puts -// it back with restoreKeys after the lane's IDE has exited, even when a test -// failed. The runner's own tidy (startTidy and finishTidy in -// scripts/lib/tb-registry.mjs) does not touch the recent list, since every -// other IDE of the harness is started with --no-update-recent-files, so it is -// not relied on for this. THIS IDE IS THE ONE THAT IS NOT: it is started with -// IDE_FLAGS less that flag (it keeps --no-save-ide-settings), because the list -// is what the test reads. All three project paths are inside the lane's work -// folder. -// -// Any other IDE that opens a project while this runs, another lane's or another -// session's, writes the same key and spoils the shape the test looks for. So -// the test tries again, up to ATTEMPTS times, when the list does not even have -// the opened project on top with A under it; a list that has both, and anything -// but B in the slots below, is the defect gone, and fails the test at once. -// -// If the test fails after an IDE update, the IDE has changed: update the entry -// in BUGS-TO-REPORT.md or bugs/filed/ and WIP.Harness.md (which says a short list -// trips it), and then this file. -// -// Run it with ide-test.bat, which gives it a lane; on its own it is skipped. - -import assert from "node:assert/strict"; -import { mkdirSync } from "node:fs"; -import path from "node:path"; -import { before, test } from "node:test"; -import { fileURLToPath } from "node:url"; -import { IDE_FLAGS, sleep } from "../../scripts/lib/tb-ide.mjs"; -import { packTree } from "../../scripts/lib/tb-project.mjs"; -import { IDE_SETTINGS_KEY, norm, restoreKeys, snapshotKeys } from "../../scripts/lib/tb-registry.mjs"; -import { scenario } from "../addin/scenario.mjs"; - -const HERE = path.dirname(fileURLToPath(import.meta.url)); -const SOURCE = path.join(HERE, "..", "..", "bugs", "recent-projects-copies", "src"); -const KEY = `${IDE_SETTINGS_KEY}\\RecentlyOpened`; -const SLOTS = 21; -const ATTEMPTS = 4; - -// The key's values as { name: data }, read now. -function listNow() { - const [entry] = snapshotKeys([KEY]); - const values = entry.snap?.values ?? []; - return Object.fromEntries([].concat(values).map((v) => [v.name, v.data])); -} - -scenario("the recent-projects list", (lane) => { - const folder = (name) => path.join(lane.work, "recent", name); - const A = path.join(folder("A"), "project.twinproj"); - const B = path.join(folder("B"), "project.twinproj"); - const C = path.join(folder("C"), "project.twinproj"); // where lane.open puts the project it is given - let found = null; // the key as the test found it, for restoreKeys - - before(() => { - found = snapshotKeys([KEY]); - const entry = found[0].snap; - assert.ok(entry, "the IDE has no RecentlyOpened key to start from"); - assert.deepEqual([].concat(entry.keys ?? []), [], "RecentlyOpened has subkeys, which this test does not expect"); - for (const dir of ["A", "B", "C"]) mkdirSync(folder(dir), { recursive: true }); - // A and B exist as projects, as in the reproducer; C is packed by lane.open. - packTree(A, SOURCE); - packTree(B, SOURCE); - }); - - // "0" = A, "1" = B and "2" to "20" deleted: restoreKeys deletes every value - // the snapshot does not list. - const setList = () => - restoreKeys([ - { - path: KEY, - snap: { - values: [ - { name: "0", kind: "String", data: A }, - { name: "1", kind: "String", data: B }, - ], - keys: [], - }, - }, - ]); - - // Open C, and read the list once the IDE has put C on top of it; the last - // list read if it never does. - async function openC() { - setList(); - await lane.open(SOURCE, { folder: folder("C"), flags: IDE_FLAGS.filter((f) => f !== "--no-update-recent-files") }); - let values = {}; - for (let i = 0; i < 50; i++) { - values = listNow(); - if (norm(values["0"] ?? "") === norm(C)) break; - await sleep(200); - } - return values; - } - - test("opening a project fills the slots that held nothing with copies of the last entry", async (t) => { - let values; - for (let attempt = 1; attempt <= ATTEMPTS; attempt++) { - if (attempt > 1) await lane.closeProject(); - values = await openC(); - t.diagnostic(`attempt ${attempt}: "0" and "1" ${norm(values["1"] ?? "") === norm(A) ? "as set" : "disturbed"}`); - if (norm(values["0"] ?? "") === norm(C) && norm(values["1"] ?? "") === norm(A)) break; - } - const shown = JSON.stringify(values); - assert.equal(norm(values["0"] ?? ""), norm(C), `"0" is not the opened project: ${shown}`); - assert.equal(norm(values["1"] ?? ""), norm(A), `"1" is not A: ${shown}`); - for (let i = 2; i < SLOTS; i++) { - assert.equal(norm(values[String(i)] ?? ""), norm(B), `"${i}" is not a copy of B: ${shown}`); - } - }); - - // After the lane has closed and its IDE has exited, which can write the list as - // it ends. Runs even when a test or the close failed. - return () => { - if (found) restoreKeys(found); - }; -}); diff --git a/test/package-tests/OLEGuids/Sources/DispatchTests.twin b/test/package-tests/OLEGuids/Sources/DispatchTests.twin index 73c9fda7b..108dcf86d 100644 --- a/test/package-tests/OLEGuids/Sources/DispatchTests.twin +++ b/test/package-tests/OLEGuids/Sources/DispatchTests.twin @@ -213,8 +213,7 @@ Module DispatchTests [TestCase] Public Sub StdoleIDispatch_CallIsLateBoundAndDoesNotReachTheMethods() Expect.Begin - ' A twinBASIC class: a Collection here ends the run with an access violation on BETA 1042, a - ' twinBASIC defect apart from the package (bugs/stdole-idispatch-collection-crash). + ' An object of a twinBASIC class: the case is about the declaration, not the object. Dim c As New Calculator Dim d As IDispatch = c Dim count As Long = -1 diff --git a/test/package-tests/VBCCR18/Sources/RichTextBoxLinksTests.twin b/test/package-tests/VBCCR18/Sources/RichTextBoxLinksTests.twin index 6f6e44038..fad2cdc62 100644 --- a/test/package-tests/VBCCR18/Sources/RichTextBoxLinksTests.twin +++ b/test/package-tests/VBCCR18/Sources/RichTextBoxLinksTests.twin @@ -185,7 +185,8 @@ Module RichTextBoxLinksTests .SelStart = 1: .SelLength = 1 Rig.ClearLog .SelText = "X" - Expect.IsTrue InStr(Rig.Events(), "ModifyProtected 1 2") > 0, "SelStart and SelEnd of SelText over the character at 1: " & Rig.Events() + ' The events are not in the message: in a 64-bit program SelEnd is a value that differs from run to run. + Expect.IsTrue InStr(Rig.Events(), "ModifyProtected 1 2") > 0, "SelStart and SelEnd of SelText over the character at 1 are 1 and 2" End With Set sink.Box = Nothing Unload f diff --git a/test/package-tests/VBCCR18/expect.json b/test/package-tests/VBCCR18/expect.json index 891f6e559..bcaba60a7 100644 --- a/test/package-tests/VBCCR18/expect.json +++ b/test/package-tests/VBCCR18/expect.json @@ -79,7 +79,7 @@ "RichTextBoxLinksTests.ModifyProtected_GivesTheRangeOfTheChange": { "win32": "pass", "win64": { - "fails": "1 of 1 checks failed: SelStart and SelEnd of SelText over the character at 1: ModifyProtected 2 32761: expected True, got False" + "fails": "1 of 1 checks failed: SelStart and SelEnd of SelText over the character at 1 are 1 and 2: expected True, got False" } }, "RichTextBoxTextTests.Typing_AfterALongerTextWasAssigned_IsLimitedToMaxLength": { @@ -112,9 +112,6 @@ "TreeViewTests.Expanded_BeforeExpandCancelled_LeavesTheNodeCollapsed": { "fails": "1 of 2 checks failed: Expanded after Expanded = True with BeforeExpand cancelled: expected False, got True" }, - "UpDownTests.BuddyProperty_Text_ShowsTheValue": { - "fails": "2 of 2 checks failed: BuddyProperty = \"Text\": expected 0, got 380; the Text of the buddy after Value = 7: expected \"7\", got \"TextBoxW1\"" - }, "UpDownTests.SyncBuddy_True_UsesTheDefaultPropertyOfTheBuddy": { "fails": "2 of 2 checks failed: SyncBuddy = True: expected 0, got 380; the Text of the buddy after Value = 7: expected \"7\", got \"TextBoxW1\"" }, diff --git a/test/shot-review.test.mjs b/test/shot-review.test.mjs index 2bb992546..db3a8d23d 100644 --- a/test/shot-review.test.mjs +++ b/test/shot-review.test.mjs @@ -34,6 +34,7 @@ import { writeVerdict, } from "../scripts/lib/shot-stage.mjs"; import { hashOf, openManifest } from "../scripts/lib/shot-manifest.mjs"; +import { fileHolders, holderText } from "../scripts/lib/file-holders.mjs"; import { changeMap, strengthOf, strengthPicture } from "../scripts/lib/shot-change.mjs"; import { acquireLock, @@ -61,6 +62,7 @@ import { groupOf, hasSvg, neighbours, + pinnedList, noSvgReason, reviewPictures, runFacts, @@ -681,6 +683,31 @@ describe("what the screenshot review shows (shot-review.mjs, shot-pages.mjs)", ( assert.match(commitMessage(plan), /1 kept from outside the runs/); }); + test("a Needs a look chip names an earlier decision about other bytes in words, and other reasons by their key", () => { + const earlier = { why: "earlier", text: "a review kept the new picture of other bytes" }; + const p = { + out: A, + png: { state: "updated", by: "rule", look: earlier }, + svg: { state: "updated", by: "rule", look: { why: "earlier", text: "a review accepted an SVG of other bytes" } }, + }; + const chips = chipsOf(p); + assert.match( + chips, + /PNG: decided before, other bytes<\/span>/, + ); + assert.match( + chips, + /SVG: decided before, other bytes<\/span>/, + ); + assert.doesNotMatch(chips, /: earlierPNG: noise<\/span>/); + }); + test("a picture's allowances are chips, with the rule each makes as their tooltip", () => { const p = { out: A, png: { state: "unchanged", by: "rule" }, svg: null }; assert.doesNotMatch(chipsOf(p), /allowance/); @@ -742,6 +769,88 @@ describe("what the screenshot review shows (shot-review.mjs, shot-pages.mjs)", ( assert.deepEqual(neighbours(pictures, "x.png"), { index: -1, prev: null, next: null }); }); + test("an error writing a picture names the processes that hold it, when its code says one may", () => { + const err = (code, message) => Object.assign(new Error(message), { code, path: "D:\\docs\\A.png" }); + const busy = err("UNKNOWN", "UNKNOWN: unknown error, open 'D:\\docs\\A.png'"); + const asked = []; + const held = (file) => { + asked.push(file); + return [ + { pid: 12, app: "Windows PowerShell", name: "powershell" }, + { pid: 34, app: "Some App", name: null }, + ]; + }; + assert.equal( + holderText(busy, { holders: held }), + "UNKNOWN: unknown error, open 'D:\\docs\\A.png'; held by powershell.exe (pid 12), Some App (pid 34)", + ); + assert.deepEqual(asked, ["D:\\docs\\A.png"]); + assert.match( + holderText(err("EBUSY", "EBUSY: busy"), { holders: () => [] }), + /^EBUSY: busy; no process holds it now$/, + ); + assert.match( + holderText(err("EPERM", "EPERM: no"), { + holders: () => { + throw new Error("RmStartSession: 5\nmore"); + }, + }), + /^EPERM: no; who holds it could not be asked: RmStartSession: 5$/, + ); + // any other error, and one with no path, as it is, and nobody asked + assert.equal(holderText(err("ENOENT", "ENOENT: gone"), { holders: held }), "ENOENT: gone"); + assert.equal(holderText(new Error("plain"), { holders: held }), "plain"); + assert.equal(asked.length, 1); + // the PowerShell's answer read: a BOM dropped, an error thrown + const run = (answer) => () => answer; + assert.deepEqual( + fileHolders("D:\\docs\\A.png", { run: run('\u{FEFF}{"result":[{"pid":1,"app":"a","name":"b"}]}') }), + [{ pid: 1, app: "a", name: "b" }], + ); + assert.deepEqual(fileHolders("D:\\docs\\A.png", { run: run('{"result":null}') }), []); + assert.throws(() => fileHolders("D:\\docs\\A.png", { run: run('{"error":"RmGetList: 5"}') }), /RmGetList: 5/); + }); + + test("a picture page keeps the list it was opened from: the picture back in its group, by path, or in Changed by measure", () => { + const pic = (out, group, measure = 0) => ({ out, group, measure }); + const list = [ + pic("a.png", "look"), + pic("c.png", "look"), + pic("x.png", "changed", 9), + pic("y.png", "changed", 1), + pic("b.png", "noise"), + pic("d.png", "noise"), + ]; + const outs = (l) => l.map((p) => `${p.out}:${p.group}`); + // b, decided out of Needs a look into Only noise, goes back between a and c + assert.deepEqual(outs(pinnedList(list, list[4], "look")), [ + "a.png:look", + "b.png:look", + "c.png:look", + "x.png:changed", + "y.png:changed", + "d.png:noise", + ]); + // the filtered list of Needs a look, which no longer holds it + assert.deepEqual(outs(pinnedList(list.slice(0, 2), list[4], "look")), ["a.png:look", "b.png:look", "c.png:look"]); + // in Changed by measure, most first + assert.deepEqual(outs(pinnedList(list, pic("m.png", "noise", 5), "changed")).slice(2, 5), [ + "x.png:changed", + "m.png:changed", + "y.png:changed", + ]); + // a group the list has none of comes where GROUPS puts it: Not taken yet, before Changed + assert.deepEqual(outs(pinnedList(list, list[5], "untaken")).slice(2, 4), ["d.png:untaken", "x.png:changed"]); + // and after every group of the list + assert.equal(outs(pinnedList(list, list[0], "failed")).at(-1), "a.png:failed"); + // a picture in its group already: the list itself + assert.equal(pinnedList(list, list[1], "look"), list); + // a picture page's address: its filter, or with none, the group it was opened in + assert.equal(hrefs.picture(A, "all", "look"), `/picture/${A}?group=look`); + assert.equal(hrefs.picture(A, "look", "noise"), `/picture/${A}?filter=look`); + assert.equal(hrefs.picture(A), `/picture/${A}`); + }); + test("a picture of program windows is a group of its own, PNG only, unless its PNG changed", () => { const why = WINDOW_WHY; const svg = svgVerdict({ state: "not written", why, window: true }); @@ -2540,6 +2649,20 @@ onStop(process.stdin, () => { assert.deepEqual([pic(A).png.state, pic(A).png.by, pic(A).group], ["restored", "decision", "noise"]); assert.deepEqual(openManifest(manifestFile).entry(A).png.decision, { keep: "old", capture: hashOf(capture) }); assert.match((await get(`/picture/${A}`)).text, /aria-pressed="true">Keep the old picture/); + // a page opened in another group keeps its pager there after the decision moved A to Only + // noise: from Needs a look, by its filter or the overview's group, and from any other group + const where = async (q) => /([^<]*)<\/span>/.exec((await get(`/picture/${A}${q}`)).text)[1]; + assert.match(await where(""), / · Only noise$/); + assert.match(await where("?filter=look"), / · Needs a look$/); + assert.match(await where("?group=look"), / · Needs a look$/); + assert.match(await where("?group=changed"), / · Changed, most changed first$/); + // a group that is no group is the picture's own + assert.equal(await where("?group=nonsense"), await where("")); + // its neighbours' links keep the group each is in + assert.match( + (await get(`/picture/${A}?group=look`)).text, + /rel="(?:prev|next)" href="\/picture\/[^"?]+\?group=[a-z]+"/, + ); // moved to HEAD: the verdict judged against the old baseline's picture needs a look, // and judged again it is against the new one's, which is the capture diff --git a/test/shots/manifest.json b/test/shots/manifest.json index b5ac1e475..4bccd62a5 100644 --- a/test/shots/manifest.json +++ b/test/shots/manifest.json @@ -17,7 +17,13 @@ } }, "Features/Images/017bd6f8-4b35-43a9-b6be-84cba69daf64.png": { - "build": 1034 + "build": 1034, + "png": { + "decision": { + "keep": "old", + "capture": "cb4d2550828f18e72c5fe439dbdd8f80eae0a645" + } + } }, "Features/Images/021f6cbf-acce-445d-ade7-3fcad0af4927.png": { "scale": 1.5, @@ -32,6 +38,17 @@ "build": 1034, "scale": 1.5 }, + "Features/Images/351d0147-cad3-4e16-89e5-0a9e43496740.light.png": { + "png": { + "decision": { + "keep": "old", + "capture": "4bcafdd2314297a2561563010083a42357cf588b" + } + } + }, + "Features/Images/351d0147-cad3-4e16-89e5-0a9e43496740.png": { + "build": 1052 + }, "Features/Images/3fa1cf2b-0af5-44ae-ae6a-3c0662f51f57.png": { "build": 1034, "scale": 1.5 @@ -45,32 +62,109 @@ "scale": 1.5 }, "Features/Images/4c8b881e-1216-4819-a558-d2ce20f47fcd.light.png": { - "build": 1042 + "build": 1042, + "png": { + "decision": { + "keep": "old", + "capture": "c3fdcecdef3d0fa11f15cfc22636e57de2300a6d" + } + } }, "Features/Images/4c8b881e-1216-4819-a558-d2ce20f47fcd.png": { - "build": 1042 + "build": 1042, + "png": { + "decision": { + "keep": "old", + "capture": "795a473db7f9d3c6e8112f936a76a4ea5fcfcf56" + } + } }, "Features/Images/4fc2bf99-2bec-4943-837d-21038d791574.light.png": { - "build": 1042 + "build": 1042, + "png": { + "decision": { + "keep": "old", + "capture": "5944975e14351b9bc279915ebdcc5b098b2a457d" + } + } }, "Features/Images/4fc2bf99-2bec-4943-837d-21038d791574.png": { - "build": 1042 + "build": 1052 + }, + "Features/Images/54ed49d8-b434-45e3-9e63-a1fe75cdf814.light.png": { + "png": { + "decision": { + "keep": "old", + "capture": "ce5439f8faa49f894765ed9dd9e23aa7c39b61d2" + } + } + }, + "Features/Images/54ed49d8-b434-45e3-9e63-a1fe75cdf814.png": { + "png": { + "decision": { + "keep": "old", + "capture": "5042e93fc6af6e8a1a98e56a216d3b7a0a170c0e" + } + } }, "Features/Images/569099635-bc9553a6-fcce-487d-a478-dbee557f33b1.light.png": { "build": 1042, "png": { "decision": { - "keep": "new", - "capture": "3e9851941c56a2a9639daf5ed8bb2e2891a80bd0" + "keep": "old", + "capture": "dd615f210efc5f868397a72df4938fe0ca6ab9eb" } } }, "Features/Images/569099635-bc9553a6-fcce-487d-a478-dbee557f33b1.png": { "build": 1042, + "png": { + "decision": { + "keep": "old", + "capture": "b8a304c39e24eb0b1b7a94e4f000edd75fb2cbcd" + } + } + }, + "Features/Images/569100769-f1f2790a-0094-4843-809f-a8a9e928fd41.png": { + "build": 1052 + }, + "Features/Images/569150839-9ffc87ac-250d-40a4-bb47-669b607ad76f.light.png": { + "build": 1052, + "png": { + "decision": { + "keep": "new", + "capture": "17b0ac91aa8999b5847225175206c9d688b28782" + } + }, + "svg": { + "decision": { + "accept": true, + "svg": "313baba2e4819d8311fa46ba597e51b9e902a92f", + "png": "17b0ac91aa8999b5847225175206c9d688b28782" + } + } + }, + "Features/Images/569150839-9ffc87ac-250d-40a4-bb47-669b607ad76f.png": { + "build": 1052, "png": { "decision": { "keep": "new", - "capture": "c94e5e1d10e58b88e36973a35d69a4f2b2ea2f52" + "capture": "b8d034f3f786c8e9d64fa7c7422b3154c1c976ee" + } + }, + "svg": { + "decision": { + "accept": true, + "svg": "fefc0c42ff67c90ee193ee701a42f670e88a4c33", + "png": "b8d034f3f786c8e9d64fa7c7422b3154c1c976ee" + } + } + }, + "Features/Images/5951dab6-738e-4b63-83c4-3331ec6d36b9.png": { + "png": { + "decision": { + "keep": "old", + "capture": "8b698da831d12f895c76baf5dd3b8e17ec2ddb08" } } }, @@ -90,30 +184,75 @@ "build": 1034, "scale": 1.5 }, + "Features/Images/9a5c50d5-a9f8-44a7-96f7-ae84548bd7ef.light.png": { + "build": 1052 + }, + "Features/Images/9a5c50d5-a9f8-44a7-96f7-ae84548bd7ef.png": { + "build": 1052 + }, "Features/Images/IDE-FeatureMap.light.png": { - "build": 1042 + "build": 1052 }, "Features/Images/IDE-FeatureMap.png": { - "build": 1042, + "build": 1052, "png": { "decision": { "keep": "new", - "capture": "dc3fc70fec73ba9bde16742d2f1be4aa9dc5f5e2" + "capture": "40287f98e8f0744f3576eee1041c38359022c5fe" } }, "svg": { "decision": { "accept": true, - "svg": "0ec5193b81efcf1b46dce5bee895a2466c2a2109", - "png": "dc3fc70fec73ba9bde16742d2f1be4aa9dc5f5e2" + "svg": "b51ae291a6a4e6fbea8939f1165ec8914a088973", + "png": "40287f98e8f0744f3576eee1041c38359022c5fe" + } + } + }, + "Features/Images/b000d3aa-3689-4d94-88e3-bca44f8b7de6.light.png": { + "png": { + "decision": { + "keep": "old", + "capture": "964b5f008aa735338248037b2c89205cfcbd4814" + } + } + }, + "Features/Images/b000d3aa-3689-4d94-88e3-bca44f8b7de6.png": { + "png": { + "decision": { + "keep": "old", + "capture": "b219a22df87d58be8ebfa3e10efc8ab9c90a6781" + } + } + }, + "Features/Images/b0724fe2-636d-47db-a8fc-531a585ddaf9.light.png": { + "png": { + "decision": { + "keep": "old", + "capture": "013db321e39e58a294b8d0e4ae34474552210fd7" } } }, + "Features/Images/b0724fe2-636d-47db-a8fc-531a585ddaf9.png": { + "build": 1052 + }, "Features/Images/b26da59b-4e98-40b7-b97b-bb3cef4ca1d0.light.png": { - "build": 1042 + "build": 1042, + "png": { + "decision": { + "keep": "old", + "capture": "d062adee5cb83b48ef0a188ea3305cf8f75ae86c" + } + } }, "Features/Images/b26da59b-4e98-40b7-b97b-bb3cef4ca1d0.png": { - "build": 1042 + "build": 1042, + "png": { + "decision": { + "keep": "old", + "capture": "792fe60b5d6ed2f7ce289051d9d6d6d3a5690372" + } + } }, "Features/Images/bc9f3756-a14b-4ee7-b819-6822497b640a.png": { "build": 1034, @@ -126,26 +265,140 @@ } }, "Features/Images/d5dff8f5-c5fa-4620-ba11-430d06276b27.light.png": { - "build": 1042 + "build": 1042, + "png": { + "decision": { + "keep": "old", + "capture": "4f66b71f2f2c31739b6359db3957d39f60d65957" + } + } }, "Features/Images/d5dff8f5-c5fa-4620-ba11-430d06276b27.png": { - "build": 1042 + "build": 1042, + "png": { + "decision": { + "keep": "old", + "capture": "a4351a88d99d72d6b8e92ce3533594f82b12b166" + } + } }, "Features/Images/fddbffa9-2b71-47f5-b925-e67fc66b9e5c.png": { "build": 1034, "scale": 1.5 }, + "Features/Packages/Images/1f7e3574-f3c8-4aee-972a-ff161c0e51ac.png": { + "png": { + "decision": { + "keep": "old", + "capture": "d03072422ca9888f485cecb111911e72d4dd93a8" + } + } + }, + "Features/Packages/Images/4d90f313-35d5-426d-8fc3-852ca03382fa.light.png": { + "build": 1052 + }, + "Features/Packages/Images/4d90f313-35d5-426d-8fc3-852ca03382fa.png": { + "build": 1052 + }, "Features/Packages/Images/6ad7a172-0e1b-4276-ac89-042681552507.light.png": { - "build": 1042 + "build": 1052 }, "Features/Packages/Images/6ad7a172-0e1b-4276-ac89-042681552507.png": { - "build": 1042 + "build": 1052 + }, + "Features/Packages/Images/8cf72685-1188-4607-a55a-df16d4280474.light.png": { + "build": 1052, + "png": { + "decision": { + "keep": "new", + "capture": "9393a08b979647d572bac8bfe2d9d56eecc6ac58" + } + } + }, + "Features/Packages/Images/8cf72685-1188-4607-a55a-df16d4280474.png": { + "build": 1052, + "png": { + "decision": { + "keep": "new", + "capture": "164ee98afc02b35536f319586113b4c599a1feb5" + } + } }, "Features/Packages/Images/8d74d820-9907-4e76-ac42-71d0233187f1.light.png": { - "build": 1042 + "build": 1042, + "png": { + "decision": { + "keep": "old", + "capture": "73df4ef2e06c01b1cce78c17078a0cf435e460d2" + } + } }, "Features/Packages/Images/8d74d820-9907-4e76-ac42-71d0233187f1.png": { - "build": 1042 + "build": 1052 + }, + "Features/Packages/Images/9eeffbcf-d73e-4a92-bce5-811ed60aba98.light.png": { + "build": 1052 + }, + "Features/Packages/Images/9eeffbcf-d73e-4a92-bce5-811ed60aba98.png": { + "png": { + "decision": { + "keep": "old", + "capture": "f48ad9f91eef6b3e3a2a8cd724cd20dce0a7d123" + } + } + }, + "Features/Packages/Images/LibrarySymbols.light.png": { + "png": { + "decision": { + "keep": "old", + "capture": "884f9307bdd39a1101cb6fcc07060eeebd1e2383" + } + } + }, + "Features/Packages/Images/LibrarySymbols.png": { + "png": { + "decision": { + "keep": "old", + "capture": "608312be7789580c036793634b0b9ea8d986dc81" + } + } + }, + "Features/Packages/Images/Menu_View_PackagePublishing.light.png": { + "build": 1052 + }, + "Features/Packages/Images/Menu_View_PackagePublishing.png": { + "build": 1052 + }, + "Features/Packages/Images/a1331a0e-3ba3-45cf-8dc3-2e24f0fa1fe6.png": { + "png": { + "decision": { + "keep": "old", + "capture": "60bb93831f1fecb3b8f72984e504312d928a8f9b" + } + } + }, + "Features/Packages/Images/db4636f6-d988-4e31-94a2-c4c170418e81.light.png": { + "build": 1052, + "png": { + "decision": { + "keep": "new", + "capture": "ee6e5d6fda788e51071888919538ab1aa0f9c928" + } + } + }, + "Features/Packages/Images/db4636f6-d988-4e31-94a2-c4c170418e81.png": { + "build": 1052 + }, + "Features/Packages/Images/e2a65dfe-4a9d-4524-b6d6-7a6d1bc35cdb.light.png": { + "build": 1052 + }, + "Features/Packages/Images/e2a65dfe-4a9d-4524-b6d6-7a6d1bc35cdb.png": { + "png": { + "decision": { + "keep": "old", + "capture": "4634a86601e53d3dac32bcf375c41de666d4d8f9" + } + } }, "Features/Packages/Images/e35d5955-9e70-4d6e-abd7-748558da75ba.light.png": { "svg": { @@ -157,388 +410,2207 @@ } }, "Features/Packages/Images/e35d5955-9e70-4d6e-abd7-748558da75ba.png": { - "build": 1042 + "build": 1052, + "png": { + "decision": { + "keep": "new", + "capture": "1b9caa0c68aa9c1d030848a0ef052b1c771aa85e" + } + } }, "Features/Packages/Images/e749e10f-e361-4f15-a977-d756fcb3b5dd.light.png": { - "build": 1042 + "build": 1052 }, "Features/Packages/Images/e749e10f-e361-4f15-a977-d756fcb3b5dd.png": { - "build": 1042 + "build": 1052 + }, + "Features/Packages/Images/f48a7254-e5c9-48c5-8099-725c0951ae5f.light.png": { + "build": 1052 + }, + "Features/Packages/Images/f48a7254-e5c9-48c5-8099-725c0951ae5f.png": { + "build": 1052 }, "Features/Packages/Images/f66fb240-dcb7-46ee-896d-78c3789a7876.png": { "build": 1042, + "png": { + "decision": { + "keep": "old", + "capture": "4d4dc4be3e05c4388e90ec22abecbb4843510cbc" + } + }, "svg": { "ignore": [ [315, 62, 347, 98] ] } }, - "IDE/AddIns/Images/AddIns_Menu.light.png": { - "build": 1045 - }, - "IDE/AddIns/Images/AddIns_Menu.png": { - "build": 1045 - }, - "IDE/AddIns/Images/DataExplorer.light.png": { - "build": 1045 - }, - "IDE/AddIns/Images/DataExplorer.png": { - "build": 1045 - }, - "IDE/AddIns/Images/DataExplorer_Settings.light.png": { - "build": 1045 - }, - "IDE/AddIns/Images/DataExplorer_Settings.png": { - "build": 1045 - }, - "IDE/AddIns/Images/DiffCompare.light.png": { - "build": 1045 - }, - "IDE/AddIns/Images/DiffCompare.png": { - "build": 1045 - }, - "IDE/AddIns/Images/DiffCompare_Menu.light.png": { - "build": 1045 - }, - "IDE/AddIns/Images/DiffCompare_Menu.png": { - "build": 1045 + "Features/Packages/Images/packLicenceFiles.light.png": { + "build": 1052, + "png": { + "decision": { + "keep": "new", + "capture": "84caf731c19c3ac83d64a7a3fd02c070bed2c96e" + } + } }, - "IDE/AddIns/Images/Help_Find.png": { - "build": 1034 + "Features/Packages/Images/packLicenceFiles.png": { + "png": { + "decision": { + "keep": "old", + "capture": "d95f3dfd61888f86b16784c43082f459acd16651" + } + } }, - "IDE/AddIns/Images/Help_Hover.light.png": { - "build": 1034, + "Features/Packages/Images/packPublishButton.light.png": { "png": { "decision": { "keep": "old", - "capture": "0dc7ba0425596b9219e294b051a42602e4930543" + "capture": "32c257c567504de495351f7f680dbd2212524740" } } }, - "IDE/AddIns/Images/Help_KeyEditor.light.png": { - "build": 1042 + "Features/Packages/Images/packPublishButton.png": { + "png": { + "decision": { + "keep": "old", + "capture": "fb0052e6c4f006b9c5d964bf384fe2691a0ee9cd" + } + } + }, + "IDE/AddIns/Images/AddIns_Menu.light.png": { + "build": 1045, + "png": { + "decision": { + "keep": "old", + "capture": "bae593690031673b2b3dd61bd5dfae748b38c9fb" + } + } + }, + "IDE/AddIns/Images/AddIns_Menu.png": { + "build": 1045, + "png": { + "decision": { + "keep": "old", + "capture": "d0d2bd1aad39dcd465c1734aadfaa31d5d55f9b7" + } + } + }, + "IDE/AddIns/Images/DataExplorer.light.png": { + "build": 1045, + "png": { + "decision": { + "keep": "old", + "capture": "eded0b5447aac8f54505d386eb2cc0cc48bd162b" + } + } + }, + "IDE/AddIns/Images/DataExplorer.png": { + "build": 1045, + "png": { + "decision": { + "keep": "old", + "capture": "ce0fdafe9b02e77d6ae339d4ec830ec1e4d0d4af" + } + } + }, + "IDE/AddIns/Images/DataExplorer_Settings.light.png": { + "build": 1052 + }, + "IDE/AddIns/Images/DataExplorer_Settings.png": { + "build": 1052 + }, + "IDE/AddIns/Images/DiffCompare.light.png": { + "build": 1052 + }, + "IDE/AddIns/Images/DiffCompare.png": { + "build": 1052 + }, + "IDE/AddIns/Images/DiffCompare_Menu.light.png": { + "build": 1045, + "png": { + "decision": { + "keep": "old", + "capture": "e6d6be54a75d5ab2908a414639eb650799573e89" + } + } + }, + "IDE/AddIns/Images/DiffCompare_Menu.png": { + "build": 1045, + "png": { + "decision": { + "keep": "old", + "capture": "dab7f8f6ac6aecbaac47acc5280d6268f87a7f47" + } + } + }, + "IDE/AddIns/Images/GlobalSearch.light.png": { + "build": 1052 + }, + "IDE/AddIns/Images/GlobalSearch.png": { + "build": 1052 + }, + "IDE/AddIns/Images/GlobalSearch_2.light.png": { + "build": 1052 + }, + "IDE/AddIns/Images/GlobalSearch_2.png": { + "build": 1052 + }, + "IDE/AddIns/Images/Help_Choices.light.png": { + "build": 1052 + }, + "IDE/AddIns/Images/Help_Choices.png": { + "build": 1052 + }, + "IDE/AddIns/Images/Help_Description.light.png": { + "build": 1052 + }, + "IDE/AddIns/Images/Help_Description.png": { + "build": 1052 + }, + "IDE/AddIns/Images/Help_Find.png": { + "build": 1052 + }, + "IDE/AddIns/Images/Help_Hover.light.png": { + "build": 1052, + "png": { + "decision": { + "keep": "new", + "capture": "9425c71b01cb9c34fccf8bcbdc2e6260478863c6" + } + } + }, + "IDE/AddIns/Images/Help_Hover.png": { + "build": 1052 + }, + "IDE/AddIns/Images/Help_KeyEditor.light.png": { + "build": 1052 }, "IDE/AddIns/Images/Help_KeyEditor.png": { - "build": 1042 + "build": 1052 }, "IDE/AddIns/Images/Help_LayoutEditor.light.png": { - "build": 1042 + "build": 1052 }, "IDE/AddIns/Images/Help_LayoutEditor.png": { - "build": 1042 + "build": 1052 }, "IDE/AddIns/Images/Help_LayoutHelp.light.png": { - "build": 1042 + "build": 1052 }, "IDE/AddIns/Images/Help_LayoutHelp.png": { - "build": 1042 + "build": 1052 + }, + "IDE/AddIns/Images/Help_Pane.light.png": { + "png": { + "decision": { + "keep": "old", + "capture": "c95f2da354a745cfc61c47109e5b10592b9c25a8" + } + } + }, + "IDE/AddIns/Images/Help_Pane.png": { + "png": { + "decision": { + "keep": "old", + "capture": "f007dd647551914751c1f7c8922e69006d856953" + } + } + }, + "IDE/AddIns/Images/Help_Search.light.png": { + "build": 1052 + }, + "IDE/AddIns/Images/Help_Search.png": { + "build": 1052 }, "IDE/AddIns/Images/Help_Settings.light.png": { - "build": 1042 + "build": 1042, + "png": { + "decision": { + "keep": "old", + "capture": "78bd648443c31781547031602401f7b5495b681b" + } + } }, "IDE/AddIns/Images/Help_Settings.png": { - "build": 1042 + "build": 1042, + "png": { + "decision": { + "keep": "old", + "capture": "125da9cef9d21698bf3a341af745602c938dae5c" + } + } + }, + "IDE/AddIns/Images/Help_Toolbar.light.png": { + "png": { + "decision": { + "keep": "old", + "capture": "dfb05d96f0cc11691509bb91e2182931df942645" + } + } }, "IDE/AddIns/Images/Help_Window.light.png": { - "build": 1033 + "build": 1052 }, "IDE/AddIns/Images/Help_Window.png": { - "build": 1033 + "build": 1052 }, "IDE/AddIns/Images/HexEditor.light.png": { - "build": 1045 + "build": 1052 }, "IDE/AddIns/Images/HexEditor.png": { - "build": 1045 + "build": 1052 }, "IDE/AddIns/Images/IcoEditor.light.png": { - "build": 1045 + "build": 1052 }, "IDE/AddIns/Images/IcoEditor.png": { - "build": 1045 + "build": 1052 + }, + "IDE/AddIns/Images/Toolbar_GlobalSearch.light.png": { + "png": { + "decision": { + "keep": "old", + "capture": "55263c1fe461ef2e1cb7c0c3cf7b05643366b17c" + } + } + }, + "IDE/Building/Images/Compiling.light.png": { + "png": { + "decision": { + "keep": "old", + "capture": "9813e02191097195868f99c29bfa68511819224a" + } + } + }, + "IDE/Building/Images/Compiling.png": { + "png": { + "decision": { + "keep": "old", + "capture": "21cfbf1e9bb12ee13f6d1b961bef3dbb507efbf9" + } + } + }, + "IDE/Building/Images/Configuration_List.light.png": { + "png": { + "decision": { + "keep": "old", + "capture": "fd9c8c2263ddf2a20cf066b09b0af51aaabcaa43" + } + } + }, + "IDE/Building/Images/Configuration_List.png": { + "png": { + "decision": { + "keep": "old", + "capture": "997c381d9af7f614f21edf3a1b11375515f63408" + } + } }, "IDE/Building/Images/Console_Clean.light.png": { - "build": 1042 + "build": 1042, + "png": { + "decision": { + "keep": "old", + "capture": "6a08a33a0082c348f9e38eaf59218c748a272aaa" + } + } }, "IDE/Building/Images/Console_Clean.png": { - "build": 1042 + "build": 1052 + }, + "IDE/Building/Images/Console_Exe.light.png": { + "build": 1042, + "png": { + "decision": { + "keep": "old", + "capture": "d181f56711085055ac199a5e617033058cc9da02" + } + } + }, + "IDE/Building/Images/Console_Exe.png": { + "build": 1052 + }, + "IDE/Building/Images/Console_Failed.light.png": { + "build": 1042, + "png": { + "decision": { + "keep": "old", + "capture": "088b957e85a1c0100d22d9792ee1fc6ed0dd416e" + } + } + }, + "IDE/Building/Images/Console_Failed.png": { + "build": 1052 + }, + "IDE/Building/Images/Console_Locked.light.png": { + "build": 1042, + "png": { + "decision": { + "keep": "old", + "capture": "974b1ba469b4620eef3dcbbd9c549b476c9b1c29" + } + } + }, + "IDE/Building/Images/Console_Locked.png": { + "build": 1052 + }, + "IDE/Building/Images/Delete_It_And_Continue.light.png": { + "png": { + "decision": { + "keep": "old", + "capture": "9499641f04bcb14a07d5bf65b4ad8d96aad69246" + } + } + }, + "IDE/Building/Images/Delete_It_And_Continue.png": { + "png": { + "decision": { + "keep": "old", + "capture": "826cd55dd15ace6b7383dca6e282fda02f2c1f22" + } + } + }, + "IDE/Building/Images/HKLM_Warning.light.png": { + "png": { + "decision": { + "keep": "old", + "capture": "24c3757aea442bc86ed97a186f44502cf6692679" + } + } + }, + "IDE/Building/Images/HKLM_Warning.png": { + "png": { + "decision": { + "keep": "old", + "capture": "d320baddd0c6d9ca33d71643638e65196c982758" + } + } + }, + "IDE/Building/Images/Publish_Confirm.light.png": { + "png": { + "decision": { + "keep": "old", + "capture": "91e29bfdaa14872d742f2c88806ed3dccd9d5144" + } + } + }, + "IDE/Building/Images/Publish_Confirm.png": { + "png": { + "decision": { + "keep": "old", + "capture": "9836b64c40663b969f59a6b41881e1fb5be08073" + } + } + }, + "IDE/Building/Images/Publish_Result.light.png": { + "png": { + "decision": { + "keep": "old", + "capture": "82cdbd64a2605307a1848978c8b41983c366f439" + } + } + }, + "IDE/Building/Images/Publish_Result.png": { + "png": { + "decision": { + "keep": "old", + "capture": "5193027db4344c7563d900f2e53b3e09e86bc04b" + } + } + }, + "IDE/Building/Images/Safe_Mode.light.png": { + "png": { + "decision": { + "keep": "old", + "capture": "2eb2dcd47563dbacb35091562950cf7a0b08fbc5" + } + } + }, + "IDE/Building/Images/Safe_Mode.png": { + "png": { + "decision": { + "keep": "old", + "capture": "dcb08073d1f0c217f59de986d08fe29796b2be6b" + } + } + }, + "IDE/Building/Images/Save_First.light.png": { + "png": { + "decision": { + "keep": "old", + "capture": "b9a27ebbf9f3eae877e647ec3bf5efe4d73a94c7" + } + } + }, + "IDE/Building/Images/Save_First.png": { + "png": { + "decision": { + "keep": "old", + "capture": "6ee7dc877f5b72b9d1952173169faae517236d21" + } + } + }, + "IDE/Building/Images/SignIn_Login.light.png": { + "build": 1052 + }, + "IDE/Building/Images/SignIn_Login.png": { + "build": 1052 + }, + "IDE/Building/Images/SignIn_Register.light.png": { + "build": 1052 + }, + "IDE/Building/Images/SignIn_Register.png": { + "build": 1052 + }, + "IDE/Code/Images/Bookmarks.light.png": { + "png": { + "decision": { + "keep": "old", + "capture": "cc5d4bd91583a62df226fcaed9e2226abdd06b64" + } + } + }, + "IDE/Code/Images/Bookmarks.png": { + "build": 1052 + }, + "IDE/Code/Images/Combo_Lists.light.png": { + "png": { + "decision": { + "keep": "old", + "capture": "386a8e60322142f64fbf7e670638b7b40e1b988c" + } + } + }, + "IDE/Code/Images/Combo_Lists.png": { + "png": { + "decision": { + "keep": "old", + "capture": "c755d20111edf57d7e899443e389425682d3862d" + } + } + }, + "IDE/Code/Images/Combos.light.png": { + "png": { + "decision": { + "keep": "old", + "capture": "0f69268ed97998f62abf9a521216601c54ee4faf" + } + } + }, + "IDE/Code/Images/Combos.png": { + "png": { + "decision": { + "keep": "old", + "capture": "f9195d9c9ea533b4c385c5e44c7ec2404f8b5527" + } + } + }, + "IDE/Code/Images/Command_Palette.light.png": { + "build": 1052 + }, + "IDE/Code/Images/Command_Palette.png": { + "build": 1052 + }, + "IDE/Code/Images/Context_Menu.light.png": { + "build": 1052 + }, + "IDE/Code/Images/Context_Menu.png": { + "build": 1052 + }, + "IDE/Code/Images/Diagnostics_Menu.light.png": { + "build": 1052 + }, + "IDE/Code/Images/Diagnostics_Menu.png": { + "build": 1034, + "png": { + "decision": { + "keep": "old", + "capture": "31ab65fa5d6b81a89f15a334cfe65f4fd4474e95" + } + } + }, + "IDE/Code/Images/Diagnostics_Rows.light.png": { + "build": 1052 + }, + "IDE/Code/Images/Diagnostics_Rows.png": { + "build": 1034, + "png": { + "decision": { + "keep": "old", + "capture": "be10b027de7851262406c413623746e255d0accb" + } + } + }, + "IDE/Code/Images/Editor_Panel.light.png": { + "png": { + "decision": { + "keep": "old", + "capture": "97dedd47eac36705c60e53be8d3da8dfb8a088cd" + } + } + }, + "IDE/Code/Images/Editor_Panel.png": { + "png": { + "decision": { + "keep": "old", + "capture": "28f69f165e74cc61e5bb2cf8a2ff331fdebc7312" + } + } + }, + "IDE/Code/Images/Find_Project.light.png": { + "build": 1033, + "png": { + "decision": { + "keep": "old", + "capture": "5b8f780f2af4f61d429cf6b3d18bd617c755098a" + } + } + }, + "IDE/Code/Images/Find_Project.png": { + "build": 1052 + }, + "IDE/Code/Images/Hints.light.png": { + "png": { + "decision": { + "keep": "old", + "capture": "f2ad3ab016233a8194b50095fba93c0ad0d83628" + } + } + }, + "IDE/Code/Images/Hints.png": { + "build": 1052 + }, + "IDE/Code/Images/Hover.light.png": { + "build": 1052 + }, + "IDE/Code/Images/Hover.png": { + "build": 1052 + }, + "IDE/Code/Images/Object_Browser.light.png": { + "build": 1052 + }, + "IDE/Code/Images/Object_Browser.png": { + "build": 1052 + }, + "IDE/Code/Images/Outline_Menu.light.png": { + "png": { + "decision": { + "keep": "old", + "capture": "2fa5d834da6de1fcc18ebff93684ed613b080acf" + } + } + }, + "IDE/Code/Images/Outline_Menu.png": { + "png": { + "decision": { + "keep": "old", + "capture": "7bd2ffc9af7d7c524c012740ddcb27bb3404173e" + } + } + }, + "IDE/Code/Images/Paste_As_Comment.light.png": { + "png": { + "decision": { + "keep": "old", + "capture": "d1d795e8453cb9bb4f58fa63416b55d9d08ae99f" + } + } + }, + "IDE/Code/Images/Paste_As_Comment.png": { + "png": { + "decision": { + "keep": "old", + "capture": "ed5078e15ee35ee5ee9a838d84ace274222221ae" + } + } + }, + "IDE/Code/Images/Quick_Find.light.png": { + "png": { + "decision": { + "keep": "old", + "capture": "c860d45b445c5dd6677d1638a2719a17aa594908" + } + } + }, + "IDE/Code/Images/Quick_Find.png": { + "build": 1052 + }, + "IDE/Code/Images/SignatureHelp.light.png": { + "build": 1052 + }, + "IDE/Code/Images/SignatureHelp.png": { + "build": 1052 + }, + "IDE/Code/Images/SignatureHelp_Expanded.light.png": { + "build": 1052 + }, + "IDE/Code/Images/SignatureHelp_Expanded.png": { + "build": 1052 + }, + "IDE/Code/Images/Tab_Menu.light.png": { + "build": 1042, + "png": { + "decision": { + "keep": "old", + "capture": "fd165daf417999e99947c1cc74621f260fa0b6cf" + } + } + }, + "IDE/Code/Images/Tab_Menu.png": { + "build": 1042, + "png": { + "decision": { + "keep": "old", + "capture": "64291340b1b2792a4d569304bf63453c461e869b" + } + } + }, + "IDE/Code/Images/Tabs_States.light.png": { + "png": { + "decision": { + "keep": "old", + "capture": "b3b3015d872b41cc9969828a0ca3f73b6404d48e" + } + } + }, + "IDE/Code/Images/Tabs_States.png": { + "png": { + "decision": { + "keep": "old", + "capture": "6ec1c802b7dc3eda6c08c48926b821b24895e6b7" + } + } + }, + "IDE/Debugging/Images/Breakpoint_Glyphs.light.png": { + "png": { + "decision": { + "keep": "old", + "capture": "df38602eedaaca41434c873c40a59ab2f154931f" + } + } + }, + "IDE/Debugging/Images/Breakpoint_Glyphs.png": { + "png": { + "decision": { + "keep": "old", + "capture": "e51ddf1df5484842a9d317470dc94e39cd862e25" + } + }, + "svg": { + "decision": { + "accept": true, + "svg": "4b52861db66f4f13ddaf731366acac3b0e3871be", + "png": "8919bfcc19bfcfb1487102fd424add44e8f7ee73" + } + } + }, + "IDE/Debugging/Images/CallStack_Frames.light.png": { + "build": 1052 + }, + "IDE/Debugging/Images/CallStack_Frames.png": { + "build": 1052 + }, + "IDE/Debugging/Images/Console_Menu.light.png": { + "build": 1042, + "png": { + "decision": { + "keep": "old", + "capture": "1dba78c5a4eac1f9ad87f1178246bd3b282aae00" + } + } + }, + "IDE/Debugging/Images/Console_Menu.png": { + "build": 1052 + }, + "IDE/Debugging/Images/Console_Run.light.png": { + "build": 1042, + "png": { + "decision": { + "keep": "old", + "capture": "0897fc5f3f1ff165e6df731e086766ba46beff66" + } + } + }, + "IDE/Debugging/Images/Console_Run.png": { + "build": 1052 + }, + "IDE/Debugging/Images/Error_Panel.light.png": { + "build": 1052 + }, + "IDE/Debugging/Images/Error_Panel.png": { + "build": 1052 + }, + "IDE/Debugging/Images/Hover_Paused.light.png": { + "build": 1052 + }, + "IDE/Debugging/Images/Hover_Paused.png": { + "build": 1052 + }, + "IDE/Debugging/Images/Hover_Selection.light.png": { + "build": 1052 + }, + "IDE/Debugging/Images/Hover_Selection.png": { + "build": 1052 + }, + "IDE/Debugging/Images/Paused_Line.light.png": { + "build": 1052 + }, + "IDE/Debugging/Images/Paused_Line.png": { + "build": 1052 + }, + "IDE/Debugging/Images/Paused_Panels.light.png": { + "build": 1052 + }, + "IDE/Debugging/Images/Paused_Panels.png": { + "build": 1052 + }, + "IDE/Debugging/Images/Process_Box.light.png": { + "png": { + "decision": { + "keep": "old", + "capture": "d7076591446549188bd6869ce5521b0aa4eb5e78" + } + } + }, + "IDE/Debugging/Images/Process_Box.png": { + "png": { + "decision": { + "keep": "old", + "capture": "be17369222d4d4b2fff8534306759220b51201da" + } + } + }, + "IDE/Debugging/Images/Toolbar_Paused.light.png": { + "build": 1052 + }, + "IDE/Debugging/Images/Toolbar_Paused.png": { + "build": 1052 + }, + "IDE/Debugging/Images/Variables_Edit.light.png": { + "png": { + "decision": { + "keep": "old", + "capture": "20dd1d6f8a95ec830e0d279e40aa2998660075dd" + } + } + }, + "IDE/Debugging/Images/Variables_Edit.png": { + "png": { + "decision": { + "keep": "old", + "capture": "9d6bed48e60cb245e286bb01eb8657d7b99f29b2" + } + } + }, + "IDE/Debugging/Images/Variables_Expanded.light.png": { + "build": 1052 + }, + "IDE/Debugging/Images/Variables_Expanded.png": { + "build": 1052 + }, + "IDE/Debugging/Images/Variables_Tooltip.light.png": { + "build": 1052 + }, + "IDE/Debugging/Images/Variables_Tooltip.png": { + "build": 1052 + }, + "IDE/Debugging/Images/Watches_NotAvailable.light.png": { + "png": { + "decision": { + "keep": "old", + "capture": "dd175f18a0942ec356cc5bd2b9bb383eaf66e67f" + } + } + }, + "IDE/Debugging/Images/Watches_NotAvailable.png": { + "png": { + "decision": { + "keep": "old", + "capture": "cecbddd7cc8949860f5f35c8fd4b189afab2d100" + } + } + }, + "IDE/Debugging/Images/Watches_Values.light.png": { + "png": { + "decision": { + "keep": "old", + "capture": "2e7243eb920d675daec913fef48e0cd9354e455c" + } + } + }, + "IDE/Debugging/Images/Watches_Values.png": { + "png": { + "decision": { + "keep": "old", + "capture": "11d1e26ee52e905f0637f2c435008811e3dbe0c1" + } + } + }, + "IDE/Forms/Images/Controls_Container.light.png": { + "build": 1052 + }, + "IDE/Forms/Images/Controls_Container.png": { + "build": 1052 + }, + "IDE/Forms/Images/Controls_ContextMenu.light.png": { + "build": 1052 + }, + "IDE/Forms/Images/Controls_ContextMenu.png": { + "build": 1052 + }, + "IDE/Forms/Images/Controls_MultiSelect.light.png": { + "build": 1052 + }, + "IDE/Forms/Images/Controls_MultiSelect.png": { + "build": 1052 + }, + "IDE/Forms/Images/Controls_RubberBand.light.png": { + "build": 1052 + }, + "IDE/Forms/Images/Controls_RubberBand.png": { + "build": 1052 + }, + "IDE/Forms/Images/Designer_AddName.light.png": { + "build": 1052 + }, + "IDE/Forms/Images/Designer_AddName.png": { + "build": 1052, + "png": { + "decision": { + "keep": "new", + "capture": "7ea52bb12ef248844774729ab4555af511e73731" + } + } + }, + "IDE/Forms/Images/Designer_GridOptions.light.png": { + "build": 1052 + }, + "IDE/Forms/Images/Designer_GridOptions.png": { + "build": 1034, + "png": { + "decision": { + "keep": "old", + "capture": "4c69155364889a7a6b3627014374cb558ce5b501" + } + } + }, + "IDE/Forms/Images/Designer_Locked.light.png": { + "build": 1052 + }, + "IDE/Forms/Images/Designer_Locked.png": { + "build": 1052 + }, + "IDE/Forms/Images/Designer_PackageNeeded.light.png": { + "png": { + "decision": { + "keep": "old", + "capture": "89206580bc812fcec589e1bdde01a92db7288db5" + } + } + }, + "IDE/Forms/Images/Designer_PackageNeeded.png": { + "png": { + "decision": { + "keep": "old", + "capture": "545c6cf749f6e4c46937e84c5c4145eda2d4da15" + } + } + }, + "IDE/Forms/Images/Designer_Selected.light.png": { + "build": 1052 + }, + "IDE/Forms/Images/Designer_Selected.png": { + "build": 1052 + }, + "IDE/Forms/Images/Designer_TabIndex.light.png": { + "build": 1052 + }, + "IDE/Forms/Images/Designer_TabIndex.png": { + "build": 1052, + "png": { + "decision": { + "keep": "new", + "capture": "1175425c7a83009fd5e2c3e54c5a870554d228ee" + } + } + }, + "IDE/Forms/Images/Designer_Zoom.light.png": { + "png": { + "decision": { + "keep": "old", + "capture": "1fddbceb4e62f41e25f43cb08f6d83f1f239ad8b" + } + } + }, + "IDE/Forms/Images/Designer_Zoom.png": { + "png": { + "decision": { + "keep": "old", + "capture": "2ce9fc35d42a4395fe14ac122c3f59296ae8648b" + } + } + }, + "IDE/Forms/Images/MenuEditor_Bar.light.png": { + "png": { + "decision": { + "keep": "old", + "capture": "4acaa1f574d23cf3913d53aef8023ccd5a5a248c" + } + } + }, + "IDE/Forms/Images/MenuEditor_Bar.png": { + "png": { + "decision": { + "keep": "old", + "capture": "1d8fe369205708fbe7cd536365c2b10e8b5c37ac" + } + } + }, + "IDE/Forms/Images/MenuEditor_Open.light.png": { + "png": { + "decision": { + "keep": "old", + "capture": "1b03bb19fec35dde6910cd9e6c4038714566f004" + } + } + }, + "IDE/Forms/Images/MenuEditor_Open.png": { + "build": 1052 + }, + "IDE/Forms/Images/Preview_Window.png": { + "build": 1052, + "scale": 1.5 + }, + "IDE/Forms/Images/Properties_ColourPicker.light.png": { + "build": 1052 + }, + "IDE/Forms/Images/Properties_ColourPicker.png": { + "build": 1052 + }, + "IDE/Forms/Images/Properties_Control.light.png": { + "build": 1052 + }, + "IDE/Forms/Images/Properties_Control.png": { + "build": 1042, + "png": { + "decision": { + "keep": "old", + "capture": "e2a2cdda5acad8c90bf8112c2a9df6c6880a28fa" + } + } + }, + "IDE/Forms/Images/Properties_Events.light.png": { + "build": 1042, + "png": { + "decision": { + "keep": "old", + "capture": "6e639c4fcc55ff98d1c616ab7c4413f47cc2d9ed" + } + } + }, + "IDE/Forms/Images/Properties_Events.png": { + "build": 1052 + }, + "IDE/Forms/Images/Properties_SystemColours.light.png": { + "build": 1052 + }, + "IDE/Forms/Images/Properties_SystemColours.png": { + "build": 1052 + }, + "IDE/Forms/Images/Toolbox_Form.light.png": { + "png": { + "decision": { + "keep": "old", + "capture": "f4b98f1ba4abcd124eaa32c74c463a107de75d93" + } + } + }, + "IDE/Forms/Images/Toolbox_Form.png": { + "png": { + "decision": { + "keep": "old", + "capture": "9ef4529620c26e8cd2d5fa6c632bbf8c498adb22" + } + } + }, + "IDE/Forms/Images/Toolbox_Search.light.png": { + "png": { + "decision": { + "keep": "old", + "capture": "3de9752ac8464f3a3970f269803ca3d518293c61" + } + } + }, + "IDE/Forms/Images/Toolbox_Search.png": { + "png": { + "decision": { + "keep": "old", + "capture": "900e85be03bdb2b5108d5f2fadf81b5552eb6bae" + } + } + }, + "IDE/Images/CallStack.light.png": { + "build": 1052 + }, + "IDE/Images/CallStack.png": { + "build": 1052 + }, + "IDE/Images/Components_Message.light.png": { + "png": { + "decision": { + "keep": "old", + "capture": "16ef78e48a5c24592edf0141445a2e7c70f2f9c8" + } + } + }, + "IDE/Images/Components_Message.png": { + "png": { + "decision": { + "keep": "old", + "capture": "027c2018a6231e69ec9d66ca822aa9c483ec0e1e" + } + } + }, + "IDE/Images/DebugConsole.light.png": { + "build": 1052 + }, + "IDE/Images/DebugConsole.png": { + "build": 1052 + }, + "IDE/Images/DebugConsole_AutoScroll.light.png": { + "png": { + "decision": { + "keep": "old", + "capture": "2edca77e40b658d3cfb34a35720a2bf20c47eb20" + } + } + }, + "IDE/Images/DebugConsole_AutoScroll.png": { + "png": { + "decision": { + "keep": "old", + "capture": "8775d2f2b7fc63fa5691f70eb3cf425d79a3ebbb" + } + } + }, + "IDE/Images/DebugConsole_Input.png": { + "png": { + "decision": { + "keep": "old", + "capture": "067bd645f793b16c8b288d4b5229e42729e89463" + } + } + }, + "IDE/Images/Diagnostics.light.png": { + "build": 1052 + }, + "IDE/Images/Diagnostics.png": { + "build": 1052 + }, + "IDE/Images/Diagnostics_Toggles.light.png": { + "build": 1052 + }, + "IDE/Images/Diagnostics_Toggles.png": { + "build": 1052 + }, + "IDE/Images/Diagnostics_Totals.light.png": { + "build": 1052 + }, + "IDE/Images/Diagnostics_Totals.png": { + "build": 1052 + }, + "IDE/Images/Editor.light.png": { + "build": 1052 + }, + "IDE/Images/Editor.png": { + "build": 1052 + }, + "IDE/Images/Editor_TabsList_Example.light.png": { + "build": 1052, + "png": { + "decision": { + "keep": "new", + "capture": "1db0539680264fd1b6ece6855ed630f9bc7b5e6d" + } + } + }, + "IDE/Images/Editor_TabsList_Example.png": { + "build": 1052, + "png": { + "decision": { + "keep": "new", + "capture": "c3ebc4cec446d77a75d09f09c9d595d40b73886c" + } + } + }, + "IDE/Images/Editor_TabsList_RecentlyClosed.light.png": { + "build": 1052 + }, + "IDE/Images/Editor_TabsList_RecentlyClosed.png": { + "build": 1052 + }, + "IDE/Images/Editor_TabsList_RecentlyClosed_Example.light.png": { + "build": 1052 + }, + "IDE/Images/Editor_TabsList_RecentlyClosed_Example.png": { + "build": 1052 + }, + "IDE/Images/FindReplace.light.png": { + "build": 1052 + }, + "IDE/Images/FindReplace.png": { + "build": 1052 + }, + "IDE/Images/FindReplace_Direction.light.png": { + "build": 1052, + "png": { + "decision": { + "keep": "new", + "capture": "e464da07ebacb52623f3ca69639e25a4507428cf" + } + } + }, + "IDE/Images/FindReplace_Direction.png": { + "build": 1052, + "png": { + "decision": { + "keep": "new", + "capture": "f574c6f034f3129112beca8bc545eee75fe78a7e" + } + } + }, + "IDE/Images/Folder.light.png": { + "png": { + "decision": { + "keep": "old", + "capture": "b886141fdaec746a008ac3d2dbf4725ba67bc35d" + } + } + }, + "IDE/Images/History.light.png": { + "png": { + "decision": { + "keep": "old", + "capture": "ba1e4d97d043bbefa072984263be503a1ee0be7a" + } + } + }, + "IDE/Images/History.png": { + "png": { + "decision": { + "keep": "old", + "capture": "a82e419babc7c738b91a3363c171ebd124f05e11" + } + } + }, + "IDE/Images/History_1.light.png": { + "png": { + "decision": { + "keep": "old", + "capture": "fbf569cffd5edab27b11bf52ae35863a24617be4" + } + } + }, + "IDE/Images/History_1.png": { + "png": { + "decision": { + "keep": "old", + "capture": "6feba747f286a98a7a809d694de7fe00cf9002bd" + } + } + }, + "IDE/Images/History_2.light.png": { + "build": 1052 + }, + "IDE/Images/History_2.png": { + "build": 1052 + }, + "IDE/Images/History_3.light.png": { + "build": 1052 + }, + "IDE/Images/History_3.png": { + "build": 1052 + }, + "IDE/Images/IDE.light.png": { + "build": 1052 + }, + "IDE/Images/IDE.png": { + "build": 1052 + }, + "IDE/Images/IDE_Tour.light.png": { + "build": 1052 + }, + "IDE/Images/IDE_Tour.png": { + "build": 1052, + "svg": { + "decision": { + "accept": false, + "svg": "5d405532fa035f5a81cb5a10507147073ad4ccc7", + "png": "b8613a47ac58b8f4b961d3abc4bd67d896441859" + } + } + }, + "IDE/Images/Links.light.png": { + "png": { + "decision": { + "keep": "old", + "capture": "ec5e1cbcd37372a1b5cf6824e3ae2a3c339654ee" + } + } + }, + "IDE/Images/Links.png": { + "png": { + "decision": { + "keep": "old", + "capture": "876dd31b1dbaf7332277039545d28f49b17a4975" + } + } + }, + "IDE/Images/Memory.light.png": { + "png": { + "decision": { + "keep": "old", + "capture": "ba0f75223dc8c4916d4aa7c5724b1e6843106262" + } + } + }, + "IDE/Images/Memory.png": { + "build": 1052 + }, + "IDE/Images/Memory_String.light.png": { + "png": { + "decision": { + "keep": "old", + "capture": "66947ac8aa071879299876e4b8fe097a1373e55c" + } + } + }, + "IDE/Images/Memory_String.png": { + "png": { + "decision": { + "keep": "old", + "capture": "55dc0fe8bb32e602056678c5c60e3856704b9dfb" + } + } + }, + "IDE/Images/New_Project.light.png": { + "build": 1052 + }, + "IDE/Images/New_Project.png": { + "build": 1052 + }, + "IDE/Images/New_Project_Recent_1.light.png": { + "build": 1052 + }, + "IDE/Images/New_Project_Recent_1.png": { + "build": 1052 + }, + "IDE/Images/New_Project_Recent_2.light.png": { + "build": 1052 + }, + "IDE/Images/New_Project_Recent_2.png": { + "build": 1052 + }, + "IDE/Images/New_Project_Samples.light.png": { + "build": 1052 + }, + "IDE/Images/New_Project_Samples.png": { + "build": 1052 + }, + "IDE/Images/OpenEditors.light.png": { + "png": { + "decision": { + "keep": "old", + "capture": "291ca1bfe87c8475988f5cb50898ade71e786efd" + } + } + }, + "IDE/Images/OpenEditors.png": { + "png": { + "decision": { + "keep": "old", + "capture": "ab569e9cc25e36e86722b873b12aede7313e4f42" + } + } + }, + "IDE/Images/OpenEditors_1.light.png": { + "png": { + "decision": { + "keep": "old", + "capture": "58ca313536d4652b62f9d123675f385af519cb26" + } + } + }, + "IDE/Images/OpenEditors_1.png": { + "png": { + "decision": { + "keep": "old", + "capture": "957855017c406ce6a7e8081ed7b44c5382507387" + } + } + }, + "IDE/Images/Outline.light.png": { + "build": 1052 + }, + "IDE/Images/Outline.png": { + "build": 1052 + }, + "IDE/Images/Outline_1.light.png": { + "png": { + "decision": { + "keep": "old", + "capture": "5ab4a80d5618cac9221ff2aeea4ec0616d8a6e6f" + } + } + }, + "IDE/Images/Outline_1.png": { + "png": { + "decision": { + "keep": "old", + "capture": "c71c90dabb53202dcd8c440e46cfbff9c3f84692" + } + } + }, + "IDE/Images/PackagePublishing.light.png": { + "png": { + "decision": { + "keep": "old", + "capture": "b0edaa89cf677ebcd984f6163e1d09dd5c527bce" + } + } + }, + "IDE/Images/PackagePublishing.png": { + "png": { + "decision": { + "keep": "old", + "capture": "6641cdd3de91e11923332f0c9e85ad7b894e22b9" + } + } + }, + "IDE/Images/PackagePublishing_1.light.png": { + "png": { + "decision": { + "keep": "old", + "capture": "c161fb01183ba49272d15ab9898d64fea4a36bda" + } + } + }, + "IDE/Images/PackagePublishing_1.png": { + "png": { + "decision": { + "keep": "old", + "capture": "34392917c5ec08f2bec326e6b391fd6941a6c765" + } + } + }, + "IDE/Images/ProjectExplorer.light.png": { + "png": { + "decision": { + "keep": "old", + "capture": "b2796273b1bed0a011818f9e9be1eb94abae8da2" + } + } + }, + "IDE/Images/ProjectExplorer.png": { + "png": { + "decision": { + "keep": "old", + "capture": "389cfee21ae24a4b1eac30bc6249f0308efc6845" + } + } + }, + "IDE/Images/ProjectExplorer_Header.light.png": { + "png": { + "decision": { + "keep": "old", + "capture": "7ff39ca49983a25c333552f153e133292450325c" + } + } + }, + "IDE/Images/ProjectExplorer_Header.png": { + "png": { + "decision": { + "keep": "old", + "capture": "966d0dd373a3aae6e815bafb3c28740b014bb24f" + } + } + }, + "IDE/Images/ProjectExplorer_Sample.light.png": { + "build": 1052 + }, + "IDE/Images/ProjectExplorer_Sample.png": { + "png": { + "decision": { + "keep": "old", + "capture": "d6ee20138a873c5cdb197dacb25200bc154f4699" + } + } + }, + "IDE/Images/ProjectSettings_AvailableCOMReferences.light.png": { + "build": 1052 + }, + "IDE/Images/ProjectSettings_AvailableCOMReferences.png": { + "build": 1052 + }, + "IDE/Images/ProjectSettings_LibraryReferences.light.png": { + "build": 1052 + }, + "IDE/Images/ProjectSettings_LibraryReferences.png": { + "build": 1052 + }, + "IDE/Images/ProjectSettings_VersionInfo.light.png": { + "build": 1052 + }, + "IDE/Images/ProjectSettings_VersionInfo.png": { + "build": 1052 + }, + "IDE/Images/Properties.light.png": { + "png": { + "decision": { + "keep": "old", + "capture": "5ff7ebf3428b900befa047aa695bd7e74a0db05a" + } + } + }, + "IDE/Images/Properties.png": { + "png": { + "decision": { + "keep": "old", + "capture": "82a88f5983019ae12e579e45f9f094e571a0887e" + } + } + }, + "IDE/Images/RightClick-Add-CustomControlsForm-Popup.light.png": { + "png": { + "decision": { + "keep": "old", + "capture": "9aa3399b4aa0e34dad314560d53a9118913dad6e" + } + } + }, + "IDE/Images/RightClick-Add-CustomControlsForm-Popup.png": { + "png": { + "decision": { + "keep": "old", + "capture": "30a4bcb24abe1e25d654ae4e0763262f2071e56c" + } + } + }, + "IDE/Images/RightClick-Add.light.png": { + "build": 1052 + }, + "IDE/Images/RightClick-Add.png": { + "build": 1052 + }, + "IDE/Images/Splash_Screen.light.png": { + "build": 1042, + "png": { + "decision": { + "keep": "old", + "capture": "06ad3b1f07b4d1e8cd64edcd838bc07cf3e8d594" + } + } + }, + "IDE/Images/Splash_Screen.png": { + "build": 1042, + "png": { + "decision": { + "keep": "old", + "capture": "7a48b8ba85718c6012c3f871f93e01975ca209f5" + } + } + }, + "IDE/Images/StatusBar.light.png": { + "build": 1052, + "png": { + "decision": { + "keep": "new", + "capture": "7c039a6546993bf843c41e3427d3553735b1a53f" + } + } + }, + "IDE/Images/StatusBar.png": { + "build": 1052, + "png": { + "decision": { + "keep": "new", + "capture": "aa69bc5554d0ecee030f8e3be9c496f34e02f1fe" + } + } + }, + "IDE/Images/Toolbar_1.light.png": { + "build": 1052 + }, + "IDE/Images/Toolbar_1.png": { + "build": 1052 + }, + "IDE/Images/Toolbar_2.light.png": { + "build": 1052 + }, + "IDE/Images/Toolbar_2.png": { + "build": 1052 + }, + "IDE/Images/Toolbar_3.light.png": { + "build": 1052 + }, + "IDE/Images/Toolbar_3.png": { + "build": 1052 + }, + "IDE/Images/Toolbar_4.light.png": { + "build": 1052 + }, + "IDE/Images/Toolbar_4.png": { + "build": 1052 + }, + "IDE/Images/Toolbox_MoreComponents.light.png": { + "png": { + "decision": { + "keep": "old", + "capture": "87b4190cc0b64a327752e6261f6b7889b77d282a" + } + } + }, + "IDE/Images/Toolbox_MoreComponents.png": { + "png": { + "decision": { + "keep": "old", + "capture": "aed03e1362ee41bff098cf16e0a02779486fb2e1" + } + } + }, + "IDE/Images/Toolbox_Report.light.png": { + "png": { + "decision": { + "keep": "old", + "capture": "3dd8278e8a2aef3f3e0046802a2c77238afb5008" + } + } + }, + "IDE/Images/Toolbox_Report.png": { + "png": { + "decision": { + "keep": "old", + "capture": "1003235284bc37f15b6a97c7f6ce05a35cb0d06f" + } + } + }, + "IDE/Images/Variables.light.png": { + "png": { + "decision": { + "keep": "old", + "capture": "c2f840397d7b8338dab6ea1a1a7efeaaa6d3537f" + } + } + }, + "IDE/Images/Variables.png": { + "png": { + "decision": { + "keep": "old", + "capture": "76a8c1b91b0587e9a3d966b5b03460153932285d" + } + } + }, + "IDE/Images/Watches.light.png": { + "png": { + "decision": { + "keep": "old", + "capture": "dac14be06723dd7f5f44a716679fc3b8393c80a9" + } + } + }, + "IDE/Images/Watches.png": { + "png": { + "decision": { + "keep": "old", + "capture": "33d7834419dd0dd43dfcc7b61d4b7f2322fe00b4" + } + } + }, + "IDE/Images/Watches_1.light.png": { + "png": { + "decision": { + "keep": "old", + "capture": "b68755300f643b887a74b6747185d2e7a0f8c8c9" + } + } + }, + "IDE/Images/Watches_1.png": { + "png": { + "decision": { + "keep": "old", + "capture": "2c195a8f1a4eaea607daf43ea0016c56371e621e" + } + } + }, + "IDE/Images/Watches_2.light.png": { + "png": { + "decision": { + "keep": "old", + "capture": "c906a1901c38003fcc1dc4e696516543f2a51394" + } + } + }, + "IDE/Images/Watches_2.png": { + "png": { + "decision": { + "keep": "old", + "capture": "880bdb55e433d5ee41f03c2de1421221abde6d73" + } + } + }, + "IDE/Images/Webpage.light.png": { + "build": 1052, + "png": { + "decision": { + "keep": "new", + "capture": "0c94ad71aadd8bb0db58610b0df179971a21f61c" + } + } + }, + "IDE/Images/Webpage.png": { + "build": 1052, + "png": { + "decision": { + "keep": "new", + "capture": "330973b6bdabe522320cb4bec463b867716f458e" + } + } + }, + "IDE/Images/project settings description text.png": { + "png": { + "decision": { + "keep": "old", + "capture": "48295448a028e857aee7935c8d87a720adb8115e" + } + } + }, + "IDE/Images/tB-Blue.light.png": { + "png": { + "decision": { + "keep": "old", + "capture": "50b2dba5d7998e90f4b95df65d7544192c53c1da" + } + }, + "svg": { + "decision": { + "accept": true, + "svg": "9ff1e9105794c660016f03aee9a5287311e9195f", + "png": "bb4f36721a3c092252779384656298b5fec14df3" + } + } + }, + "IDE/Images/tB-Blue.png": { + "png": { + "decision": { + "keep": "old", + "capture": "bc2b2a88ffb9d34bb2e73e74073113a853cf9c8a" + } + }, + "svg": { + "decision": { + "accept": true, + "svg": "f59da4f3e111df2a7e44cada92b70f8610474f84", + "png": "5d15fed6680196af9602352c7bf62bb82b7f4db2" + } + } + }, + "IDE/Images/tB-Orange.light.png": { + "png": { + "decision": { + "keep": "old", + "capture": "0982b5269d62e2dfce19f5b2a439a762c05d84dc" + } + } + }, + "IDE/Images/tB-Orange.png": { + "png": { + "decision": { + "keep": "old", + "capture": "3385b33999ec0cee6cfc9a05eb02bd22cc9181fc" + } + } + }, + "IDE/Images/tbForm.light.png": { + "build": 1052 + }, + "IDE/Images/tbForm.png": { + "build": 1052 + }, + "IDE/Images/tbReport.light.png": { + "png": { + "decision": { + "keep": "old", + "capture": "04d1e8ba6fb5a0479f6cbe2ad43bfc6b4a72931b" + } + } }, - "IDE/Building/Images/Console_Exe.light.png": { - "build": 1042 + "IDE/Images/tbReport.png": { + "png": { + "decision": { + "keep": "old", + "capture": "ac6675dd782dddd4fbb974d29b03ba092e12761e" + } + } }, - "IDE/Building/Images/Console_Exe.png": { - "build": 1042 + "IDE/Menu/Images/GlobalSearch-Popup.png": { + "png": { + "decision": { + "keep": "old", + "capture": "20c1f69bdb376ad9b8b4f9605c6b459c12fc9164" + } + } }, - "IDE/Building/Images/Console_Failed.light.png": { - "build": 1042 + "IDE/Menu/Images/Menu_Add-Ins.light.png": { + "png": { + "decision": { + "keep": "old", + "capture": "f9ed58034029109655129754a025d5b190e45589" + } + } }, - "IDE/Building/Images/Console_Failed.png": { - "build": 1042 + "IDE/Menu/Images/Menu_Add-Ins.png": { + "png": { + "decision": { + "keep": "old", + "capture": "c3195fa9de0454c314f534e9f01a9a4d593798bd" + } + } }, - "IDE/Building/Images/Console_Locked.light.png": { - "build": 1042 + "IDE/Menu/Images/Menu_Add-Ins_GlobalSearch.light.png": { + "png": { + "decision": { + "keep": "old", + "capture": "392303f2cbb6c1f9106d80b1060f33d4b0095ddf" + } + } }, - "IDE/Building/Images/Console_Locked.png": { - "build": 1042 + "IDE/Menu/Images/Menu_Add-Ins_GlobalSearch.png": { + "png": { + "decision": { + "keep": "old", + "capture": "3cf819b0672fa2f2844f6725a6b9004973155f3f" + } + } }, - "IDE/Code/Images/Diagnostics_Menu.light.png": { - "build": 1034 + "IDE/Menu/Images/Menu_Debug.light.png": { + "png": { + "decision": { + "keep": "old", + "capture": "55bbe2bbdd04174e29b53682a8f1fc1783980139" + } + } }, - "IDE/Code/Images/Diagnostics_Menu.png": { - "build": 1034 + "IDE/Menu/Images/Menu_Debug.png": { + "png": { + "decision": { + "keep": "old", + "capture": "50d18dc4a15f95b4c2be0fca7f73ed0f1e66dbc2" + } + } }, - "IDE/Code/Images/Diagnostics_Rows.light.png": { - "build": 1034 + "IDE/Menu/Images/Menu_Debug_DebuggerOptions.light.png": { + "build": 1052 }, - "IDE/Code/Images/Diagnostics_Rows.png": { - "build": 1034 + "IDE/Menu/Images/Menu_Debug_DebuggerOptions.png": { + "build": 1052 }, - "IDE/Code/Images/Find_Project.light.png": { - "build": 1033, + "IDE/Menu/Images/Menu_Debug_DebuggerOptions_2.light.png": { + "build": 1042, "png": { "decision": { - "keep": "new", - "capture": "f8ddf475a3530d5f85e655cc9e043580a4d6dc6a" + "keep": "old", + "capture": "357e016b6edc4c3e7edca56172ddedff63c06eb1" } } }, - "IDE/Code/Images/Object_Browser.light.png": { - "build": 1034 + "IDE/Menu/Images/Menu_Debug_DebuggerOptions_2.png": { + "build": 1042, + "png": { + "decision": { + "keep": "old", + "capture": "0c210542edc8baf01026d2005135dc5a0e738448" + } + } }, - "IDE/Code/Images/Object_Browser.png": { - "build": 1034 + "IDE/Menu/Images/Menu_Edit.light.png": { + "png": { + "decision": { + "keep": "old", + "capture": "07c58bf407cc0526f935cf8888322057997c2582" + } + } }, - "IDE/Code/Images/Tab_Menu.light.png": { - "build": 1042 + "IDE/Menu/Images/Menu_Edit.png": { + "png": { + "decision": { + "keep": "old", + "capture": "7281936ecfcb5ad886414dd2199dbe88ade1aa99" + } + } }, - "IDE/Code/Images/Tab_Menu.png": { - "build": 1042 + "IDE/Menu/Images/Menu_File.light.png": { + "png": { + "decision": { + "keep": "old", + "capture": "c0d2be91c6780fe0fa0997d655d18770e8479caa" + } + } }, - "IDE/Debugging/Images/Breakpoint_Glyphs.png": { - "svg": { + "IDE/Menu/Images/Menu_File.png": { + "png": { "decision": { - "accept": true, - "svg": "4b52861db66f4f13ddaf731366acac3b0e3871be", - "png": "8919bfcc19bfcfb1487102fd424add44e8f7ee73" + "keep": "old", + "capture": "c6ab4f7f7297ee09aba8d5b0d695aa966ccb8fcc" } } }, - "IDE/Debugging/Images/CallStack_Frames.light.png": { - "build": 1042 + "IDE/Menu/Images/Menu_Format.light.png": { + "build": 1052 }, - "IDE/Debugging/Images/CallStack_Frames.png": { - "build": 1042 + "IDE/Menu/Images/Menu_Format.png": { + "build": 1052 }, - "IDE/Debugging/Images/Console_Menu.light.png": { - "build": 1042 + "IDE/Menu/Images/Menu_Format_1.light.png": { + "build": 1052 }, - "IDE/Debugging/Images/Console_Menu.png": { - "build": 1042 + "IDE/Menu/Images/Menu_Format_1.png": { + "build": 1052 }, - "IDE/Debugging/Images/Console_Run.light.png": { - "build": 1042 + "IDE/Menu/Images/Menu_Format_Align.light.png": { + "build": 1052 }, - "IDE/Debugging/Images/Console_Run.png": { - "build": 1042 + "IDE/Menu/Images/Menu_Format_Align.png": { + "build": 1052 }, - "IDE/Debugging/Images/Error_Panel.light.png": { - "build": 1042 + "IDE/Menu/Images/Menu_Format_HorizontalSpacing.light.png": { + "build": 1052 }, - "IDE/Debugging/Images/Error_Panel.png": { - "build": 1042 + "IDE/Menu/Images/Menu_Format_HorizontalSpacing.png": { + "build": 1052 }, - "IDE/Debugging/Images/Paused_Line.light.png": { - "build": 1042 + "IDE/Menu/Images/Menu_Format_MakeSameSize.light.png": { + "build": 1052 }, - "IDE/Debugging/Images/Paused_Line.png": { - "build": 1042 + "IDE/Menu/Images/Menu_Format_MakeSameSize.png": { + "build": 1052 }, - "IDE/Debugging/Images/Paused_Panels.light.png": { - "build": 1042 + "IDE/Menu/Images/Menu_Format_VerticalSpacing.light.png": { + "build": 1052 }, - "IDE/Debugging/Images/Paused_Panels.png": { - "build": 1042 + "IDE/Menu/Images/Menu_Format_VerticalSpacing.png": { + "build": 1052 }, - "IDE/Forms/Images/Designer_GridOptions.png": { - "build": 1034, + "IDE/Menu/Images/Menu_Help.light.png": { "png": { "decision": { "keep": "old", - "capture": "e70554caf636bcd8d48fb06b41fd2094dd7752af" + "capture": "8c01851eb352b8b267f1c0c56e165d255a9260f9" } } }, - "IDE/Forms/Images/Designer_Locked.light.png": { - "build": 1042 + "IDE/Menu/Images/Menu_Help.png": { + "png": { + "decision": { + "keep": "old", + "capture": "0a77417460615c45f1fb14bdffa9a85922849c08" + } + } }, - "IDE/Forms/Images/Designer_TabIndex.png": { - "build": 1042 + "IDE/Menu/Images/Menu_Help_About.light.png": { + "build": 1052 }, - "IDE/Forms/Images/Preview_Window.png": { - "build": 1034, - "scale": 1.5 + "IDE/Menu/Images/Menu_Help_About.png": { + "build": 1052 }, - "IDE/Forms/Images/Properties_ColourPicker.light.png": { - "build": 1042 + "IDE/Menu/Images/Menu_Project.light.png": { + "build": 1052, + "png": { + "decision": { + "keep": "new", + "capture": "40d936db8c06b364f0801d2044b6ccfca1f05bd5" + } + } }, - "IDE/Forms/Images/Properties_ColourPicker.png": { - "build": 1042 + "IDE/Menu/Images/Menu_Project.png": { + "build": 1052, + "png": { + "decision": { + "keep": "new", + "capture": "74c34ee59ec0c45f09be72496ef086f00b8c2f2a" + } + } }, - "IDE/Forms/Images/Properties_Control.light.png": { - "build": 1042 + "IDE/Menu/Images/Menu_Run.light.png": { + "build": 1052, + "png": { + "decision": { + "keep": "new", + "capture": "aeb3f079f72b605f3924df3b90dc9e548ea7dfdf" + } + } }, - "IDE/Forms/Images/Properties_Control.png": { - "build": 1042 + "IDE/Menu/Images/Menu_Run.png": { + "build": 1052, + "png": { + "decision": { + "keep": "new", + "capture": "8252bb13ced44a89316dd2d3429e70e1e8160d11" + } + } }, - "IDE/Forms/Images/Properties_Events.light.png": { - "build": 1042 + "IDE/Menu/Images/Menu_Tools.light.png": { + "png": { + "decision": { + "keep": "old", + "capture": "6efa4b6be0c577e254d04d3171704870d8b4feed" + } + } }, - "IDE/Forms/Images/Properties_Events.png": { - "build": 1042 + "IDE/Menu/Images/Menu_Tools.png": { + "png": { + "decision": { + "keep": "old", + "capture": "f4af67691c9989e379c89b1f4f1224c02a2afc35" + } + } }, - "IDE/Forms/Images/Properties_SystemColours.light.png": { - "build": 1042 + "IDE/Menu/Images/Menu_Tools_IDEOptions.light.png": { + "build": 1052 }, - "IDE/Forms/Images/Properties_SystemColours.png": { - "build": 1042 + "IDE/Menu/Images/Menu_Tools_IDEOptions.png": { + "build": 1052 }, - "IDE/Images/CallStack.light.png": { - "build": 1042 + "IDE/Menu/Images/Menu_View.light.png": { + "png": { + "decision": { + "keep": "old", + "capture": "fa6504ac9f4118a5fc0bd5b23c59a7096255a4e3" + } + } }, - "IDE/Images/CallStack.png": { - "build": 1042 + "IDE/Menu/Images/Menu_View.png": { + "png": { + "decision": { + "keep": "old", + "capture": "066172a9af400971347228b73db8b97794c7716b" + } + } }, - "IDE/Images/DebugConsole.light.png": { - "build": 1042 + "IDE/Menu/Images/Menu_Window.light.png": { + "build": 1052 }, - "IDE/Images/DebugConsole.png": { - "build": 1042 + "IDE/Menu/Images/Menu_Window.png": { + "build": 1052 }, - "IDE/Images/IDE.light.png": { - "build": 1034 + "IDE/Menu/Images/Menu_Window_KeyboardShortcuts.light.png": { + "build": 1052 }, - "IDE/Images/IDE_Tour.light.png": { - "build": 1042 + "IDE/Menu/Images/Menu_Window_KeyboardShortcuts.png": { + "build": 1052 }, - "IDE/Images/IDE_Tour.png": { - "build": 1042 + "IDE/Menu/Images/Menu_Window_KeyboardShortcuts_ManageKeyboardShortcuts.light.png": { + "build": 1052 }, - "IDE/Images/New_Project.light.png": { - "build": 1042 + "IDE/Menu/Images/Menu_Window_KeyboardShortcuts_ManageKeyboardShortcuts.png": { + "build": 1052 }, - "IDE/Images/New_Project.png": { - "build": 1042 + "IDE/Menu/Images/Menu_Window_KeyboardShortcuts_ManageKeyboardShortcuts_1.light.png": { + "build": 1052 }, - "IDE/Images/New_Project_Recent_1.light.png": { - "build": 1042 + "IDE/Menu/Images/Menu_Window_KeyboardShortcuts_ManageKeyboardShortcuts_1.png": { + "build": 1052 }, - "IDE/Images/New_Project_Recent_1.png": { - "build": 1042 + "IDE/Menu/Images/Menu_Window_Language.light.png": { + "build": 1052 }, - "IDE/Images/New_Project_Recent_2.light.png": { - "build": 1042 + "IDE/Menu/Images/Menu_Window_Language.png": { + "build": 1052 }, - "IDE/Images/New_Project_Recent_2.png": { - "build": 1042 + "IDE/Menu/Images/Menu_Window_PanelFeatures.light.png": { + "build": 1052 }, - "IDE/Images/New_Project_Samples.light.png": { - "build": 1042 + "IDE/Menu/Images/Menu_Window_PanelFeatures.png": { + "build": 1052 }, - "IDE/Images/New_Project_Samples.png": { - "build": 1042 + "IDE/Menu/Images/Menu_Window_PanelLayouts.light.png": { + "build": 1052 }, - "IDE/Images/ProjectSettings_VersionInfo.light.png": { - "build": 1042 + "IDE/Menu/Images/Menu_Window_PanelLayouts.png": { + "build": 1052 }, - "IDE/Images/ProjectSettings_VersionInfo.png": { - "build": 1042 + "IDE/Menu/Images/Menu_Window_PanelLayouts_ManagePanelLayouts_Default.light.png": { + "build": 1052 }, - "IDE/Images/Splash_Screen.light.png": { - "build": 1042 + "IDE/Menu/Images/Menu_Window_PanelLayouts_ManagePanelLayouts_Default.png": { + "build": 1052 }, - "IDE/Images/Splash_Screen.png": { - "build": 1042 + "IDE/Menu/Images/Menu_Window_PanelLayouts_ManagePanelLayouts_Fullscreen.light.png": { + "build": 1052 + }, + "IDE/Menu/Images/Menu_Window_PanelLayouts_ManagePanelLayouts_Fullscreen.png": { + "build": 1052 + }, + "IDE/Menu/Images/Menu_Window_Theme.light.png": { + "build": 1045, + "png": { + "decision": { + "keep": "old", + "capture": "41c9ae090ec842444be5d3a0c56721ca0343a4f4" + } + } + }, + "IDE/Menu/Images/Menu_Window_Theme.png": { + "build": 1045, + "png": { + "decision": { + "keep": "old", + "capture": "44cb64e2a19325cfa4eb4e298c813e8729edb51a" + } + } }, - "IDE/Images/Webpage.light.png": { - "build": 1033 + "IDE/Projects/Images/Close_Question.light.png": { + "png": { + "decision": { + "keep": "old", + "capture": "523e7f847ce11e8b52d08406072569e7ef3c3e09" + } + } }, - "IDE/Images/Webpage.png": { - "build": 1033 + "IDE/Projects/Images/Close_Question.png": { + "png": { + "decision": { + "keep": "old", + "capture": "40ce322046e148fe7e4ed7deb2577cd833e0f68a" + } + } }, - "IDE/Images/tB-Blue.light.png": { - "svg": { + "IDE/Projects/Images/Delete_Pair.light.png": { + "png": { "decision": { - "accept": true, - "svg": "9ff1e9105794c660016f03aee9a5287311e9195f", - "png": "bb4f36721a3c092252779384656298b5fec14df3" + "keep": "old", + "capture": "97de3545ecad0d386d72dbd77efd6569555db84f" } } }, - "IDE/Images/tB-Blue.png": { - "svg": { + "IDE/Projects/Images/Delete_Pair.png": { + "png": { "decision": { - "accept": true, - "svg": "f59da4f3e111df2a7e44cada92b70f8610474f84", - "png": "5d15fed6680196af9602352c7bf62bb82b7f4db2" + "keep": "old", + "capture": "83436db96a42cbbcd951befd27f8f67b96492dcd" } } }, - "IDE/Menu/Images/Menu_Debug_DebuggerOptions.light.png": { - "build": 1042 + "IDE/Projects/Images/Export_Console.light.png": { + "build": 1042, + "png": { + "decision": { + "keep": "old", + "capture": "75886db55f6c4c662b0fcdff48e0180ed6b808f4" + } + } }, - "IDE/Menu/Images/Menu_Debug_DebuggerOptions.png": { - "build": 1042 + "IDE/Projects/Images/Export_Console.png": { + "build": 1052 }, - "IDE/Menu/Images/Menu_Debug_DebuggerOptions_2.light.png": { - "build": 1042 + "IDE/Projects/Images/Failed_To_Load.light.png": { + "png": { + "decision": { + "keep": "old", + "capture": "2e9cfa583c48925fbe6d0e016808f4f12e6febe7" + } + } }, - "IDE/Menu/Images/Menu_Debug_DebuggerOptions_2.png": { - "build": 1042 + "IDE/Projects/Images/Failed_To_Load.png": { + "png": { + "decision": { + "keep": "old", + "capture": "66061629679b3161d3230d159f544144cfd190a3" + } + } }, - "IDE/Menu/Images/Menu_Help_About.light.png": { - "build": 1042 + "IDE/Projects/Images/Menu_File_Project.light.png": { + "build": 1052 }, - "IDE/Menu/Images/Menu_Help_About.png": { - "build": 1042 + "IDE/Projects/Images/Menu_File_Project.png": { + "png": { + "decision": { + "keep": "old", + "capture": "d3d36e17ad4b8f895627bd23fe35a56a81c0c0be" + } + } }, - "IDE/Menu/Images/Menu_Tools_IDEOptions.light.png": { - "build": 1042 + "IDE/Projects/Images/ObjectView_Search.light.png": { + "build": 1052 }, - "IDE/Menu/Images/Menu_Tools_IDEOptions.png": { - "build": 1042 + "IDE/Projects/Images/ObjectView_Search.png": { + "build": 1052 }, - "IDE/Menu/Images/Menu_Window_Language.light.png": { - "build": 1042 + "IDE/Projects/Images/References_Detail.light.png": { + "build": 1042, + "png": { + "decision": { + "keep": "old", + "capture": "ed02f65f3f8667d6129ba6b4f2f5a0003b710b10" + } + } }, - "IDE/Menu/Images/Menu_Window_Language.png": { - "build": 1042 + "IDE/Projects/Images/References_Detail.png": { + "build": 1042, + "png": { + "decision": { + "keep": "old", + "capture": "7c3acff8c8f8d81273c1598c0c7fe173f64b27c1" + } + } }, - "IDE/Menu/Images/Menu_Window_Theme.light.png": { - "build": 1045 + "IDE/Projects/Images/Rename_Box.light.png": { + "build": 1052 }, - "IDE/Menu/Images/Menu_Window_Theme.png": { - "build": 1045 + "IDE/Projects/Images/Rename_Box.png": { + "png": { + "decision": { + "keep": "old", + "capture": "2b069869d07d1a743b1b4c5679d1e3aa0d75c596" + } + } }, - "IDE/Projects/Images/Export_Console.light.png": { - "build": 1042 + "IDE/Projects/Images/Rename_Invalid.light.png": { + "build": 1052 }, - "IDE/Projects/Images/Export_Console.png": { - "build": 1042 + "IDE/Projects/Images/Rename_Invalid.png": { + "png": { + "decision": { + "keep": "old", + "capture": "669116742ac14be15870504b6b062b098cb53d7e" + } + } }, - "IDE/Projects/Images/References_Detail.light.png": { - "build": 1042 + "IDE/Projects/Images/Resource_Exists.light.png": { + "build": 1052 }, - "IDE/Projects/Images/References_Detail.png": { - "build": 1042 + "IDE/Projects/Images/Resource_Exists.png": { + "build": 1052 }, "IDE/Projects/Images/RightClick-File.light.png": { - "build": 1045 + "build": 1052, + "png": { + "decision": { + "keep": "new", + "capture": "3ad4ed8289e79bf1ad97188d85bf18a320043555" + } + } }, "IDE/Projects/Images/RightClick-File.png": { - "build": 1045 + "build": 1052, + "png": { + "decision": { + "keep": "new", + "capture": "9232ac9292a4c9d94e2918c999a61d58127f4649" + } + } }, "IDE/Projects/Images/Settings_Close.light.png": { - "build": 1042, + "build": 1052, "svg": { "decision": { "accept": true, @@ -548,7 +2620,13 @@ } }, "IDE/Projects/Images/Settings_Close.png": { - "build": 1042, + "build": 1052, + "png": { + "decision": { + "keep": "old", + "capture": "b3e581ccf8c138651f05497d18378f065d6895e1" + } + }, "svg": { "decision": { "accept": true, @@ -558,96 +2636,181 @@ } }, "IDE/Projects/Images/Title_Changed.light.png": { - "build": 1042 + "build": 1052, + "png": { + "decision": { + "keep": "new", + "capture": "4fcd7a5b85131eb0b04108b99504df55dc5dcbf1" + } + } }, "IDE/Projects/Images/Title_Changed.png": { - "build": 1042 + "build": 1052, + "png": { + "decision": { + "keep": "new", + "capture": "d3e0f88a4cc7bd94077042df1dc4938c9027afaa" + } + } + }, + "IDE/Projects/Images/Tree_Tints.light.png": { + "build": 1052 + }, + "IDE/Projects/Images/Tree_Tints.png": { + "build": 1052, + "png": { + "decision": { + "keep": "new", + "capture": "0abdbfc0a5959e94bc291e76ecf0fadc6ed676ac" + } + } + }, + "IDE/Reports/Images/Report_Controls.light.png": { + "build": 1052 + }, + "IDE/Reports/Images/Report_Controls.png": { + "png": { + "decision": { + "keep": "old", + "capture": "0150bc949201b4679b857ac1540e593dc304929c" + } + } }, "IDE/Starting/Images/Damaged_Box.png": { "build": 1034, "scale": 1 }, "IDE/Starting/Images/Error_Reporting.light.png": { - "build": 1034 + "build": 1052 }, "IDE/Starting/Images/Error_Reporting.png": { - "build": 1034 + "build": 1052 }, "IDE/Starting/Images/First_Run_Options.light.png": { - "build": 1042 + "build": 1052 }, "IDE/Starting/Images/First_Run_Options.png": { - "build": 1042 + "build": 1052 }, "IDE/Starting/Images/Import_Log.light.png": { - "build": 1042 + "build": 1052 }, "IDE/Starting/Images/Import_Log.png": { - "build": 1042 + "build": 1052 }, "IDE/Starting/Images/Licence_Agreement.light.png": { - "build": 1034 + "build": 1052 }, "IDE/Starting/Images/Licence_Agreement.png": { - "build": 1034 + "build": 1052 }, "IDE/Starting/Images/Licence_Key.light.png": { - "build": 1034 + "build": 1034, + "png": { + "decision": { + "keep": "old", + "capture": "7ba75274635035e3e703c7ad3adb97170834f30a" + } + } }, "IDE/Starting/Images/Licence_Key.png": { - "build": 1034 + "build": 1034, + "png": { + "decision": { + "keep": "old", + "capture": "3c4f6821bc8859b94db89151273a2baf696f4e0b" + } + } }, "IDE/Starting/Images/Missing_File_Box.png": { "build": 1034, "scale": 1 }, "IDE/Starting/Images/New_Standard_EXE.light.png": { - "build": 1042 + "build": 1052, + "svg": { + "decision": { + "accept": false, + "svg": "583e427c2a85b469d103ddc0ca4e9f9133b19b4f", + "png": "58104042306ff515b15ed453b066fb7f97bf32df" + } + } }, "IDE/Starting/Images/New_Standard_EXE.png": { - "build": 1042 + "build": 1052, + "svg": { + "decision": { + "accept": false, + "svg": "71727b1c8dcdd09af8dbaccf1fb98bbd0e494892", + "png": "c1ae41c77546bef0e28837a3abfbd0c83fe304e2" + } + } }, "IDE/Starting/Images/Options_ActiveX.light.png": { - "build": 1034 + "build": 1052, + "png": { + "decision": { + "keep": "new", + "capture": "b7c9316edc15f899a69e03805e1b21b951d6b2f1" + } + } }, "IDE/Starting/Images/Options_ActiveX.png": { - "build": 1034 + "build": 1052, + "png": { + "decision": { + "keep": "new", + "capture": "94bf73c75afadf3ab1351c7ac7a600333203a7b3" + } + } }, "IDE/Starting/Images/Options_Sample.light.png": { - "build": 1034 + "build": 1052 }, "IDE/Starting/Images/Options_Sample.png": { - "build": 1034 + "build": 1052 }, "IDE/Starting/Images/Options_VBP.light.png": { - "build": 1034 + "build": 1052 }, "IDE/Starting/Images/Options_VBP.png": { - "build": 1034 + "build": 1052 }, "IDE/Starting/Images/Recent_VB6.light.png": { - "build": 1042 + "build": 1052 }, "IDE/Starting/Images/Recent_VB6.png": { - "build": 1042 + "build": 1052 }, "IDE/Starting/Images/Search_Results.light.png": { - "build": 1042 + "build": 1052 }, "IDE/Starting/Images/Search_Results.png": { - "build": 1042 + "build": 1052 }, "IDE/Starting/Images/Title_Unsaved.light.png": { - "build": 1042 + "build": 1052, + "png": { + "decision": { + "keep": "new", + "capture": "efadc2185047434da2fff726bd2c020ce0bc3df4" + } + } }, "IDE/Starting/Images/Title_Unsaved.png": { - "build": 1042 + "build": 1052, + "png": { + "decision": { + "keep": "new", + "capture": "0ba43f97e5a80cae1afa13f73a5b72343b545503" + } + } }, "IDE/Troubleshooting/Images/Crash_Loop.light.png": { - "build": 1042 + "build": 1052 }, "IDE/Troubleshooting/Images/Crash_Loop.png": { - "build": 1042 + "build": 1052 }, "IDE/Troubleshooting/Images/Floating_Boxes.light.png": { "build": 1034 @@ -656,89 +2819,164 @@ "build": 1034 }, "IDE/Troubleshooting/Images/Menu_Help_Trace.light.png": { - "build": 1034 + "build": 1034, + "png": { + "decision": { + "keep": "old", + "capture": "fb3cec1bbde2d27ec41dea18280a840aba56e6a8" + } + } }, "IDE/Troubleshooting/Images/Menu_Help_Trace.png": { - "build": 1034 + "build": 1034, + "png": { + "decision": { + "keep": "old", + "capture": "0c1daf9e2dd2be18dcd039b42632732c317a80fb" + } + } }, "IDE/Troubleshooting/Images/Missing_DLL_Box.png": { "build": 1042, "scale": 1 }, "IDE/Troubleshooting/Images/Native_Exception.light.png": { - "build": 1042 + "build": 1042, + "png": { + "decision": { + "keep": "old", + "capture": "6cefb981b781f25f4142f6ce01d1ee1b2a189f89" + } + } }, "IDE/Troubleshooting/Images/Native_Exception.png": { - "build": 1042 + "build": 1052 }, "IDE/Troubleshooting/Images/Please_Wait.light.png": { - "build": 1034 + "build": 1052 }, "IDE/Troubleshooting/Images/Please_Wait.png": { - "build": 1034 + "build": 1052 }, "IDE/Troubleshooting/Images/Safe_Mode_Bar.light.png": { - "build": 1034 + "build": 1052 }, "IDE/Troubleshooting/Images/Safe_Mode_Bar.png": { - "build": 1034 + "build": 1052 }, "IDE/Troubleshooting/Images/Services_Limited_Tooltip.light.png": { "build": 1042 }, "IDE/Troubleshooting/Images/Services_Limited_Tooltip.png": { - "build": 1042 + "build": 1052 }, "LLVM/Images/llvmdoc1.light.png": { - "build": 1042 + "build": 1052 }, "LLVM/Images/llvmdoc1.png": { - "build": 1042 + "build": 1052 }, "LLVM/Images/llvmdoc2.light.png": { - "build": 1042 + "build": 1052 }, "LLVM/Images/llvmdoc2.png": { - "build": 1042 + "build": 1052 }, "Miscellaneous/Images/01009879-fdbc-4a8e-8683-353aab6193df.light.png": { - "build": 1042 + "build": 1042, + "png": { + "decision": { + "keep": "old", + "capture": "a90d77e0d6e1d9e77c5121212dd0bcdcbb892cea" + } + } }, "Miscellaneous/Images/01009879-fdbc-4a8e-8683-353aab6193df.png": { - "build": 1042 + "build": 1052 + }, + "Miscellaneous/Images/05306a72-4ff6-427d-8970-969ef0c582e6.light.png": { + "build": 1052 + }, + "Miscellaneous/Images/05306a72-4ff6-427d-8970-969ef0c582e6.png": { + "build": 1052 }, "Miscellaneous/Images/0e24eb5c-c9af-49a9-a908-03968b211554.light.png": { - "build": 1042 + "build": 1052 }, "Miscellaneous/Images/0e24eb5c-c9af-49a9-a908-03968b211554.png": { - "build": 1042 + "build": 1052 + }, + "Miscellaneous/Images/16833fae-4bd7-418f-bb16-691a611a5b01.light.png": { + "png": { + "decision": { + "keep": "old", + "capture": "34efe1c8792f296e8f87cc5fc4fb4a6f31e993cb" + } + } + }, + "Miscellaneous/Images/16833fae-4bd7-418f-bb16-691a611a5b01.png": { + "png": { + "decision": { + "keep": "old", + "capture": "5385949eaf039c3d1b46a9f4272ebb9386b45ccb" + } + } }, "Miscellaneous/Images/2a1c71fd-f81c-4bd3-b61a-0f2979e8961f.png": { - "build": 1034 + "build": 1052 + }, + "Miscellaneous/Images/2b32ab8c-fabc-4f42-9e6b-06e85574eaf4.light.png": { + "build": 1052 + }, + "Miscellaneous/Images/2b32ab8c-fabc-4f42-9e6b-06e85574eaf4.png": { + "build": 1052 }, "Miscellaneous/Images/71ddde83-a091-47e3-b5b8-681954b0639d.light.png": { - "build": 1042 + "build": 1052 }, "Miscellaneous/Images/71ddde83-a091-47e3-b5b8-681954b0639d.png": { - "build": 1042 + "build": 1052 }, "Miscellaneous/Images/7e1cb69c-6db3-4f3f-aea1-c1fae25938a2.light.png": { - "build": 1042 + "build": 1052 }, "Miscellaneous/Images/7e1cb69c-6db3-4f3f-aea1-c1fae25938a2.png": { - "build": 1042 + "build": 1052 + }, + "Miscellaneous/Images/8611d12a-d7a6-48cc-9544-cb27c5299aa5.light.png": { + "build": 1052 + }, + "Miscellaneous/Images/8611d12a-d7a6-48cc-9544-cb27c5299aa5.png": { + "build": 1052 }, "Miscellaneous/Images/94490c87-fafe-4d5b-ae39-d3cedba1c21d.png": { - "build": 1042, + "build": 1052, "png": { "decision": { "keep": "new", - "capture": "28a2ea1ae9c830f06dfbcbca5c5b8380cd79984f" + "capture": "bb9ce08892bd545e68a9e2f9bc00cc1da47effc3" } } }, + "Miscellaneous/Images/97cc8655-7a8b-47f3-b52c-eb1ddfce662f.light.png": { + "build": 1052 + }, + "Miscellaneous/Images/97cc8655-7a8b-47f3-b52c-eb1ddfce662f.png": { + "build": 1052 + }, "Miscellaneous/Images/ac019c1a-dcef-4964-a730-bc5b86c644ba.png": { - "build": 1042 + "build": 1052 + }, + "Miscellaneous/Images/e409ea37-96ad-44c5-8017-3699ef04b53d.light.png": { + "build": 1052 + }, + "Miscellaneous/Images/e409ea37-96ad-44c5-8017-3699ef04b53d.png": { + "png": { + "decision": { + "keep": "old", + "capture": "3d135af54aa8f8764e84c692ee8d6000dff4d2b5" + } + } }, "Reference/Built-In/CEF/CefBrowser/Images/CefBrowser_Page.png": { "build": 1042, @@ -797,7 +3035,7 @@ "scale": 1.5 }, "Reference/Built-In/WebView2/WebView2/Images/WebView2_Page.png": { - "build": 1042, + "build": 1052, "scale": 1.5 }, "Reference/Built-In/WinNativeCommonCtls/Enumerations/Images/ImlDrawConstants.png": { @@ -814,14 +3052,20 @@ }, "Reference/Built-In/WinNativeCommonCtls/Images/DTPicker.png": { "build": 1042, - "scale": 1.5 + "scale": 1.5, + "png": { + "decision": { + "keep": "old", + "capture": "2651f123eabd33773b134f39c103b307eedfba62" + } + } }, "Reference/Built-In/WinNativeCommonCtls/Images/MonthView.png": { "build": 1042, "scale": 1.5 }, "Reference/Built-In/WinNativeCommonCtls/Images/Overview.png": { - "build": 1042, + "build": 1052, "scale": 1.5 }, "Reference/Built-In/WinNativeCommonCtls/Images/ProgressBar.png": { @@ -846,37 +3090,73 @@ "scale": 1.5 }, "Reference/Built-In/tbIDE/Images/DebugConsole_PrintText.light.png": { - "build": 1042 + "build": 1042, + "png": { + "decision": { + "keep": "old", + "capture": "8934db6142cc50060d92c709517071b311b3795d" + } + } }, "Reference/Built-In/tbIDE/Images/DebugConsole_PrintText.png": { - "build": 1042 + "build": 1052 }, "Reference/Built-In/tbIDE/Images/Restart_Without_Addins.light.png": { - "build": 1045 + "build": 1045, + "png": { + "decision": { + "keep": "old", + "capture": "cd647b7da185e899e95fb359fbe61eaa00141aac" + } + } }, "Reference/Built-In/tbIDE/Images/Restart_Without_Addins.png": { - "build": 1045 + "build": 1052 }, "Reference/Built-In/tbIDE/Images/Sample10.light.png": { - "build": 1042 + "build": 1052 }, "Reference/Built-In/tbIDE/Images/Sample10.png": { - "build": 1042 + "build": 1042, + "png": { + "decision": { + "keep": "old", + "capture": "48edf896f2eb2c877c9384b71c7c84743a067358" + } + } }, "Reference/Built-In/tbIDE/Images/ToolWindow.light.png": { - "build": 1042 + "build": 1042, + "png": { + "decision": { + "keep": "old", + "capture": "debfcb2b744b3875e9724168e0d9a3e1576868a2" + } + } }, "Reference/Built-In/tbIDE/Images/ToolWindow.png": { - "build": 1042 + "build": 1042, + "png": { + "decision": { + "keep": "old", + "capture": "e901b23d6ff7bf97c9b9a66082491e71453d0775" + } + } }, "Reference/Built-In/tbIDE/Images/ToolWindow_Docked.light.png": { - "build": 1042 + "build": 1052 }, "Reference/Built-In/tbIDE/Images/ToolWindow_Docked.png": { - "build": 1042 + "build": 1052 }, "Reference/Built-In/tbIDE/Images/Toolbar.light.png": { - "build": 1042 + "build": 1042, + "png": { + "decision": { + "keep": "old", + "capture": "cf9c707be2eec1b252146defa55c62ffbc94f528" + } + } }, "Reference/Built-In/tbIDE/Images/Toolbar.png": { "build": 1042 @@ -891,7 +3171,13 @@ }, "Reference/Contributed/VBCCR18/ImageCombo/Images/DroppedDown.png": { "build": 1042, - "scale": 1.5 + "scale": 1.5, + "png": { + "decision": { + "keep": "old", + "capture": "23dd1fdca625ff658626b26c857a296c859bf7ea" + } + } }, "Reference/Contributed/VBCCR18/ImageCombo/Images/ImageCombo.png": { "build": 1042, @@ -899,15 +3185,33 @@ }, "Reference/Contributed/VBCCR18/ImageCombo/Images/ImcStyleConstants.png": { "build": 1042, - "scale": 1.5 + "scale": 1.5, + "png": { + "decision": { + "keep": "old", + "capture": "18f79ff96df7506af98c598d1ec925d562d2c3d4" + } + } }, "Reference/Contributed/VBCCR18/ImageList/Images/ImageList_Overlay.png": { "build": 1042, - "scale": 1.5 + "scale": 1.5, + "png": { + "decision": { + "keep": "old", + "capture": "69eb55690a08196de4c3bfcf37c2a5a4c36c2ca1" + } + } }, "Reference/Contributed/VBCCR18/ImageList/Images/ImlDrawConstants.png": { "build": 1042, - "scale": 1.5 + "scale": 1.5, + "png": { + "decision": { + "keep": "old", + "capture": "9f187b6632429e1729df63721622fcf75df4f01e" + } + } }, "Reference/Contributed/VBCCR18/Images/Animation.png": { "build": 1042, @@ -915,34 +3219,76 @@ }, "Reference/Contributed/VBCCR18/Images/Animation_Look.png": { "build": 1042, - "scale": 1.5 + "scale": 1.5, + "png": { + "decision": { + "keep": "old", + "capture": "a321fd30a7f9f48959c066dde1044e2a007d901c" + } + } }, "Reference/Contributed/VBCCR18/Images/CCAppearanceConstants.png": { "build": 1042, - "scale": 1.5 + "scale": 1.5, + "png": { + "decision": { + "keep": "old", + "capture": "c9efc6eebdc502db1fe1071cc13b717ac89158fd" + } + } }, "Reference/Contributed/VBCCR18/Images/CCBackStyleConstants.png": { "build": 1042, - "scale": 1.5 + "scale": 1.5, + "png": { + "decision": { + "keep": "old", + "capture": "c670749cefdce108dd3fcb18112e0bfb33095b6e" + } + } }, "Reference/Contributed/VBCCR18/Images/CCBorderStyleConstants.png": { "build": 1042, - "scale": 1.5 + "scale": 1.5, + "png": { + "decision": { + "keep": "old", + "capture": "f11ad32202d3a19024a1d5962dbd876caebb5931" + } + } }, "Reference/Contributed/VBCCR18/Images/CCLeftRightAlignmentConstants.png": { "build": 1042, - "scale": 1.5 + "scale": 1.5, + "png": { + "decision": { + "keep": "old", + "capture": "5c356ce9b288e12222a7eefa2f8149037f59beb2" + } + } }, "Reference/Contributed/VBCCR18/Images/CCMousePointerConstants.png": { "build": 1042, - "scale": 1.5 + "scale": 1.5, + "png": { + "decision": { + "keep": "old", + "capture": "2dc58d9442d37a86716869f9ba73a8d772cfcacf" + } + } }, "Reference/Contributed/VBCCR18/Images/CCVerticalAlignmentConstants.png": { "build": 1042, - "scale": 1.5 + "scale": 1.5, + "png": { + "decision": { + "keep": "old", + "capture": "d51968998227e421a0bf60c043ddf3f88b4a2a23" + } + } }, "Reference/Contributed/VBCCR18/Images/CboStyleConstants.png": { - "build": 1042, + "build": 1052, "scale": 1.5 }, "Reference/Contributed/VBCCR18/Images/CheckBoxW.png": { @@ -951,23 +3297,53 @@ }, "Reference/Contributed/VBCCR18/Images/CheckBoxW_Styles.png": { "build": 1042, - "scale": 1.5 + "scale": 1.5, + "png": { + "decision": { + "keep": "old", + "capture": "f03fb918cd83fed8aed201c68a654030a2f66f76" + } + } }, "Reference/Contributed/VBCCR18/Images/CheckBoxW_Value.png": { "build": 1042, - "scale": 1.5 + "scale": 1.5, + "png": { + "decision": { + "keep": "old", + "capture": "25b56bfdd1f0d85302b61f221230b296a07e964b" + } + } }, "Reference/Contributed/VBCCR18/Images/CmdImageListAlignmentConstants.png": { "build": 1042, - "scale": 1.5 + "scale": 1.5, + "png": { + "decision": { + "keep": "old", + "capture": "00dac137030162fc7b8812c1cbc6d30e06abffae" + } + } }, "Reference/Contributed/VBCCR18/Images/ComboBoxW.png": { "build": 1042, - "scale": 1.5 + "scale": 1.5, + "png": { + "decision": { + "keep": "old", + "capture": "608756ef431ca48fb516da509ce2320db6d95803" + } + } }, "Reference/Contributed/VBCCR18/Images/ComboBoxW_DroppedDown.png": { "build": 1042, - "scale": 1.5 + "scale": 1.5, + "png": { + "decision": { + "keep": "old", + "capture": "298e7dacc032ed9954939dfbc8f504d5e920b964" + } + } }, "Reference/Contributed/VBCCR18/Images/CommandButtonW.png": { "build": 1042, @@ -975,7 +3351,13 @@ }, "Reference/Contributed/VBCCR18/Images/CommandButtonW_SplitButton.png": { "build": 1042, - "scale": 1.5 + "scale": 1.5, + "png": { + "decision": { + "keep": "old", + "capture": "735f33be2252476de9375f45256d2f2d01908948" + } + } }, "Reference/Contributed/VBCCR18/Images/CommandLink.png": { "build": 1042, @@ -983,7 +3365,13 @@ }, "Reference/Contributed/VBCCR18/Images/CommandLink_Looks.png": { "build": 1042, - "scale": 1.5 + "scale": 1.5, + "png": { + "decision": { + "keep": "old", + "capture": "8acd856a93cf6a13ad1f826958375fbbb0f2357e" + } + } }, "Reference/Contributed/VBCCR18/Images/DTPicker.png": { "build": 1042, @@ -991,23 +3379,53 @@ }, "Reference/Contributed/VBCCR18/Images/DTPicker_CheckBox.png": { "build": 1042, - "scale": 1.5 + "scale": 1.5, + "png": { + "decision": { + "keep": "old", + "capture": "18773527a59a75d47c19e4f689b0b999ddfdd972" + } + } }, "Reference/Contributed/VBCCR18/Images/DTPicker_DroppedDown.png": { "build": 1042, - "scale": 1.5 + "scale": 1.5, + "png": { + "decision": { + "keep": "old", + "capture": "c12d8bbcce645b07ad9213ddc67c92fdf751aff6" + } + } }, "Reference/Contributed/VBCCR18/Images/DTPicker_Formats.png": { "build": 1042, - "scale": 1.5 + "scale": 1.5, + "png": { + "decision": { + "keep": "old", + "capture": "5a1547907aa8e80fe4b334dd865ccb69d7e35288" + } + } }, "Reference/Contributed/VBCCR18/Images/FontCombo.png": { "build": 1042, - "scale": 1.5 + "scale": 1.5, + "png": { + "decision": { + "keep": "old", + "capture": "6457dbb5162d85d97808d617b611e8c966d6daf0" + } + } }, "Reference/Contributed/VBCCR18/Images/FontCombo_Recent.png": { "build": 1042, - "scale": 1.5 + "scale": 1.5, + "png": { + "decision": { + "keep": "old", + "capture": "123bf18eefa38c35379d92c3c90e6e402ae7940a" + } + } }, "Reference/Contributed/VBCCR18/Images/FrameW.png": { "build": 1042, @@ -1015,7 +3433,13 @@ }, "Reference/Contributed/VBCCR18/Images/FrameW_Looks.png": { "build": 1042, - "scale": 1.5 + "scale": 1.5, + "png": { + "decision": { + "keep": "old", + "capture": "e0ff738856d9058399ed8765936cf50204abd298" + } + } }, "Reference/Contributed/VBCCR18/Images/HotKey.png": { "build": 1042, @@ -1023,7 +3447,13 @@ }, "Reference/Contributed/VBCCR18/Images/HotKey_States.png": { "build": 1042, - "scale": 1.5 + "scale": 1.5, + "png": { + "decision": { + "keep": "old", + "capture": "4636bdfbd14171c5be958a76cad0ce79eda4367e" + } + } }, "Reference/Contributed/VBCCR18/Images/IPAddress.png": { "build": 1042, @@ -1031,7 +3461,13 @@ }, "Reference/Contributed/VBCCR18/Images/IPAddress_States.png": { "build": 1042, - "scale": 1.5 + "scale": 1.5, + "png": { + "decision": { + "keep": "old", + "capture": "fe89eac7cc2ac05c144a3bbfed2a5494f4a8e13e" + } + } }, "Reference/Contributed/VBCCR18/Images/LabelW.png": { "build": 1042, @@ -1039,11 +3475,23 @@ }, "Reference/Contributed/VBCCR18/Images/LabelW_Lines.png": { "build": 1042, - "scale": 1.5 + "scale": 1.5, + "png": { + "decision": { + "keep": "old", + "capture": "64b03d18e3f25f73d88c2d2dab5f1ef6e6a2b376" + } + } }, "Reference/Contributed/VBCCR18/Images/LblEllipsisFormatConstants.png": { "build": 1042, - "scale": 1.5 + "scale": 1.5, + "png": { + "decision": { + "keep": "old", + "capture": "48836ff1fd5e769bf75806b1904eee99a48ea7b0" + } + } }, "Reference/Contributed/VBCCR18/Images/LinkLabel.png": { "build": 1042, @@ -1055,15 +3503,33 @@ }, "Reference/Contributed/VBCCR18/Images/ListBoxW_MultiColumn.png": { "build": 1042, - "scale": 1.5 + "scale": 1.5, + "png": { + "decision": { + "keep": "old", + "capture": "e002cd9a824c34d41d7054f28ceb56365b4cebf6" + } + } }, "Reference/Contributed/VBCCR18/Images/ListBoxW_MultiSelect.png": { "build": 1042, - "scale": 1.5 + "scale": 1.5, + "png": { + "decision": { + "keep": "old", + "capture": "6f88afceefc4d35cea0d2ae325c4a33e40849fb3" + } + } }, "Reference/Contributed/VBCCR18/Images/LstStyleConstants.png": { "build": 1042, - "scale": 1.5 + "scale": 1.5, + "png": { + "decision": { + "keep": "old", + "capture": "61b2746efb574c9c4ed26e4717b3dadaa6c302d0" + } + } }, "Reference/Contributed/VBCCR18/Images/MCIWnd.png": { "build": 1042, @@ -1071,7 +3537,13 @@ }, "Reference/Contributed/VBCCR18/Images/MCIWnd_Look.png": { "build": 1042, - "scale": 1.5 + "scale": 1.5, + "png": { + "decision": { + "keep": "old", + "capture": "271429e218e6abe9ad1fc471daa8570a3c5fcb7a" + } + } }, "Reference/Contributed/VBCCR18/Images/MonthView.png": { "build": 1042, @@ -1079,15 +3551,33 @@ }, "Reference/Contributed/VBCCR18/Images/MonthView_Months.png": { "build": 1042, - "scale": 1.5 + "scale": 1.5, + "png": { + "decision": { + "keep": "old", + "capture": "23ce98f311628e65de5c868e5b430e2668b499e5" + } + } }, "Reference/Contributed/VBCCR18/Images/MonthView_MultiSelect.png": { "build": 1042, - "scale": 1.5 + "scale": 1.5, + "png": { + "decision": { + "keep": "old", + "capture": "39fb0e7f402e1e1beed28d75e3f84c89acfaaadc" + } + } }, "Reference/Contributed/VBCCR18/Images/MonthView_Views.png": { "build": 1042, - "scale": 1.5 + "scale": 1.5, + "png": { + "decision": { + "keep": "old", + "capture": "db64dee264015eb22e80664d3194a4e40c52ab55" + } + } }, "Reference/Contributed/VBCCR18/Images/OptionButtonW.png": { "build": 1042, @@ -1095,7 +3585,13 @@ }, "Reference/Contributed/VBCCR18/Images/OptionButtonW_Styles.png": { "build": 1042, - "scale": 1.5 + "scale": 1.5, + "png": { + "decision": { + "keep": "old", + "capture": "4ef1e700f7a1a076ba42330801e0bf0870cdef81" + } + } }, "Reference/Contributed/VBCCR18/Images/Pager.png": { "build": 1042, @@ -1103,7 +3599,13 @@ }, "Reference/Contributed/VBCCR18/Images/PrbStateConstants.png": { "build": 1042, - "scale": 1.5 + "scale": 1.5, + "png": { + "decision": { + "keep": "old", + "capture": "ed751dc76180a69f6af64e7ea1ceacc254f12207" + } + } }, "Reference/Contributed/VBCCR18/Images/ProgressBar.png": { "build": 1042, @@ -1111,11 +3613,23 @@ }, "Reference/Contributed/VBCCR18/Images/ProgressBar_Text.png": { "build": 1042, - "scale": 1.5 + "scale": 1.5, + "png": { + "decision": { + "keep": "old", + "capture": "fa65e1adb7bf4dc52779b2cc49ff3c9f81037284" + } + } }, "Reference/Contributed/VBCCR18/Images/SldTickStyleConstants.png": { "build": 1042, - "scale": 1.5 + "scale": 1.5, + "png": { + "decision": { + "keep": "old", + "capture": "56c793b1a55a97f706708c5df9dd7c1c81b725ac" + } + } }, "Reference/Contributed/VBCCR18/Images/Slider.png": { "build": 1042, @@ -1123,7 +3637,13 @@ }, "Reference/Contributed/VBCCR18/Images/Slider_SelectRange.png": { "build": 1042, - "scale": 1.5 + "scale": 1.5, + "png": { + "decision": { + "keep": "old", + "capture": "0e12ea42075a70866b598435a65ad46d5dd94d30" + } + } }, "Reference/Contributed/VBCCR18/Images/SpinBox.png": { "build": 1042, @@ -1131,7 +3651,13 @@ }, "Reference/Contributed/VBCCR18/Images/SpinBox_Styles.png": { "build": 1042, - "scale": 1.5 + "scale": 1.5, + "png": { + "decision": { + "keep": "old", + "capture": "61306c59f31fc65d7825654ca2b8b30f25e38ba6" + } + } }, "Reference/Contributed/VBCCR18/Images/TextBoxW.png": { "build": 1042, @@ -1139,22 +3665,46 @@ }, "Reference/Contributed/VBCCR18/Images/TextBoxW_CueBanner.png": { "build": 1042, - "scale": 1.5 + "scale": 1.5, + "png": { + "decision": { + "keep": "old", + "capture": "8099ed6cec5018c75d53748b318eb834884bdabb" + } + } }, "Reference/Contributed/VBCCR18/Images/TextBoxW_MultiLine.png": { "build": 1042, - "scale": 1.5 + "scale": 1.5, + "png": { + "decision": { + "keep": "old", + "capture": "7876da4907d6bbe81c3f1c9f77467de2176cc5c7" + } + } }, "Reference/Contributed/VBCCR18/Images/TextBoxW_Password.png": { "build": 1042, - "scale": 1.5 + "scale": 1.5, + "png": { + "decision": { + "keep": "old", + "capture": "0273e2f9bf74c551bcb1c5373e856526a6445263" + } + } }, "Reference/Contributed/VBCCR18/Images/UdnOrientationConstants.png": { "build": 1042, - "scale": 1.5 + "scale": 1.5, + "png": { + "decision": { + "keep": "old", + "capture": "b48376f4a816b18bb90f5407f9d4ab10139e8d6e" + } + } }, "Reference/Contributed/VBCCR18/Images/UpDown.png": { - "build": 1042, + "build": 1052, "scale": 1.5 }, "Reference/Contributed/VBCCR18/Images/VListBox.png": { @@ -1163,11 +3713,23 @@ }, "Reference/Contributed/VBCCR18/Images/VirtualCombo.png": { "build": 1042, - "scale": 1.5 + "scale": 1.5, + "png": { + "decision": { + "keep": "old", + "capture": "937b75e05a853f0a47e2083ffa67a07e41d7685b" + } + } }, "Reference/Contributed/VBCCR18/Images/VirtualCombo_DroppedDown.png": { "build": 1042, - "scale": 1.5 + "scale": 1.5, + "png": { + "decision": { + "keep": "old", + "capture": "2a4b70481e66650f545fea2850a622b7aae05863" + } + } }, "Reference/Contributed/VBCCR18/Images/WindowedLabel.png": { "build": 1042, @@ -1175,15 +3737,33 @@ }, "Reference/Contributed/VBCCR18/Images/WindowedLabel_Transparent.png": { "build": 1042, - "scale": 1.5 + "scale": 1.5, + "png": { + "decision": { + "keep": "old", + "capture": "a71db58553d77055174b084bab612b143ea899a1" + } + } }, "Reference/Contributed/VBCCR18/LinkLabel/Images/LinkLabel_Looks.png": { "build": 1042, - "scale": 1.5 + "scale": 1.5, + "png": { + "decision": { + "keep": "old", + "capture": "0ebcdb75cfda92675d644d95e9e704b61f72cf02" + } + } }, "Reference/Contributed/VBCCR18/ListView/Images/Groups.png": { "build": 1042, - "scale": 1.5 + "scale": 1.5, + "png": { + "decision": { + "keep": "old", + "capture": "aef3e49233131cb4af61c0130a7a77df7c710bdb" + } + } }, "Reference/Contributed/VBCCR18/ListView/Images/ListView.png": { "build": 1042, @@ -1191,7 +3771,13 @@ }, "Reference/Contributed/VBCCR18/ListView/Images/Views.png": { "build": 1042, - "scale": 1.5 + "scale": 1.5, + "png": { + "decision": { + "keep": "old", + "capture": "a76117ccba1604a1704cfbf18a295cb3e04be1b2" + } + } }, "Reference/Contributed/VBCCR18/RichTextBox/Images/RichTextBox.png": { "build": 1042, @@ -1207,11 +3793,23 @@ }, "Reference/Contributed/VBCCR18/TabStrip/Images/TbsStyleConstants.png": { "build": 1042, - "scale": 1.5 + "scale": 1.5, + "png": { + "decision": { + "keep": "old", + "capture": "7e2702c37653dededd4df505542c75ff9d5ca518" + } + } }, "Reference/Contributed/VBCCR18/ToolBar/Images/TbrTextAlignConstants.png": { "build": 1042, - "scale": 1.5 + "scale": 1.5, + "png": { + "decision": { + "keep": "old", + "capture": "d73293dcb677e0df01dc88a91c2dfef361b8c747" + } + } }, "Reference/Contributed/VBCCR18/ToolBar/Images/ToolBar.png": { "build": 1042, @@ -1219,11 +3817,23 @@ }, "Reference/Contributed/VBCCR18/TreeView/Images/Checkboxes.png": { "build": 1042, - "scale": 1.5 + "scale": 1.5, + "png": { + "decision": { + "keep": "old", + "capture": "c892cabb7530f1c276c25b6583becc3efe58c444" + } + } }, "Reference/Contributed/VBCCR18/TreeView/Images/MultiSelect.png": { "build": 1042, - "scale": 1.5 + "scale": 1.5, + "png": { + "decision": { + "keep": "old", + "capture": "ef3b1b62eb4df72dd411a10959ea5a069906a0e1" + } + } }, "Reference/Contributed/VBCCR18/TreeView/Images/TreeView.png": { "build": 1042, @@ -1231,11 +3841,23 @@ }, "Reference/Contributed/VBCCR18/TreeView/Images/TvwLineStyleConstants.png": { "build": 1042, - "scale": 1.5 + "scale": 1.5, + "png": { + "decision": { + "keep": "old", + "capture": "3b5f48bfdf6bae1bca441263ea7e09f92387f8fb" + } + } }, "Reference/Contributed/VBCCR18/TreeView/Images/TvwVisualThemeConstants.png": { "build": 1042, - "scale": 1.5 + "scale": 1.5, + "png": { + "decision": { + "keep": "old", + "capture": "d8c4869c84ce2baca6ebe9aeaf3be92306648b27" + } + } }, "Reference/Contributed/VBComDlg/Images/ShowColor.png": { "build": 1042, @@ -1243,7 +3865,13 @@ }, "Reference/Contributed/VBComDlg/Images/ShowFind.png": { "build": 1042, - "scale": 1.5 + "scale": 1.5, + "png": { + "decision": { + "keep": "old", + "capture": "f3732f4efb5ab26a16db65717bab5b12397b3754" + } + } }, "Reference/Contributed/VBComDlg/Images/ShowFolderBrowser.png": { "build": 1042, @@ -1254,11 +3882,11 @@ "scale": 1.5 }, "Reference/Contributed/VBComDlg/Images/ShowOpen.png": { - "build": 1042, + "build": 1052, "scale": 1.5 }, "Reference/Contributed/VBComDlg/Images/ShowPageSetup.png": { - "build": 1042, + "build": 1052, "scale": 1.5 }, "Reference/Contributed/VBFLXGRD18/VBFlexGrid/Images/Appearance_GridLines.png": { @@ -1283,7 +3911,13 @@ }, "Reference/Contributed/VBFLXGRD18/VBFlexGrid/Images/ComboEditing_Calendar.png": { "build": 1042, - "scale": 1.5 + "scale": 1.5, + "png": { + "decision": { + "keep": "old", + "capture": "2d5572589badfffda7a6d7fae74cca9c5357fc59" + } + } }, "Reference/Contributed/VBFLXGRD18/VBFlexGrid/Images/ComboEditing_Cues.png": { "build": 1042, @@ -1291,7 +3925,13 @@ }, "Reference/Contributed/VBFLXGRD18/VBFlexGrid/Images/ComboEditing_DropDown.png": { "build": 1042, - "scale": 1.5 + "scale": 1.5, + "png": { + "decision": { + "keep": "old", + "capture": "e6af1b19e0d5d1464f561dec2aaf1b44e5fdf533" + } + } }, "Reference/Contributed/VBFLXGRD18/VBFlexGrid/Images/Editing_EditBox.png": { "build": 1042, @@ -1330,11 +3970,11 @@ "scale": 1.5 }, "Reference/Contributed/xCalendar/Images/Enabled.png": { - "build": 1042, + "build": 1052, "scale": 1.5 }, "Reference/Contributed/xCalendar/Images/GridCellEffect.png": { - "build": 1042, + "build": 1052, "scale": 1.5 }, "Reference/Contributed/xCalendar/Images/Sample.png": { @@ -1342,7 +3982,7 @@ "scale": 1.5 }, "Reference/Default/VB/CheckBox/Images/CheckBox_States.png": { - "build": 1042, + "build": 1052, "scale": 1.5 }, "Reference/Default/VB/ComboBox/Images/ComboBox_Styles.png": { @@ -1378,7 +4018,7 @@ "scale": 1.5 }, "Reference/Default/VB/OptionButton/Images/OptionButton_Styles.png": { - "build": 1042, + "build": 1052, "scale": 1.5 }, "Reference/Default/VB/QRCode/Images/QRCode_EccMode.png": { @@ -1411,7 +4051,13 @@ }, "Reference/Default/VBA/Interaction/Images/InputBox.png": { "build": 1042, - "scale": 1.5 + "scale": 1.5, + "png": { + "decision": { + "keep": "old", + "capture": "d30d3d4ce0a144d715e1aff1f4cd306f602b42b1" + } + } }, "Reference/Default/VBRUN/Constants/Images/DrawModeConstants.png": { "build": 1042, @@ -1430,8 +4076,20 @@ "scale": 1.5 }, "Reference/Default/VBRUN/Constants/Images/SystemColorConstants.png": { - "build": 1042, - "scale": 1.5 + "build": 1052, + "scale": 1.5, + "png": { + "decision": { + "keep": "new", + "capture": "49470112996c55259f3381c83e1613b0537eed7b" + } + } + }, + "Reference/Images/TYizrRW.light.png": { + "build": 1052 + }, + "Reference/Images/TYizrRW.png": { + "build": 1052 }, "Reference/Images/Toolbox/CheckBox.light.png": { "build": 1042 @@ -1446,10 +4104,22 @@ "build": 1042 }, "Reference/Images/Toolbox/ComboBox.light.png": { - "build": 1042 + "build": 1042, + "png": { + "decision": { + "keep": "old", + "capture": "57e6de9611b9f950bf3e65faaff91d1bc184873f" + } + } }, "Reference/Images/Toolbox/ComboBox.png": { - "build": 1042 + "build": 1042, + "png": { + "decision": { + "keep": "old", + "capture": "7920fcffc8f6d667d9d78218475b6b1ff8cc9178" + } + } }, "Reference/Images/Toolbox/CommandButton.light.png": { "build": 1042 @@ -1458,16 +4128,40 @@ "build": 1042 }, "Reference/Images/Toolbox/DTPicker.light.png": { - "build": 1042 + "build": 1042, + "png": { + "decision": { + "keep": "old", + "capture": "ec01c879cc013647bf28510fb3fd73dbadcc349f" + } + } }, "Reference/Images/Toolbox/DTPicker.png": { - "build": 1042 + "build": 1042, + "png": { + "decision": { + "keep": "old", + "capture": "f04f9caeb53e312a4b96eacd2c42fba2b03f52d6" + } + } }, "Reference/Images/Toolbox/Data.light.png": { - "build": 1042 + "build": 1042, + "png": { + "decision": { + "keep": "old", + "capture": "31a2ddf3b5496c4dbdcdb220844d177afdd4afd7" + } + } }, "Reference/Images/Toolbox/Data.png": { - "build": 1042 + "build": 1042, + "png": { + "decision": { + "keep": "old", + "capture": "e7b9870062abdc7fa415b098848d699b7a56b167" + } + } }, "Reference/Images/Toolbox/DirListBox.light.png": { "build": 1042 @@ -1488,7 +4182,13 @@ "build": 1042 }, "Reference/Images/Toolbox/Frame.light.png": { - "build": 1042 + "build": 1042, + "png": { + "decision": { + "keep": "old", + "capture": "fc6c605aee25189cb0778ed10dca220144153f07" + } + } }, "Reference/Images/Toolbox/Frame.png": { "build": 1042 @@ -1500,13 +4200,31 @@ "build": 1042 }, "Reference/Images/Toolbox/Image.light.png": { - "build": 1042 + "build": 1042, + "png": { + "decision": { + "keep": "old", + "capture": "14cb6457e3e34988642b2a34d1f1d9a41c1c0833" + } + } }, "Reference/Images/Toolbox/Image.png": { - "build": 1042 + "build": 1042, + "png": { + "decision": { + "keep": "old", + "capture": "d0cb282ecf1f6bf6817015e0539fca34d411ac7d" + } + } }, "Reference/Images/Toolbox/ImageList.light.png": { - "build": 1042 + "build": 1042, + "png": { + "decision": { + "keep": "old", + "capture": "5187a4fb18d9f791e79fc968b3368e0dda39f3a1" + } + } }, "Reference/Images/Toolbox/ImageList.png": { "build": 1042 @@ -1536,19 +4254,43 @@ "build": 1042 }, "Reference/Images/Toolbox/MonthView.light.png": { - "build": 1042 + "build": 1042, + "png": { + "decision": { + "keep": "old", + "capture": "bb1652cec35433a3b2f9ee44c7fda01ee3d0ca78" + } + } }, "Reference/Images/Toolbox/MonthView.png": { - "build": 1042 + "build": 1042, + "png": { + "decision": { + "keep": "old", + "capture": "30b40898426663fcf4e8a2feb014bbd6e9437849" + } + } }, "Reference/Images/Toolbox/MultiFrame.light.png": { - "build": 1042 + "build": 1042, + "png": { + "decision": { + "keep": "old", + "capture": "6aada22a3717cb0ed23165ac1b2b267296fa1528" + } + } }, "Reference/Images/Toolbox/MultiFrame.png": { "build": 1042 }, "Reference/Images/Toolbox/OLE.light.png": { - "build": 1042 + "build": 1042, + "png": { + "decision": { + "keep": "old", + "capture": "d8a55ee7061378193ecc6a2e8e34b6f591bed61f" + } + } }, "Reference/Images/Toolbox/OLE.png": { "build": 1042 @@ -1572,10 +4314,22 @@ "build": 1042 }, "Reference/Images/Toolbox/QRCode.light.png": { - "build": 1042 + "build": 1042, + "png": { + "decision": { + "keep": "old", + "capture": "4556c73a25ca831362f902d6159fb200c27db3b9" + } + } }, "Reference/Images/Toolbox/QRCode.png": { - "build": 1042 + "build": 1042, + "png": { + "decision": { + "keep": "old", + "capture": "2680ea1cd3a0411136b76e972c865fabe681a227" + } + } }, "Reference/Images/Toolbox/Shape.light.png": { "build": 1042 @@ -1602,10 +4356,22 @@ "build": 1042 }, "Reference/Images/Toolbox/TreeView.light.png": { - "build": 1042 + "build": 1042, + "png": { + "decision": { + "keep": "old", + "capture": "d0ca8e8421fef8737a8e3f11b8acf6e5fb405f5e" + } + } }, "Reference/Images/Toolbox/TreeView.png": { - "build": 1042 + "build": 1042, + "png": { + "decision": { + "keep": "old", + "capture": "08a3ab5ec98e251d24986c6470ac794cce2cea9c" + } + } }, "Reference/Images/Toolbox/UpDown.light.png": { "build": 1042 @@ -1619,65 +4385,182 @@ "Reference/Images/Toolbox/VScrollBar.png": { "build": 1042 }, + "Reference/Images/flags-attribute.png": { + "build": 1052 + }, + "Reference/Images/oHpCiV1.light.png": { + "build": 1052 + }, + "Reference/Images/oHpCiV1.png": { + "build": 1052 + }, + "Tutorials/CustomControls/Images/ccCOMCreatable.light.png": { + "build": 1052, + "png": { + "decision": { + "keep": "new", + "capture": "abe264c980ed086cb298c2e95603298dc4234684" + } + } + }, + "Tutorials/CustomControls/Images/ccCOMCreatable.png": { + "build": 1052, + "png": { + "decision": { + "keep": "new", + "capture": "05ac132b6bb438b04537f708aeb4f8b9130e0d79" + } + } + }, + "Tutorials/CustomControls/Images/ccClassIdInsert.light.png": { + "png": { + "decision": { + "keep": "old", + "capture": "98e7284ce8b8a105c034c2bdad0f47489785b1d2" + } + } + }, + "Tutorials/CustomControls/Images/ccClassIdInsert.png": { + "png": { + "decision": { + "keep": "old", + "capture": "c0d18987d795368bc99664aa63eba78b1d1b5c62" + } + } + }, "Tutorials/CustomControls/Images/ccEvents.light.png": { - "build": 1042 + "build": 1042, + "png": { + "decision": { + "keep": "old", + "capture": "e41338e116f546db255afa9b6fb143b83b1bf408" + } + } }, "Tutorials/CustomControls/Images/ccEvents.png": { - "build": 1042 + "build": 1052 + }, + "Tutorials/CustomControls/Images/ccGridButtonImage.light.png": { + "build": 1052 + }, + "Tutorials/CustomControls/Images/ccGridButtonImage.png": { + "build": 1052 + }, + "Tutorials/CustomControls/Images/ccICustomControl.light.png": { + "build": 1052 + }, + "Tutorials/CustomControls/Images/ccICustomControl.png": { + "build": 1052 }, "Tutorials/CustomControls/Images/ccMyEnumFieldPropertySheet.light.png": { - "build": 1042 + "build": 1042, + "png": { + "decision": { + "keep": "old", + "capture": "795708a112509392d263bc4c7beab29099743a98" + } + } }, "Tutorials/CustomControls/Images/ccMyEnumFieldPropertySheet.png": { - "build": 1042 + "build": 1052 }, "Tutorials/CustomControls/Images/ccMyFieldArray.light.png": { - "build": 1042 + "build": 1042, + "png": { + "decision": { + "keep": "old", + "capture": "bbf086b708db63f1c1cee2aa02e2028954cda056" + } + } }, "Tutorials/CustomControls/Images/ccMyFieldArray.png": { - "build": 1042 + "build": 1052 }, "Tutorials/CustomControls/Images/ccMyFieldClass.light.png": { - "build": 1042 + "build": 1042, + "png": { + "decision": { + "keep": "old", + "capture": "06fc7c7e7f77ceed06af7be53be0471711e91610" + } + } }, "Tutorials/CustomControls/Images/ccMyFieldClass.png": { - "build": 1042 + "build": 1052 + }, + "Tutorials/CustomControls/Images/ccMyFieldCustomProperty.png": { + "png": { + "decision": { + "keep": "old", + "capture": "2c33e271137e8d53b2bf66337d9aa4dc7b7786e6" + } + } }, "Tutorials/CustomControls/Images/ccMyFieldPropertySheet1a.light.png": { - "build": 1042 + "build": 1042, + "png": { + "decision": { + "keep": "old", + "capture": "d5416ed68347e49915554eb12d0603b856029ed5" + } + } }, "Tutorials/CustomControls/Images/ccMyFieldPropertySheet1a.png": { - "build": 1042 + "build": 1052 }, "Tutorials/CustomControls/Images/ccMyFieldPropertySheet1b.light.png": { - "build": 1042 + "build": 1042, + "png": { + "decision": { + "keep": "old", + "capture": "9e78f67dd203a014133071d5bb04415bb95859f6" + } + } }, "Tutorials/CustomControls/Images/ccMyFieldPropertySheet1b.png": { - "build": 1042 + "build": 1052 }, "Tutorials/CustomControls/Images/ccSampleProject.light.png": { - "build": 1042 + "build": 1052 }, "Tutorials/CustomControls/Images/ccSampleProject.png": { - "build": 1042 + "build": 1052 }, "Tutorials/Images/Assert_Failed.light.png": { - "build": 1042 + "build": 1052 }, "Tutorials/Images/Assert_Failed.png": { - "build": 1042 + "build": 1052 }, "Tutorials/WebView2/Images/tbWebView2Properties.light.png": { - "build": 1042 + "build": 1042, + "png": { + "decision": { + "keep": "old", + "capture": "c0f734157af34f9995d84ca5a37f52998b6412e6" + } + } }, "Tutorials/WebView2/Images/tbWebView2Properties.png": { - "build": 1042 + "build": 1042, + "png": { + "decision": { + "keep": "old", + "capture": "3e03c5eeaea91b3500d3a53d3bd3690d537c04f7" + } + } }, "Tutorials/WebView2/Images/tbWebView2Sample0.light.png": { - "build": 1042 + "build": 1052 }, "Tutorials/WebView2/Images/tbWebView2Sample0.png": { - "build": 1042 + "build": 1052 + }, + "Tutorials/WebView2/Images/tbWebView2Toolbox.light.png": { + "build": 1052 + }, + "Tutorials/WebView2/Images/tbWebView2Toolbox.png": { + "build": 1052 } } } diff --git a/test/svgshot.test.mjs b/test/svgshot.test.mjs index 2bfc398c7..6d7be1ac9 100644 --- a/test/svgshot.test.mjs +++ b/test/svgshot.test.mjs @@ -3926,6 +3926,15 @@ describe("what a picture's two themes say (themeTextDifference)", () => { assert.deepEqual(differ(["Sub Sub"], ["Sub"]), { dark: ["Sub"], light: [] }); }); + test("a RegExp allows every word it matches whole, on its own side, and no other", () => { + const took = { dark: [/\d+ms/], light: [/\d+ms/] }; + assert.equal(differ(["2 matches · took 114ms"], ["2 matches · took 79ms"], took), null); + // whole words only: a word the pattern matches part of still counts + assert.deepEqual(differ(["took 114ms!"], ["took 79ms!"], took), { dark: ["114ms!"], light: ["79ms!"] }); + // a side's patterns allow that side's words only + assert.deepEqual(differ(["took 114ms"], ["took 79ms"], { dark: [/\d+ms/] }), { dark: [], light: ["79ms"] }); + }); + test("a line an edge cuts in one theme answers for the same line whole in the other", () => { assert.equal(themeTextDifference(read(["24", "25"]), read(["24"], ["25"])), null); assert.equal(themeTextDifference(read(["24"], ["25"]), read(["24", "25"])), null);