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

Unified Diff: third_party/WebKit/Tools/Scripts/webkitpy/layout_tests/port/mock_drt.py

Issue 1783073002: Run auto-formatter on files in webkitpy/layout_tests/. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Rebased Created 4 years, 9 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 side-by-side diff with in-line comments
Download patch
Index: third_party/WebKit/Tools/Scripts/webkitpy/layout_tests/port/mock_drt.py
diff --git a/third_party/WebKit/Tools/Scripts/webkitpy/layout_tests/port/mock_drt.py b/third_party/WebKit/Tools/Scripts/webkitpy/layout_tests/port/mock_drt.py
index 263f7acf8bca519bf98c81167312dd94f5b30d26..cec9edaf932882861d687c197082d5cf725b6e8a 100644
--- a/third_party/WebKit/Tools/Scripts/webkitpy/layout_tests/port/mock_drt.py
+++ b/third_party/WebKit/Tools/Scripts/webkitpy/layout_tests/port/mock_drt.py
@@ -164,8 +164,8 @@ def parse_options(argv):
return None
options = optparse.Values({
- 'actual_directory': get_arg('--actual-directory'),
- 'platform': get_arg('--platform'),
+ 'actual_directory': get_arg('--actual-directory'),
+ 'platform': get_arg('--platform'),
'virtual_test_suite_base': get_arg('--virtual-test-suite-base'),
'virtual_test_suite_name': get_arg('--virtual-test-suite-name'),
})
@@ -173,6 +173,7 @@ def parse_options(argv):
class MockDRT(object):
+
def __init__(self, options, args, host, stdin, stdout, stderr):
self._options = options
self._args = args
@@ -224,7 +225,8 @@ class MockDRT(object):
def output_for_test(self, test_input, is_reftest):
port = self._port
if self._options.virtual_test_suite_name:
- test_input.test_name = test_input.test_name.replace(self._options.virtual_test_suite_base, self._options.virtual_test_suite_name)
+ test_input.test_name = test_input.test_name.replace(
+ self._options.virtual_test_suite_base, self._options.virtual_test_suite_name)
actual_text = port.expected_text(test_input.test_name)
actual_audio = port.expected_audio(test_input.test_name)
actual_image = None

Powered by Google App Engine
This is Rietveld 408576698