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

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

Issue 1175513002: Removing Interface SVGRenderingIntent (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@master
Patch Set: Created 5 years, 6 months 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 140 matching lines...) Expand 10 before | Expand all | Expand 10 after
151 expect("SVGPreserveAspectRatio.SVG_PRESERVEASPECTRATIO_XMINYMID", 5); 151 expect("SVGPreserveAspectRatio.SVG_PRESERVEASPECTRATIO_XMINYMID", 5);
152 expect("SVGPreserveAspectRatio.SVG_PRESERVEASPECTRATIO_XMIDYMID", 6); 152 expect("SVGPreserveAspectRatio.SVG_PRESERVEASPECTRATIO_XMIDYMID", 6);
153 expect("SVGPreserveAspectRatio.SVG_PRESERVEASPECTRATIO_XMAXYMID", 7); 153 expect("SVGPreserveAspectRatio.SVG_PRESERVEASPECTRATIO_XMAXYMID", 7);
154 expect("SVGPreserveAspectRatio.SVG_PRESERVEASPECTRATIO_XMINYMAX", 8); 154 expect("SVGPreserveAspectRatio.SVG_PRESERVEASPECTRATIO_XMINYMAX", 8);
155 expect("SVGPreserveAspectRatio.SVG_PRESERVEASPECTRATIO_XMIDYMAX", 9); 155 expect("SVGPreserveAspectRatio.SVG_PRESERVEASPECTRATIO_XMIDYMAX", 9);
156 expect("SVGPreserveAspectRatio.SVG_PRESERVEASPECTRATIO_XMAXYMAX", 10); 156 expect("SVGPreserveAspectRatio.SVG_PRESERVEASPECTRATIO_XMAXYMAX", 10);
157 expect("SVGPreserveAspectRatio.SVG_MEETORSLICE_UNKNOWN", 0); 157 expect("SVGPreserveAspectRatio.SVG_MEETORSLICE_UNKNOWN", 0);
158 expect("SVGPreserveAspectRatio.SVG_MEETORSLICE_MEET", 1); 158 expect("SVGPreserveAspectRatio.SVG_MEETORSLICE_MEET", 1);
159 expect("SVGPreserveAspectRatio.SVG_MEETORSLICE_SLICE", 2); 159 expect("SVGPreserveAspectRatio.SVG_MEETORSLICE_SLICE", 2);
160 160
161 expect("SVGRenderingIntent.RENDERING_INTENT_UNKNOWN", 0);
162 expect("SVGRenderingIntent.RENDERING_INTENT_AUTO", 1);
163 expect("SVGRenderingIntent.RENDERING_INTENT_PERCEPTUAL", 2);
164 expect("SVGRenderingIntent.RENDERING_INTENT_RELATIVE_COLORIMETRIC", 3);
165 expect("SVGRenderingIntent.RENDERING_INTENT_SATURATION", 4);
166 expect("SVGRenderingIntent.RENDERING_INTENT_ABSOLUTE_COLORIMETRIC", 5);
167
168 expect("SVGTextContentElement.LENGTHADJUST_UNKNOWN", 0); 161 expect("SVGTextContentElement.LENGTHADJUST_UNKNOWN", 0);
169 expect("SVGTextContentElement.LENGTHADJUST_SPACING", 1); 162 expect("SVGTextContentElement.LENGTHADJUST_SPACING", 1);
170 expect("SVGTextContentElement.LENGTHADJUST_SPACINGANDGLYPHS", 2); 163 expect("SVGTextContentElement.LENGTHADJUST_SPACINGANDGLYPHS", 2);
171 164
172 expect("SVGTextPathElement.TEXTPATH_METHODTYPE_UNKNOWN", 0); 165 expect("SVGTextPathElement.TEXTPATH_METHODTYPE_UNKNOWN", 0);
173 expect("SVGTextPathElement.TEXTPATH_METHODTYPE_ALIGN", 1); 166 expect("SVGTextPathElement.TEXTPATH_METHODTYPE_ALIGN", 1);
174 expect("SVGTextPathElement.TEXTPATH_METHODTYPE_STRETCH", 2); 167 expect("SVGTextPathElement.TEXTPATH_METHODTYPE_STRETCH", 2);
175 expect("SVGTextPathElement.TEXTPATH_SPACINGTYPE_UNKNOWN", 0); 168 expect("SVGTextPathElement.TEXTPATH_SPACINGTYPE_UNKNOWN", 0);
176 expect("SVGTextPathElement.TEXTPATH_SPACINGTYPE_AUTO", 1); 169 expect("SVGTextPathElement.TEXTPATH_SPACINGTYPE_AUTO", 1);
177 expect("SVGTextPathElement.TEXTPATH_SPACINGTYPE_EXACT", 2); 170 expect("SVGTextPathElement.TEXTPATH_SPACINGTYPE_EXACT", 2);
178 171
179 expect("SVGTransform.SVG_TRANSFORM_UNKNOWN", 0); 172 expect("SVGTransform.SVG_TRANSFORM_UNKNOWN", 0);
180 expect("SVGTransform.SVG_TRANSFORM_MATRIX", 1); 173 expect("SVGTransform.SVG_TRANSFORM_MATRIX", 1);
181 expect("SVGTransform.SVG_TRANSFORM_TRANSLATE", 2); 174 expect("SVGTransform.SVG_TRANSFORM_TRANSLATE", 2);
182 expect("SVGTransform.SVG_TRANSFORM_SCALE", 3); 175 expect("SVGTransform.SVG_TRANSFORM_SCALE", 3);
183 expect("SVGTransform.SVG_TRANSFORM_ROTATE", 4); 176 expect("SVGTransform.SVG_TRANSFORM_ROTATE", 4);
184 expect("SVGTransform.SVG_TRANSFORM_SKEWX", 5); 177 expect("SVGTransform.SVG_TRANSFORM_SKEWX", 5);
185 expect("SVGTransform.SVG_TRANSFORM_SKEWY", 6); 178 expect("SVGTransform.SVG_TRANSFORM_SKEWY", 6);
186 179
187 expect("SVGUnitTypes.SVG_UNIT_TYPE_UNKNOWN", 0); 180 expect("SVGUnitTypes.SVG_UNIT_TYPE_UNKNOWN", 0);
188 expect("SVGUnitTypes.SVG_UNIT_TYPE_USERSPACEONUSE", 1); 181 expect("SVGUnitTypes.SVG_UNIT_TYPE_USERSPACEONUSE", 1);
189 expect("SVGUnitTypes.SVG_UNIT_TYPE_OBJECTBOUNDINGBOX", 2); 182 expect("SVGUnitTypes.SVG_UNIT_TYPE_OBJECTBOUNDINGBOX", 2);
190 183
191 expect("SVGViewElement.SVG_ZOOMANDPAN_UNKNOWN", 0); 184 expect("SVGViewElement.SVG_ZOOMANDPAN_UNKNOWN", 0);
192 expect("SVGViewElement.SVG_ZOOMANDPAN_DISABLE", 1); 185 expect("SVGViewElement.SVG_ZOOMANDPAN_DISABLE", 1);
193 expect("SVGViewElement.SVG_ZOOMANDPAN_MAGNIFY", 2); 186 expect("SVGViewElement.SVG_ZOOMANDPAN_MAGNIFY", 2);
194 } 187 }
195 ]]></script> 188 ]]></script>
196 </svg> 189 </svg>
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698