Repository navigation
test: add regression specs for recently fixed bugs - #54312
Merged
Merged
Conversation
Regression test for #51817, where disableHardwareAcceleration() stopped appending the --disable-gpu switch. A small fixture app calls it before ready and reports whether app.commandLine has the switch once ready. Verified against Linux release builds: fails on 45.0.0-nightly.20260716, passes on 45.0.0-nightly.20260720.
Regression test for #50629, which moved the Electron project links out of the menu every app gets by default and into the default app. The default-menu fixture gains a --print-items mode that prints the roles and labels of the top-level items, and the spec asserts the window menu is there but no Help menu is. Verified against Linux release builds: fails on 43.0.0-nightly.20260408, passes on 43.0.0-nightly.20260413.
Regression test for #50806, where a Menu that was built but never opened was kept alive forever. The spec drops the last reference, holds a WeakRef and requests async GCs until it clears. Verified against Linux release builds: fails on 43.0.0-nightly.20260408, passes on 43.0.0-nightly.20260413.
Regression test for #50646, where the dock mode string was spliced into a script evaluated in the DevTools frontend. The spec passes a mode that would break out of the string literal and set a global, waits for the frontend host to round-trip, and asserts the global was never set. Uses its own session partition so the dock state it leaves behind does not leak into other DevTools tests. Verified against Linux release builds: fails on 43.0.0-nightly.20260402, passes on 43.0.0-nightly.20260406.
Regression test for #50807, where calling openDevTools() without a mode always docked to the right instead of restoring the previous dock state. The spec opens DevTools undocked, closes it, reopens with no options and reads currentDockState back from the frontend preferences. Verified against Linux release builds: fails on 43.0.0-nightly.20260408, passes on 43.0.0-nightly.20260413.
…cement Regression test for #52283. File contents used to be re-read from whatever file was at the archive's path using offsets from the header read at startup, so replacing app.asar under a running app (as updaters do) served the wrong bytes or failed. A fixture app loads a file from a temporary asar in a BrowserWindow, renames a different archive over it, loads the same file again and reports both results; the spec expects them to match the original archive. Skipped on Windows, which does not allow renaming over an archive that is held open. Verified against Linux release builds: fails on 45.0.0-nightly.20260706, passes on 45.0.0-nightly.20260716.
Regression test for #50509, where processes forked from the zygote kept the zygote's command line as their process title, so ps and friends showed every child as --type=zygote. The spec reads /proc/<pid>/cmdline for the GPU, renderer and utility processes reported by getAppMetrics() and expects each to carry its own --type switch, tolerating processes that exit in the meantime. Verified against Linux release builds: fails on 43.0.0-nightly.20260323, passes on 43.0.0-nightly.20260402.
Regression test for #52603, where losing the display server connection went straight to LOG(FATAL). The spec starts a private Xvfb (skipping if none is available), launches a fixture app on it that logs when its window is ready, kills the X server and expects the app to exit with a normal exit code rather than die on a signal. Either Ozone (the app.exit(0) path the fix added) or GTK (_exit(1)) can be the first to notice the dead connection, so both codes are accepted. The X server is started inside the test so mocha's in-job retries get a fresh one. Verified against Linux release builds: the app dies with SIGTRAP on 45.0.0-nightly.20260805 and exits cleanly on 45.0.0-nightly.20260808.
Regression test for #51017, where a fully transparent overlay colour was treated as unset and replaced with the default opaque one. Adds captureDisplayPixels()/expectDisplayPixelsEventually() screen helpers that read the primary display back through desktopCapturer and retry a set of assertions until the compositor catches up, then uses them to show a red page under a transparent overlay and assert that nearly all of the overlay strip shows the page (only the caption glyphs differ). The page carries a marker square so the check cannot pass on an unpainted or stale surface, and colours are compared against each other rather than constants because CI's 16-bit Xvfb screen quantises them. X11 only: Wayland has no portal-free capture and other platforms draw native caption buttons. Tagged serial since it reads the real screen. Verified against Linux release builds: fails on 44.0.0-nightly.20260529, passes on 44.0.0-nightly.20260701.
Regression test for #52577, where the caption button container was not shown at all on Linux. Using the same capture helpers, the spec shows a red page with a blue overlay and white symbols and asserts that the overlay strip is mostly not the page colour and that a second colour (the button glyphs) is present within it. Verified against Linux release builds: fails on 45.0.0-nightly.20260731, passes on 45.0.0-nightly.20260803.
Regression test for #50541, where the frame painted an opaque border around transparent frameless windows on Linux. The spec puts a blue backdrop window across the work area, shows a transparent frameless window with two marker squares over it, captures the screen and asserts that the only colours in and just around the window bounds are the backdrop, the see-through area and the two markers, i.e. no frame, border or shadow pixels. X11 only, tagged serial with the rest of the "transparent" suite. Verified against Linux release builds: fails on 43.0.0-nightly.20260323, passes on 43.0.0-nightly.20260402.
MarshallOfSound
force-pushed
the
claude/project-thread-gu7ptp
branch
from
September 24, 2026 20:04
5166657 to
c1e9aa8
Compare
codebytere
approved these changes
Sep 24, 2026
|
No Release Notes |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Description of Change
Adds regression specs for eleven fixes from the last six months that landed without a test. One commit per fix; each commit message says what the spec checks and which Linux nightlies it was verified to fail and pass on.
Checklist
Release Notes
Notes: none