| Index: third_party/WebKit/Tools/Scripts/webkitpy/w3c/update_w3c_test_expectations.py
|
| diff --git a/third_party/WebKit/Tools/Scripts/webkitpy/w3c/update_w3c_test_expectations.py b/third_party/WebKit/Tools/Scripts/webkitpy/w3c/update_w3c_test_expectations.py
|
| index f999e44ff83ae1a385c8e36e711b86366c3f6f02..a578105edd64dee19a2663c345d67b4e82249fd0 100644
|
| --- a/third_party/WebKit/Tools/Scripts/webkitpy/w3c/update_w3c_test_expectations.py
|
| +++ b/third_party/WebKit/Tools/Scripts/webkitpy/w3c/update_w3c_test_expectations.py
|
| @@ -271,6 +271,8 @@ class W3CExpectationsLineAdder(object):
|
| file_contents = self.host.filesystem.read_text_file(expectations_file_path)
|
| marker_comment_index = file_contents.find(marker_comment)
|
| line_list = [line for line in line_list if self._test_name_from_expectation_string(line) not in file_contents]
|
| + if not line_list:
|
| + return
|
| if marker_comment_index == -1:
|
| file_contents += '\n%s\n' % marker_comment
|
| file_contents += '\n'.join(line_list)
|
|
|