gecko-dev/dom/svg/test/test_SVGxxxList.xhtml
Birunthan Mohanathas e357781a51 Bug 946065 - Part 9: Move content/svg/ to dom/ and flatten subdirectories. r=jwatt
--HG--
rename : content/svg/content/src/DOMSVGAnimatedLengthList.cpp => dom/svg/DOMSVGAnimatedLengthList.cpp
rename : content/svg/content/src/DOMSVGAnimatedLengthList.h => dom/svg/DOMSVGAnimatedLengthList.h
rename : content/svg/content/src/DOMSVGAnimatedNumberList.cpp => dom/svg/DOMSVGAnimatedNumberList.cpp
rename : content/svg/content/src/DOMSVGAnimatedNumberList.h => dom/svg/DOMSVGAnimatedNumberList.h
rename : content/svg/content/src/DOMSVGLength.cpp => dom/svg/DOMSVGLength.cpp
rename : content/svg/content/src/DOMSVGLength.h => dom/svg/DOMSVGLength.h
rename : content/svg/content/src/DOMSVGLengthList.cpp => dom/svg/DOMSVGLengthList.cpp
rename : content/svg/content/src/DOMSVGLengthList.h => dom/svg/DOMSVGLengthList.h
rename : content/svg/content/src/DOMSVGNumber.cpp => dom/svg/DOMSVGNumber.cpp
rename : content/svg/content/src/DOMSVGNumber.h => dom/svg/DOMSVGNumber.h
rename : content/svg/content/src/DOMSVGNumberList.cpp => dom/svg/DOMSVGNumberList.cpp
rename : content/svg/content/src/DOMSVGNumberList.h => dom/svg/DOMSVGNumberList.h
rename : content/svg/content/src/DOMSVGPathSeg.cpp => dom/svg/DOMSVGPathSeg.cpp
rename : content/svg/content/src/DOMSVGPathSeg.h => dom/svg/DOMSVGPathSeg.h
rename : content/svg/content/src/DOMSVGPathSegList.cpp => dom/svg/DOMSVGPathSegList.cpp
rename : content/svg/content/src/DOMSVGPathSegList.h => dom/svg/DOMSVGPathSegList.h
rename : content/svg/content/src/DOMSVGPoint.cpp => dom/svg/DOMSVGPoint.cpp
rename : content/svg/content/src/DOMSVGPoint.h => dom/svg/DOMSVGPoint.h
rename : content/svg/content/src/DOMSVGPointList.cpp => dom/svg/DOMSVGPointList.cpp
rename : content/svg/content/src/DOMSVGPointList.h => dom/svg/DOMSVGPointList.h
rename : content/svg/content/src/DOMSVGStringList.cpp => dom/svg/DOMSVGStringList.cpp
rename : content/svg/content/src/DOMSVGStringList.h => dom/svg/DOMSVGStringList.h
rename : content/svg/content/src/DOMSVGTransformList.cpp => dom/svg/DOMSVGTransformList.cpp
rename : content/svg/content/src/DOMSVGTransformList.h => dom/svg/DOMSVGTransformList.h
rename : content/svg/content/src/SVGAElement.cpp => dom/svg/SVGAElement.cpp
rename : content/svg/content/src/SVGAElement.h => dom/svg/SVGAElement.h
rename : content/svg/content/src/SVGAltGlyphElement.cpp => dom/svg/SVGAltGlyphElement.cpp
rename : content/svg/content/src/SVGAltGlyphElement.h => dom/svg/SVGAltGlyphElement.h
rename : content/svg/content/src/SVGAngle.cpp => dom/svg/SVGAngle.cpp
rename : content/svg/content/src/SVGAngle.h => dom/svg/SVGAngle.h
rename : content/svg/content/src/SVGAnimateElement.cpp => dom/svg/SVGAnimateElement.cpp
rename : content/svg/content/src/SVGAnimateElement.h => dom/svg/SVGAnimateElement.h
rename : content/svg/content/src/SVGAnimateMotionElement.cpp => dom/svg/SVGAnimateMotionElement.cpp
rename : content/svg/content/src/SVGAnimateMotionElement.h => dom/svg/SVGAnimateMotionElement.h
rename : content/svg/content/src/SVGAnimateTransformElement.cpp => dom/svg/SVGAnimateTransformElement.cpp
rename : content/svg/content/src/SVGAnimateTransformElement.h => dom/svg/SVGAnimateTransformElement.h
rename : content/svg/content/src/SVGAnimatedAngle.cpp => dom/svg/SVGAnimatedAngle.cpp
rename : content/svg/content/src/SVGAnimatedAngle.h => dom/svg/SVGAnimatedAngle.h
rename : content/svg/content/src/SVGAnimatedBoolean.cpp => dom/svg/SVGAnimatedBoolean.cpp
rename : content/svg/content/src/SVGAnimatedBoolean.h => dom/svg/SVGAnimatedBoolean.h
rename : content/svg/content/src/SVGAnimatedEnumeration.cpp => dom/svg/SVGAnimatedEnumeration.cpp
rename : content/svg/content/src/SVGAnimatedEnumeration.h => dom/svg/SVGAnimatedEnumeration.h
rename : content/svg/content/src/SVGAnimatedInteger.cpp => dom/svg/SVGAnimatedInteger.cpp
rename : content/svg/content/src/SVGAnimatedInteger.h => dom/svg/SVGAnimatedInteger.h
rename : content/svg/content/src/SVGAnimatedLength.cpp => dom/svg/SVGAnimatedLength.cpp
rename : content/svg/content/src/SVGAnimatedLength.h => dom/svg/SVGAnimatedLength.h
rename : content/svg/content/src/SVGAnimatedLengthList.cpp => dom/svg/SVGAnimatedLengthList.cpp
rename : content/svg/content/src/SVGAnimatedLengthList.h => dom/svg/SVGAnimatedLengthList.h
rename : content/svg/content/src/SVGAnimatedNumber.cpp => dom/svg/SVGAnimatedNumber.cpp
rename : content/svg/content/src/SVGAnimatedNumber.h => dom/svg/SVGAnimatedNumber.h
rename : content/svg/content/src/SVGAnimatedNumberList.cpp => dom/svg/SVGAnimatedNumberList.cpp
rename : content/svg/content/src/SVGAnimatedNumberList.h => dom/svg/SVGAnimatedNumberList.h
rename : content/svg/content/src/SVGAnimatedPathSegList.cpp => dom/svg/SVGAnimatedPathSegList.cpp
rename : content/svg/content/src/SVGAnimatedPathSegList.h => dom/svg/SVGAnimatedPathSegList.h
rename : content/svg/content/src/SVGAnimatedPointList.cpp => dom/svg/SVGAnimatedPointList.cpp
rename : content/svg/content/src/SVGAnimatedPointList.h => dom/svg/SVGAnimatedPointList.h
rename : content/svg/content/src/SVGAnimatedPreserveAspectRatio.cpp => dom/svg/SVGAnimatedPreserveAspectRatio.cpp
rename : content/svg/content/src/SVGAnimatedPreserveAspectRatio.h => dom/svg/SVGAnimatedPreserveAspectRatio.h
rename : content/svg/content/src/SVGAnimatedRect.cpp => dom/svg/SVGAnimatedRect.cpp
rename : content/svg/content/src/SVGAnimatedRect.h => dom/svg/SVGAnimatedRect.h
rename : content/svg/content/src/SVGAnimatedString.cpp => dom/svg/SVGAnimatedString.cpp
rename : content/svg/content/src/SVGAnimatedString.h => dom/svg/SVGAnimatedString.h
rename : content/svg/content/src/SVGAnimatedTransformList.cpp => dom/svg/SVGAnimatedTransformList.cpp
rename : content/svg/content/src/SVGAnimatedTransformList.h => dom/svg/SVGAnimatedTransformList.h
rename : content/svg/content/src/SVGAnimationElement.cpp => dom/svg/SVGAnimationElement.cpp
rename : content/svg/content/src/SVGAnimationElement.h => dom/svg/SVGAnimationElement.h
rename : content/svg/content/src/SVGAttrValueWrapper.cpp => dom/svg/SVGAttrValueWrapper.cpp
rename : content/svg/content/src/SVGAttrValueWrapper.h => dom/svg/SVGAttrValueWrapper.h
rename : content/svg/content/src/SVGCircleElement.cpp => dom/svg/SVGCircleElement.cpp
rename : content/svg/content/src/SVGCircleElement.h => dom/svg/SVGCircleElement.h
rename : content/svg/content/src/SVGClipPathElement.cpp => dom/svg/SVGClipPathElement.cpp
rename : content/svg/content/src/SVGClipPathElement.h => dom/svg/SVGClipPathElement.h
rename : content/svg/content/src/SVGComponentTransferFunctionElement.h => dom/svg/SVGComponentTransferFunctionElement.h
rename : content/svg/content/src/SVGContentUtils.cpp => dom/svg/SVGContentUtils.cpp
rename : content/svg/content/src/SVGContentUtils.h => dom/svg/SVGContentUtils.h
rename : content/svg/content/src/SVGDefsElement.cpp => dom/svg/SVGDefsElement.cpp
rename : content/svg/content/src/SVGDefsElement.h => dom/svg/SVGDefsElement.h
rename : content/svg/content/src/SVGDescElement.cpp => dom/svg/SVGDescElement.cpp
rename : content/svg/content/src/SVGDescElement.h => dom/svg/SVGDescElement.h
rename : content/svg/document/src/SVGDocument.cpp => dom/svg/SVGDocument.cpp
rename : content/svg/document/src/SVGDocument.h => dom/svg/SVGDocument.h
rename : content/svg/content/src/SVGElementFactory.cpp => dom/svg/SVGElementFactory.cpp
rename : content/svg/content/src/SVGElementFactory.h => dom/svg/SVGElementFactory.h
rename : content/svg/content/src/SVGEllipseElement.cpp => dom/svg/SVGEllipseElement.cpp
rename : content/svg/content/src/SVGEllipseElement.h => dom/svg/SVGEllipseElement.h
rename : content/svg/content/src/SVGFEBlendElement.cpp => dom/svg/SVGFEBlendElement.cpp
rename : content/svg/content/src/SVGFEBlendElement.h => dom/svg/SVGFEBlendElement.h
rename : content/svg/content/src/SVGFEColorMatrixElement.cpp => dom/svg/SVGFEColorMatrixElement.cpp
rename : content/svg/content/src/SVGFEColorMatrixElement.h => dom/svg/SVGFEColorMatrixElement.h
rename : content/svg/content/src/SVGFEComponentTransferElement.cpp => dom/svg/SVGFEComponentTransferElement.cpp
rename : content/svg/content/src/SVGFEComponentTransferElement.h => dom/svg/SVGFEComponentTransferElement.h
rename : content/svg/content/src/SVGFECompositeElement.cpp => dom/svg/SVGFECompositeElement.cpp
rename : content/svg/content/src/SVGFECompositeElement.h => dom/svg/SVGFECompositeElement.h
rename : content/svg/content/src/SVGFEConvolveMatrixElement.cpp => dom/svg/SVGFEConvolveMatrixElement.cpp
rename : content/svg/content/src/SVGFEConvolveMatrixElement.h => dom/svg/SVGFEConvolveMatrixElement.h
rename : content/svg/content/src/SVGFEDiffuseLightingElement.cpp => dom/svg/SVGFEDiffuseLightingElement.cpp
rename : content/svg/content/src/SVGFEDiffuseLightingElement.h => dom/svg/SVGFEDiffuseLightingElement.h
rename : content/svg/content/src/SVGFEDisplacementMapElement.cpp => dom/svg/SVGFEDisplacementMapElement.cpp
rename : content/svg/content/src/SVGFEDisplacementMapElement.h => dom/svg/SVGFEDisplacementMapElement.h
rename : content/svg/content/src/SVGFEDistantLightElement.cpp => dom/svg/SVGFEDistantLightElement.cpp
rename : content/svg/content/src/SVGFEDistantLightElement.h => dom/svg/SVGFEDistantLightElement.h
rename : content/svg/content/src/SVGFEDropShadowElement.cpp => dom/svg/SVGFEDropShadowElement.cpp
rename : content/svg/content/src/SVGFEDropShadowElement.h => dom/svg/SVGFEDropShadowElement.h
rename : content/svg/content/src/SVGFEFloodElement.cpp => dom/svg/SVGFEFloodElement.cpp
rename : content/svg/content/src/SVGFEFloodElement.h => dom/svg/SVGFEFloodElement.h
rename : content/svg/content/src/SVGFEGaussianBlurElement.cpp => dom/svg/SVGFEGaussianBlurElement.cpp
rename : content/svg/content/src/SVGFEGaussianBlurElement.h => dom/svg/SVGFEGaussianBlurElement.h
rename : content/svg/content/src/SVGFEImageElement.cpp => dom/svg/SVGFEImageElement.cpp
rename : content/svg/content/src/SVGFEImageElement.h => dom/svg/SVGFEImageElement.h
rename : content/svg/content/src/SVGFEMergeElement.cpp => dom/svg/SVGFEMergeElement.cpp
rename : content/svg/content/src/SVGFEMergeElement.h => dom/svg/SVGFEMergeElement.h
rename : content/svg/content/src/SVGFEMergeNodeElement.cpp => dom/svg/SVGFEMergeNodeElement.cpp
rename : content/svg/content/src/SVGFEMergeNodeElement.h => dom/svg/SVGFEMergeNodeElement.h
rename : content/svg/content/src/SVGFEMorphologyElement.cpp => dom/svg/SVGFEMorphologyElement.cpp
rename : content/svg/content/src/SVGFEMorphologyElement.h => dom/svg/SVGFEMorphologyElement.h
rename : content/svg/content/src/SVGFEOffsetElement.cpp => dom/svg/SVGFEOffsetElement.cpp
rename : content/svg/content/src/SVGFEOffsetElement.h => dom/svg/SVGFEOffsetElement.h
rename : content/svg/content/src/SVGFEPointLightElement.cpp => dom/svg/SVGFEPointLightElement.cpp
rename : content/svg/content/src/SVGFEPointLightElement.h => dom/svg/SVGFEPointLightElement.h
rename : content/svg/content/src/SVGFESpecularLightingElement.cpp => dom/svg/SVGFESpecularLightingElement.cpp
rename : content/svg/content/src/SVGFESpecularLightingElement.h => dom/svg/SVGFESpecularLightingElement.h
rename : content/svg/content/src/SVGFESpotLightElement.cpp => dom/svg/SVGFESpotLightElement.cpp
rename : content/svg/content/src/SVGFESpotLightElement.h => dom/svg/SVGFESpotLightElement.h
rename : content/svg/content/src/SVGFETileElement.cpp => dom/svg/SVGFETileElement.cpp
rename : content/svg/content/src/SVGFETileElement.h => dom/svg/SVGFETileElement.h
rename : content/svg/content/src/SVGFETurbulenceElement.cpp => dom/svg/SVGFETurbulenceElement.cpp
rename : content/svg/content/src/SVGFETurbulenceElement.h => dom/svg/SVGFETurbulenceElement.h
rename : content/svg/content/src/SVGFilterElement.cpp => dom/svg/SVGFilterElement.cpp
rename : content/svg/content/src/SVGFilterElement.h => dom/svg/SVGFilterElement.h
rename : content/svg/content/src/SVGForeignObjectElement.cpp => dom/svg/SVGForeignObjectElement.cpp
rename : content/svg/content/src/SVGForeignObjectElement.h => dom/svg/SVGForeignObjectElement.h
rename : content/svg/content/src/SVGFragmentIdentifier.cpp => dom/svg/SVGFragmentIdentifier.cpp
rename : content/svg/content/src/SVGFragmentIdentifier.h => dom/svg/SVGFragmentIdentifier.h
rename : content/svg/content/src/SVGGElement.cpp => dom/svg/SVGGElement.cpp
rename : content/svg/content/src/SVGGElement.h => dom/svg/SVGGElement.h
rename : content/svg/content/src/SVGGradientElement.cpp => dom/svg/SVGGradientElement.cpp
rename : content/svg/content/src/SVGGradientElement.h => dom/svg/SVGGradientElement.h
rename : content/svg/content/src/SVGGraphicsElement.cpp => dom/svg/SVGGraphicsElement.cpp
rename : content/svg/content/src/SVGGraphicsElement.h => dom/svg/SVGGraphicsElement.h
rename : content/svg/content/src/SVGIFrameElement.cpp => dom/svg/SVGIFrameElement.cpp
rename : content/svg/content/src/SVGIFrameElement.h => dom/svg/SVGIFrameElement.h
rename : content/svg/content/src/SVGIRect.h => dom/svg/SVGIRect.h
rename : content/svg/content/src/SVGImageElement.cpp => dom/svg/SVGImageElement.cpp
rename : content/svg/content/src/SVGImageElement.h => dom/svg/SVGImageElement.h
rename : content/svg/content/src/SVGIntegerPairSMILType.cpp => dom/svg/SVGIntegerPairSMILType.cpp
rename : content/svg/content/src/SVGIntegerPairSMILType.h => dom/svg/SVGIntegerPairSMILType.h
rename : content/svg/content/src/SVGLength.cpp => dom/svg/SVGLength.cpp
rename : content/svg/content/src/SVGLength.h => dom/svg/SVGLength.h
rename : content/svg/content/src/SVGLengthList.cpp => dom/svg/SVGLengthList.cpp
rename : content/svg/content/src/SVGLengthList.h => dom/svg/SVGLengthList.h
rename : content/svg/content/src/SVGLengthListSMILType.cpp => dom/svg/SVGLengthListSMILType.cpp
rename : content/svg/content/src/SVGLengthListSMILType.h => dom/svg/SVGLengthListSMILType.h
rename : content/svg/content/src/SVGLineElement.cpp => dom/svg/SVGLineElement.cpp
rename : content/svg/content/src/SVGLineElement.h => dom/svg/SVGLineElement.h
rename : content/svg/content/src/SVGMPathElement.cpp => dom/svg/SVGMPathElement.cpp
rename : content/svg/content/src/SVGMPathElement.h => dom/svg/SVGMPathElement.h
rename : content/svg/content/src/SVGMarkerElement.cpp => dom/svg/SVGMarkerElement.cpp
rename : content/svg/content/src/SVGMarkerElement.h => dom/svg/SVGMarkerElement.h
rename : content/svg/content/src/SVGMaskElement.cpp => dom/svg/SVGMaskElement.cpp
rename : content/svg/content/src/SVGMaskElement.h => dom/svg/SVGMaskElement.h
rename : content/svg/content/src/SVGMatrix.cpp => dom/svg/SVGMatrix.cpp
rename : content/svg/content/src/SVGMatrix.h => dom/svg/SVGMatrix.h
rename : content/svg/content/src/SVGMetadataElement.cpp => dom/svg/SVGMetadataElement.cpp
rename : content/svg/content/src/SVGMetadataElement.h => dom/svg/SVGMetadataElement.h
rename : content/svg/content/src/SVGMotionSMILAnimationFunction.cpp => dom/svg/SVGMotionSMILAnimationFunction.cpp
rename : content/svg/content/src/SVGMotionSMILAnimationFunction.h => dom/svg/SVGMotionSMILAnimationFunction.h
rename : content/svg/content/src/SVGMotionSMILAttr.cpp => dom/svg/SVGMotionSMILAttr.cpp
rename : content/svg/content/src/SVGMotionSMILAttr.h => dom/svg/SVGMotionSMILAttr.h
rename : content/svg/content/src/SVGMotionSMILPathUtils.cpp => dom/svg/SVGMotionSMILPathUtils.cpp
rename : content/svg/content/src/SVGMotionSMILPathUtils.h => dom/svg/SVGMotionSMILPathUtils.h
rename : content/svg/content/src/SVGMotionSMILType.cpp => dom/svg/SVGMotionSMILType.cpp
rename : content/svg/content/src/SVGMotionSMILType.h => dom/svg/SVGMotionSMILType.h
rename : content/svg/content/src/SVGNumberList.cpp => dom/svg/SVGNumberList.cpp
rename : content/svg/content/src/SVGNumberList.h => dom/svg/SVGNumberList.h
rename : content/svg/content/src/SVGNumberListSMILType.cpp => dom/svg/SVGNumberListSMILType.cpp
rename : content/svg/content/src/SVGNumberListSMILType.h => dom/svg/SVGNumberListSMILType.h
rename : content/svg/content/src/SVGNumberPairSMILType.cpp => dom/svg/SVGNumberPairSMILType.cpp
rename : content/svg/content/src/SVGNumberPairSMILType.h => dom/svg/SVGNumberPairSMILType.h
rename : content/svg/content/src/SVGOrientSMILType.cpp => dom/svg/SVGOrientSMILType.cpp
rename : content/svg/content/src/SVGOrientSMILType.h => dom/svg/SVGOrientSMILType.h
rename : content/svg/content/src/SVGPathData.cpp => dom/svg/SVGPathData.cpp
rename : content/svg/content/src/SVGPathData.h => dom/svg/SVGPathData.h
rename : content/svg/content/src/SVGPathElement.cpp => dom/svg/SVGPathElement.cpp
rename : content/svg/content/src/SVGPathElement.h => dom/svg/SVGPathElement.h
rename : content/svg/content/src/SVGPathSegListSMILType.cpp => dom/svg/SVGPathSegListSMILType.cpp
rename : content/svg/content/src/SVGPathSegListSMILType.h => dom/svg/SVGPathSegListSMILType.h
rename : content/svg/content/src/SVGPathSegUtils.cpp => dom/svg/SVGPathSegUtils.cpp
rename : content/svg/content/src/SVGPathSegUtils.h => dom/svg/SVGPathSegUtils.h
rename : content/svg/content/src/SVGPatternElement.cpp => dom/svg/SVGPatternElement.cpp
rename : content/svg/content/src/SVGPatternElement.h => dom/svg/SVGPatternElement.h
rename : content/svg/content/src/SVGPoint.h => dom/svg/SVGPoint.h
rename : content/svg/content/src/SVGPointList.cpp => dom/svg/SVGPointList.cpp
rename : content/svg/content/src/SVGPointList.h => dom/svg/SVGPointList.h
rename : content/svg/content/src/SVGPointListSMILType.cpp => dom/svg/SVGPointListSMILType.cpp
rename : content/svg/content/src/SVGPointListSMILType.h => dom/svg/SVGPointListSMILType.h
rename : content/svg/content/src/SVGPolygonElement.cpp => dom/svg/SVGPolygonElement.cpp
rename : content/svg/content/src/SVGPolygonElement.h => dom/svg/SVGPolygonElement.h
rename : content/svg/content/src/SVGPolylineElement.cpp => dom/svg/SVGPolylineElement.cpp
rename : content/svg/content/src/SVGPolylineElement.h => dom/svg/SVGPolylineElement.h
rename : content/svg/content/src/SVGPreserveAspectRatio.cpp => dom/svg/SVGPreserveAspectRatio.cpp
rename : content/svg/content/src/SVGPreserveAspectRatio.h => dom/svg/SVGPreserveAspectRatio.h
rename : content/svg/content/src/SVGRect.cpp => dom/svg/SVGRect.cpp
rename : content/svg/content/src/SVGRect.h => dom/svg/SVGRect.h
rename : content/svg/content/src/SVGRectElement.cpp => dom/svg/SVGRectElement.cpp
rename : content/svg/content/src/SVGRectElement.h => dom/svg/SVGRectElement.h
rename : content/svg/content/src/SVGSVGElement.cpp => dom/svg/SVGSVGElement.cpp
rename : content/svg/content/src/SVGSVGElement.h => dom/svg/SVGSVGElement.h
rename : content/svg/content/src/SVGScriptElement.cpp => dom/svg/SVGScriptElement.cpp
rename : content/svg/content/src/SVGScriptElement.h => dom/svg/SVGScriptElement.h
rename : content/svg/content/src/SVGSetElement.cpp => dom/svg/SVGSetElement.cpp
rename : content/svg/content/src/SVGSetElement.h => dom/svg/SVGSetElement.h
rename : content/svg/content/src/SVGStopElement.cpp => dom/svg/SVGStopElement.cpp
rename : content/svg/content/src/SVGStopElement.h => dom/svg/SVGStopElement.h
rename : content/svg/content/src/SVGStringList.cpp => dom/svg/SVGStringList.cpp
rename : content/svg/content/src/SVGStringList.h => dom/svg/SVGStringList.h
rename : content/svg/content/src/SVGStyleElement.cpp => dom/svg/SVGStyleElement.cpp
rename : content/svg/content/src/SVGStyleElement.h => dom/svg/SVGStyleElement.h
rename : content/svg/content/src/SVGSwitchElement.cpp => dom/svg/SVGSwitchElement.cpp
rename : content/svg/content/src/SVGSwitchElement.h => dom/svg/SVGSwitchElement.h
rename : content/svg/content/src/SVGSymbolElement.cpp => dom/svg/SVGSymbolElement.cpp
rename : content/svg/content/src/SVGSymbolElement.h => dom/svg/SVGSymbolElement.h
rename : content/svg/content/src/SVGTSpanElement.cpp => dom/svg/SVGTSpanElement.cpp
rename : content/svg/content/src/SVGTSpanElement.h => dom/svg/SVGTSpanElement.h
rename : content/svg/content/src/SVGTagList.h => dom/svg/SVGTagList.h
rename : content/svg/content/src/SVGTests.cpp => dom/svg/SVGTests.cpp
rename : content/svg/content/src/SVGTests.h => dom/svg/SVGTests.h
rename : content/svg/content/src/SVGTextContentElement.cpp => dom/svg/SVGTextContentElement.cpp
rename : content/svg/content/src/SVGTextContentElement.h => dom/svg/SVGTextContentElement.h
rename : content/svg/content/src/SVGTextElement.cpp => dom/svg/SVGTextElement.cpp
rename : content/svg/content/src/SVGTextElement.h => dom/svg/SVGTextElement.h
rename : content/svg/content/src/SVGTextPathElement.cpp => dom/svg/SVGTextPathElement.cpp
rename : content/svg/content/src/SVGTextPathElement.h => dom/svg/SVGTextPathElement.h
rename : content/svg/content/src/SVGTextPositioningElement.cpp => dom/svg/SVGTextPositioningElement.cpp
rename : content/svg/content/src/SVGTextPositioningElement.h => dom/svg/SVGTextPositioningElement.h
rename : content/svg/content/src/SVGTitleElement.cpp => dom/svg/SVGTitleElement.cpp
rename : content/svg/content/src/SVGTitleElement.h => dom/svg/SVGTitleElement.h
rename : content/svg/content/src/SVGTransform.cpp => dom/svg/SVGTransform.cpp
rename : content/svg/content/src/SVGTransform.h => dom/svg/SVGTransform.h
rename : content/svg/content/src/SVGTransformList.cpp => dom/svg/SVGTransformList.cpp
rename : content/svg/content/src/SVGTransformList.h => dom/svg/SVGTransformList.h
rename : content/svg/content/src/SVGTransformListParser.cpp => dom/svg/SVGTransformListParser.cpp
rename : content/svg/content/src/SVGTransformListParser.h => dom/svg/SVGTransformListParser.h
rename : content/svg/content/src/SVGTransformListSMILType.cpp => dom/svg/SVGTransformListSMILType.cpp
rename : content/svg/content/src/SVGTransformListSMILType.h => dom/svg/SVGTransformListSMILType.h
rename : content/svg/content/src/SVGTransformableElement.cpp => dom/svg/SVGTransformableElement.cpp
rename : content/svg/content/src/SVGTransformableElement.h => dom/svg/SVGTransformableElement.h
rename : content/svg/content/src/SVGUseElement.cpp => dom/svg/SVGUseElement.cpp
rename : content/svg/content/src/SVGUseElement.h => dom/svg/SVGUseElement.h
rename : content/svg/content/src/SVGViewBoxSMILType.cpp => dom/svg/SVGViewBoxSMILType.cpp
rename : content/svg/content/src/SVGViewBoxSMILType.h => dom/svg/SVGViewBoxSMILType.h
rename : content/svg/content/src/SVGViewElement.cpp => dom/svg/SVGViewElement.cpp
rename : content/svg/content/src/SVGViewElement.h => dom/svg/SVGViewElement.h
rename : content/svg/content/src/SVGZoomEvent.cpp => dom/svg/SVGZoomEvent.cpp
rename : content/svg/content/src/SVGZoomEvent.h => dom/svg/SVGZoomEvent.h
rename : content/svg/content/src/crashtests/307322-1.svg => dom/svg/crashtests/307322-1.svg
rename : content/svg/content/src/crashtests/327705-1.svg => dom/svg/crashtests/327705-1.svg
rename : content/svg/content/src/crashtests/336994-1.html => dom/svg/crashtests/336994-1.html
rename : content/svg/content/src/crashtests/344888-1.svg => dom/svg/crashtests/344888-1.svg
rename : content/svg/content/src/crashtests/345445-1.svg => dom/svg/crashtests/345445-1.svg
rename : content/svg/content/src/crashtests/360836-1.svg => dom/svg/crashtests/360836-1.svg
rename : content/svg/content/src/crashtests/367357-1.xhtml => dom/svg/crashtests/367357-1.xhtml
rename : content/svg/content/src/crashtests/369051-1.svg => dom/svg/crashtests/369051-1.svg
rename : content/svg/content/src/crashtests/369249-1.svg => dom/svg/crashtests/369249-1.svg
rename : content/svg/content/src/crashtests/369291-1.svg => dom/svg/crashtests/369291-1.svg
rename : content/svg/content/src/crashtests/369291-2.svg => dom/svg/crashtests/369291-2.svg
rename : content/svg/content/src/crashtests/369568-1.svg => dom/svg/crashtests/369568-1.svg
rename : content/svg/content/src/crashtests/372046-1.svg => dom/svg/crashtests/372046-1.svg
rename : content/svg/content/src/crashtests/372046-2.svg => dom/svg/crashtests/372046-2.svg
rename : content/svg/content/src/crashtests/374882-1.svg => dom/svg/crashtests/374882-1.svg
rename : content/svg/content/src/crashtests/380101-1.svg => dom/svg/crashtests/380101-1.svg
rename : content/svg/content/src/crashtests/381777-1.svg => dom/svg/crashtests/381777-1.svg
rename : content/svg/content/src/crashtests/383685-1.svg => dom/svg/crashtests/383685-1.svg
rename : content/svg/content/src/crashtests/385096.html => dom/svg/crashtests/385096.html
rename : content/svg/content/src/crashtests/385554-1.html => dom/svg/crashtests/385554-1.html
rename : content/svg/content/src/crashtests/385554-2.xul => dom/svg/crashtests/385554-2.xul
rename : content/svg/content/src/crashtests/388712-1.svg => dom/svg/crashtests/388712-1.svg
rename : content/svg/content/src/crashtests/395616-1.html => dom/svg/crashtests/395616-1.html
rename : content/svg/content/src/crashtests/396618-1.html => dom/svg/crashtests/396618-1.html
rename : content/svg/content/src/crashtests/397017-1.html => dom/svg/crashtests/397017-1.html
rename : content/svg/content/src/crashtests/397551-1.svg => dom/svg/crashtests/397551-1.svg
rename : content/svg/content/src/crashtests/397704-1.svg => dom/svg/crashtests/397704-1.svg
rename : content/svg/content/src/crashtests/398926-both-different.svg => dom/svg/crashtests/398926-both-different.svg
rename : content/svg/content/src/crashtests/398926-both-same.svg => dom/svg/crashtests/398926-both-same.svg
rename : content/svg/content/src/crashtests/398926-fill.svg => dom/svg/crashtests/398926-fill.svg
rename : content/svg/content/src/crashtests/398926-stroke.svg => dom/svg/crashtests/398926-stroke.svg
rename : content/svg/content/src/crashtests/405639-1.svg => dom/svg/crashtests/405639-1.svg
rename : content/svg/content/src/crashtests/406361-1.html => dom/svg/crashtests/406361-1.html
rename : content/svg/content/src/crashtests/409811-1.html => dom/svg/crashtests/409811-1.html
rename : content/svg/content/src/crashtests/410659-1.svg => dom/svg/crashtests/410659-1.svg
rename : content/svg/content/src/crashtests/410659-2.svg => dom/svg/crashtests/410659-2.svg
rename : content/svg/content/src/crashtests/410659-3.svg => dom/svg/crashtests/410659-3.svg
rename : content/svg/content/src/crashtests/412104-1.svg => dom/svg/crashtests/412104-1.svg
rename : content/svg/content/src/crashtests/413174-1.svg => dom/svg/crashtests/413174-1.svg
rename : content/svg/content/src/crashtests/414188-1.svg => dom/svg/crashtests/414188-1.svg
rename : content/svg/content/src/crashtests/427325-1.svg => dom/svg/crashtests/427325-1.svg
rename : content/svg/content/src/crashtests/428228-1.svg => dom/svg/crashtests/428228-1.svg
rename : content/svg/content/src/crashtests/428841-1.svg => dom/svg/crashtests/428841-1.svg
rename : content/svg/content/src/crashtests/435209-1.svg => dom/svg/crashtests/435209-1.svg
rename : content/svg/content/src/crashtests/436418-mpathRoot-1.svg => dom/svg/crashtests/436418-mpathRoot-1.svg
rename : content/svg/content/src/crashtests/448244-1.svg => dom/svg/crashtests/448244-1.svg
rename : content/svg/content/src/crashtests/466576-1.xhtml => dom/svg/crashtests/466576-1.xhtml
rename : content/svg/content/src/crashtests/499879-1.svg => dom/svg/crashtests/499879-1.svg
rename : content/svg/content/src/crashtests/535691-1.svg => dom/svg/crashtests/535691-1.svg
rename : content/svg/content/src/crashtests/539167-1.svg => dom/svg/crashtests/539167-1.svg
rename : content/svg/content/src/crashtests/573316-1.svg => dom/svg/crashtests/573316-1.svg
rename : content/svg/content/src/crashtests/579356-1.svg => dom/svg/crashtests/579356-1.svg
rename : content/svg/content/src/crashtests/579356-2.svg => dom/svg/crashtests/579356-2.svg
rename : content/svg/content/src/crashtests/595608-1.svg => dom/svg/crashtests/595608-1.svg
rename : content/svg/content/src/crashtests/601251-1.html => dom/svg/crashtests/601251-1.html
rename : content/svg/content/src/crashtests/601406-1.svg => dom/svg/crashtests/601406-1.svg
rename : content/svg/content/src/crashtests/603145-1.svg => dom/svg/crashtests/603145-1.svg
rename : content/svg/content/src/crashtests/613899-1.svg => dom/svg/crashtests/613899-1.svg
rename : content/svg/content/src/crashtests/613899-2.svg => dom/svg/crashtests/613899-2.svg
rename : content/svg/content/src/crashtests/719779-1.svg => dom/svg/crashtests/719779-1.svg
rename : content/svg/content/src/crashtests/723441-1.html => dom/svg/crashtests/723441-1.html
rename : content/svg/content/src/crashtests/723441-resource.svg => dom/svg/crashtests/723441-resource.svg
rename : content/svg/content/src/crashtests/751515-1.svg => dom/svg/crashtests/751515-1.svg
rename : content/svg/content/src/crashtests/761507-1.svg => dom/svg/crashtests/761507-1.svg
rename : content/svg/content/src/crashtests/831561.html => dom/svg/crashtests/831561.html
rename : content/svg/content/src/crashtests/837450-1.svg => dom/svg/crashtests/837450-1.svg
rename : content/svg/content/src/crashtests/842463-1.html => dom/svg/crashtests/842463-1.html
rename : content/svg/content/src/crashtests/847138-1.svg => dom/svg/crashtests/847138-1.svg
rename : content/svg/content/src/crashtests/864509.svg => dom/svg/crashtests/864509.svg
rename : content/svg/content/src/crashtests/880544-1.svg => dom/svg/crashtests/880544-1.svg
rename : content/svg/content/src/crashtests/880544-2.svg => dom/svg/crashtests/880544-2.svg
rename : content/svg/content/src/crashtests/880544-3.svg => dom/svg/crashtests/880544-3.svg
rename : content/svg/content/src/crashtests/880544-4.svg => dom/svg/crashtests/880544-4.svg
rename : content/svg/content/src/crashtests/880544-5.svg => dom/svg/crashtests/880544-5.svg
rename : content/svg/content/src/crashtests/898915-1.svg => dom/svg/crashtests/898915-1.svg
rename : content/svg/content/src/crashtests/crashtests.list => dom/svg/crashtests/crashtests.list
rename : content/svg/content/src/crashtests/zero-size-image.svg => dom/svg/crashtests/zero-size-image.svg
rename : content/svg/moz.build => dom/svg/moz.build
rename : content/svg/content/src/nsISVGPoint.cpp => dom/svg/nsISVGPoint.cpp
rename : content/svg/content/src/nsISVGPoint.h => dom/svg/nsISVGPoint.h
rename : content/svg/content/src/nsSVGAngle.cpp => dom/svg/nsSVGAngle.cpp
rename : content/svg/content/src/nsSVGAngle.h => dom/svg/nsSVGAngle.h
rename : content/svg/content/src/nsSVGAnimatedTransformList.cpp => dom/svg/nsSVGAnimatedTransformList.cpp
rename : content/svg/content/src/nsSVGAnimatedTransformList.h => dom/svg/nsSVGAnimatedTransformList.h
rename : content/svg/content/src/nsSVGAttrTearoffTable.h => dom/svg/nsSVGAttrTearoffTable.h
rename : content/svg/content/src/nsSVGBoolean.cpp => dom/svg/nsSVGBoolean.cpp
rename : content/svg/content/src/nsSVGBoolean.h => dom/svg/nsSVGBoolean.h
rename : content/svg/content/src/nsSVGClass.cpp => dom/svg/nsSVGClass.cpp
rename : content/svg/content/src/nsSVGClass.h => dom/svg/nsSVGClass.h
rename : content/svg/content/src/nsSVGDataParser.cpp => dom/svg/nsSVGDataParser.cpp
rename : content/svg/content/src/nsSVGDataParser.h => dom/svg/nsSVGDataParser.h
rename : content/svg/content/src/nsSVGElement.cpp => dom/svg/nsSVGElement.cpp
rename : content/svg/content/src/nsSVGElement.h => dom/svg/nsSVGElement.h
rename : content/svg/content/src/nsSVGEnum.cpp => dom/svg/nsSVGEnum.cpp
rename : content/svg/content/src/nsSVGEnum.h => dom/svg/nsSVGEnum.h
rename : content/svg/content/src/nsSVGFeatures.cpp => dom/svg/nsSVGFeatures.cpp
rename : content/svg/content/src/nsSVGFeatures.h => dom/svg/nsSVGFeatures.h
rename : content/svg/content/src/nsSVGFeaturesList.h => dom/svg/nsSVGFeaturesList.h
rename : content/svg/content/src/nsSVGFilters.cpp => dom/svg/nsSVGFilters.cpp
rename : content/svg/content/src/nsSVGFilters.h => dom/svg/nsSVGFilters.h
rename : content/svg/content/src/nsSVGInteger.cpp => dom/svg/nsSVGInteger.cpp
rename : content/svg/content/src/nsSVGInteger.h => dom/svg/nsSVGInteger.h
rename : content/svg/content/src/nsSVGIntegerPair.cpp => dom/svg/nsSVGIntegerPair.cpp
rename : content/svg/content/src/nsSVGIntegerPair.h => dom/svg/nsSVGIntegerPair.h
rename : content/svg/content/src/nsSVGLength2.cpp => dom/svg/nsSVGLength2.cpp
rename : content/svg/content/src/nsSVGLength2.h => dom/svg/nsSVGLength2.h
rename : content/svg/content/src/nsSVGNumber2.cpp => dom/svg/nsSVGNumber2.cpp
rename : content/svg/content/src/nsSVGNumber2.h => dom/svg/nsSVGNumber2.h
rename : content/svg/content/src/nsSVGNumberPair.cpp => dom/svg/nsSVGNumberPair.cpp
rename : content/svg/content/src/nsSVGNumberPair.h => dom/svg/nsSVGNumberPair.h
rename : content/svg/content/src/nsSVGPathDataParser.cpp => dom/svg/nsSVGPathDataParser.cpp
rename : content/svg/content/src/nsSVGPathDataParser.h => dom/svg/nsSVGPathDataParser.h
rename : content/svg/content/src/nsSVGPathGeometryElement.cpp => dom/svg/nsSVGPathGeometryElement.cpp
rename : content/svg/content/src/nsSVGPathGeometryElement.h => dom/svg/nsSVGPathGeometryElement.h
rename : content/svg/content/src/nsSVGPolyElement.cpp => dom/svg/nsSVGPolyElement.cpp
rename : content/svg/content/src/nsSVGPolyElement.h => dom/svg/nsSVGPolyElement.h
rename : content/svg/content/src/nsSVGString.cpp => dom/svg/nsSVGString.cpp
rename : content/svg/content/src/nsSVGString.h => dom/svg/nsSVGString.h
rename : content/svg/content/src/nsSVGTransform.cpp => dom/svg/nsSVGTransform.cpp
rename : content/svg/content/src/nsSVGTransform.h => dom/svg/nsSVGTransform.h
rename : content/svg/content/src/nsSVGViewBox.cpp => dom/svg/nsSVGViewBox.cpp
rename : content/svg/content/src/nsSVGViewBox.h => dom/svg/nsSVGViewBox.h
rename : content/svg/content/test/MutationEventChecker.js => dom/svg/test/MutationEventChecker.js
rename : content/svg/content/test/a_href_destination.svg => dom/svg/test/a_href_destination.svg
rename : content/svg/content/test/a_href_helper_01.svg => dom/svg/test/a_href_helper_01.svg
rename : content/svg/content/test/a_href_helper_02_03.svg => dom/svg/test/a_href_helper_02_03.svg
rename : content/svg/content/test/a_href_helper_04.svg => dom/svg/test/a_href_helper_04.svg
rename : content/svg/content/test/animated-svg-image-helper.html => dom/svg/test/animated-svg-image-helper.html
rename : content/svg/content/test/animated-svg-image-helper.svg => dom/svg/test/animated-svg-image-helper.svg
rename : content/svg/content/test/bbox-helper.svg => dom/svg/test/bbox-helper.svg
rename : content/svg/content/test/bounds-helper.svg => dom/svg/test/bounds-helper.svg
rename : content/svg/content/test/dataTypes-helper.svg => dom/svg/test/dataTypes-helper.svg
rename : content/svg/content/test/fragments-helper.svg => dom/svg/test/fragments-helper.svg
rename : content/svg/content/test/getBBox-method-helper.svg => dom/svg/test/getBBox-method-helper.svg
rename : content/svg/content/test/getCTM-helper.svg => dom/svg/test/getCTM-helper.svg
rename : content/svg/content/test/getSubStringLength-helper.svg => dom/svg/test/getSubStringLength-helper.svg
rename : content/svg/content/test/matrixUtils.js => dom/svg/test/matrixUtils.js
rename : content/svg/content/test/mochitest.ini => dom/svg/test/mochitest.ini
rename : content/svg/content/test/object-delayed-intrinsic-size.sjs => dom/svg/test/object-delayed-intrinsic-size.sjs
rename : content/svg/content/test/pointer-events.js => dom/svg/test/pointer-events.js
rename : content/svg/content/test/scientific-helper.svg => dom/svg/test/scientific-helper.svg
rename : content/svg/content/test/selectSubString-helper.svg => dom/svg/test/selectSubString-helper.svg
rename : content/svg/content/test/switch-helper.svg => dom/svg/test/switch-helper.svg
rename : content/svg/content/test/test_SVGLengthList-2.xhtml => dom/svg/test/test_SVGLengthList-2.xhtml
rename : content/svg/content/test/test_SVGLengthList.xhtml => dom/svg/test/test_SVGLengthList.xhtml
rename : content/svg/content/test/test_SVGMatrix.xhtml => dom/svg/test/test_SVGMatrix.xhtml
rename : content/svg/content/test/test_SVGNumberList.xhtml => dom/svg/test/test_SVGNumberList.xhtml
rename : content/svg/content/test/test_SVGPathSegList.xhtml => dom/svg/test/test_SVGPathSegList.xhtml
rename : content/svg/content/test/test_SVGPointList.xhtml => dom/svg/test/test_SVGPointList.xhtml
rename : content/svg/content/test/test_SVGStringList.xhtml => dom/svg/test/test_SVGStringList.xhtml
rename : content/svg/content/test/test_SVGStyleElement.xhtml => dom/svg/test/test_SVGStyleElement.xhtml
rename : content/svg/content/test/test_SVGTransformList.xhtml => dom/svg/test/test_SVGTransformList.xhtml
rename : content/svg/content/test/test_SVGTransformListAddition.xhtml => dom/svg/test/test_SVGTransformListAddition.xhtml
rename : content/svg/content/test/test_SVGUnitTypes.html => dom/svg/test/test_SVGUnitTypes.html
rename : content/svg/content/test/test_SVG_namespace_ids.html => dom/svg/test/test_SVG_namespace_ids.html
rename : content/svg/content/test/test_SVGxxxList.xhtml => dom/svg/test/test_SVGxxxList.xhtml
rename : content/svg/content/test/test_SVGxxxListIndexing.xhtml => dom/svg/test/test_SVGxxxListIndexing.xhtml
rename : content/svg/content/test/test_a_href_01.xhtml => dom/svg/test/test_a_href_01.xhtml
rename : content/svg/content/test/test_a_href_02.xhtml => dom/svg/test/test_a_href_02.xhtml
rename : content/svg/content/test/test_animLengthObjectIdentity.xhtml => dom/svg/test/test_animLengthObjectIdentity.xhtml
rename : content/svg/content/test/test_animLengthReadonly.xhtml => dom/svg/test/test_animLengthReadonly.xhtml
rename : content/svg/content/test/test_animLengthUnits.xhtml => dom/svg/test/test_animLengthUnits.xhtml
rename : content/svg/content/test/test_bbox-with-invalid-viewBox.xhtml => dom/svg/test/test_bbox-with-invalid-viewBox.xhtml
rename : content/svg/content/test/test_bbox.xhtml => dom/svg/test/test_bbox.xhtml
rename : content/svg/content/test/test_bounds.html => dom/svg/test/test_bounds.html
rename : content/svg/content/test/test_bug872812.html => dom/svg/test/test_bug872812.html
rename : content/svg/content/test/test_dataTypes.html => dom/svg/test/test_dataTypes.html
rename : content/svg/content/test/test_dataTypesModEvents.html => dom/svg/test/test_dataTypesModEvents.html
rename : content/svg/content/test/test_fragments.html => dom/svg/test/test_fragments.html
rename : content/svg/content/test/test_getBBox-method.html => dom/svg/test/test_getBBox-method.html
rename : content/svg/content/test/test_getCTM.html => dom/svg/test/test_getCTM.html
rename : content/svg/content/test/test_getElementById.xhtml => dom/svg/test/test_getElementById.xhtml
rename : content/svg/content/test/test_getSubStringLength.xhtml => dom/svg/test/test_getSubStringLength.xhtml
rename : content/svg/content/test/test_hasFeature.xhtml => dom/svg/test/test_hasFeature.xhtml
rename : content/svg/content/test/test_lang.xhtml => dom/svg/test/test_lang.xhtml
rename : content/svg/content/test/test_length.xhtml => dom/svg/test/test_length.xhtml
rename : content/svg/content/test/test_lengthParsing.html => dom/svg/test/test_lengthParsing.html
rename : content/svg/content/test/test_non-scaling-stroke.html => dom/svg/test/test_non-scaling-stroke.html
rename : content/svg/content/test/test_nonAnimStrings.xhtml => dom/svg/test/test_nonAnimStrings.xhtml
rename : content/svg/content/test/test_object-delayed-intrinsic-size.html => dom/svg/test/test_object-delayed-intrinsic-size.html
rename : content/svg/content/test/test_onerror.xhtml => dom/svg/test/test_onerror.xhtml
rename : content/svg/content/test/test_pathAnimInterpolation.xhtml => dom/svg/test/test_pathAnimInterpolation.xhtml
rename : content/svg/content/test/test_pathLength.html => dom/svg/test/test_pathLength.html
rename : content/svg/content/test/test_pathSeg.xhtml => dom/svg/test/test_pathSeg.xhtml
rename : content/svg/content/test/test_pointAtLength.xhtml => dom/svg/test/test_pointAtLength.xhtml
rename : content/svg/content/test/test_pointer-events-1a.xhtml => dom/svg/test/test_pointer-events-1a.xhtml
rename : content/svg/content/test/test_pointer-events-1b.xhtml => dom/svg/test/test_pointer-events-1b.xhtml
rename : content/svg/content/test/test_pointer-events-2.xhtml => dom/svg/test/test_pointer-events-2.xhtml
rename : content/svg/content/test/test_pointer-events-3.xhtml => dom/svg/test/test_pointer-events-3.xhtml
rename : content/svg/content/test/test_pointer-events-4.xhtml => dom/svg/test/test_pointer-events-4.xhtml
rename : content/svg/content/test/test_pointer-events-5.xhtml => dom/svg/test/test_pointer-events-5.xhtml
rename : content/svg/content/test/test_pointer-events-6.xhtml => dom/svg/test/test_pointer-events-6.xhtml
rename : content/svg/content/test/test_scientific.html => dom/svg/test/test_scientific.html
rename : content/svg/content/test/test_selectSubString.xhtml => dom/svg/test/test_selectSubString.xhtml
rename : content/svg/content/test/test_stroke-linecap-hit-testing.xhtml => dom/svg/test/test_stroke-linecap-hit-testing.xhtml
rename : content/svg/content/test/test_switch.xhtml => dom/svg/test/test_switch.xhtml
rename : content/svg/content/test/test_text.html => dom/svg/test/test_text.html
rename : content/svg/content/test/test_text_2.html => dom/svg/test/test_text_2.html
rename : content/svg/content/test/test_text_dirty.html => dom/svg/test/test_text_dirty.html
rename : content/svg/content/test/test_text_lengthAdjust.html => dom/svg/test/test_text_lengthAdjust.html
rename : content/svg/content/test/test_text_scaled.html => dom/svg/test/test_text_scaled.html
rename : content/svg/content/test/test_text_selection.html => dom/svg/test/test_text_selection.html
rename : content/svg/content/test/test_text_update.html => dom/svg/test/test_text_update.html
rename : content/svg/content/test/test_transform.xhtml => dom/svg/test/test_transform.xhtml
rename : content/svg/content/test/test_transformParsing.html => dom/svg/test/test_transformParsing.html
rename : content/svg/content/test/test_valueAsString.xhtml => dom/svg/test/test_valueAsString.xhtml
rename : content/svg/content/test/test_valueLeaks.xhtml => dom/svg/test/test_valueLeaks.xhtml
rename : content/svg/content/test/test_viewport.html => dom/svg/test/test_viewport.html
rename : content/svg/content/test/test_zoom.xhtml => dom/svg/test/test_zoom.xhtml
rename : content/svg/content/test/text-helper-scaled.svg => dom/svg/test/text-helper-scaled.svg
rename : content/svg/content/test/text-helper-selection.svg => dom/svg/test/text-helper-selection.svg
rename : content/svg/content/test/text-helper.svg => dom/svg/test/text-helper.svg
rename : content/svg/content/test/viewport-helper.svg => dom/svg/test/viewport-helper.svg
rename : content/svg/content/test/zoom-helper.svg => dom/svg/test/zoom-helper.svg
2014-10-25 20:21:12 +03:00

