Skip to content

refactor(nsgotest): own mounted view records - #1862

Merged
houko merged 2 commits into
nsgo-dev:mainfrom
houko:refactor/nsgotest-view-records-181
Nov 23, 2026
Merged

houko merged 2 commits into
nsgo-dev:mainfrom
houko:refactor/nsgotest-view-records-181

Conversation

@houko

@houko houko commented Nov 22, 2026 •

Copy link
Copy Markdown
Collaborator

Summary

Move mounted image, input, modal, screen, scroll, video, custom Picture in Picture and sticky-cell snapshots into nsgotest records. Tests can inspect these values without importing the mount protocol's driver.* message types. The model clones image variant maps, scroll snap offsets and edge bar lists while applying a batch, and keeps the existing policy helpers on the records.

Remove the eight mounted-view protocol records from the public driver API allowlist. The existing WebConfig ownership work remains in #1811.

Refs #181.

Targets

  • Shared code

Screenshots

None.

Verification

  • go tool nsgo test ./core: 813 passed.
  • go tool nsgo test ./nsgotest -- -p 1 -count=1: 162 passed, one skipped, including the four record snapshot and policy tests.
  • List and sticky regressions: 49 passed.
  • Public API guard, all layering variants and skill checks passed.
  • go tool nsgo check -target macos,linux,windows,android_arm64,web -jobs 1 passed, including both desktop architectures and Android arm64.
  • git diff --check passed.

Checklist

  • Conventional Commit title
  • Docs, public testing references, skill and changelog updated

@houko

houko commented Nov 22, 2026

Copy link
Copy Markdown
Collaborator Author

Reviewed. Checked each mapping against its driver struct: input 24, image 8, modal 7, screen 21, scroll 13, video 14 and Picture in Picture 5 fields all map, and sticky cells convert back for StickyShift. Core keeps stickyRange as a private alias now that core.StickyCell is gone. Expect allowlist conflicts with the other #181 slices and #1874.

@houko
houko enabled auto-merge (rebase) November 22, 2026 04:22
@houko
houko force-pushed the refactor/nsgotest-view-records-181 branch from f1a580f to fb2958c Compare November 22, 2026 04:42
@houko
houko force-pushed the refactor/nsgotest-view-records-181 branch from fb2958c to 2c37b95 Compare November 22, 2026 08:19
@houko
houko added this pull request to the merge queue Nov 22, 2026
@houko
houko removed this pull request from the merge queue due to a manual request Nov 22, 2026
@houko
houko force-pushed the refactor/nsgotest-view-records-181 branch from 2c37b95 to 493a196 Compare November 22, 2026 09:37
@houko
houko enabled auto-merge November 22, 2026 09:37
@houko
houko force-pushed the refactor/nsgotest-view-records-181 branch from 493a196 to 181000a Compare November 22, 2026 09:39
@houko
houko added this pull request to the merge queue Nov 22, 2026
Keep image, input, modal, screen, scroll, video, Picture in Picture and sticky-cell snapshots in nsgotest. Clone mutable maps and slices and remove the corresponding protocol aliases from the public API guard.
@houko
houko force-pushed the refactor/nsgotest-view-records-181 branch from 181000a to 828c55a Compare November 23, 2026 01:00
@houko
houko merged commit 830dfc3 into nsgo-dev:main Nov 23, 2026
18 of 19 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

core documentation Improvements or additions to documentation size/L

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant