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

Unified Diff: third_party/WebKit/Tools/Scripts/webkitpy/common/net/layouttestresults.py

Issue 2277303003: In update-w3c-test-expectations, handle failure to fetch results. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 4 years, 4 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/common/net/layouttestresults.py
diff --git a/third_party/WebKit/Tools/Scripts/webkitpy/common/net/layouttestresults.py b/third_party/WebKit/Tools/Scripts/webkitpy/common/net/layouttestresults.py
index 4c6e324759b1b449f4751d49ce0c42e613bcc07a..50a3dd9c9eb1432365c27c1fd0d1e58bcdd049e3 100644
--- a/third_party/WebKit/Tools/Scripts/webkitpy/common/net/layouttestresults.py
+++ b/third_party/WebKit/Tools/Scripts/webkitpy/common/net/layouttestresults.py
@@ -51,9 +51,16 @@ class LayoutTestResult(object):
return 'PASS' in self.actual_results()
def did_run_as_expected(self):
+ # TODO(qyearsley): For correctness, this should be:
+ # return not self._result_dict.get('is_unexpected', False)
+ # (Right now for expected results it's not added to the result dict
+ # but in theory it could be present.)
return 'is_unexpected' not in self._result_dict
def is_missing_image(self):
+ # TODO(qyearsley): Change this to:
+ # self._result_dict.get('is_missing_image', False)
+ # The following method should likewise be changed.
return 'is_missing_image' in self._result_dict
def is_missing_text(self):

Powered by Google App Engine
This is Rietveld 408576698