Changeset 128386 in webkit


Ignore:
Timestamp:
Sep 12, 2012 5:13:06 PM (12 years ago)
Author:
dpranke@chromium.org
Message:

refactor TestExpectations tokenization slightly in preparation for the new syntax
https://bugs.webkit.org/show_bug.cgi?id=96564

Reviewed by Ojan Vafai.

This change changes how we will tokenize/lex the
TestExpectations files, in preparation for supporting both the
old syntax and the new one. This change by itself should be a
no-op.

  • Scripts/webkitpy/layout_tests/models/test_expectations.py:

(TestExpectationParser._tokenize_line):
(TestExpectationParser):
(TestExpectationParser._tokenize_line_using_old_format):
(TestExpectationParser._tokenize_line_using_new_format):

Location:
trunk/Tools
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • trunk/Tools/ChangeLog

    r128385 r128386  
     12012-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
    1192012-09-12  Dirk Pranke  <dpranke@chromium.org>
    220
  • trunk/Tools/Scripts/webkitpy/layout_tests/models/test_expectations.py

    r127058 r128386  
    208208    @classmethod
    209209    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):
    210215        """Tokenizes a line from TestExpectations and returns an unparsed TestExpectationLine instance.
    211216
     
    245250
    246251        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
    247257
    248258    @classmethod
Note: See TracChangeset for help on using the changeset viewer.