Skip to content

feat: Golden image tests for widget rendering #184

Description

@kolkov

Part of gogpu/gogpu#373 — Headless Golden Image Testing (ADR-053), Phase 4.

Summary

Golden image tests for widget rendering — automated snapshot testing across all themes and widget states. Uses gogpu golden test harness (Phase 2) with headless software backend.

Part of the ecosystem-wide golden image testing initiative (gogpu ADR-053).

Test Coverage

Core Widgets

  • Button, TextField, Checkbox, Radio, Switch, Slider
  • DropDown, ComboBox, ProgressBar, Spinner

Complex Widgets

  • ListView (scroll, selection, row lifecycle)
  • GridView (cell layout, selection)
  • TreeView (expand/collapse, nested)
  • TabBar (tab switching, overflow)

Themes (same widget × 4 goldens)

  • Material 3
  • Fluent
  • Cupertino
  • DevTools

Widget States

  • Default, hover, pressed, focused, disabled
  • Error state (TextField validation)
  • Selected/unselected (Checkbox, Radio)

Layout

  • Padding, alignment, nested containers
  • Responsive layout at different window sizes
  • HiDPI scaling verification

Damage Pipeline

  • Verify partial repaint produces same result as full repaint
  • Widget dirty flag correctness

Regression Targets

Blocked By

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions