Netzenbot fde87ff06e Fix test: SpeedReaderBrowserTest.EnableDisableSpeedreaderB (#33551)
Replace infinite polling loops with base::test::RunUntil() to prevent
test timeouts. The WaitDistilled(), WaitDistillable(), WaitOriginal(),
and WaitToolbarVisibility() functions used NonBlockingDelay() in
infinite while loops, which could run forever if the expected state
was never reached.

Using base::test::RunUntil() provides a built-in 1-second timeout and
returns false on timeout, allowing tests to fail gracefully instead of
hanging indefinitely. This addresses the intermittent timeout failures
in SpeedReaderBrowserTest.EnableDisableSpeedreaderB.

Also modernize the ShowOriginalPage test to use base::test::RunUntil()
instead of the old NonBlockingDelay() polling pattern when waiting for
the "View original" link to appear in the DOM. This maintains consistency
with the helper function improvements.

Fixes: brave/brave-browser#51693
2026-02-02 21:58:12 -05:00
2025-12-20 23:56:16 +00:00
2025-12-20 23:56:17 +00:00
2026-01-25 19:54:17 -03:00
2026-01-30 10:08:19 +00:00
2026-02-03 00:02:47 +00:00
2026-02-03 00:02:47 +00:00
2026-02-03 00:02:47 +00:00

Brave Core

Brave Core is a set of changes, APIs, and scripts used for customizing Chromium to make the Brave browser. Please also check https://github.com/brave/brave-browser

Follow @brave on Twitter for important announcements.

Resources

Community

You can ask questions and interact with the community in the following locations:

S
Description
No description provided
Readme MPL-2.0
3.8 GiB
Languages
C++ 36.9%
HTML 31.6%
Swift 9.4%
TypeScript 9%
Java 4.8%
Other 8.1%