Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(7)

Side by Side Diff: third_party/WebKit/Tools/Scripts/webkitpy/tool/commands/rebaseline_server.py

Issue 2256793002: Make docstrings more consistent using format-webkitpy. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Make indentation of final quote based on parse tree (indentation prior to docstring node) rather th… Created 4 years, 3 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
OLDNEW
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 10 matching lines...) Expand all
21 # OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, 21 # OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL,
22 # SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT 22 # SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT
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
33 from webkitpy.common.host import Host 34 from webkitpy.common.host import Host
34 from webkitpy.common.net.layouttestresults import LayoutTestResults 35 from webkitpy.common.net.layouttestresults import LayoutTestResults
35 from webkitpy.layout_tests.layout_package import json_results_generator 36 from webkitpy.layout_tests.layout_package import json_results_generator
36 from webkitpy.tool.commands.abstract_local_server_command import AbstractLocalSe rverCommand 37 from webkitpy.tool.commands.abstract_local_server_command import AbstractLocalSe rverCommand
37 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
38 39
39 40
40 class TestConfig(object): 41 class TestConfig(object):
41 42
(...skipping 54 matching lines...) Expand 10 before | Expand all | Expand 10 after
96 self._gather_baselines(results_json) 97 self._gather_baselines(results_json)
97 98
98 return { 99 return {
99 'test_config': self._test_config, 100 'test_config': self._test_config,
100 "results_json": results_json, 101 "results_json": results_json,
101 "platforms_json": { 102 "platforms_json": {
102 'platforms': platforms, 103 'platforms': platforms,
103 'defaultPlatform': port.name(), 104 'defaultPlatform': port.name(),
104 }, 105 },
105 } 106 }
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698