haikuwebkit/LayoutTests/svg/dynamic-updates/SVGPolylineElement-dom-requ...

17 lines
861 B
Plaintext
Raw Permalink Normal View History

2010-11-13 Rob Buis <rwlbuis@gmail.com> Reviewed by Dirk Schulze. requiredFeatures does not adapt to SVGStringList changes https://bugs.webkit.org/show_bug.cgi?id=40887 Centralize logic of handling of SVGElement validity changes. The logic is to detach the SVGElement when changing from valid to invalid, and to attach when changing from invalid to valid. Tests: svg/dynamic-updates/SVGCircleElement-dom-requiredFeatures.html svg/dynamic-updates/SVGCircleElement-svgdom-requiredFeatures.html svg/dynamic-updates/SVGEllipseElement-dom-requiredFeatures.html svg/dynamic-updates/SVGEllipseElement-svgdom-requiredFeatures.html svg/dynamic-updates/SVGForeignObjectElement-dom-requiredFeatures.html svg/dynamic-updates/SVGForeignObjectElement-svgdom-requiredFeatures.html svg/dynamic-updates/SVGGElement-dom-requiredFeatures.html svg/dynamic-updates/SVGGElement-svgdom-requiredFeatures.html svg/dynamic-updates/SVGImageElement-dom-requiredFeatures.html svg/dynamic-updates/SVGImageElement-svgdom-requiredFeatures.html svg/dynamic-updates/SVGLineElement-dom-requiredFeatures.html svg/dynamic-updates/SVGLineElement-svgdom-requiredFeatures.html svg/dynamic-updates/SVGPathElement-dom-requiredFeatures.html svg/dynamic-updates/SVGPathElement-svgdom-requiredFeatures.html svg/dynamic-updates/SVGPolygonElement-dom-requiredFeatures.html svg/dynamic-updates/SVGPolygonElement-svgdom-requiredFeatures.html svg/dynamic-updates/SVGPolylineElement-dom-requiredFeatures.html svg/dynamic-updates/SVGPolylineElement-svgdom-requiredFeatures.html svg/dynamic-updates/SVGRectElement-dom-requiredFeatures.html svg/dynamic-updates/SVGRectElement-svgdom-requiredFeatures.html svg/dynamic-updates/SVGSVGElement-dom-requiredFeatures.html svg/dynamic-updates/SVGSVGElement-svgdom-requiredFeatures.html svg/dynamic-updates/SVGTextElement-dom-requiredFeatures.html svg/dynamic-updates/SVGTextElement-svgdom-requiredFeatures.html svg/dynamic-updates/SVGUseElement-dom-requiredFeatures.html svg/dynamic-updates/SVGUseElement-svgdom-requiredFeatures.html Canonical link: https://commits.webkit.org/62440@main git-svn-id: https://svn.webkit.org/repository/webkit/trunk@71969 268f45cc-cd09-0410-ab3c-d52691b4dbfc
2010-11-13 17:16:55 +00:00
SVG 1.1 dynamic update tests
Check that SVGPolylineElement is initially displayed
PASS document.defaultView.getComputedStyle(polylineElement, null).display is "inline"
Check that setting requiredFeatures to something invalid makes it not render
PASS document.defaultView.getComputedStyle(polylineElement, null).display is ""
Check that setting requiredFeatures to something valid makes it render again
PASS document.defaultView.getComputedStyle(polylineElement, null).display is "inline"
Check that adding something valid to requiredFeatures keeps rendering the element
PASS document.defaultView.getComputedStyle(polylineElement, null).display is "inline"
Check that adding something invalid to requiredFeatures makes it not render
PASS document.defaultView.getComputedStyle(polylineElement, null).display is ""
PASS successfullyParsed is true
TEST COMPLETE