| 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 12 matching lines...) Expand all Loading... |
| 23 # LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, | 23 # LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, |
| 24 # DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY | 24 # DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY |
| 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 from webkitpy.common import system | |
| 34 from webkitpy.common.host import Host | 33 from webkitpy.common.host import Host |
| 35 from webkitpy.common.net.layouttestresults import for_each_test, JSONTestResult | 34 from webkitpy.common.net.layouttestresults import for_each_test, JSONTestResult |
| 36 from webkitpy.layout_tests.layout_package import json_results_generator | 35 from webkitpy.layout_tests.layout_package import json_results_generator |
| 37 from webkitpy.tool.commands.abstractlocalservercommand import AbstractLocalServe
rCommand | 36 from webkitpy.tool.commands.abstractlocalservercommand import AbstractLocalServe
rCommand |
| 38 from webkitpy.tool.servers.rebaselineserver import get_test_baselines, Rebaselin
eHTTPServer, STATE_NEEDS_REBASELINE | 37 from webkitpy.tool.servers.rebaselineserver import get_test_baselines, Rebaselin
eHTTPServer, STATE_NEEDS_REBASELINE |
| 39 | 38 |
| 40 | 39 |
| 41 class TestConfig(object): | 40 class TestConfig(object): |
| 42 | 41 |
| 43 def __init__(self, test_port, layout_tests_directory, results_directory, pla
tforms, host): | 42 def __init__(self, test_port, layout_tests_directory, results_directory, pla
tforms, host): |
| (...skipping 49 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 93 self._gather_baselines(results_json) | 92 self._gather_baselines(results_json) |
| 94 | 93 |
| 95 return { | 94 return { |
| 96 'test_config': self._test_config, | 95 'test_config': self._test_config, |
| 97 "results_json": results_json, | 96 "results_json": results_json, |
| 98 "platforms_json": { | 97 "platforms_json": { |
| 99 'platforms': platforms, | 98 'platforms': platforms, |
| 100 'defaultPlatform': port.name(), | 99 'defaultPlatform': port.name(), |
| 101 }, | 100 }, |
| 102 } | 101 } |
| OLD | NEW |