github web-platform-tests/wpt merge_pr_40556

latest releases: merge_pr_49470, epochs/three_hourly/2024-12-03_06H, epochs/six_hourly/2024-12-03_06H...
15 months ago

Do not restart browser when there is test type switch (#40556)

  • Do not restart browser when test type changes

At least for Chrome, parameters used to start Chrome won't change when
test type changes (except for wdspec tests).

This change tries to switch to a different executor where allowed, and
reuse the webdriver session from the previous executor.

A browser side flag is used to control whether this behavior should be
enabled or not. It is up to each browser vendor to decide whether it
should be enabled or not.

Bug: 341581718

  • add type annotation

  • fix unit tests

  • update per review comments

  • Apply suggestions from code review

Co-authored-by: Jonathan Lee jonathan-j-lee@users.noreply.github.com

  • check protocol class when switch executor

  • assert protocol class matches in setup


Co-authored-by: Jonathan Lee jonathan-j-lee@users.noreply.github.com

Don't miss a new wpt release

NewReleases is sending notifications on new releases.