Skip to content

refactor(nsgotest): own reported events and touch snapshots - #1869

Merged
houko merged 1 commit into
nsgo-dev:refactor/nsgotest-web-config-181from
houko:refactor/report-event-181
Nov 22, 2026
Merged

houko merged 1 commit into
nsgo-dev:refactor/nsgotest-web-config-181from
houko:refactor/report-event-181

Conversation

@houko

@houko houko commented Nov 22, 2026 •

Copy link
Copy Markdown
Collaborator

Summary

Give nsgotest.App.Report an owned nsgotest.Event and nsgotest.TouchGeometry instead of public aliases of the driver messages. Reports copy URI, selection and touch slices, navigation state, hit-target maps and per-view position slices, preserving nil/empty values and native Data payload identity. The WebConfig event factory returns the owned event too, and both legacy protocol types leave the API allowlist.

Migrate checkbox, list and lifecycle tests to the owned report; the external base tests also use public modifiers and event constants. Update the testing architecture, public English/Chinese guides, skill and changelog.

Dependency: stacked on #1811 at exact commit e6168828aeece42c9c7c3c4a4e4d19d1d0a65b99. That PR owns WebConfig, whose public event factory otherwise exposes the private event and touch geometry. The base branch is refactor/nsgotest-web-config-181; rebase onto main after #1811 merges. This PR adds only the report-event slice.

Refs #181. EventKind/EventMask and mounted ViewStyle/ViewProps/ViewKind remain separate work.

Targets

  • Shared code

Screenshots

None.

Verification

  • go tool nsgo test ./nsgotest -- -p 1 -count=1: 161 passed, one skipped, including the dependency's WebConfig test and the new event ownership/touch routing tests.
  • go tool nsgo test ./base -- -p 1 -run 'TestCheckbox|TestAListLeavesAFocusedButtonItsKeys|TestList' -count=1: 24 passed.
  • Public API guard, all 26 layering variants and skill checks passed on the stacked result.
  • go tool nsgo check -target macos,ios,windows,linux,android_arm64,web -jobs 1 passed on the remote Mac builder, including both desktop architectures, iOS and Android arm64.
  • CI Build and vet passed. The CI test job fails only TestMinimalAppLinks (macOS: net/http, crypto/tls, crypto/x509; Linux: net/http), reproducing the exact clean-main 091984681 baseline confirmed for refactor(core): own the host storage contract #1866.
  • git diff --check passed.

Checklist

  • Conventional Commit title
  • Public guides, skill, architecture and changelog updated

@houko

houko commented Nov 22, 2026

Copy link
Copy Markdown
Collaborator Author

Reviewed. Stacked on #1811. driverEvent maps all 37 driver.Event fields, and it deep-copies URIs, ranges, touches, navigation and touch geometry while keeping Data's identity.

@houko
houko merged commit bd7be4a into nsgo-dev:refactor/nsgotest-web-config-181 Nov 22, 2026
19 of 24 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

base documentation Improvements or additions to documentation size/M

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant