OLD | NEW |
1 # Copyright (c) 2010 Google Inc. All rights reserved. | 1 # Copyright (c) 2010 Google Inc. All rights reserved. |
2 # | 2 # |
3 # Redistribution and use in source and binary forms, with or without | 3 # Redistribution and use in source and binary forms, with or without |
4 # modification, are permitted provided that the following conditions are | 4 # modification, are permitted provided that the following conditions are |
5 # met: | 5 # met: |
6 # | 6 # |
7 # * Redistributions of source code must retain the above copyright | 7 # * Redistributions of source code must retain the above copyright |
8 # notice, this list of conditions and the following disclaimer. | 8 # notice, this list of conditions and the following disclaimer. |
9 # * Redistributions in binary form must reproduce the above | 9 # * Redistributions in binary form must reproduce the above |
10 # copyright notice, this list of conditions and the following disclaimer | 10 # copyright notice, this list of conditions and the following disclaimer |
(...skipping 14 matching lines...) Expand all Loading... |
25 # THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT | 25 # THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT |
26 # (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE | 26 # (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE |
27 # OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. | 27 # OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. |
28 | 28 |
29 """Starts a local HTTP server which displays layout test failures (given a test | 29 """Starts a local HTTP server which displays layout test failures (given a test |
30 results directory), provides comparisons of expected and actual results (both | 30 results directory), provides comparisons of expected and actual results (both |
31 images and text) and allows one-click rebaselining of tests. | 31 images and text) and allows one-click rebaselining of tests. |
32 """ | 32 """ |
33 | 33 |
34 from webkitpy.common.host import Host | 34 from webkitpy.common.host import Host |
35 from webkitpy.common.net.layouttestresults import LayoutTestResults | 35 from webkitpy.common.net.layout_test_results import LayoutTestResults |
36 from webkitpy.layout_tests.layout_package import json_results_generator | 36 from webkitpy.layout_tests.layout_package import json_results_generator |
37 from webkitpy.tool.commands.abstract_local_server_command import AbstractLocalSe
rverCommand | 37 from webkitpy.tool.commands.abstract_local_server_command import AbstractLocalSe
rverCommand |
38 from webkitpy.tool.servers.rebaseline_server import get_test_baselines, Rebaseli
neHTTPServer, STATE_NEEDS_REBASELINE | 38 from webkitpy.tool.servers.rebaseline_server import get_test_baselines, Rebaseli
neHTTPServer, STATE_NEEDS_REBASELINE |
39 | 39 |
40 | 40 |
41 class TestConfig(object): | 41 class TestConfig(object): |
42 | 42 |
43 def __init__(self, test_port, layout_tests_directory, results_directory, pla
tforms, host): | 43 def __init__(self, test_port, layout_tests_directory, results_directory, pla
tforms, host): |
44 self.test_port = test_port | 44 self.test_port = test_port |
45 self.layout_tests_directory = layout_tests_directory | 45 self.layout_tests_directory = layout_tests_directory |
(...skipping 51 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
97 self._gather_baselines(results_json) | 97 self._gather_baselines(results_json) |
98 | 98 |
99 return { | 99 return { |
100 'test_config': self._test_config, | 100 'test_config': self._test_config, |
101 "results_json": results_json, | 101 "results_json": results_json, |
102 "platforms_json": { | 102 "platforms_json": { |
103 'platforms': platforms, | 103 'platforms': platforms, |
104 'defaultPlatform': port.name(), | 104 'defaultPlatform': port.name(), |
105 }, | 105 }, |
106 } | 106 } |
OLD | NEW |