Update To 11.40.268.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("SVGImageElement");
43 shouldBeDefined("SVGSwitchElement");
44 shouldBeDefined("SVGStyleElement");
45 shouldBeDefined("SVGPoint");
46 shouldBeDefined("SVGPointList");
47 shouldBeDefined("SVGMatrix");
48 shouldBeDefined("SVGTransform");
49 shouldBeDefined("SVGTransformList");
50 shouldBeDefined("SVGAnimatedTransformList");
51 shouldBeDefined("SVGPreserveAspectRatio");
52 shouldBeDefined("SVGAnimatedPreserveAspectRatio");
53 shouldBeDefined("SVGPathSeg");
54 shouldBeDefined("SVGPathSegClosePath");
55 shouldBeDefined("SVGPathSegMovetoAbs");
56 shouldBeDefined("SVGPathSegMovetoRel");
57 shouldBeDefined("SVGPathSegLinetoAbs");
58 shouldBeDefined("SVGPathSegLinetoRel");
59 shouldBeDefined("SVGPathSegCurvetoCubicAbs");
60 shouldBeDefined("SVGPathSegCurvetoCubicRel");
61 shouldBeDefined("SVGPathSegCurvetoQuadraticAbs");
62 shouldBeDefined("SVGPathSegCurvetoQuadraticRel");
63 shouldBeDefined("SVGPathSegArcAbs");
64 shouldBeDefined("SVGPathSegArcRel");
65 shouldBeDefined("SVGPathSegLinetoHorizontalAbs");
66 shouldBeDefined("SVGPathSegLinetoHorizontalRel");
67 shouldBeDefined("SVGPathSegLinetoVerticalAbs");
68 shouldBeDefined("SVGPathSegLinetoVerticalRel");
69 shouldBeDefined("SVGPathSegCurvetoCubicSmoothAbs");
70 shouldBeDefined("SVGPathSegCurvetoCubicSmoothRel");
71 shouldBeDefined("SVGPathSegCurvetoQuadraticSmoothAbs");
72 shouldBeDefined("SVGPathSegCurvetoQuadraticSmoothRel");
73 shouldBeDefined("SVGPathSegList");
74 shouldBeDefined("SVGAnimatedPathData");
75 shouldBeDefined("SVGPathElement");
76 shouldBeDefined("SVGRectElement");
77 shouldBeDefined("SVGCircleElement");
78 shouldBeDefined("SVGEllipseElement");
79 shouldBeDefined("SVGLineElement");
80 shouldBeDefined("SVGAnimatedPoints");
81 shouldBeDefined("SVGPolylineElement");
82 shouldBeDefined("SVGPolygonElement");
83 shouldBeDefined("SVGTextContentElement");
84 shouldBeDefined("SVGTextPositioningElement");
85 shouldBeDefined("SVGTextElement");
86 shouldBeDefined("SVGTSpanElement");
87 shouldBeDefined("SVGTextPathElement");
88 shouldBeDefined("SVGMarkerElement");
89 shouldBeDefined("SVGColorProfileElement");
90 shouldBeDefined("SVGColorProfileRule");
91 shouldBeDefined("SVGGradientElement");
92 shouldBeDefined("SVGLinearGradientElement");
93 shouldBeDefined("SVGRadialGradientElement");
94 shouldBeDefined("SVGStopElement");
95 shouldBeDefined("SVGPatternElement");
96 shouldBeDefined("SVGClipPathElement");
97 shouldBeDefined("SVGMaskElement");
98 shouldBeDefined("SVGFilterElement");
99 shouldBeDefined("SVGFilterPrimitiveStandardAttributes");
100 shouldBeDefined("SVGFEBlendElement");
101 shouldBeDefined("SVGFEColorMatrixElement");
102 shouldBeDefined("SVGFEComponentTransferElement");
103 shouldBeDefined("SVGComponentTransferFunctionElement");
104 shouldBeDefined("SVGFEFuncRElement");
105 shouldBeDefined("SVGFEFuncGElement");
106 shouldBeDefined("SVGFEFuncBElement");
107 shouldBeDefined("SVGFEFuncAElement");
108 shouldBeDefined("SVGFECompositeElement");
109 shouldBeDefined("SVGFEConvolveMatrixElement");
110 shouldBeDefined("SVGFEDiffuseLightingElement");
111 shouldBeDefined("SVGFEDistantLightElement");
112 shouldBeDefined("SVGFEPointLightElement");
113 shouldBeDefined("SVGFESpotLightElement");
114 shouldBeDefined("SVGFEDisplacementMapElement");
115 shouldBeDefined("SVGFEFloodElement");
116 shouldBeDefined("SVGFEGaussianBlurElement");
117 shouldBeDefined("SVGFEImageElement");
118 shouldBeDefined("SVGFEMergeElement");
119 shouldBeDefined("SVGFEMergeNodeElement");
120 shouldBeDefined("SVGFEMorphologyElement");
121 shouldBeDefined("SVGFEOffsetElement");
122 shouldBeDefined("SVGFESpecularLightingElement");
123 shouldBeDefined("SVGFETileElement");
124 shouldBeDefined("SVGFETurbulenceElement");
125 shouldBeDefined("SVGCursorElement");
126 shouldBeDefined("SVGAElement");
127 shouldBeDefined("SVGViewElement");
128 shouldBeDefined("SVGScriptElement");
129 shouldBeDefined("SVGEvent");
130 shouldBeDefined("SVGZoomEvent");
131 shouldBeDefined("SVGAnimationElement");
132 shouldBeDefined("SVGAnimateElement");
133 shouldBeDefined("SVGSetElement");
134 shouldBeDefined("SVGAnimateMotionElement");
135 shouldBeDefined("SVGMPathElement");
136 shouldBeDefined("SVGAnimateColorElement");
137 shouldBeDefined("SVGAnimateTransformElement");
138 shouldBeDefined("SVGDefinitionSrcElement");
139 shouldBeDefined("SVGMetadataElement");
140 shouldBeDefined("SVGForeignObjectElement");
141
142 var successfullyParsed = true;