diff options
author | Simon Hausmann <simon.hausmann@digia.com> | 2012-11-07 11:22:47 +0100 |
---|---|---|
committer | Simon Hausmann <simon.hausmann@digia.com> | 2012-11-07 11:22:47 +0100 |
commit | cfd86b747d32ac22246a1aa908eaa720c63a88c1 (patch) | |
tree | 24d68c6f61c464ecba1e05670b80390ea3b0e50c /Tools/Scripts/webkitpy/common/checkout/baselineoptimizer_unittest.py | |
parent | 69d7c744c9de19d152dbe2d8e46eb7dfd4511d1a (diff) | |
download | qtwebkit-cfd86b747d32ac22246a1aa908eaa720c63a88c1.tar.gz |
Imported WebKit commit 20271caf2e2c016d5cef40184cddeefeac4f1876 (http://svn.webkit.org/repository/webkit/trunk@133733)
New snapshot that contains all previous fixes as well as build fix for latest QtMultimedia API changes.
Diffstat (limited to 'Tools/Scripts/webkitpy/common/checkout/baselineoptimizer_unittest.py')
-rw-r--r-- | Tools/Scripts/webkitpy/common/checkout/baselineoptimizer_unittest.py | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/Tools/Scripts/webkitpy/common/checkout/baselineoptimizer_unittest.py b/Tools/Scripts/webkitpy/common/checkout/baselineoptimizer_unittest.py index d44f71e91..a5fd06568 100644 --- a/Tools/Scripts/webkitpy/common/checkout/baselineoptimizer_unittest.py +++ b/Tools/Scripts/webkitpy/common/checkout/baselineoptimizer_unittest.py @@ -37,12 +37,12 @@ from webkitpy.common.host_mock import MockHost class TestBaselineOptimizer(BaselineOptimizer): def __init__(self, mock_results_by_directory): host = MockHost() - BaselineOptimizer.__init__(self, host) + BaselineOptimizer.__init__(self, host, host.port_factory.all_port_names()) self._mock_results_by_directory = mock_results_by_directory # We override this method for testing so we don't have to construct an # elaborate mock file system. - def _read_results_by_directory(self, baseline_name): + def read_results_by_directory(self, baseline_name): return self._mock_results_by_directory def _move_baselines(self, baseline_name, results_by_directory, new_results_by_directory): @@ -64,7 +64,7 @@ class BaselineOptimizerTest(unittest.TestCase): host.filesystem.write_binary_file('/mock-checkout/LayoutTests/platform/chromium-win/another/test-expected.txt', 'result A') host.filesystem.write_binary_file('/mock-checkout/LayoutTests/platform/chromium-mac/another/test-expected.txt', 'result A') host.filesystem.write_binary_file('/mock-checkout/LayoutTests/platform/chromium/another/test-expected.txt', 'result B') - baseline_optimizer = BaselineOptimizer(host) + baseline_optimizer = BaselineOptimizer(host, host.port_factory.all_port_names()) baseline_optimizer._move_baselines('another/test-expected.txt', { 'LayoutTests/platform/chromium-win': 'aaa', 'LayoutTests/platform/chromium-mac': 'aaa', |