Branch: refs/heads/main
  Home:   https://github.com/WebKit/WebKit
  Commit: b198a2b9d6bc310d093dea65bfb105b16ab2d7a3
      
https://github.com/WebKit/WebKit/commit/b198a2b9d6bc310d093dea65bfb105b16ab2d7a3
  Author: Carlos Alberto Lopez Perez <[email protected]>
  Date:   2025-09-15 (Mon, 15 Sep 2025)

  Changed paths:
    M Tools/Scripts/webkitpy/port/headlessdriver.py
    M Tools/Scripts/webkitpy/port/headlessdriver_unittest.py
    M Tools/Scripts/webkitpy/port/waylanddriver.py
    M Tools/Scripts/webkitpy/port/waylanddriver_unittest.py
    M Tools/Scripts/webkitpy/port/westondriver.py
    M Tools/Scripts/webkitpy/port/westondriver_unittest.py
    M Tools/Scripts/webkitpy/port/wpe.py
    M Tools/Scripts/webkitpy/port/wpe_unittest.py
    M Tools/WebKitTestRunner/wpe/PlatformWebViewClientWPE.cpp
    M Tools/WebKitTestRunner/wpe/PlatformWebViewClientWPE.h
    M Tools/glib/api_test_runner.py

  Log Message:
  -----------
  [WPE] Allow to run layout-tests with the wayland display
https://bugs.webkit.org/show_bug.cgi?id=298719

Reviewed by Nikolas Zimmermann.

This allows to see the browser window when running layout
tests with WPE if the optional --display-server=wayland
 parameter is passed.

Previously the code was always forcing the headless driver
(ignoring the user selection of display-server) and WTR
was not connecting to the wayland display.

This patch modifies the display-server drivers to pass the
corresponding WPE_DISPLAY environment variable that WPE uses
to select one or other display backend as default.

As a side effect of this, now is possible (for example) to run
WebDriver tests headless with without having to pass manually
the --headless flag to MiniBrowser.

* Tools/Scripts/webkitpy/port/headlessdriver.py:
(HeadlessDriver._setup_environ_for_test):
* Tools/Scripts/webkitpy/port/headlessdriver_unittest.py:
(HeadlessDriverTest.make_environment):
(HeadlessDriverTest.test_environment_needed_variables):
(HeadlessDriverTest.test_environment_forbidden_variables):
* Tools/Scripts/webkitpy/port/waylanddriver.py:
(WaylandDriver._setup_environ_for_test):
* Tools/Scripts/webkitpy/port/waylanddriver_unittest.py:
(WaylandDriverTest.make_environment):
(WaylandDriverTest.test_environment_needed_variables):
* Tools/Scripts/webkitpy/port/westondriver.py:
(WestonDriver._setup_environ_for_test):
* Tools/Scripts/webkitpy/port/westondriver_unittest.py:
(WestonDriverTest.test_driver_start):
(WestonDriverTest.test_driver_stop):
(WestonDriverTest):
(WestonDriverTest.test_environment_needed_variables):
(WestonDriverTest.test_start): Deleted.
(WestonDriverTest.test_stop): Deleted.
(WestonDriverTest.test_stop.FakeWestonProcess): Deleted.
(WestonDriverTest.test_stop.FakeWestonProcess.terminate): Deleted.
* Tools/Scripts/webkitpy/port/wpe.py:
(WPEPort._driver_class):
(WPEPort.setup_environ_for_server):
* Tools/Scripts/webkitpy/port/wpe_unittest.py:
(WPEPortTest.test_get_browser_path):
(WPEPortTest):
(WPEPortTest.test_setup_environ_for_test_wpe_prefix):
* Tools/WebKitTestRunner/wpe/PlatformWebViewClientWPE.cpp:
(WTR::PlatformWebViewClientWPE::PlatformWebViewClientWPE):
* Tools/glib/api_test_runner.py:
(TestRunner._setup_testing_environment_for_driver):
(TestRunner.run_tests):
(TestRunner._setup_testing_environment): Deleted.

Canonical link: https://commits.webkit.org/299949@main



To unsubscribe from these emails, change your notification settings at 
https://github.com/WebKit/WebKit/settings/notifications
_______________________________________________
webkit-changes mailing list
[email protected]
https://lists.webkit.org/mailman/listinfo/webkit-changes

Reply via email to