Changeset 89962 in webkit


Ignore:
Timestamp:
Jun 28, 2011 2:44:17 PM (13 years ago)
Author:
eric@webkit.org
Message:

2011-06-28 Eric Seidel <eric@webkit.org>

Reviewed by Tony Chang.

new-run-webkit-tests needs a --webkit-test-runner option
https://bugs.webkit.org/show_bug.cgi?id=63439

This was accidentally fixed in bug 63501 as well.
The root problem here was that the webkit unit tests were not using
enough mocks. I've fixed them here to use more mocks
which should unbreak windows.

  • Scripts/webkitpy/layout_tests/port/webkit_unittest.py:
Location:
trunk/Tools
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • trunk/Tools/ChangeLog

    r89949 r89962  
     12011-06-28  Eric Seidel  <eric@webkit.org>
     2
     3        Reviewed by Tony Chang.
     4
     5        new-run-webkit-tests needs a --webkit-test-runner option
     6        https://bugs.webkit.org/show_bug.cgi?id=63439
     7
     8        This was accidentally fixed in bug 63501 as well.
     9        The root problem here was that the webkit unit tests were not using
     10        enough mocks.  I've fixed them here to use more mocks
     11        which should unbreak windows.
     12
     13        * Scripts/webkitpy/layout_tests/port/webkit_unittest.py:
     14
    1152011-06-28  Eric Seidel  <eric@webkit.org>
    216
  • trunk/Tools/Scripts/webkitpy/layout_tests/port/webkit_unittest.py

    r89949 r89962  
    3434from webkitpy.layout_tests.port import port_testcase
    3535
    36 from webkitpy.tool.mocktool import MockExecutive
    37 from webkitpy.tool.mocktool import MockOptions
     36from webkitpy.tool.mocktool import MockExecutive, MockOptions, MockUser
    3837
    3938
     
    4140    def __init__(self, symbol_list=None, feature_list=None,
    4241                 expectations_file=None, skips_file=None,
    43                  executive=None, **kwargs):
     42                 executive=None, filesystem=None, user=None,
     43                 **kwargs):
    4444        self.symbol_list = symbol_list
    4545        self.feature_list = feature_list
     
    4747        self.skips_file = skips_file
    4848        executive = executive or MockExecutive(should_log=False)
    49         WebKitPort.__init__(self, executive=executive, **kwargs)
     49        filesystem = filesystem or filesystem_mock.MockFileSystem()
     50        user = user or MockUser()
     51        WebKitPort.__init__(self, executive=executive, filesystem=filesystem, user=MockUser(), **kwargs)
    5052
    5153    def _runtime_feature_list(self):
Note: See TracChangeset for help on using the changeset viewer.