Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(701)

Side by Side Diff: LayoutTests/svg/custom/js-svg-constructors.svg

Issue 114373004: Remove the SVGColor and SVGPaint DOM interfaces (were deprecated). (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@master
Patch Set: text diff fix Created 7 years ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
OLDNEW
1 <?xml version="1.0" encoding="UTF-8"?> 1 <?xml version="1.0" encoding="UTF-8"?>
2 <svg xmlns="http://www.w3.org/2000/svg" onload="runTest()"> 2 <svg xmlns="http://www.w3.org/2000/svg" onload="runTest()">
3 <script type="text/ecmascript"><![CDATA[ 3 <script type="text/ecmascript"><![CDATA[
4 if (window.testRunner) 4 if (window.testRunner)
5 testRunner.dumpAsText(); 5 testRunner.dumpAsText();
6 6
7 function expect(string, val) { 7 function expect(string, val) {
8 var b = eval(string) == val; 8 var b = eval(string) == val;
9 var message = (string + "") + " " + (b ? "PASSED" : "FAILED (actual: '" + eval(string) + "' expected: '" + val + "')"); 9 var message = (string + "") + " " + (b ? "PASSED" : "FAILED (actual: '" + eval(string) + "' expected: '" + val + "')");
10 var txt = document.createElementNS("http://www.w3.org/2000/svg", "text"); 10 var txt = document.createElementNS("http://www.w3.org/2000/svg", "text");
(...skipping 12 matching lines...) Expand all
23 document.rootElement.appendChild(txt); 23 document.rootElement.appendChild(txt);
24 } 24 }
25 25
26 function runTest() { 26 function runTest() {
27 expect("SVGAngle.SVG_ANGLETYPE_UNKNOWN", 0); 27 expect("SVGAngle.SVG_ANGLETYPE_UNKNOWN", 0);
28 expect("SVGAngle.SVG_ANGLETYPE_UNSPECIFIED", 1); 28 expect("SVGAngle.SVG_ANGLETYPE_UNSPECIFIED", 1);
29 expect("SVGAngle.SVG_ANGLETYPE_DEG", 2); 29 expect("SVGAngle.SVG_ANGLETYPE_DEG", 2);
30 expect("SVGAngle.SVG_ANGLETYPE_RAD", 3); 30 expect("SVGAngle.SVG_ANGLETYPE_RAD", 3);
31 expect("SVGAngle.SVG_ANGLETYPE_GRAD", 4) 31 expect("SVGAngle.SVG_ANGLETYPE_GRAD", 4)
32 32
33 expect("SVGColor.SVG_COLORTYPE_UNKNOWN", 0);
34 expect("SVGColor.SVG_COLORTYPE_RGBCOLOR", 1);
35 expect("SVGColor.SVG_COLORTYPE_RGBCOLOR_ICCCOLOR", 2);
36 expect("SVGColor.SVG_COLORTYPE_CURRENTCOLOR", 3);
37
38 if (window.SVGComponentTransferFunctionElement) { 33 if (window.SVGComponentTransferFunctionElement) {
39 expect("SVGComponentTransferFunctionElement.SVG_FECOMPONENTTRANSFER_TY PE_UNKNOWN", 0); 34 expect("SVGComponentTransferFunctionElement.SVG_FECOMPONENTTRANSFER_TY PE_UNKNOWN", 0);
40 expect("SVGComponentTransferFunctionElement.SVG_FECOMPONENTTRANSFER_TY PE_IDENTITY", 1); 35 expect("SVGComponentTransferFunctionElement.SVG_FECOMPONENTTRANSFER_TY PE_IDENTITY", 1);
41 expect("SVGComponentTransferFunctionElement.SVG_FECOMPONENTTRANSFER_TY PE_TABLE", 2); 36 expect("SVGComponentTransferFunctionElement.SVG_FECOMPONENTTRANSFER_TY PE_TABLE", 2);
42 expect("SVGComponentTransferFunctionElement.SVG_FECOMPONENTTRANSFER_TY PE_DISCRETE", 3); 37 expect("SVGComponentTransferFunctionElement.SVG_FECOMPONENTTRANSFER_TY PE_DISCRETE", 3);
43 expect("SVGComponentTransferFunctionElement.SVG_FECOMPONENTTRANSFER_TY PE_LINEAR", 4); 38 expect("SVGComponentTransferFunctionElement.SVG_FECOMPONENTTRANSFER_TY PE_LINEAR", 4);
44 expect("SVGComponentTransferFunctionElement.SVG_FECOMPONENTTRANSFER_TY PE_GAMMA", 5); 39 expect("SVGComponentTransferFunctionElement.SVG_FECOMPONENTTRANSFER_TY PE_GAMMA", 5);
45 } 40 }
46 41
47 expect_failure("SVGCSSRule.COLOR_PROFILE_RULE", 7); 42 expect_failure("SVGCSSRule.COLOR_PROFILE_RULE", 7);
(...skipping 72 matching lines...) Expand 10 before | Expand all | Expand 10 after
120 expect("SVGLength.SVG_LENGTHTYPE_PT", 9); 115 expect("SVGLength.SVG_LENGTHTYPE_PT", 9);
121 expect("SVGLength.SVG_LENGTHTYPE_PC", 10) 116 expect("SVGLength.SVG_LENGTHTYPE_PC", 10)
122 117
123 expect("SVGMarkerElement.SVG_MARKERUNITS_UNKNOWN", 0); 118 expect("SVGMarkerElement.SVG_MARKERUNITS_UNKNOWN", 0);
124 expect("SVGMarkerElement.SVG_MARKERUNITS_USERSPACEONUSE", 1); 119 expect("SVGMarkerElement.SVG_MARKERUNITS_USERSPACEONUSE", 1);
125 expect("SVGMarkerElement.SVG_MARKERUNITS_STROKEWIDTH", 2); 120 expect("SVGMarkerElement.SVG_MARKERUNITS_STROKEWIDTH", 2);
126 expect("SVGMarkerElement.SVG_MARKER_ORIENT_UNKNOWN", 0); 121 expect("SVGMarkerElement.SVG_MARKER_ORIENT_UNKNOWN", 0);
127 expect("SVGMarkerElement.SVG_MARKER_ORIENT_AUTO", 1); 122 expect("SVGMarkerElement.SVG_MARKER_ORIENT_AUTO", 1);
128 expect("SVGMarkerElement.SVG_MARKER_ORIENT_ANGLE", 2); 123 expect("SVGMarkerElement.SVG_MARKER_ORIENT_ANGLE", 2);
129 124
130 expect("SVGPaint.SVG_PAINTTYPE_UNKNOWN", 0);
131 expect("SVGPaint.SVG_PAINTTYPE_RGBCOLOR", 1);
132 expect("SVGPaint.SVG_PAINTTYPE_RGBCOLOR_ICCCOLOR", 2);
133 expect("SVGPaint.SVG_PAINTTYPE_NONE", 101);
134 expect("SVGPaint.SVG_PAINTTYPE_CURRENTCOLOR", 102);
135 expect("SVGPaint.SVG_PAINTTYPE_URI_NONE", 103);
136 expect("SVGPaint.SVG_PAINTTYPE_URI_CURRENTCOLOR", 104);
137 expect("SVGPaint.SVG_PAINTTYPE_URI_RGBCOLOR", 105);
138 expect("SVGPaint.SVG_PAINTTYPE_URI_RGBCOLOR_ICCCOLOR", 106);
139 expect("SVGPaint.SVG_PAINTTYPE_URI", 107);
140
141 expect("SVGPathSeg.PATHSEG_UNKNOWN", 0); 125 expect("SVGPathSeg.PATHSEG_UNKNOWN", 0);
142 expect("SVGPathSeg.PATHSEG_CLOSEPATH", 1); 126 expect("SVGPathSeg.PATHSEG_CLOSEPATH", 1);
143 expect("SVGPathSeg.PATHSEG_MOVETO_ABS", 2); 127 expect("SVGPathSeg.PATHSEG_MOVETO_ABS", 2);
144 expect("SVGPathSeg.PATHSEG_MOVETO_REL", 3); 128 expect("SVGPathSeg.PATHSEG_MOVETO_REL", 3);
145 expect("SVGPathSeg.PATHSEG_LINETO_ABS", 4); 129 expect("SVGPathSeg.PATHSEG_LINETO_ABS", 4);
146 expect("SVGPathSeg.PATHSEG_LINETO_REL", 5); 130 expect("SVGPathSeg.PATHSEG_LINETO_REL", 5);
147 expect("SVGPathSeg.PATHSEG_CURVETO_CUBIC_ABS", 6); 131 expect("SVGPathSeg.PATHSEG_CURVETO_CUBIC_ABS", 6);
148 expect("SVGPathSeg.PATHSEG_CURVETO_CUBIC_REL", 7); 132 expect("SVGPathSeg.PATHSEG_CURVETO_CUBIC_REL", 7);
149 expect("SVGPathSeg.PATHSEG_CURVETO_QUADRATIC_ABS", 8); 133 expect("SVGPathSeg.PATHSEG_CURVETO_QUADRATIC_ABS", 8);
150 expect("SVGPathSeg.PATHSEG_CURVETO_QUADRATIC_REL", 9); 134 expect("SVGPathSeg.PATHSEG_CURVETO_QUADRATIC_REL", 9);
(...skipping 52 matching lines...) Expand 10 before | Expand all | Expand 10 after
203 expect("SVGUnitTypes.SVG_UNIT_TYPE_UNKNOWN", 0); 187 expect("SVGUnitTypes.SVG_UNIT_TYPE_UNKNOWN", 0);
204 expect("SVGUnitTypes.SVG_UNIT_TYPE_USERSPACEONUSE", 1); 188 expect("SVGUnitTypes.SVG_UNIT_TYPE_USERSPACEONUSE", 1);
205 expect("SVGUnitTypes.SVG_UNIT_TYPE_OBJECTBOUNDINGBOX", 2); 189 expect("SVGUnitTypes.SVG_UNIT_TYPE_OBJECTBOUNDINGBOX", 2);
206 190
207 expect("SVGViewElement.SVG_ZOOMANDPAN_UNKNOWN", 0); 191 expect("SVGViewElement.SVG_ZOOMANDPAN_UNKNOWN", 0);
208 expect("SVGViewElement.SVG_ZOOMANDPAN_DISABLE", 1); 192 expect("SVGViewElement.SVG_ZOOMANDPAN_DISABLE", 1);
209 expect("SVGViewElement.SVG_ZOOMANDPAN_MAGNIFY", 2); 193 expect("SVGViewElement.SVG_ZOOMANDPAN_MAGNIFY", 2);
210 } 194 }
211 ]]></script> 195 ]]></script>
212 </svg> 196 </svg>
OLDNEW
« no previous file with comments | « LayoutTests/svg/custom/global-constructors-expected.txt ('k') | LayoutTests/svg/custom/js-svg-constructors-expected.txt » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698