| Index: third_party/WebKit/Tools/Scripts/webkitpy/layout_tests/models/test_expectations.py
|
| diff --git a/third_party/WebKit/Tools/Scripts/webkitpy/layout_tests/models/test_expectations.py b/third_party/WebKit/Tools/Scripts/webkitpy/layout_tests/models/test_expectations.py
|
| index 20a05711e9cc6d3e967669e1868381c7f4e3b6d9..5cfa0f89a202014bf51a69f7e80bc01799e0eda3 100644
|
| --- a/third_party/WebKit/Tools/Scripts/webkitpy/layout_tests/models/test_expectations.py
|
| +++ b/third_party/WebKit/Tools/Scripts/webkitpy/layout_tests/models/test_expectations.py
|
| @@ -173,7 +173,9 @@ class TestExpectationParser(object):
|
| if self.NEEDS_REBASELINE_MODIFIER in expectations or self.NEEDS_MANUAL_REBASELINE_MODIFIER in expectations:
|
| for test in expectation_line.matching_tests:
|
| if self._port.reference_files(test):
|
| - expectation_line.warnings.append('A reftest cannot be marked as NeedsRebaseline/NeedsManualRebaseline')
|
| + text_expected_filename = self._port.expected_filename(test, '.txt')
|
| + if not self._port.host.filesystem.exists(text_expected_filename):
|
| + expectation_line.warnings.append('A reftest without text expectation cannot be marked as NeedsRebaseline/NeedsManualRebaseline')
|
|
|
| specifiers = [specifier.lower() for specifier in expectation_line.specifiers]
|
| if (self.REBASELINE_MODIFIER in expectations or self.NEEDS_REBASELINE_MODIFIER in expectations) and ('debug' in specifiers or 'release' in specifiers):
|
|
|