Reviewed by Darin.
authorap <ap@268f45cc-cd09-0410-ab3c-d52691b4dbfc>
Mon, 5 Mar 2007 20:39:41 +0000 (20:39 +0000)
committerap <ap@268f45cc-cd09-0410-ab3c-d52691b4dbfc>
Mon, 5 Mar 2007 20:39:41 +0000 (20:39 +0000)
commitef58ab2a7eca0e69783d73ad971b2a025ad485db
tree2a83e80c3c0d5884d727ee6cef2560c3d83db678
parent53afb1b85582eb2d020843abff0229e05c8251d4
    Reviewed by Darin.

        http://bugs.webkit.org/show_bug.cgi?id=12970
        Fix and import 4XPath test_core_functions.html test

WebCore:

        * xml/XPathExpression.cpp:
        (WebCore::XPathExpression::evaluate): Fully initialize the evaluation context.

        * xml/XPathFunctions.cpp:
        (WebCore::XPath::FunSubstring::doEvaluate): Fixed handling of edge cases.
        (WebCore::XPath::FunRound::round): Reimplemented to match the spec; exposed FunRound::round() to be used in
        other functions.

LayoutTests:
        * fast/xpath/4XPath/Core/test_core_functions-expected.txt: Added.
        * fast/xpath/4XPath/Core/test_core_functions.html: Added.
        The remaining failures with id() are caused by an XML DOM problem - ID attributes declared
        in an internal subset are not treated as such.

        * fast/xpath/4XPath/Core/test.js: Common data for XPath tests.

git-svn-id: https://svn.webkit.org/repository/webkit/trunk@19968 268f45cc-cd09-0410-ab3c-d52691b4dbfc
LayoutTests/ChangeLog
LayoutTests/fast/xpath/4XPath/Core/test.js [new file with mode: 0644]
LayoutTests/fast/xpath/4XPath/Core/test_core_functions-expected.txt
LayoutTests/fast/xpath/4XPath/Core/test_core_functions.html [new file with mode: 0644]
WebCore/ChangeLog
WebCore/xml/XPathExpression.cpp
WebCore/xml/XPathFunctions.cpp