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

Unified Diff: third_party/WebKit/Tools/Scripts/webkitpy/layout_tests/models/test_results.py

Issue 1806393002: Run yapf on files in webkit/layout_tests/. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: 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/models/test_results.py
diff --git a/third_party/WebKit/Tools/Scripts/webkitpy/layout_tests/models/test_results.py b/third_party/WebKit/Tools/Scripts/webkitpy/layout_tests/models/test_results.py
index 2e313cad6199b7314ef50a66b8d31cce2097cf5e..65943d0ddd92390417e29a83c45d5f5f346f24f2 100644
--- a/third_party/WebKit/Tools/Scripts/webkitpy/layout_tests/models/test_results.py
+++ b/third_party/WebKit/Tools/Scripts/webkitpy/layout_tests/models/test_results.py
@@ -38,7 +38,16 @@ class TestResult(object):
def loads(string):
return cPickle.loads(string)
- def __init__(self, test_name, failures=None, test_run_time=None, has_stderr=False, reftest_type=None, pid=None, references=None, device_failed=False, has_repaint_overlay=False):
+ def __init__(self,
+ test_name,
+ failures=None,
+ test_run_time=None,
+ has_stderr=False,
+ reftest_type=None,
+ pid=None,
+ references=None,
+ device_failed=False,
+ has_repaint_overlay=False):
self.test_name = test_name
self.failures = failures or []
self.test_run_time = test_run_time or 0 # The time taken to execute the test itself.
@@ -59,9 +68,7 @@ class TestResult(object):
self.test_number = None
def __eq__(self, other):
- return (self.test_name == other.test_name and
- self.failures == other.failures and
- self.test_run_time == other.test_run_time)
+ return (self.test_name == other.test_name and self.failures == other.failures and self.test_run_time == other.test_run_time)
def __ne__(self, other):
return not (self == other)

Powered by Google App Engine
This is Rietveld 408576698