Changeset 128386 in webkit
- Timestamp:
- Sep 12, 2012 5:13:06 PM (12 years ago)
- Location:
- trunk/Tools
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/Tools/ChangeLog
r128385 r128386 1 2012-09-12 Dirk Pranke <dpranke@chromium.org> 2 3 refactor TestExpectations tokenization slightly in preparation for the new syntax 4 https://bugs.webkit.org/show_bug.cgi?id=96564 5 6 Reviewed by Ojan Vafai. 7 8 This change changes how we will tokenize/lex the 9 TestExpectations files, in preparation for supporting both the 10 old syntax and the new one. This change by itself should be a 11 no-op. 12 13 * Scripts/webkitpy/layout_tests/models/test_expectations.py: 14 (TestExpectationParser._tokenize_line): 15 (TestExpectationParser): 16 (TestExpectationParser._tokenize_line_using_old_format): 17 (TestExpectationParser._tokenize_line_using_new_format): 18 1 19 2012-09-12 Dirk Pranke <dpranke@chromium.org> 2 20 -
trunk/Tools/Scripts/webkitpy/layout_tests/models/test_expectations.py
r127058 r128386 208 208 @classmethod 209 209 def _tokenize_line(cls, filename, expectation_string, line_number): 210 # FIXME: Add in support for the new format as well. 211 return cls._tokenize_line_using_old_format(filename, expectation_string, line_number) 212 213 @classmethod 214 def _tokenize_line_using_old_format(cls, filename, expectation_string, line_number): 210 215 """Tokenizes a line from TestExpectations and returns an unparsed TestExpectationLine instance. 211 216 … … 245 250 246 251 return expectation_line 252 253 @classmethod 254 def _tokenize_line_using_new_format(cls, filename, expectation_string, line_number): 255 # FIXME: implement :). 256 raise NotImplementedError 247 257 248 258 @classmethod
Note: See TracChangeset
for help on using the changeset viewer.