⚠ Archived content — this site is no longer maintained.   Current WebKit documentation is at docs.webkit.org.

Changeset 286817 in webkit


Ignore:
Timestamp:
Dec 9, 2021, 4:30:40 PM (5 years ago)
Author:
Lauro Moura
Message:

[webkitpy] Make check-webkit-style check WebDriverTests/TestExpectations.json
https://bugs.webkit.org/show_bug.cgi?id=213453

Reviewed by Adrian Perez de Castro.

While the WebDriver tests are imported and mostly ignored by
check-webkit-style, the script must check TestExpectations.json
to avoid commiting invalid json data and breaking the bots.

  • Scripts/webkitpy/style/checker.py:
  • Scripts/webkitpy/style/checker_unittest.py:

(CheckerDispatcherSkipTest._assert_should_skip_without_warning): Pass
a valid error handler so the JSONChecker can be instantiated.
(CheckerDispatcherSkipTest.test_should_skip_without_warningfalse):

Location:
trunk/Tools
Files:
3 edited

Legend:

Unmodified
Added
Removed
  • trunk/Tools/ChangeLog

    r286816 r286817  
     12021-12-09  Lauro Moura  <lmoura@igalia.com>
     2
     3        [webkitpy] Make check-webkit-style check WebDriverTests/TestExpectations.json
     4        https://bugs.webkit.org/show_bug.cgi?id=213453
     5
     6        Reviewed by Adrian Perez de Castro.
     7
     8        While the WebDriver tests are imported and mostly ignored by
     9        check-webkit-style, the script must check TestExpectations.json
     10        to avoid commiting invalid json data and breaking the bots.
     11
     12        * Scripts/webkitpy/style/checker.py:
     13        * Scripts/webkitpy/style/checker_unittest.py:
     14        (CheckerDispatcherSkipTest._assert_should_skip_without_warning): Pass
     15        a valid error handler so the JSONChecker can be instantiated.
     16        (CheckerDispatcherSkipTest.test_should_skip_without_warning__false):
     17
    1182021-12-09  Alex Christensen  <achristensen@webkit.org>
    219
  • trunk/Tools/Scripts/webkitpy/style/checker.py

    r285819 r286817  
    369369_NEVER_SKIPPED_FILES = _NEVER_SKIPPED_JS_FILES + [
    370370    'TestExpectations',
     371    'TestExpectations.json',
    371372    '.py'
    372373]
  • trunk/Tools/Scripts/webkitpy/style/checker_unittest.py

    r276082 r286817  
    320320        # Check the file type before asserting the return value.
    321321        checker = self._dispatcher.dispatch(file_path=path,
    322                                             handle_style_error=None,
     322                                            handle_style_error=DefaultStyleErrorHandler('', None, None, []),
    323323                                            min_confidence=3,
    324324                                            commit_queue=False)
     
    349349                 os.path.join('LayoutTests', 'ChangeLog'),
    350350                 os.path.join('LayoutTests', 'foo.py'),
     351                 os.path.join('WebDriverTests', 'ChangeLog'),
     352                 os.path.join('WebDriverTests', 'TestExpectations.json'),
    351353        ]
    352354
Note: See TracChangeset for help on using the changeset viewer.