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

Side by Side Diff: LayoutTests/fast/shapes/parsing/parsing-test-utils.js

Issue 203413006: [CSS Shapes] shape-outside: ellipse(50% 50% at) causes crash (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@master
Patch Set: Created 6 years, 9 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 // Valid values for both shape-inside and shape-outside. Two values are specifie d when the shape property value 1 // Valid values for both shape-inside and shape-outside. Two values are specifie d when the shape property value
2 // differs from the specified value. Three values are specified when the compute d shape property value differs 2 // differs from the specified value. Three values are specified when the compute d shape property value differs
3 // from the specified value. 3 // from the specified value.
4 // eg: "specified value/CSS Text value/computed style value" 4 // eg: "specified value/CSS Text value/computed style value"
5 // or: ["specified value", "CSS Text value/computed style value"] 5 // or: ["specified value", "CSS Text value/computed style value"]
6 // or: ["specified value", "CSS Text value", "Computed style value"] 6 // or: ["specified value", "CSS Text value", "Computed style value"]
7 var validShapeValues = [ 7 var validShapeValues = [
8 "none", 8 "none",
9 ["rectangle(10px, 20px, 30px, 40px)", "rectangle(10px, 20px, 30px, 40px)", " rectangle(10px, 20px, 30px, 40px, 0px, 0px)"], 9 ["rectangle(10px, 20px, 30px, 40px)", "rectangle(10px, 20px, 30px, 40px)", " rectangle(10px, 20px, 30px, 40px, 0px, 0px)"],
10 ["rectangle(10px, 20px, 30px, 40px, 5px)", "rectangle(10px, 20px, 30px, 40px , 5px)", "rectangle(10px, 20px, 30px, 40px, 5px, 5px)"], 10 ["rectangle(10px, 20px, 30px, 40px, 5px)", "rectangle(10px, 20px, 30px, 40px , 5px)", "rectangle(10px, 20px, 30px, 40px, 5px, 5px)"],
(...skipping 128 matching lines...) Expand 10 before | Expand all | Expand 10 after
139 139
140 "circle(10px 20px)", 140 "circle(10px 20px)",
141 "circle(10px at 10px 10px 10px)", 141 "circle(10px at 10px 10px 10px)",
142 "circle(10px at 10px 10px at center)", 142 "circle(10px at 10px 10px at center)",
143 "circle(10px at center center 10px)", 143 "circle(10px at center center 10px)",
144 "circle(at 10px 10px 10px)", 144 "circle(at 10px 10px 10px)",
145 "circle(at 10px 10px at center)", 145 "circle(at 10px 10px at center)",
146 "circle(at center center 10px)", 146 "circle(at center center 10px)",
147 147
148 "circle(at 10px 10px closest-side)", 148 "circle(at 10px 10px closest-side)",
149 "circle(10px at)",
150 "circle(at)",
149 151
150 "ellipse(10px, 20px)", // FIXME: Remove this test once we do not support the deprecated CSS Shapes syntax anymore. 152 "ellipse(10px, 20px)", // FIXME: Remove this test once we do not support the deprecated CSS Shapes syntax anymore.
151 "ellipse(10px, 20px, 30px)", // FIXME: Remove this test once we do not suppo rt the deprecated CSS Shapes syntax anymore. 153 "ellipse(10px, 20px, 30px)", // FIXME: Remove this test once we do not suppo rt the deprecated CSS Shapes syntax anymore.
152 "ellipse(10px 20px 30px 40px)", // FIXME: Remove this test once we do not su pport the deprecated CSS Shapes syntax anymore. 154 "ellipse(10px 20px 30px 40px)", // FIXME: Remove this test once we do not su pport the deprecated CSS Shapes syntax anymore.
153 155
154 "ellipse(10px 20px 30px)", 156 "ellipse(10px 20px 30px)",
155 "ellipse(10px at 10px 10px 10px)", 157 "ellipse(10px at 10px 10px 10px)",
156 "ellipse(10px at 10px 10px at center)", 158 "ellipse(10px at 10px 10px at center)",
157 "ellipse(10px at center center 10px)", 159 "ellipse(10px at center center 10px)",
158 "ellipse(10px 20px 30px at center center 10px)", 160 "ellipse(10px 20px 30px at center center 10px)",
159 "ellipse(at 10px 10px 10px)", 161 "ellipse(at 10px 10px 10px)",
160 "ellipse(at 10px 10px at center)", 162 "ellipse(at 10px 10px at center)",
161 "ellipse(at center center 10px)", 163 "ellipse(at center center 10px)",
164 "ellipse(10px 20px at)",
165 "ellipse(at)",
162 166
163 "polygon()", 167 "polygon()",
164 "polygon(evenodd 10px 20px, 30px 40px, 40px 50px)", 168 "polygon(evenodd 10px 20px, 30px 40px, 40px 50px)",
165 "polygon(nonzero 10px 20px, 30px 40px, 40px 50px)", 169 "polygon(nonzero 10px 20px, 30px 40px, 40px 50px)",
166 "polygon(nonzero)", 170 "polygon(nonzero)",
167 "polygon(evenodd)", 171 "polygon(evenodd)",
168 "polygon(10px)", 172 "polygon(10px)",
169 "polygon(nonzero,10px)", 173 "polygon(nonzero,10px)",
170 "polygon(evenodd,12px)", 174 "polygon(evenodd,12px)",
171 "polygon(10px, 20px, 30px, 40px, 40px, 50px)", 175 "polygon(10px, 20px, 30px, 40px, 40px, 50px)",
(...skipping 111 matching lines...) Expand 10 before | Expand all | Expand 10 after
283 287
284 function testNotInheritedShapeProperty(property, parentValue, childValue, expect edValue) 288 function testNotInheritedShapeProperty(property, parentValue, childValue, expect edValue)
285 { 289 {
286 shouldBeEqualToString('getParentAndChildComputedStylesString("' + property + '", "' + parentValue + '", "' + childValue + '")', expectedValue); 290 shouldBeEqualToString('getParentAndChildComputedStylesString("' + property + '", "' + parentValue + '", "' + childValue + '")', expectedValue);
287 } 291 }
288 292
289 function applyToEachArglist(testFunction, arglists) 293 function applyToEachArglist(testFunction, arglists)
290 { 294 {
291 arglists.forEach(function(arglist, i, a) {testFunction.apply(null, arglist); }); 295 arglists.forEach(function(arglist, i, a) {testFunction.apply(null, arglist); });
292 } 296 }
OLDNEW
« no previous file with comments | « LayoutTests/fast/shapes/parsing/parsing-shape-outside-expected.txt ('k') | Source/core/css/parser/CSSPropertyParser.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698