Theme Tests and Fix Plan

"/home/yossef/notes/git/projects/maplibra/risks/Theme Tests and Fix Plan.md"

path: maplibra/risks/Theme Tests and Fix Plan.md

- **fileName**: Theme Tests and Fix Plan
- **Created on**: 2026-06-16 00:48:42

Theme Tests and Fix Plan

Migrated from: obs_vault

Parent: ./Theme Risk Index.md

This note consolidates the missing tests and the practical fix sequence for the theme risk set.

Current Coverage Summary

Missing High-Value Tests

Fix Sequence

  1. Fix listener references and teardown in ./Theme Controller Listener Cleanup.md.
  2. Add applyThemeToMap() allowlist/exclusions for ./Broad Map Layer ID Matching.md.
  3. Make host style resolution offline-first unless remote basemap is explicitly allowed in ./Host Mode Style Resolution.md.
  4. Collapse static/dynamic offline style drift in ./Offline Basemap Theme Drift.md.
  5. Make LayerManager.reapplyThemeColors() type-aware and repaint doors in ./LayerManager Theme Reapply State.md.
  6. Add regression tests before or alongside each fix.

Suggested Test Files

Implementation Principles

See Also