Reviewed by Darin.
authorap <ap@268f45cc-cd09-0410-ab3c-d52691b4dbfc>
Mon, 5 Mar 2007 17:36:24 +0000 (17:36 +0000)
committerap <ap@268f45cc-cd09-0410-ab3c-d52691b4dbfc>
Mon, 5 Mar 2007 17:36:24 +0000 (17:36 +0000)
commit9f0bd555b8463b4bcfb0146f108a584a30fdf323
tree42728887fa1387f1bc0f5175077dce7368aa35b1
parenta472144ca7720aa3edc16e996d2065db171b839c
    Reviewed by Darin.

        http://bugs.webkit.org/show_bug.cgi?id=12954
        XPath relative operations are implemented incorrectly

WebCore:
        * xml/XPathPredicate.cpp:
        (WebCore::XPath::NumericOp::doEvaluate):
        (WebCore::XPath::EqTestOp::compare):
        (WebCore::XPath::EqTestOp::doEvaluate):
        Reimplemented relative equality operations to match the spec.

        * xml/XPathPredicate.h:
        (WebCore::XPath::NumericOp::):
        (WebCore::XPath::EqTestOp::):
        Moved relative operations to EqTestOp.

        * xml/XPathGrammar.y:
        * xml/XPathParser.cpp:
        (WebCore::XPath::Parser::nextTokenInternal):
        (WebCore::XPath::Parser::lex):
        Adapted for the above changes.

LayoutTests:
        * fast/xpath/4XPath/Core/test_boolean_expr-expected.txt: Added.
        * fast/xpath/4XPath/Core/test_boolean_expr.html: Added.

        * fast/xpath/4XPath/Borrowed/cz_20030217-expected.txt: Added.
        * fast/xpath/4XPath/Borrowed/cz_20030217.html: Added.
        * fast/xpath/4XPath/Borrowed/kd_20010423-expected.txt: Added.
        * fast/xpath/4XPath/Borrowed/kd_20010423.html: Added.
        * fast/xpath/4XPath/Borrowed/od_20000608-expected.txt: Added.
        * fast/xpath/4XPath/Borrowed/od_20000608.html: Added.
        * fast/xpath/4XPath/Borrowed/resources/od_20000608.xml: Added.
        * fast/xpath/4XPath/Borrowed/rs_20010831-expected.txt: Added.
        * fast/xpath/4XPath/Borrowed/rs_20010831.html: Added.
        * fast/xpath/4XPath/Borrowed/sr_20021217-expected.txt: Added.
        * fast/xpath/4XPath/Borrowed/sr_20021217.html: Added.
        Added a bunch of XPath tests that already passed.

        * fast/xpath/4XPath/Borrowed/namespace-nodes-expected.txt: Added.
        * fast/xpath/4XPath/Borrowed/namespace-nodes.html: Added.
        * fast/xpath/namespace-nodes-expected.txt: Removed.
        * fast/xpath/namespace-nodes.html: Removed.
        Moved a previously imported 4XPath test.

git-svn-id: http://svn.webkit.org/repository/webkit/trunk@19963 268f45cc-cd09-0410-ab3c-d52691b4dbfc
40 files changed:
LayoutTests/ChangeLog
LayoutTests/fast/xpath/4XPath/Borrowed/cz_20030217-expected.txt [new file with mode: 0644]
LayoutTests/fast/xpath/4XPath/Borrowed/cz_20030217.html [new file with mode: 0644]
LayoutTests/fast/xpath/4XPath/Borrowed/kd_20010423-expected.txt [new file with mode: 0644]
LayoutTests/fast/xpath/4XPath/Borrowed/kd_20010423.html [new file with mode: 0644]
LayoutTests/fast/xpath/4XPath/Borrowed/namespace-nodes-expected.txt [moved from LayoutTests/fast/xpath/namespace-nodes-expected.txt with 100% similarity]
LayoutTests/fast/xpath/4XPath/Borrowed/namespace-nodes.html [moved from LayoutTests/fast/xpath/namespace-nodes.html with 100% similarity]
LayoutTests/fast/xpath/4XPath/Borrowed/od_20000608-expected.txt [new file with mode: 0644]
LayoutTests/fast/xpath/4XPath/Borrowed/od_20000608.html [new file with mode: 0644]
LayoutTests/fast/xpath/4XPath/Borrowed/resources/od_20000608.xml [new file with mode: 0644]
LayoutTests/fast/xpath/4XPath/Borrowed/rs_20010831-expected.txt [new file with mode: 0644]
LayoutTests/fast/xpath/4XPath/Borrowed/rs_20010831.html [new file with mode: 0644]
LayoutTests/fast/xpath/4XPath/Borrowed/sr_20021217-expected.txt [new file with mode: 0644]
LayoutTests/fast/xpath/4XPath/Borrowed/sr_20021217.html [new file with mode: 0644]
LayoutTests/fast/xpath/4XPath/Core/test.js [new file with mode: 0644]
LayoutTests/fast/xpath/4XPath/Core/test_boolean_expr-expected.txt [new file with mode: 0644]
LayoutTests/fast/xpath/4XPath/Core/test_boolean_expr.html [new file with mode: 0644]
LayoutTests/fast/xpath/4XPath/Core/test_core_functions-expected.txt [new file with mode: 0644]
LayoutTests/fast/xpath/4XPath/Core/test_core_functions.html [new file with mode: 0644]
LayoutTests/fast/xpath/4XPath/Core/test_literal_expr-expected.txt [new file with mode: 0644]
LayoutTests/fast/xpath/4XPath/Core/test_literal_expr.html [new file with mode: 0644]
LayoutTests/fast/xpath/4XPath/Core/test_location_path-expected.txt [new file with mode: 0644]
LayoutTests/fast/xpath/4XPath/Core/test_location_path.html [new file with mode: 0644]
LayoutTests/fast/xpath/4XPath/Core/test_node_test-expected.txt [new file with mode: 0644]
LayoutTests/fast/xpath/4XPath/Core/test_node_test.html [new file with mode: 0644]
LayoutTests/fast/xpath/4XPath/Core/test_nodeset_expr-expected.txt [new file with mode: 0644]
LayoutTests/fast/xpath/4XPath/Core/test_nodeset_expr.html [new file with mode: 0644]
LayoutTests/fast/xpath/4XPath/Core/test_numeric_expr-expected.txt [new file with mode: 0644]
LayoutTests/fast/xpath/4XPath/Core/test_numeric_expr.html [new file with mode: 0644]
LayoutTests/fast/xpath/4XPath/Core/test_parser-expected.txt [new file with mode: 0644]
LayoutTests/fast/xpath/4XPath/Core/test_parser.html [new file with mode: 0644]
LayoutTests/fast/xpath/4XPath/Core/test_predicate_list-expected.txt [new file with mode: 0644]
LayoutTests/fast/xpath/4XPath/Core/test_predicate_list.html [new file with mode: 0644]
LayoutTests/fast/xpath/4XPath/Core/test_step-expected.txt [new file with mode: 0644]
LayoutTests/fast/xpath/4XPath/Core/test_step.html [new file with mode: 0644]
WebCore/ChangeLog
WebCore/xml/XPathGrammar.y
WebCore/xml/XPathParser.cpp
WebCore/xml/XPathPredicate.cpp
WebCore/xml/XPathPredicate.h