Index: third_party/WebKit/Tools/Scripts/webkitpy/layout_tests/controllers/test_result_writer.py |
diff --git a/third_party/WebKit/Tools/Scripts/webkitpy/layout_tests/controllers/test_result_writer.py b/third_party/WebKit/Tools/Scripts/webkitpy/layout_tests/controllers/test_result_writer.py |
index 127e1e6014cfdbfbb20798f102eca0048c3cd1e2..4a83bb74ad040b90ef79a855d7fa0c61bf9199d3 100644 |
--- a/third_party/WebKit/Tools/Scripts/webkitpy/layout_tests/controllers/test_result_writer.py |
+++ b/third_party/WebKit/Tools/Scripts/webkitpy/layout_tests/controllers/test_result_writer.py |
@@ -96,6 +96,11 @@ def write_test_result(filesystem, port, results_directory, test_name, driver_out |
writer.create_repaint_overlay_result(driver_output.text, expected_driver_output.text) |
+def baseline_name(filesystem, test_name, suffix): |
+ base = filesystem.splitext(test_name)[0] |
+ return '%s%s.%s' % (base, TestResultWriter.FILENAME_SUFFIX_EXPECTED, suffix) |
+ |
+ |
class TestResultWriter(object): |
"""A class which handles all writing operations to the result directory.""" |