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

Unified Diff: third_party/WebKit/Tools/Scripts/webkitpy/layout_tests/layout_package/bot_test_expectations.py

Issue 2014063002: Run format-webkit on webkitpy code (without string conversion). (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Rebased Created 4 years, 7 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/layout_package/bot_test_expectations.py
diff --git a/third_party/WebKit/Tools/Scripts/webkitpy/layout_tests/layout_package/bot_test_expectations.py b/third_party/WebKit/Tools/Scripts/webkitpy/layout_tests/layout_package/bot_test_expectations.py
index a0b6c6c4563a05411ab6b421bc799904bb277405..b875bd2ee01a39a4f09db654318e75620839cd82 100644
--- a/third_party/WebKit/Tools/Scripts/webkitpy/layout_tests/layout_package/bot_test_expectations.py
+++ b/third_party/WebKit/Tools/Scripts/webkitpy/layout_tests/layout_package/bot_test_expectations.py
@@ -42,27 +42,31 @@ from webkitpy.layout_tests.models.test_expectations import TestExpectationLine
_log = logging.getLogger(__name__)
-# results.json v4 format:
-# {
-# 'version': 4,
-# 'builder name' : {
-# 'blinkRevision': [],
-# 'tests': {
-# 'directory' { # Each path component is a dictionary.
-# 'testname.html': {
-# 'expected' : 'FAIL', # expectation name
-# 'results': [], # Run-length encoded result.
-# 'times': [],
-# 'bugs': [], # bug urls
-# }
-# }
-# }
-# 'buildNumbers': [],
-# 'secondsSinceEpoch': [],
-# 'chromeRevision': [],
-# 'failure_map': { } # Map from letter code to expectation name.
-# },
class ResultsJSON(object):
+ """Contains the contents of a results.json file.
+
+ results.json v4 format:
+ {
+ 'version': 4,
+ 'builder name' : {
+ 'blinkRevision': [],
+ 'tests': {
+ 'directory' { # Each path component is a dictionary.
+ 'testname.html': {
+ 'expected' : 'FAIL', # Expectation name.
+ 'results': [], # Run-length encoded result.
+ 'times': [],
+ 'bugs': [], # Bug URLs.
+ }
+ }
+ }
+ }
+ 'buildNumbers': [],
+ 'secondsSinceEpoch': [],
+ 'chromeRevision': [],
+ 'failure_map': {} # Map from letter code to expectation name.
+ }
+ """
TESTS_KEY = 'tests'
FAILURE_MAP_KEY = 'failure_map'
RESULTS_KEY = 'results'

Powered by Google App Engine
This is Rietveld 408576698