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

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

Issue 2409903002: When rebaselining testharness tests with new all-PASS results, remove the baseline. (Closed)
Patch Set: Undo docstrings that no longer apply Created 4 years, 2 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/testharness_results.py
diff --git a/third_party/WebKit/Tools/Scripts/webkitpy/layout_tests/models/testharness_results.py b/third_party/WebKit/Tools/Scripts/webkitpy/layout_tests/models/testharness_results.py
index ccebc371c4605b6cbf660c5269c08b3ab5a93c23..56bc0ee113d9566dfb3a488dced7c4e0799c32da 100644
--- a/third_party/WebKit/Tools/Scripts/webkitpy/layout_tests/models/testharness_results.py
+++ b/third_party/WebKit/Tools/Scripts/webkitpy/layout_tests/models/testharness_results.py
@@ -10,6 +10,13 @@ TESTHARNESSREPORT_HEADER = 'This is a testharness.js-based test.'
TESTHARNESSREPORT_FOOTER = 'Harness: the test ran to completion.'
+def is_all_pass_testharness_result(content_text):
+ """Returns whether |content_text| is a testharness result that only contains PASS lines."""
+ return (is_testharness_output(content_text) and
+ is_testharness_output_passing(content_text) and
+ not is_testharness_output_with_console_errors_or_warnings(content_text))
+
+
def is_testharness_output(content_text):
"""Returns whether the content_text in parameter is a testharness output."""

Powered by Google App Engine
This is Rietveld 408576698