Teach TestExpectationSerializer about parsed expectations.
authordglazkov@chromium.org <dglazkov@chromium.org@268f45cc-cd09-0410-ab3c-d52691b4dbfc>
Mon, 1 Aug 2011 22:22:27 +0000 (22:22 +0000)
committerdglazkov@chromium.org <dglazkov@chromium.org@268f45cc-cd09-0410-ab3c-d52691b4dbfc>
Mon, 1 Aug 2011 22:22:27 +0000 (22:22 +0000)
commitfd2788e480b4dbde60e3e4975b62f7e7b3214af7
tree2026229d5ef8aafeef4189342afb8cb7b56a77b8
parent9531eeef0eaccdbb1c320dbaa25570ec124a248a
Teach TestExpectationSerializer about parsed expectations.
https://bugs.webkit.org/show_bug.cgi?id=65444

This is a bit largish in size, but the essentials are:
* TestExpectationSerializer, given a parsed TestExpectationLine, can now spit out a pretty string.
* We now store original content of the expectation line on TestExpectationLine.
* Lots of tests.

Reviewed by Adam Barth.

* Scripts/webkitpy/layout_tests/models/test_configuration.py: Fixed an issue where we didn't
    populate macros correctly, also fixed an issue where we incorrectly returned an empty list
    for all configurations.
* Scripts/webkitpy/layout_tests/models/test_configuration_unittest.py: Added tests for those.
* Scripts/webkitpy/layout_tests/models/test_expectations.py: Removed vestiges of code long gone,
    refactored TestExpectationsSerializer to recognize and correctly serialize parsed TestExpectationLine instances,
    changed to store and use TestExpectationLine.original_string.
* Scripts/webkitpy/layout_tests/models/test_expectations_unittest.py: Added tests.

git-svn-id: https://svn.webkit.org/repository/webkit/trunk@92147 268f45cc-cd09-0410-ab3c-d52691b4dbfc
Tools/ChangeLog
Tools/Scripts/webkitpy/layout_tests/models/test_configuration.py
Tools/Scripts/webkitpy/layout_tests/models/test_configuration_unittest.py
Tools/Scripts/webkitpy/layout_tests/models/test_expectations.py
Tools/Scripts/webkitpy/layout_tests/models/test_expectations_unittest.py