1440 lines
53 KiB
HTML

<html xmlns="http://www.w3.org/1999/xhtml">
<!--
https://bugzilla.mozilla.org/show_bug.cgi?id=515116
-->
<head>
<title>Generic tests for SVG animated length lists</title>
<script type="text/javascript" src="/tests/SimpleTest/SimpleTest.js"></script>
<script type="text/javascript" src="matrixUtils.js"></script>
<script type="text/javascript" src="MutationEventChecker.js"></script>
<link rel="stylesheet" type="text/css" href="/tests/SimpleTest/test.css" />
</head>
<body>
<a target="_blank" href="https://bugzilla.mozilla.org/show_bug.cgi?id=515116">Mozilla Bug 515116</a>
<p id="display"></p>
<div id="content" style="display:none;">
<svg id="svg" xmlns="http://www.w3.org/2000/svg" width="100" height="100"
onload="this.pauseAnimations();">
<desc>
<filter>
<feComponentTransfer>
<feFuncR id="feFuncR" type="table"/>
</feComponentTransfer>
</filter>
</desc>
<text id="text">text</text>
<path id="path"/>
<polyline id="polyline"/>
<g id="g"/>
</svg>
</div>
<pre id="test">
<script class="testbody" type="text/javascript">
<![CDATA[
SimpleTest.waitForExplicitFinish();
/*
This file runs a series of type-agnostic tests to check the state of the mini DOM trees that represent various SVG 'list' attributes (including checking the "object identity" of the objects in those trees) in the face of various changes, both with and without the complication of SMIL animation being active.
For additional high level information on the tests that are run, see the comment for 'create_animate_elements' below.
To have the battery of generic tests run for a new list attribute, add an element with that attribute to the document, then add a JavaScript object literal to the following 'tests' array with the following properties:
target_element_id
The ID of the element that has the attribute that is to be tested.
attr_name
The name of the attribute that is to be tested.
prop_name
The name of the DOM property that corresponds to the attribute that is to
be tested. For some list types the SVGAnimatedXxxList interface is
inherited by the element interface rather than the element having a
property of that type, and in others the list type is not animatable so
there is no SVGAnimatedXxxList interface for that list type. In these
cases this property should be set to null.
bv_name
The name of the DOM base value property for the attribute that is to be
tested. This is usually 'baseVal', but not always. In the case of
SVGStringList, which is not animatable, this is the name of the
SVGStringList property.
av_name
The name of the DOM anim value property for the attribute that is to be
tested. This is usually 'animVal' but not always. In the case of
SVGStringList, which is not animatable, this should be set to null.
el_type
The name of the SVGXxxElement interface on which the property corresponding
to the attribute being tested is defined.
prop_type
The name of the SVGAnimatedXxxList interface (e.g. SVGAnimatedLengthList),
if it exists, and if the element has a property is of this type (as
opposed to the element interface inheriting it).
list_type
The name of the SVGXxxList inteface implemented by the baseVal and
animVal objects.
item_type
The name of the SVGXxx interface implemented by the list items.
attr_val_3a:
attr_val_3b:
Two attribute values containing three different items.
attr_val_4
An attribute value containing four items.
attr_val_5a:
attr_val_5b:
Two attribute values containing five different items.
attr_val_5b_firstItem_x3_constructor:
Function to construct a list-item that should match the first item in a
SVGXxxList after three repeats of a cumulative animation to attr_val_5b.
This function takes t.item_constructor as its only argument.
item_constructor:
Function to create a dummy list item.
item_is:
Function to compare two list items for equality, like "is()". If this
property is omitted, it is assumed that we can just compare
"item.value" (which is the case for most list types).
*/
//helper method
function keys(obj) {
var rval = [];
for (var prop in obj) {
rval.push(prop);
}
return rval;
};
var tests = [
{
// SVGLengthList test:
target_element_id: 'text',
attr_name: 'x',
prop_name: 'x',
bv_name: 'baseVal',
av_name: 'animVal',
el_type: 'SVGTextElement',
prop_type: 'SVGAnimatedLengthList',
list_type: 'SVGLengthList',
item_type: 'SVGLength',
attr_val_3a: '10 20ex, 30in',
attr_val_3b: '30in 10, 20ex',
attr_val_4 : '10 20ex, 30in ,40cm',
attr_val_5a: '10 20ex, 30in ,40cm , 50%',
attr_val_5b: '20 50%, 20ex ,30in , 40cm',
attr_val_5b_firstItem_x3_constructor: function(constructor) {
var expected = constructor();
expected.value = 60;
return expected;
},
item_constructor: function() {
// We need this function literal to avoid "Illegal operation on
// WrappedNative prototype object" NS_ERROR_XPC_BAD_OP_ON_WN_PROTO.
return document.getElementById('svg').createSVGLength();
}
},
{
// SVGNumberList test:
target_element_id: 'text',
attr_name: 'rotate',
prop_name: 'rotate',
bv_name: 'baseVal',
av_name: 'animVal',
el_type: 'SVGTextElement',
prop_type: 'SVGAnimatedNumberList',
list_type: 'SVGNumberList',
item_type: 'SVGNumber',
attr_val_3a: '0 20 40',
attr_val_3b: '60 40 20',
attr_val_4 : '40 20 10 80',
attr_val_5a: '90 30 60 20 70',
attr_val_5b: '30 20 70 30 90',
attr_val_5b_firstItem_x3_constructor: function(constructor) {
var expected = constructor();
expected.value = 90;
return expected;
},
item_constructor: function() {
// We need this function literal to avoid "Illegal operation on
// WrappedNative prototype object" NS_ERROR_XPC_BAD_OP_ON_WN_PROTO.
return document.getElementById('svg').createSVGNumber();
}
},
{
// SVGNumberList test:
target_element_id: 'feFuncR',
attr_name: 'tableValues',
prop_name: 'tableValues',
bv_name: 'baseVal',
av_name: 'animVal',
el_type: 'SVGFEComponentTransferElement',
prop_type: 'SVGAnimatedNumberList',
list_type: 'SVGNumberList',
item_type: 'SVGNumber',
attr_val_3a: '0 .5 .2',
attr_val_3b: '1 .7 .1',
attr_val_4 : '.5 .3 .8 .2',
attr_val_5a: '3 4 5 6 7',
attr_val_5b: '7 6 5 4 3',
attr_val_5b_firstItem_x3_constructor: function(constructor) {
var expected = constructor();
expected.value = 21;
return expected;
},
item_constructor: function() {
// We need this function literal to avoid "Illegal operation on
// WrappedNative prototype object" NS_ERROR_XPC_BAD_OP_ON_WN_PROTO.
return document.getElementById('svg').createSVGNumber();
}
},
{
// SVGPointList test:
target_element_id: 'polyline',
attr_name: 'points',
prop_name: null, // SVGAnimatedPoints is an inherited interface!
bv_name: 'points',
av_name: 'animatedPoints',
el_type: 'SVGPolylineElement',
prop_type: null,
list_type: 'SVGPointList',
item_type: 'SVGPoint',
attr_val_3a: ' 10,10 50,50 90,10 ',
attr_val_3b: ' 10,50 50,10 90,50 ',
attr_val_4 : ' 10,10 50,50 90,10 200,100 ',
attr_val_5a: ' 10,10 50,50 90,10 130,50 170,10 ',
attr_val_5b: ' 50,10 50,10 90,50 130,10 170,50 ',
attr_val_5b_firstItem_x3_constructor: function(constructor) {
var expected = constructor();
expected.x = 150;
expected.y = 30;
return expected;
},
item_constructor: function() {
// XXX return different values each time
return document.getElementById('svg').createSVGPoint();
},
item_is: function(itemA, itemB, message) {
ok(typeof(itemA.x) != 'undefined' &&
typeof(itemB.x) != 'undefined',
'expecting x property');
ok(typeof(itemA.y) != 'undefined' &&
typeof(itemB.y) != 'undefined',
'expecting y property');
is(itemA.x, itemB.x, message);
is(itemA.y, itemB.y, message);
}
},
{
// SVGPathSegList test:
target_element_id: 'path',
attr_name: 'd',
prop_name: null, // SVGAnimatedPathData is an inherited interface!
bv_name: 'pathSegList',
av_name: 'animatedPathSegList',
el_type: 'SVGPathElement',
prop_type: null,
list_type: 'SVGPathSegList',
item_type: 'SVGPathSeg',
attr_val_3a: 'M 10,10 L 50,50 L 90,10',
attr_val_3b: 'M 10,50 L 50,10 L 90,50',
attr_val_4 : 'M 10,10 L 50,50 L 90,10 M 200,100',
attr_val_5a: 'M 10,10 L 50,50 L 90,10 L 130,50 L 170,10',
attr_val_5b: 'M 50,10 L 50,10 L 90,50 L 130,10 L 170,50',
attr_val_5b_firstItem_x3_constructor: function(constructor) {
var expected = constructor();
is(expected.pathSegTypeAsLetter, "M",
"test error -- expected constructor to generate a segment of type M");
expected.x = 150;
expected.y = 30;
return expected;
},
item_constructor: function() {
// XXX return different values each time
return document.getElementById('path').createSVGPathSegMovetoAbs(1, 1);
},
item_is: function(itemA, itemB, message) {
ok(typeof(itemA.pathSegTypeAsLetter) != 'undefined' &&
typeof(itemB.pathSegTypeAsLetter) != 'undefined',
'expecting pathSegTypeAsLetter property');
// First: are we dealing with the same type of segment?
is(itemA.pathSegTypeAsLetter, itemB.pathSegTypeAsLetter, message);
if (itemA.pathSegTypeAsLetter != itemB.pathSegTypeAsLetter)
return; // The rest of this function is nonsense if types don't match.
// Make sure property-counts match (so we can iterate across itemA's
// properties and not worry about itemB having extra properties that
// we might be skipping over).
is(keys(itemA).length, keys(itemB).length,
'expecting same property-count when comparing path segs of same type.');
// Compare the properties, skipping the constant properties inherited
// from 'SVGPathSeg', and skipping the pathSegTypeAsLetter field since we
// already checked that above.
for (var prop in itemA) {
if (!SVGPathSeg.hasOwnProperty(prop) &&
prop != 'pathSegTypeAsLetter') {
is(itemA[prop], itemB[prop], message);
}
}
}
},
{
// SVGStringList test:
target_element_id: 'g',
attr_name: 'requiredFeatures', // requiredExtensions, systemLanguage, viewTarget
prop_name: null, // SVGStringList attributes are not animatable
bv_name: 'requiredFeatures',
av_name: null,
el_type: 'SVGGElement',
prop_type: null,
list_type: 'SVGStringList',
item_type: 'DOMString',
attr_val_3a: 'http://www.w3.org/TR/SVG11/feature#Shape http://www.w3.org/TR/SVG11/feature#Image ' +
'http://www.w3.org/TR/SVG11/feature#Style',
attr_val_3b: 'http://www.w3.org/TR/SVG11/feature#CoreAttribute http://www.w3.org/TR/SVG11/feature#Structure ' +
'http://www.w3.org/TR/SVG11/feature#Gradient',
attr_val_4 : 'http://www.w3.org/TR/SVG11/feature#Pattern http://www.w3.org/TR/SVG11/feature#Clip ' +
'http://www.w3.org/TR/SVG11/feature#Mask http://www.w3.org/TR/SVG11/feature#Extensibility',
attr_val_5a: 'http://www.w3.org/TR/SVG11/feature#BasicStructure http://www.w3.org/TR/SVG11/feature#BasicText ' +
'http://www.w3.org/TR/SVG11/feature#BasicPaintAttribute http://www.w3.org/TR/SVG11/feature#BasicGraphicsAttribute ' +
'http://www.w3.org/TR/SVG11/feature#BasicClip',
attr_val_5b: 'http://www.w3.org/TR/SVG11/feature#DocumentEventsAttribute http://www.w3.org/TR/SVG11/feature#GraphicalEventsAttribute ' +
'http://www.w3.org/TR/SVG11/feature#AnimationEventsAttribute http://www.w3.org/TR/SVG11/feature#Hyperlinking ' +
'http://www.w3.org/TR/SVG11/feature#XlinkAttribute',
item_constructor: function() {
return 'http://www.w3.org/TR/SVG11/feature#XlinkAttribute';
}
},
{
// SVGTransformList test:
target_element_id: 'g',
attr_name: 'transform', // gradientTransform, patternTransform
prop_name: 'transform',
bv_name: 'baseVal',
av_name: 'animVal',
el_type: 'SVGGElement',
prop_type: 'SVGAnimatedTransformList',
list_type: 'SVGTransformList',
item_type: 'SVGTransform',
attr_val_3a: 'translate(20 10) rotate(90 10 10) skewX(45)',
attr_val_3b: 'translate(30 40) scale(2) matrix(1 2 3 4 5 6)',
attr_val_4 : 'scale(3 2) translate(19) skewY(2) rotate(-10)',
attr_val_5a:
'translate(20) rotate(-10) skewY(3) matrix(1 2 3 4 5 6) scale(0.5)',
attr_val_5b:
'skewX(45) rotate(45 -10 -10) skewX(-45) scale(2) matrix(6 5 4 3 2 1)',
// SVGTransformList animation addition is tested in
// test_SVGTransformListAddition.xhtml so we don't need:
// - attr_val_3b
// - attr_val_3b
// - attr_val_5b_firstItem_x3_constructor
// But we populate the first two anyway just in case they are later used for
// something other than testing animation.
// attr_val_5b_firstItem_x3_constructor is only used for animation
item_constructor: function() {
// XXX populate the matrix with different values each time
return document.getElementById('svg').createSVGTransform();
},
item_is: function(itemA, itemB, message) {
ok(typeof(itemA.type) != 'undefined' &&
typeof(itemB.type) != 'undefined',
'expecting type property');
ok(typeof(itemA.matrix) != 'undefined' &&
typeof(itemB.matrix) != 'undefined',
'expecting matrix property');
ok(typeof(itemA.angle) != 'undefined' &&
typeof(itemB.angle) != 'undefined',
'expecting matrix property');
is(itemA.type, itemB.type, message);
is(itemA.angle, itemB.angle, message);
cmpMatrix(itemA.matrix, itemB.matrix, message);
}
},
];
/*
This function returns a DocumentFragment with three 'animate' element children. The duration of the three animations is as follows:
animation 1: | *-----------*-----------*-----------*
animation 2: | *--*
animation 3: | *--*
|___________________________________________> time (s)
| | | | | | | | | | | | | | |
0 1 2 3 4 5 6 7 8 9 10 11 12 13 14
The first animation repeats once so that we can test state on a repeat animation.
The second animation overrides the first animation for a short time, and has fewer list items than the first animation. This allows us to test object identity and other state on and after an overriding animation. Specifically, it allows us to check whether animVal list items are kept or discarded after the end of an overriding animation that has fewer items.
The third animation has additive="sum", with fewer items than the lower priority animation 1, allowing us to test object identity and other state in that scenario. TODO: some type aware tests to check whether the composite fails or works?
At t=0s and t=1s we test the effect of an attribute value changes in the absence and presence of SMIL animation respectively.
At t=10s we programatically remove the fill="freeze" from animation 1.
*/
function create_animate_elements(test)
{
var SVG_NS = 'http://www.w3.org/2000/svg';
var df = document.createDocumentFragment();
if (is_transform_attr(test.attr_name)) {
// animateTransform is "special". Although it targets an
// nsSVGAnimatedTransformList it only takes nsSVGTransform values as
// animation values. Therefore all the assumptions we're testing about the
// length of lists don't apply. We simply have to test it separately.
// This is done in test_SVGTransformListAddition.xhtml.
return df; // Return the empty document fragment
}
var animate1 = document.createElementNS(SVG_NS, 'animate');
var animate2 = document.createElementNS(SVG_NS, 'animate');
var animate3 = document.createElementNS(SVG_NS, 'animate');
animate1.setAttribute('attributeName', test.attr_name);
animate1.setAttribute('from', test.attr_val_5a);
animate1.setAttribute('to', test.attr_val_5b);
animate1.setAttribute('begin', '1s');
animate1.setAttribute('dur', '4s');
animate1.setAttribute('repeatCount', '3');
animate1.setAttribute('accumulate', 'sum');
animate1.setAttribute('fill', 'freeze');
df.appendChild(animate1);
animate2.setAttribute('attributeName', test.attr_name);
animate2.setAttribute('from', test.attr_val_3a);
animate2.setAttribute('to', test.attr_val_3b);
animate2.setAttribute('begin', '2s');
animate2.setAttribute('dur', '1s');
df.appendChild(animate2);
animate3.setAttribute('attributeName', test.attr_name);
animate3.setAttribute('from', test.attr_val_3a);
animate3.setAttribute('to', test.attr_val_3b);
animate3.setAttribute('begin', '7s');
animate3.setAttribute('dur', '1s');
animate3.setAttribute('additive', 'sum');
df.appendChild(animate3);
return df;
}
function is_transform_attr(attr_name) {
return attr_name == 'transform' ||
attr_name == 'gradientTransform' ||
attr_name == 'patternTransform';
}
function get_array_of_list_items(list)
{
array = [];
for (var i = 0; i < list.numberOfItems; ++i) {
array.push(list.getItem(i));
}
return array;
}
/**
* This function tests the SVGXxxList API for the base val list. This means
* running tests for the following property and methods:
*
* numberOfItems
* clear()
* SVGLength initialize(in SVGLength newItem)
* SVGLength getItem(in unsigned long index)
* SVGLength insertItemBefore(in SVGLength newItem, in unsigned long index)
* SVGLength replaceItem(in SVGLength newItem, in unsigned long index)
* SVGLength removeItem(in unsigned long index)
* SVGLength appendItem(in SVGLength newItem)
*
* @param t A test from the 'tests' array.
*/
function run_baseVal_API_tests()
{
var res, threw, items;
var eventChecker = new MutationEventChecker;
for (var t of tests) {
// Test .clear():
t.element.setAttribute(t.attr_name, t.attr_val_4);
is(t.baseVal.numberOfItems, 4,
'The '+t.list_type+' object should contain four list items.');
eventChecker.watchAttr(t.element, t.attr_name);
eventChecker.expect("modify");
res = t.baseVal.clear();
is(t.baseVal.numberOfItems, 0,
'The method '+t.list_type+'.clear() should clear the '+t.list_type+
' object.');
is(res, undefined,
'The method '+t.list_type+'.clear() should not return a value.');
ok(t.element.hasAttribute(t.attr_name),
'The method '+t.list_type+'.clear() should not remove the attribute.');
ok(t.element.getAttribute(t.attr_name) === "",
'Cleared '+t.attr_name+' ('+t.list_type+') but did not get an '+
'empty string back.');
eventChecker.expect("");
t.baseVal.clear();
eventChecker.ignoreEvents();
// Test empty strings
t.element.setAttribute(t.attr_name, "");
ok(t.element.getAttribute(t.attr_name) === "",
'Set an empty attribute value for '+t.attr_name+' ('+t.list_type+
') but did not get an empty string back.');
// Test removed attributes
t.element.removeAttribute(t.attr_name);
ok(t.element.getAttribute(t.attr_name) === null,
'Removed attribute value for '+t.attr_name+' ('+t.list_type+
') but did not get null back.');
ok(!t.element.hasAttribute(t.attr_name),
'Removed attribute value for '+t.attr_name+' ('+t.list_type+
') but hasAttribute still returns true.');
// Test .initialize():
t.element.setAttribute(t.attr_name, t.attr_val_4);
var item = t.item_constructor();
// Our current implementation of 'initialize' for most list types performs
// a 'clear' followed by an 'insertItemBefore'. This results in two
// modification events being dispatched. SVGStringList however avoids the
// additional clear.
var expectedModEvents =
t.item_type == "DOMString" ? "modify" : "modify modify";
eventChecker.expect(expectedModEvents);
var res = t.baseVal.initialize(item);
eventChecker.ignoreEvents();
is(t.baseVal.numberOfItems, 1,
'The '+t.list_type+' object should contain one list item.');
ok(res === item,
'The list item returned by '+t.list_type+'.initialize() should be the '+
'exact same object as the item that was passed to that method, since '+
'the item that was passed to that method did not already belong to a '+
'list.');
ok(t.baseVal.getItem(0) === item,
'The list item at index 0 should be the exact same object as the '+
'object that was passed to the '+t.list_type+'.initialize() method, '+
'since the item that was passed to that method did not already '+
'belong to a list.');
t.element.setAttribute(t.attr_name, t.attr_val_4);
if (t.item_type != "DOMString") {
var old_items = get_array_of_list_items(t.baseVal);
item = t.baseVal.getItem(3);
res = t.baseVal.initialize(item);
ok(res !== item &&
t.baseVal.getItem(0) !== item &&
t.baseVal.getItem(0) !== old_items[0] &&
res === t.baseVal.getItem(0),
'The method '+t.list_type+'.initialize() should clone the object that '+
'is passed in if that object is already in a list.');
// [SVGWG issue] not what the spec currently says
item = t.baseVal.getItem(0);
res = t.baseVal.initialize(item);
ok(res !== item &&
t.baseVal.getItem(0) !== item,
'The method '+t.list_type+'.initialize() should clone the object that '+
'is passed in, even if that object is the only item in that list.');
// [SVGWG issue] not what the spec currently says
eventChecker.expect("");
threw = false;
try {
t.baseVal.initialize({});
} catch(e) {
threw = true;
}
ok(threw,
'The method '+t.list_type+'.initialize() should throw if passed an '+
'object of the wrong type.');
eventChecker.ignoreEvents();
}
// Test .insertItemBefore():
t.element.setAttribute(t.attr_name, t.attr_val_4);
old_items = get_array_of_list_items(t.baseVal);
item = t.item_constructor();
eventChecker.expect("modify");
res = t.baseVal.insertItemBefore(item, 2);
eventChecker.ignoreEvents();
is(t.baseVal.numberOfItems, 5,
'The '+t.list_type+' object should contain five list items.');
ok(res === item,
'The list item returned by '+t.list_type+'.insertItemBefore() should '+
'be the exact same object as the item that was passed to that method, '+
'since the item that was passed to that method did not already belong '+
'to a list.');
ok(t.baseVal.getItem(2) === item,
'The list item at index 2 should be the exact same object as the '+
'object that was passed to the '+t.list_type+'.insertItemBefore() '+
'method, since the item that was passed to that method did not '+
'already belong to a list.');
ok(t.baseVal.getItem(3) === old_items[2],
'The list item that was at index 2 should be at index 3 after '+
'inserting a new item at index 2 using the '+t.list_type+
'.insertItemBefore() method.');
item = t.item_constructor();
t.baseVal.insertItemBefore(item, 100);
ok(t.baseVal.getItem(5) === item,
'When the index passed to the '+t.list_type+'.insertItemBefore() '+
'method is out of bounds, the supplied list item should be appended '+
'to the list.');
item = t.baseVal.getItem(4);
res = t.baseVal.insertItemBefore(item, 2);
is(t.baseVal.numberOfItems, 7,
'The '+t.list_type+' object should contain seven list items.');
if (t.item_type != "DOMString") {
ok(res !== item &&
t.baseVal.getItem(2) !== item &&
t.baseVal.getItem(2) !== old_items[2] &&
res === t.baseVal.getItem(2),
'The method '+t.list_type+'.insertItemBefore() should clone the '+
'object that is passed in if that object is already in a list.');
// [SVGWG issue] not what the spec currently says
}
item = t.baseVal.getItem(2);
res = t.baseVal.insertItemBefore(item, 2);
is(t.baseVal.numberOfItems, 8,
'The '+t.list_type+' object should contain eight list items.');
if (t.item_type != "DOMString") {
ok(res !== item &&
t.baseVal.getItem(2) !== item,
'The method '+t.list_type+'.insertItemBefore() should clone the '+
'object that is passed in, even if that object is the item in '+
'the list at the index specified.');
// [SVGWG issue] not what the spec currently says
eventChecker.expect("");
threw = false;
try {
t.baseVal.insertItemBefore({}, 2);
} catch(e) {
threw = true;
}
ok(threw,
'The method '+t.list_type+'.insertItemBefore() should throw if passed '+
'an object of the wrong type.');
eventChecker.ignoreEvents();
}
// Test .replaceItem():
t.element.setAttribute(t.attr_name, t.attr_val_4);
old_items = get_array_of_list_items(t.baseVal);
item = t.item_constructor();
eventChecker.expect("modify");
res = t.baseVal.replaceItem(item, 2);
eventChecker.ignoreEvents();
is(t.baseVal.numberOfItems, 4,
'The '+t.list_type+' object should contain four list items.');
if (t.item_type != "DOMString") {
ok(res === item,
'The list item returned by '+t.list_type+'.replaceItem() should be '+
'the exact same object as the item that was passed to that method, '+
'since the item that was passed to that method did not already belong '+
'to a list.');
}
ok(t.baseVal.getItem(2) === item,
'The list item at index 2 should be the exact same object as the '+
'object that was passed to the '+t.list_type+'.replaceItem() method, '+
'since the item that was passed to that method did not already belong '+
'to a list.');
ok(t.baseVal.getItem(3) === old_items[3],
'The list item that was at index 3 should still be at index 3 after '+
'the item at index 2 was replaced using the '+t.list_type+
'.replaceItem() method.');
item = t.item_constructor();
eventChecker.expect("");
threw = false;
try {
t.baseVal.replaceItem(item, 100);
} catch(e) {
threw = true;
}
ok(threw,
'The method '+t.list_type+'.replaceItem() should throw if passed '+
'an index that is out of bounds.');
eventChecker.ignoreEvents();
old_items = get_array_of_list_items(t.baseVal);
item = t.baseVal.getItem(3);
res = t.baseVal.replaceItem(item, 1);
is(t.baseVal.numberOfItems, 4,
'The '+t.list_type+' object should contain four list items.');
if (t.item_type != "DOMString") {
ok(res !== item &&
t.baseVal.getItem(1) !== item &&
t.baseVal.getItem(1) !== old_items[1] &&
res === t.baseVal.getItem(1),
'The method '+t.list_type+'.replaceItem() should clone the object '+
'that is passed in if that object is already in a list.');
// [SVGWG issue] not what the spec currently says
}
item = t.baseVal.getItem(1);
res = t.baseVal.replaceItem(item, 1);
is(t.baseVal.numberOfItems, 4,
'The '+t.list_type+' object should contain four list items.');
if (t.item_type != "DOMString") {
ok(res !== item &&
t.baseVal.getItem(1) !== item,
'The method '+t.list_type+'.replaceItem() should clone the object '+
'that is passed in, even if the object that object and the object '+
'that is being replaced are the exact same objects.');
// [SVGWG issue] not what the spec currently says
threw = false;
try {
t.baseVal.replaceItem({}, 2);
} catch(e) {
threw = true;
}
ok(threw,
'The method '+t.list_type+'.replaceItem() should throw if passed '+
'an object of the wrong type.');
}
// Test .removeItem():
t.element.setAttribute(t.attr_name, t.attr_val_4);
old_items = get_array_of_list_items(t.baseVal);
item = t.baseVal.getItem(2);
eventChecker.expect("modify");
res = t.baseVal.removeItem(2);
eventChecker.ignoreEvents();
is(t.baseVal.numberOfItems, 3,
'The '+t.list_type+' object should contain three list items.');
if (t.item_type != "DOMString") {
ok(res === item,
'The list item returned by '+t.list_type+'.removeItem() should be the '+
'exact same object as the item that was at the specified index.');
}
ok(t.baseVal.getItem(1) === old_items[1],
'The list item that was at index 1 should still be at index 1 after '+
'the item at index 2 was removed using the '+t.list_type+
'.replaceItem() method.');
ok(t.baseVal.getItem(2) === old_items[3],
'The list item that was at index 3 should still be at index 2 after '+
'the item at index 2 was removed using the '+t.list_type+
'.replaceItem() method.');
eventChecker.expect("");
threw = false;
try {
t.baseVal.removeItem(100);
} catch(e) {
threw = true;
}
ok(threw,
'The method '+t.list_type+'.removeItem() should throw if passed '+
'an index that is out of bounds.');
eventChecker.ignoreEvents();
// Test .appendItem():
t.element.setAttribute(t.attr_name, t.attr_val_4);
old_items = get_array_of_list_items(t.baseVal);
item = t.item_constructor();
eventChecker.expect("modify");
res = t.baseVal.appendItem(item);
eventChecker.ignoreEvents();
is(t.baseVal.numberOfItems, 5,
'The '+t.list_type+' object should contain five list items.');
ok(res === item,
'The list item returned by '+t.list_type+'.appendItem() should be the '+
'exact same object as the item that was passed to that method, since '+
'the item that was passed to that method did not already belong '+
'to a list.');
ok(t.baseVal.getItem(4) === item,
'The last list item should be the exact same object as the object '+
'that was passed to the '+t.list_type+'.appendItem() method, since '+
'the item that was passed to that method did not already belong to '+
'a list.');
ok(t.baseVal.getItem(3) === old_items[3],
'The list item that was at index 4 should still be at index 4 after '+
'appending a new item using the '+t.list_type+'.appendItem() '+
'method.');
item = t.baseVal.getItem(2);
res = t.baseVal.appendItem(item);
is(t.baseVal.numberOfItems, 6,
'The '+t.list_type+' object should contain six list items.');
if (t.item_type != "DOMString") {
ok(res !== item &&
t.baseVal.getItem(5) !== item &&
res === t.baseVal.getItem(5),
'The method '+t.list_type+'.appendItem() should clone the object '+
'that is passed in if that object is already in a list.');
// [SVGWG issue] not what the spec currently says
}
item = t.baseVal.getItem(5);
res = t.baseVal.appendItem(item);
is(t.baseVal.numberOfItems, 7,
'The '+t.list_type+' object should contain seven list items.');
if (t.item_type != "DOMString") {
ok(res !== item &&
t.baseVal.getItem(6) !== item,
'The method '+t.list_type+'.appendItem() should clone the object '+
'that is passed in, if that object is already the last item in '+
'that list.');
// [SVGWG issue] not what the spec currently says
eventChecker.expect("");
threw = false;
try {
t.baseVal.appendItem({});
} catch(e) {
threw = true;
}
ok(threw,
'The method '+t.list_type+'.appendItem() should throw if passed '+
'an object of the wrong type.');
eventChecker.ignoreEvents();
}
// Test removal and addition events
eventChecker.expect("remove add");
t.element.removeAttribute(t.attr_name);
t.element.removeAttributeNS(null, t.attr_name);
res = t.baseVal.appendItem(item);
eventChecker.finish();
}
}
/**
* This function tests the SVGXxxList API for the anim val list (see also the
* comment for test_baseVal_API).
*/
function run_animVal_API_tests()
{
var threw, item;
for (var t of tests) {
if (!t.animVal)
continue; // SVGStringList isn't animatable
item = t.item_constructor();
t.element.setAttribute(t.attr_name, t.attr_val_4);
is(t.animVal.numberOfItems, 4,
'The '+t.list_type+' object should contain four list items.');
// Test .clear():
threw = false;
try {
t.animVal.clear();
} catch(e) {
threw = true;
}
ok(threw,
'The method '+t.list_type+'.clear() should throw when called on an '+
'anim val list, since anim val lists should be readonly.');
// Test .getItem():
var item = t.animVal.getItem(2);
ok(item != null && item === t.animVal.getItem(2),
'The method '+t.list_type+'.getItem() should work when called on an '+
'anim val list, and always return the exact same object.');
// .initialize()
threw = false;
try {
t.animVal.initialize(item);
} catch(e) {
threw = true;
}
ok(threw,
'The method '+t.list_type+'.initialize() should throw when called on '+
'an anim val list, since anim val lists should be readonly.');
// Test .insertItemBefore():
threw = false;
try {
t.animVal.insertItemBefore(item, 2);
} catch(e) {
threw = true;
}
ok(threw,
'The method '+t.list_type+'.insertItemBefore() should throw when '+
'called on an anim val list, since anim val lists should be readonly.');
// Test .replaceItem():
threw = false;
try {
t.animVal.replaceItem(item, 2);
} catch(e) {
threw = true;
}
ok(threw,
'The method '+t.list_type+'.replaceItem() should throw when called '+
'on an anim val list, since anim val lists should be readonly.');
// Test .removeItem():
threw = false;
try {
t.animVal.removeItem(2);
} catch(e) {
threw = true;
}
ok(threw,
'The method '+t.list_type+'.removeItem() should throw when called '+
'on an anim val list, since anim val lists should be readonly.');
// Test .appendItem():
threw = false;
try {
t.animVal.appendItem(item);
} catch(e) {
threw = true;
}
ok(threw,
'The method '+t.list_type+'.appendItem() should throw when called '+
'on an anim val list, since anim val lists should be readonly.');
}
}
/**
* This function runs some basic tests to check the effect of setAttribute()
* calls on object identity, without taking SMIL animation into consideration.
*/
function run_basic_setAttribute_tests()
{
for (var t of tests) {
// Since the t.prop, t.baseVal and t.animVal objects should never ever
// change, we leave testing of them to our caller so that it can check
// them after all the other mutations such as SMIL changes.
t.element.setAttribute(t.attr_name, t.attr_val_4);
ok(t.baseVal.numberOfItems == 4 && t.baseVal.getItem(3) != null,
'The length of the '+t.list_type+' object for '+t.bv_path+' should '+
'have been set to 4 by the setAttribute() call.');
if (t.animVal) {
ok(t.baseVal.numberOfItems == t.animVal.numberOfItems,
'When no animations are active, the '+t.list_type+' objects for '+
t.bv_path+' and '+t.av_path+' should be the same length (4).');
ok(t.baseVal !== t.animVal,
'The '+t.list_type+' objects for '+t.bv_path+' and '+t.av_path+
' should be different objects.');
ok(t.baseVal.getItem(0) !== t.animVal.getItem(0),
'The '+t.item_type+' list items in the '+t.list_type+' objects for '+
t.bv_path+' and '+t.av_path+' should be different objects.');
}
ok(t.baseVal.getItem(0) === t.baseVal.getItem(0),
'The exact same '+t.item_type+' DOM object should be returned each '+
'time the item at a given index in the '+t.list_type+' for '+
t.bv_path+' is accessed, given that the index was not made invalid '+
'by a change in list length between the successive accesses.');
if (t.animVal) {
ok(t.animVal.getItem(0) === t.animVal.getItem(0),
'The exact same '+t.item_type+' DOM object should be returned each '+
'time the item at a given index in the '+t.list_type+' for '+
t.av_path+' is accessed, given that the index was not made invalid '+
'by a change in list length between the successive accesses.');
}
// Test the effect of setting the attribute to new values:
t.old_baseVal_items = get_array_of_list_items(t.baseVal);
if (t.animVal) {
t.old_animVal_items = get_array_of_list_items(t.animVal);
}
t.element.setAttribute(t.attr_name, t.attr_val_3a);
t.element.setAttribute(t.attr_name, t.attr_val_5a);
ok(t.baseVal.numberOfItems == 5 && t.baseVal.getItem(4) != null,
'The length of the '+t.list_type+' object for '+t.bv_path+' should '+
'have been set to 5 by the setAttribute() call.');
if (t.animVal) {
ok(t.baseVal.numberOfItems == t.animVal.numberOfItems,
'Since no animations are active, the length of the '+t.list_type+' '+
'objects for '+t.bv_path+' and '+t.av_path+' should be the same '+
'(5).');
}
if (t.item_type != "DOMString") {
ok(t.baseVal.getItem(2) === t.old_baseVal_items[2],
'After its attribute changes, list items in the '+t.list_type+' for '+
t.bv_path+' that are at indexes that existed prior to the attribute '+
'change should be the exact same objects as the objects that were '+
'at those indexes prior to the attribute change.');
ok(t.baseVal.getItem(3) !== t.old_baseVal_items[3],
'After its attribute changes, list items in the '+t.list_type+' for '+
t.bv_path+' that are at indexes that did not exist prior to the '+
'attribute change should not be the same objects as any objects that '+
'were at those indexes at some earlier time.');
}
if (t.animVal) {
ok(t.animVal.getItem(2) === t.old_animVal_items[2],
'After its attribute changes, list items in the '+t.list_type+' for '+
t.av_path+' that are at indexes that existed prior to the attribute '+
'change should be the exact same objects as the objects that were '+
'at those indexes prior to the attribute change.');
ok(t.animVal.getItem(3) !== t.old_animVal_items[3],
'After its attribute changes, list items in the '+t.list_type+' for '+
t.av_path+' that are at indexes that did not exist prior to the '+
'attribute change should not be the same objects as any objects '+
'that were at those indexes at some earlier time.');
}
}
}
/**
* This function verifies that a list's animVal is kept in sync with its
* baseVal, when we add & remove items from the baseVal.
*/
function run_list_mutation_tests()
{
for (var t of tests) {
if (t.animVal) {
// Test removeItem()
// =================
// Save second item in baseVal list; then make it the first item, and
// check that animVal is updated accordingly.
t.element.setAttribute(t.attr_name, t.attr_val_4);
var secondVal = t.baseVal.getItem(1);
var removedFirstVal = t.baseVal.removeItem(0);
t.item_is(t.animVal.getItem(0), secondVal,
'animVal for '+t.attr_name+' needs update after first item ' +
'removed');
// Repeat with last item
var secondToLastVal = t.baseVal.getItem(1);
var removedLastVal = t.baseVal.removeItem(2);
var threw = false;
try {
t.animVal.getItem(2);
} catch(e) {
threw = true;
}
ok(threw,
'The method '+t.attr_name+'.animVal.getItem() for previously-final ' +
'index should throw after final item is removed from baseVal.');
t.item_is(t.animVal.getItem(1), secondToLastVal,
'animVal for ' + t.attr_name +' needs update after last item ' +
'removed');
// Test insertItemBefore()
// =======================
// Reset base value, insert value @ start, check that animVal is updated.
t.element.setAttribute(t.attr_name, t.attr_val_3a);
t.baseVal.insertItemBefore(removedLastVal, 0);
t.item_is(t.animVal.getItem(0), removedLastVal,
'animVal for '+t.attr_name+' needs update after insert at ' +
'beginning');
// Repeat with insert at end
t.element.setAttribute(t.attr_name, t.attr_val_3a);
t.baseVal.insertItemBefore(removedFirstVal, t.baseVal.numberOfItems);
t.item_is(t.animVal.getItem(t.baseVal.numberOfItems - 1),
removedFirstVal,
'animVal for '+t.attr_name+' needs update after insert at end');
// Test appendItem()
// =================
var dummy = t.item_constructor();
t.baseVal.appendItem(dummy);
t.item_is(t.animVal.getItem(t.baseVal.numberOfItems - 1), dummy,
'animVal for '+t.attr_name+' needs update after appendItem');
// Test clear()
// ============
t.baseVal.clear();
threw = false;
try {
t.animVal.getItem(0);
} catch(e) {
threw = true;
}
ok(threw,
'The method '+t.attr_name+'.animVal.getItem() should throw after ' +
'we\'ve cleared baseVal.');
is(t.animVal.numberOfItems, 0,
'animVal for '+t.attr_name+' should be empty after baseVal cleared');
// Test initialize()
// =================
t.element.setAttribute(t.attr_name, t.attr_val_3a);
t.baseVal.initialize(dummy);
is(t.animVal.numberOfItems, 1,
'animVal for '+t.attr_name+' should have length 1 after initialize');
t.item_is(t.animVal.getItem(0), dummy,
'animVal for '+t.attr_name+' needs update after initialize');
}
}
}
/**
* In this function we run a series of tests at various points along the SMIL
* animation timeline, using SVGSVGElement.setCurrentTime() to move forward
* along the timeline.
*
* See the comment for create_animate_elements() for details of the animations
* and their timings.
*/
function run_animation_timeline_tests()
{
var svg = document.getElementById('svg');
for (var t of tests) {
// Skip if there is no animVal for this test or if it is a transform list
// since these are handled specially
if (!t.animVal || is_transform_attr(t.attr_name))
continue;
svg.setCurrentTime(0); // reset timeline
// Reset attributes before moving along the timeline and triggering SMIL:
t.element.setAttribute(t.attr_name, t.attr_val_4);
t.old_baseVal_items = get_array_of_list_items(t.baseVal);
t.old_animVal_items = get_array_of_list_items(t.animVal);
/******************** t = 1s ********************/
svg.setCurrentTime(1); // begin first animation
ok(t.baseVal.numberOfItems == t.old_baseVal_items.length &&
t.baseVal.getItem(3) === t.old_baseVal_items[3],
'The start of an animation should never affect the '+t.list_type+
' for '+t.bv_path+', or its list items.');
ok(t.animVal.numberOfItems == 5 && t.animVal.getItem(4) != null,
'The start of the animation should have changed the number of items '+
'in the '+t.list_type+' for '+t.bv_path+' to 5.');
// TODO
if (t.list_type != 'SVGPathSegList') {
ok(t.animVal.getItem(3) === t.old_animVal_items[3],
'When affected by SMIL animation, list items in the '+t.list_type+
' for '+t.bv_path+' that are at indexes that existed prior to the '+
'start of the animation should be the exact same objects as the '+
'objects that were at those indexes prior to the start of the '+
'animation.');
}
t.old_animVal_items = get_array_of_list_items(t.animVal);
t.element.setAttribute(t.attr_name, t.attr_val_3a);
ok(t.baseVal.numberOfItems == 3 &&
t.baseVal.getItem(2) === t.old_baseVal_items[2],
'Setting the underlying attribute should change the items in the '+
t.list_type+' for '+t.bv_path+', including when an animation is '+
'in progress.');
ok(t.animVal.numberOfItems == 5 &&
t.animVal.getItem(4) === t.old_animVal_items[4],
'Setting the underlying attribute should not change the '+t.list_type+
' for '+t.bv_path+' when an animation that does not depend on the '+
'base val is in progress.');
t.element.setAttribute(t.attr_name, t.attr_val_4); // reset
t.old_baseVal_items = get_array_of_list_items(t.baseVal);
t.old_animVal_items = get_array_of_list_items(t.animVal);
/******************** t = 2s ********************/
svg.setCurrentTime(2); // begin override animation
ok(t.baseVal.numberOfItems == t.old_baseVal_items.length &&
t.baseVal.getItem(3) === t.old_baseVal_items[3],
'The start of an override animation should never affect the '+
t.list_type+' for '+t.bv_path+', or its list items.');
is(t.animVal.numberOfItems, 3,
'The start of the override animation should have changed the number '+
'of items in the '+t.list_type+' for '+t.bv_path+' to 3.');
ok(t.animVal.getItem(2) === t.old_animVal_items[2],
'When affected by an override SMIL animation, list items in the '+
t.list_type+' for '+t.bv_path+' that are at indexes that existed '+
'prior to the start of the animation should be the exact same '+
'objects as the objects that were at those indexes prior to the '+
'start of that animation.');
t.old_animVal_items = get_array_of_list_items(t.animVal);
/******************** t = 3s ********************/
svg.setCurrentTime(3); // end of override animation
ok(t.baseVal.numberOfItems == t.old_baseVal_items.length &&
t.baseVal.getItem(3) === t.old_baseVal_items[3],
'The end of an override animation should never affect the '+
t.list_type+' for '+t.bv_path+', or its list items.');
is(t.animVal.numberOfItems, 5,
'At the end of the override animation, the number of items in the '+
t.list_type+' for '+t.bv_path+' should have reverted to 5.');
ok(t.animVal.getItem(2) === t.old_animVal_items[2],
'At the end of the override animation, list items in the '+
t.list_type+' for '+t.bv_path+' that are at indexes that existed '+
'prior to the end of the animation should be the exact same '+
'objects as the objects that were at those indexes prior to the '+
'end of that animation.');
t.old_animVal_items = get_array_of_list_items(t.animVal);
/******************** t = 5s ********************/
svg.setCurrentTime(5); // animation repeat point
ok(t.baseVal.numberOfItems == t.old_baseVal_items.length &&
t.baseVal.getItem(3) === t.old_baseVal_items[3],
'When a SMIL animation repeats, it should never affect the '+
t.list_type+' for '+t.bv_path+', or its list items.');
ok(t.animVal.numberOfItems == t.old_animVal_items.length &&
t.animVal.getItem(4) === t.old_animVal_items[4],
'When an animation repeats, the list items that are at a given '+
'index in the '+t.list_type+' for '+t.av_path+' should be the exact '+
'same objects as were at that index before the repeat occured.');
/******************** t = 6s ********************/
svg.setCurrentTime(6); // inside animation repeat
ok(t.baseVal.numberOfItems == t.old_baseVal_items.length &&
t.baseVal.getItem(3) === t.old_baseVal_items[3],
'When a SMIL animation repeats, it should never affect the '+
t.list_type+' for '+t.bv_path+', or its list items.');
ok(t.animVal.numberOfItems == t.old_animVal_items.length &&
t.animVal.getItem(4) === t.old_animVal_items[4],
'When an animation repeats, the list items that are at a given '+
'index in the '+t.list_type+' for '+t.av_path+' should be the exact '+
'same objects as were at that index before the repeat occured.');
/******************** t = 7s ********************/
svg.setCurrentTime(7); // start of additive="sum" animation
ok(t.baseVal.numberOfItems == t.old_baseVal_items.length &&
t.baseVal.getItem(3) === t.old_baseVal_items[3],
'When a new SMIL animation starts and should blend with an '+
'underlying animation, it should never affect the '+
t.list_type+' for '+t.bv_path+', or its list items.');
if (t.list_type == 'SVGLengthList') {
// Length lists are a special case where it makes sense to allow shorter
// lists to be composed on top of longer lists (but not necessarily vice
// versa - see comment below).
ok(t.animVal.numberOfItems == t.old_animVal_items.length &&
t.animVal.getItem(3) === t.old_animVal_items[3],
'When an animation with additive="sum" is added on top of an '+
'existing animation that has more list items, the length of the '+
t.list_type+' for '+t.av_path+' should not change.');
} else {
/* TODO
ok(false,
'Decide what to do here - see ' +
'https://bugzilla.mozilla.org/show_bug.cgi?id=573716 - we ' +
'probably should be discarding any animation sandwich layers from ' +
'a layer that fails to add, on up.');
*/
// In other words, we wouldn't need the if-else check here.
}
// XXX what if the higher priority sandwich layer has *more* list items
// than the underlying animation? In that case we would need to
// distinguish between different SVGLengthList attributes, since although
// all SVGLengthList attributes allow a short list to be added to longer
// list, they do not all allow a longer list to be added to shorter list.
// Specifically that would not be good for 'x' and 'y' on <text> since
// lengths there are not naturally zero. See the comment in
// SVGLengthListSMILAttr::Add().
/******************** t = 13s ********************/
svg.setCurrentTime(13); // all animations have finished, but one is frozen
ok(t.baseVal.numberOfItems == t.old_baseVal_items.length &&
t.baseVal.getItem(3) === t.old_baseVal_items[3],
'When a SMIL animation ends, it should never affect the '+
t.list_type+' for '+t.bv_path+', or its list items.');
is(t.animVal.numberOfItems, 5,
'Even though all SMIL animation have finished, the number '+
'of items in the '+t.list_type+' for '+t.av_path+
' should still be more than the same as the number of items in '+
t.bv_path+' since one of the animations is still frozen.');
var expected = t.attr_val_5b_firstItem_x3_constructor(t.item_constructor);
t.item_is(t.animVal.getItem(0), expected,
'animation with accumulate="sum" and repeatCount="3" for attribute "'+
t.attr_name+'" should end up at 3x the "to" value.');
// Unfreeze frozen animation (removing its effects)
var frozen_animate_element =
t.element.querySelector('animate[fill][attributeName="'+t.attr_name+'"]');
frozen_animate_element.removeAttribute('fill');
ok(t.animVal.numberOfItems == t.baseVal.numberOfItems,
'Once all SMIL animation have finished and been un-frozen, the number '+
'of items in the '+t.list_type+' for '+t.av_path+
' should be the same as the number of items in '+t.bv_path+'.');
ok(t.animVal.getItem(2) === t.old_animVal_items[2],
'Even after an animation finishes and is un-frozen, the list items '+
'that are at a given index in the '+t.list_type+' for '+t.av_path+
' should be the exact same objects as were at that index before the '+
'end and unfreezing of the animation occured.');
}
}
function run_tests()
{
// Initialize each test object with some useful properties, and create their
// 'animate' elements. Note that 'prop' and 'animVal' may be null.
for (var t of tests) {
t.element = document.getElementById(t.target_element_id);
t.prop = t.prop_name ? t.element[t.prop_name] : null;
t.baseVal = ( t.prop || t.element )[t.bv_name];
t.animVal = t.av_name ? ( t.prop || t.element )[t.av_name] : null;
t.bv_path = t.el_type + '.' +
(t.prop ? t.prop_name + '.' : '') +
t.bv_name; // e.g. 'SVGTextElement.x.baseVal'
if (t.animVal) {
t.av_path = t.el_type + '.' +
(t.prop ? t.prop_name + '.' : '') +
t.av_name;
}
t.prop_type = t.prop_type || null;
// use fallback 'is' function, if none was provided.
if (!t.item_is) {
t.item_is = function(itemA, itemB, message) {
ok(typeof(itemA.value) != 'undefined' &&
typeof(itemB.value) != 'undefined',
'expecting value property');
is(itemA.value, itemB.value, message);
};
}
if (t.animVal) {
t.element.appendChild(create_animate_elements(t));
}
}
// Run the major test groups:
run_baseVal_API_tests();
run_animVal_API_tests();
run_basic_setAttribute_tests();
run_list_mutation_tests();
run_animation_timeline_tests();
// After all the other test manipulations, we check that the following
// objects have still not changed, since they never should:
for (var t of tests) {
if (t.prop) {
ok(t.prop === t.element[t.prop_name],
'The same '+t.prop_type+' object should ALWAYS be returned for '+
t.el_type+'.'+t.prop_name+' each time it is accessed.');
}
ok(t.baseVal === ( t.prop || t.element )[t.bv_name],
'The same '+t.list_type+' object should ALWAYS be returned for '+
t.el_type+'.'+t.prop_name+'.'+t.bv_name+' each time it is accessed.');
if (t.animVal) {
ok(t.animVal === ( t.prop || t.element )[t.av_name],
'The same '+t.list_type+' object should ALWAYS be returned for '+
t.el_type+'.'+t.prop_name+'.'+t.av_name+' each time it is accessed.');
}
}
SimpleTest.finish();
}
window.addEventListener("load", run_tests, false);
]]>
</script>
</pre>
</body>
</html>