diff options
author | Allan Sandfeld Jensen <allan.jensen@digia.com> | 2013-09-13 12:51:20 +0200 |
---|---|---|
committer | The Qt Project <gerrit-noreply@qt-project.org> | 2013-09-19 20:50:05 +0200 |
commit | d441d6f39bb846989d95bcf5caf387b42414718d (patch) | |
tree | e367e64a75991c554930278175d403c072de6bb8 /Tools/Scripts/webkitpy/common/host_mock.py | |
parent | 0060b2994c07842f4c59de64b5e3e430525c4b90 (diff) | |
download | qtwebkit-d441d6f39bb846989d95bcf5caf387b42414718d.tar.gz |
Import Qt5x2 branch of QtWebkit for Qt 5.2
Importing a new snapshot of webkit.
Change-Id: I2d01ad12cdc8af8cb015387641120a9d7ea5f10c
Reviewed-by: Allan Sandfeld Jensen <allan.jensen@digia.com>
Diffstat (limited to 'Tools/Scripts/webkitpy/common/host_mock.py')
-rw-r--r-- | Tools/Scripts/webkitpy/common/host_mock.py | 12 |
1 files changed, 4 insertions, 8 deletions
diff --git a/Tools/Scripts/webkitpy/common/host_mock.py b/Tools/Scripts/webkitpy/common/host_mock.py index 8b508bf8f..be238463d 100644 --- a/Tools/Scripts/webkitpy/common/host_mock.py +++ b/Tools/Scripts/webkitpy/common/host_mock.py @@ -35,15 +35,15 @@ from webkitpy.common.system.systemhost_mock import MockSystemHost from webkitpy.common.watchlist.watchlist_mock import MockWatchList # New-style ports need to move down into webkitpy.common. -from webkitpy.layout_tests.port.factory import PortFactory -from webkitpy.layout_tests.port.test import add_unit_tests_to_mock_filesystem +from webkitpy.port.factory import PortFactory +from webkitpy.port.test import add_unit_tests_to_mock_filesystem class MockHost(MockSystemHost): - def __init__(self, log_executive=False, executive_throws_when_run=None, initialize_scm_by_default=True): + def __init__(self, log_executive=False, executive_throws_when_run=None, initialize_scm_by_default=True, web=None): MockSystemHost.__init__(self, log_executive, executive_throws_when_run) add_unit_tests_to_mock_filesystem(self.filesystem) - self.web = MockWeb() + self.web = web or MockWeb() self._checkout = MockCheckout() self._scm = None @@ -53,7 +53,6 @@ class MockHost(MockSystemHost): self.initialize_scm() self.bugs = MockBugzilla() self.buildbot = MockBuildBot() - self._chromium_buildbot = MockBuildBot() # Note: We're using a real PortFactory here. Tests which don't wish to depend # on the list of known ports should override this with a MockPortFactory. @@ -73,9 +72,6 @@ class MockHost(MockSystemHost): def checkout(self): return self._checkout - def chromium_buildbot(self): - return self._chromium_buildbot - def watch_list(self): return self._watch_list |