Changeset 224014 in webkit


Ignore:
Timestamp:
Oct 26, 2017 3:58:17 AM (6 years ago)
Author:
Carlos Garcia Campos
Message:

WebDriver: Add support to import and run W3C tests
https://bugs.webkit.org/show_bug.cgi?id=177304

Reviewed by Brian Burg.

Tools:

WPT has now several WebDriver tests, and new ones are going to be added to cover the whole spec. This patch
adds the initial support for running W3C tests. The script import-w3c-webdriver-tests reuses parts of the W3C
test downloader to download the tests and required tools from WPT repository into WebDriverTests
directory. Tests can be run with run-webdriver-tests, a new script that works similar to other test runner
scripts. For now it shows a summary at the end of the execution, there aren't expectations yet, since we are not
ready to run those tests in the bots. Once we are ready to properly run the tests, we can add the expectations
support and run the tests in the bots.

  • Scripts/import-w3c-webdriver-tests: Added.
  • Scripts/run-webdriver-tests: Added.
  • Scripts/webkitpy/style/checker.py: Skip WebDriverTests directory since it only contains third-party python

code.

  • Scripts/webkitpy/thirdparty/init.py: Add support to autodownload mozlog and mozprocess since they are

required by the WebDriver tests.

  • Scripts/webkitpy/webdriver_tests/init.py: Added.
  • Scripts/webkitpy/webdriver_tests/webdriver_driver.py: Added.
  • Scripts/webkitpy/webdriver_tests/webdriver_driver_gtk.py: Added.
  • Scripts/webkitpy/webdriver_tests/webdriver_test_result.py: Added.
  • Scripts/webkitpy/webdriver_tests/webdriver_test_runner.py: Added.
  • Scripts/webkitpy/webdriver_tests/webdriver_test_runner_w3c.py: Added.
  • Scripts/webkitpy/webdriver_tests/webdriver_w3c_executor.py: Added.
  • Scripts/webkitpy/webdriver_tests/webdriver_w3c_web_server.py: Added.

WebDriverTests:

Add json file used by the importer and the result of running the importer.

  • imported/w3c/importer.json: Added.
  • imported/w3c/tools/pytest/: Added.
  • imported/w3c/tools/webdriver/: Added.
  • imported/w3c/tools/wptrunner/: Added.
  • imported/w3c/webdriver/: Added.
Location:
trunk
Files:
315 added
3 edited

Legend:

Unmodified
Added
Removed
  • trunk/Tools/ChangeLog

    r223988 r224014  
     12017-09-21  Carlos Garcia Campos  <cgarcia@igalia.com>
     2
     3        WebDriver: Add support to import and run W3C tests
     4        https://bugs.webkit.org/show_bug.cgi?id=177304
     5
     6        Reviewed by Brian Burg.
     7
     8        WPT has now several WebDriver tests, and new ones are going to be added to cover the whole spec. This patch
     9        adds the initial support for running W3C tests. The script import-w3c-webdriver-tests reuses parts of the W3C
     10        test downloader to download the tests and required tools from WPT repository into WebDriverTests
     11        directory. Tests can be run with run-webdriver-tests, a new script that works similar to other test runner
     12        scripts. For now it shows a summary at the end of the execution, there aren't expectations yet, since we are not
     13        ready to run those tests in the bots. Once we are ready to properly run the tests, we can add the expectations
     14        support and run the tests in the bots.
     15
     16        * Scripts/import-w3c-webdriver-tests: Added.
     17        * Scripts/run-webdriver-tests: Added.
     18        * Scripts/webkitpy/style/checker.py: Skip WebDriverTests directory since it only contains third-party python
     19        code.
     20        * Scripts/webkitpy/thirdparty/__init__.py: Add support to autodownload mozlog and mozprocess since they are
     21        required by the WebDriver tests.
     22        * Scripts/webkitpy/webdriver_tests/__init__.py: Added.
     23        * Scripts/webkitpy/webdriver_tests/webdriver_driver.py: Added.
     24        * Scripts/webkitpy/webdriver_tests/webdriver_driver_gtk.py: Added.
     25        * Scripts/webkitpy/webdriver_tests/webdriver_test_result.py: Added.
     26        * Scripts/webkitpy/webdriver_tests/webdriver_test_runner.py: Added.
     27        * Scripts/webkitpy/webdriver_tests/webdriver_test_runner_w3c.py: Added.
     28        * Scripts/webkitpy/webdriver_tests/webdriver_w3c_executor.py: Added.
     29        * Scripts/webkitpy/webdriver_tests/webdriver_w3c_web_server.py: Added.
     30
    1312017-10-25  Eric Carlson  <eric.carlson@apple.com>
    232
  • trunk/Tools/Scripts/webkitpy/style/checker.py

    r223042 r224014  
    344344_SKIPPED_FILES_WITHOUT_WARNING = [
    345345    "LayoutTests" + os.path.sep,
     346
     347    "WebDriverTests" + os.path.sep,
    346348
    347349    # Files generated by the bindings script should not be checked for style.
  • trunk/Tools/Scripts/webkitpy/thirdparty/__init__.py

    r222352 r224014  
    107107        elif '.geckodriver' in fullname:
    108108            self.install_geckodriver()
     109        elif '.mozlog' in fullname:
     110            self._install_mozlog()
     111        elif '.mozprocess' in fullname:
     112            self._install_mozprocess()
    109113
    110114    def _install_mechanize(self):
     
    119123        self._install("http://pypi.python.org/packages/source/p/pep8/pep8-0.5.0.tar.gz#md5=512a818af9979290cd619cce8e9c2e2b",
    120124                             "pep8-0.5.0/pep8.py")
     125
     126    def _install_mozlog(self):
     127        self._ensure_autoinstalled_dir_is_in_sys_path()
     128        self._install("https://pypi.python.org/packages/10/d5/d286b5dc3f40e32d2a9b3cab0b5b20a05d704958b44b4c5a9aed6472deab/mozlog-3.5.tar.gz#md5=3282c70e7037266f83d8c80119129b75",
     129                              "mozlog-3.5/mozlog")
     130
     131    def _install_mozprocess(self):
     132        self._ensure_autoinstalled_dir_is_in_sys_path()
     133        self._install("https://pypi.python.org/packages/cb/26/144dbc28d1f40e392f8a0cbee771ba624a61017f016c77ad88424d84b230/mozprocess-0.25.tar.gz#md5=07a04e6ae1a705705e4b44969fe7a182",
     134                              "mozprocess-0.25/mozprocess")
    121135
    122136    def _install_pylint(self):
Note: See TracChangeset for help on using the changeset viewer.