Upstream version 7.36.149.0
[platform/framework/web/crosswalk.git] / src / third_party / WebKit / LayoutTests / svg / custom / script-tests / global-constructors.js
1 description("Test to make sure we expose all the global constructor objects requested by http://www.w3.org/TR/SVG11/ecmascript-binding.html");
2
3 function shouldBeDefined(a)
4 {
5     var constructorString = "'function " + a + "() { [native code] }'";
6     shouldBe("" + a + ".toString()", constructorString);
7 }
8
9 shouldBeDefined("SVGElement");
10 shouldBeDefined("SVGAnimatedBoolean");
11 shouldBeDefined("SVGAnimatedString");
12 shouldBeDefined("SVGStringList");
13 shouldBeDefined("SVGAnimatedEnumeration");
14 shouldBeDefined("SVGAnimatedInteger");
15 shouldBeDefined("SVGNumber");
16 shouldBeDefined("SVGAnimatedNumber");
17 shouldBeDefined("SVGNumberList");
18 shouldBeDefined("SVGAnimatedNumberList");
19 shouldBeDefined("SVGLength");
20 shouldBeDefined("SVGAnimatedLength");
21 shouldBeDefined("SVGLengthList");
22 shouldBeDefined("SVGAnimatedLengthList");
23 shouldBeDefined("SVGAngle");
24 shouldBeDefined("SVGAnimatedAngle");
25 shouldBeDefined("SVGRect");
26 shouldBeDefined("SVGAnimatedRect");
27 shouldBeDefined("SVGStylable");
28 shouldBeDefined("SVGLocatable");
29 shouldBeDefined("SVGTransformable");
30 shouldBeDefined("SVGTests");
31 shouldBeDefined("SVGViewSpec");
32 shouldBeDefined("SVGURIReference");
33 shouldBeDefined("SVGCSSRule");
34 shouldBeDefined("SVGSVGElement");
35 shouldBeDefined("SVGGElement");
36 shouldBeDefined("SVGDefsElement");
37 shouldBeDefined("SVGDescElement");
38 shouldBeDefined("SVGDiscardElement");
39 shouldBeDefined("SVGTitleElement");
40 shouldBeDefined("SVGSymbolElement");
41 shouldBeDefined("SVGUseElement");
42 shouldBeDefined("SVGElementInstance");
43 shouldBeDefined("SVGImageElement");
44 shouldBeDefined("SVGSwitchElement");
45 shouldBeDefined("SVGStyleElement");
46 shouldBeDefined("SVGPoint");
47 shouldBeDefined("SVGPointList");
48 shouldBeDefined("SVGMatrix");
49 shouldBeDefined("SVGTransform");
50 shouldBeDefined("SVGTransformList");
51 shouldBeDefined("SVGAnimatedTransformList");
52 shouldBeDefined("SVGPreserveAspectRatio");
53 shouldBeDefined("SVGAnimatedPreserveAspectRatio");
54 shouldBeDefined("SVGPathSeg");
55 shouldBeDefined("SVGPathSegClosePath");
56 shouldBeDefined("SVGPathSegMovetoAbs");
57 shouldBeDefined("SVGPathSegMovetoRel");
58 shouldBeDefined("SVGPathSegLinetoAbs");
59 shouldBeDefined("SVGPathSegLinetoRel");
60 shouldBeDefined("SVGPathSegCurvetoCubicAbs");
61 shouldBeDefined("SVGPathSegCurvetoCubicRel");
62 shouldBeDefined("SVGPathSegCurvetoQuadraticAbs");
63 shouldBeDefined("SVGPathSegCurvetoQuadraticRel");
64 shouldBeDefined("SVGPathSegArcAbs");
65 shouldBeDefined("SVGPathSegArcRel");
66 shouldBeDefined("SVGPathSegLinetoHorizontalAbs");
67 shouldBeDefined("SVGPathSegLinetoHorizontalRel");
68 shouldBeDefined("SVGPathSegLinetoVerticalAbs");
69 shouldBeDefined("SVGPathSegLinetoVerticalRel");
70 shouldBeDefined("SVGPathSegCurvetoCubicSmoothAbs");
71 shouldBeDefined("SVGPathSegCurvetoCubicSmoothRel");
72 shouldBeDefined("SVGPathSegCurvetoQuadraticSmoothAbs");
73 shouldBeDefined("SVGPathSegCurvetoQuadraticSmoothRel");
74 shouldBeDefined("SVGPathSegList");
75 shouldBeDefined("SVGAnimatedPathData");
76 shouldBeDefined("SVGPathElement");
77 shouldBeDefined("SVGRectElement");
78 shouldBeDefined("SVGCircleElement");
79 shouldBeDefined("SVGEllipseElement");
80 shouldBeDefined("SVGLineElement");
81 shouldBeDefined("SVGAnimatedPoints");
82 shouldBeDefined("SVGPolylineElement");
83 shouldBeDefined("SVGPolygonElement");
84 shouldBeDefined("SVGTextContentElement");
85 shouldBeDefined("SVGTextPositioningElement");
86 shouldBeDefined("SVGTextElement");
87 shouldBeDefined("SVGTSpanElement");
88 shouldBeDefined("SVGTextPathElement");
89 shouldBeDefined("SVGAltGlyphElement");
90 shouldBeDefined("SVGAltGlyphDefElement");
91 shouldBeDefined("SVGAltGlyphItemElement");
92 shouldBeDefined("SVGGlyphRefElement");
93 shouldBeDefined("SVGMarkerElement");
94 shouldBeDefined("SVGColorProfileElement");
95 shouldBeDefined("SVGColorProfileRule");
96 shouldBeDefined("SVGGradientElement");
97 shouldBeDefined("SVGLinearGradientElement");
98 shouldBeDefined("SVGRadialGradientElement");
99 shouldBeDefined("SVGStopElement");
100 shouldBeDefined("SVGPatternElement");
101 shouldBeDefined("SVGClipPathElement");
102 shouldBeDefined("SVGMaskElement");
103 shouldBeDefined("SVGFilterElement");
104 shouldBeDefined("SVGFilterPrimitiveStandardAttributes");
105 shouldBeDefined("SVGFEBlendElement");
106 shouldBeDefined("SVGFEColorMatrixElement");
107 shouldBeDefined("SVGFEComponentTransferElement");
108 shouldBeDefined("SVGComponentTransferFunctionElement");
109 shouldBeDefined("SVGFEFuncRElement");
110 shouldBeDefined("SVGFEFuncGElement");
111 shouldBeDefined("SVGFEFuncBElement");
112 shouldBeDefined("SVGFEFuncAElement");
113 shouldBeDefined("SVGFECompositeElement");
114 shouldBeDefined("SVGFEConvolveMatrixElement");
115 shouldBeDefined("SVGFEDiffuseLightingElement");
116 shouldBeDefined("SVGFEDistantLightElement");
117 shouldBeDefined("SVGFEPointLightElement");
118 shouldBeDefined("SVGFESpotLightElement");
119 shouldBeDefined("SVGFEDisplacementMapElement");
120 shouldBeDefined("SVGFEFloodElement");
121 shouldBeDefined("SVGFEGaussianBlurElement");
122 shouldBeDefined("SVGFEImageElement");
123 shouldBeDefined("SVGFEMergeElement");
124 shouldBeDefined("SVGFEMergeNodeElement");
125 shouldBeDefined("SVGFEMorphologyElement");
126 shouldBeDefined("SVGFEOffsetElement");
127 shouldBeDefined("SVGFESpecularLightingElement");
128 shouldBeDefined("SVGFETileElement");
129 shouldBeDefined("SVGFETurbulenceElement");
130 shouldBeDefined("SVGCursorElement");
131 shouldBeDefined("SVGAElement");
132 shouldBeDefined("SVGViewElement");
133 shouldBeDefined("SVGScriptElement");
134 shouldBeDefined("SVGEvent");
135 shouldBeDefined("SVGZoomEvent");
136 shouldBeDefined("SVGAnimationElement");
137 shouldBeDefined("SVGAnimateElement");
138 shouldBeDefined("SVGSetElement");
139 shouldBeDefined("SVGAnimateMotionElement");
140 shouldBeDefined("SVGMPathElement");
141 shouldBeDefined("SVGAnimateColorElement");
142 shouldBeDefined("SVGAnimateTransformElement");
143 shouldBeDefined("SVGFontElement");
144 shouldBeDefined("SVGGlyphElement");
145 shouldBeDefined("SVGMissingGlyphElement");
146 shouldBeDefined("SVGHKernElement");
147 shouldBeDefined("SVGVKernElement");
148 shouldBeDefined("SVGFontFaceElement");
149 shouldBeDefined("SVGFontFaceSrcElement");
150 shouldBeDefined("SVGFontFaceUriElement");
151 shouldBeDefined("SVGFontFaceFormatElement");
152 shouldBeDefined("SVGFontFaceNameElement");
153 shouldBeDefined("SVGDefinitionSrcElement");
154 shouldBeDefined("SVGMetadataElement");
155 shouldBeDefined("SVGForeignObjectElement");
156
157 var successfullyParsed = true;