brave-browser#61489 Test best-practice violations in darker_theme_browsertest.cc
State: closed (completed) · created · closed · updated · discovered via linked:brave/brave-core#41583
tests QA/No release-notes/exclude OS/Desktop tests/test-quality tests/best-practice-violation
Browser tests in browser/ui/darker_theme/darker_theme_browsertest.cc break test best practices documented in docs/best-practices. DarkerThemeBrowserTest.EnableDarkerMode (medium severity) L64 - Rule: TI-034: Use ASSERT for Preconditions That Subsequent Code Depends On - Problem: EnableDarkerMode checks color_provider_key.scheme_variant.has_value() with EXPECT_TRUE and dereferences the optional on the next line. If the darker variant is not applied, the test dereferences an…
Timeline (6 of 9 events)
- 2026-11-05 21:26 Label added
QA/Noby netzenbot - 2026-11-05 21:26 Label added
release-notes/excludeby netzenbot - 2026-11-12 13:08 Referenced by brave-core#41583 by netzenbot
- 2026-11-13 03:52 Closed
completedby brian-brave - 2026-11-13 03:54 Milestone set
1.102.x - Nightlyby brave-builds - 2026-11-16 12:48 Label added
OS/Desktopby netzenbot