Repository navigation
Conversation
…oles Co-Authored-By: Claude Opus 5.5 <[email protected]> Claude-Session: https://claude.ai/code/session_01KX1hkNiiBq2fQEsXWusxpm Co-authored-by: Claude <[email protected]>
Co-Authored-By: Claude Opus 5.5 <[email protected]> Claude-Session: https://claude.ai/code/session_01KX1hkNiiBq2fQEsXWusxpm Co-authored-by: Claude <[email protected]>
Co-Authored-By: Claude Opus 5.5 <[email protected]> Claude-Session: https://claude.ai/code/session_01KX1hkNiiBq2fQEsXWusxpm Co-authored-by: Claude <[email protected]>
Co-Authored-By: Claude Opus 5.5 <[email protected]> Claude-Session: https://claude.ai/code/session_01KX1hkNiiBq2fQEsXWusxpm Co-authored-by: Claude <[email protected]>
- Make sampleColor() report 'red' or 'green' only for a clearly red or green pixel, independent of BGRA/RGBA channel order, so an unpainted page no longer counts as a frame. - Wait for the first frame before sampling the noAnimation case, and fail it only if the green frame is ever painted. - Run setImageAnimationPolicy() serially since it captures the screen. - Give the toggleDevTools() and worker inspection tests a fresh persisted partition each, so they never inherit an undocked dock state from the default session's Preferences and always dock into the hidden window. Co-Authored-By: Claude Opus 5.5 <[email protected]> Claude-Session: https://claude.ai/code/session_01KX1hkNiiBq2fQEsXWusxpm Co-authored-by: Claude <[email protected]>
There was a problem hiding this comment.
LGTM. This is a test-only backport and I found nothing to fix. I reviewed it from a standalone clone, so none of the Chromium sources were available to me.
What I checked:
- The suites that use the clipboard, focus, capturePage, fullscreen, visible windows or DevTools activation (menu edit roles, togglefullscreen, isDevToolsFocused, editing commands, setImageAnimationPolicy) are all tagged
serial, as spec/CLAUDE.md requires. The suites left non-serial (toggleDevTools/inspect*Worker, which use a fresh persisted partition so DevTools open docked; device emulation; zoom; spellchecker) don't need OS focus or the clipboard. - Everything the new code uses exists on this branch:
waitUntil,listenandsetTimeoutare imported,ClipboardItemis exported fromlib/browser/api/module-list.ts, andexecuteByRoleis defined. Windows are cleaned up by the existingafterEach(closeAllWindows)hooks. Noexpect()calls sit inside event listeners. - I did not run the specs, so I can't say whether the timing-sensitive waits (animated scroll, GIF frame sampling, device emulation) are flaky on CI.
Extended reasoning...
The change adds about 546 lines of vitest specs to spec/api-menu-item.spec.ts and spec/api-web-contents.spec.ts and touches no product code under shell/ or lib/. It touches nothing security-sensitive, and CODEOWNERS covers neither file. It is a bot backport of tests, and the APIs and helpers they use exist on this branch. The suites that need the system clipboard, focus or screen capture are tagged serial, as the repo's spec conventions require. Nothing is wrong beyond possible CI timing flakiness, which can only be judged by running the specs.
|
No Release Notes |
Backport of #55903
See that PR for details.
Notes: none