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

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

Issue 98723006: Parse new circle shape syntax (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@master
Patch Set: Fix stated issues 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 // 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 "auto", 8 "auto",
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)"],
11 "rectangle(10px, 20px, 30px, 40px, 5px, 10px)", 11 "rectangle(10px, 20px, 30px, 40px, 5px, 10px)",
12 12
13 ["inset-rectangle(10px, 20px, 30px, 40px)", "inset-rectangle(10px, 20px, 30p x, 40px)", "inset-rectangle(10px, 20px, 30px, 40px, 0px, 0px)"], 13 ["inset-rectangle(10px, 20px, 30px, 40px)", "inset-rectangle(10px, 20px, 30p x, 40px)", "inset-rectangle(10px, 20px, 30px, 40px, 0px, 0px)"],
14 ["inset-rectangle(10px, 20px, 30px, 40px, 5px)", "inset-rectangle(10px, 20px , 30px, 40px, 5px)", "inset-rectangle(10px, 20px, 30px, 40px, 5px, 5px)"], 14 ["inset-rectangle(10px, 20px, 30px, 40px, 5px)", "inset-rectangle(10px, 20px , 30px, 40px, 5px)", "inset-rectangle(10px, 20px, 30px, 40px, 5px, 5px)"],
15 "inset-rectangle(10px, 20px, 30px, 40px, 5px, 10px)", 15 "inset-rectangle(10px, 20px, 30px, 40px, 5px, 10px)",
16 16
17 "circle(10px, 20px, 30px)", 17 "circle(10px, 20px, 30px)", // FIXME remove with deprecated circle
18
19 ["circle()", "circle()", "circle(closest-side at 50% 50%)"],
20 ["circle(10px)", "circle(10px)", "circle(10px at 50% 50%)"],
21 ["circle(10px at 10px)", "circle(10px at 10px 50%)"],
22 "circle(10px at 10px 10px)",
23 ["circle(at 10px)", "circle(at 10px 50%)", "circle(closest-side at 10px 50%) "],
24 ["circle(at 10px)", "circle(at 10px 50%)", "circle(closest-side at 10px 50%) "],
25 ["circle(at 10px 10px)", "circle(at 10px 10px)", "circle(closest-side at 10p x 10px)"],
26 ["circle(at top left)", "circle(at 0% 0%)", "circle(closest-side at 0% 0%)"] ,
27 ["circle(at right bottom)", "circle(at 100% 100%)", "circle(closest-side at 100% 100%)"],
28 ["circle(10px at left top 10px)", "circle(10px at left 0% top 10px)"],
29 ["circle(10px at top 10px left 10px)", "circle(10px at left 10px top 10px)"] ,
30 ["circle(10px at right 10px bottom 10px)", "circle(10px at right 10px bottom 10px)"],
18 31
19 "ellipse(10px, 20px, 30px, 40px)", 32 "ellipse(10px, 20px, 30px, 40px)",
20 33
21 ["polygon(10px 20px, 30px 40px, 40px 50px)", "polygon(nonzero, 10px 20px, 30 px 40px, 40px 50px)"], 34 ["polygon(10px 20px, 30px 40px, 40px 50px)", "polygon(nonzero, 10px 20px, 30 px 40px, 40px 50px)"],
22 ["polygon(evenodd, 10px 20px, 30px 40px, 40px 50px)", "polygon(evenodd, 10px 20px, 30px 40px, 40px 50px)"], 35 ["polygon(evenodd, 10px 20px, 30px 40px, 40px 50px)", "polygon(evenodd, 10px 20px, 30px 40px, 40px 50px)"],
23 ["polygon(nonzero, 10px 20px, 30px 40px, 40px 50px)", "polygon(nonzero, 10px 20px, 30px 40px, 40px 50px)"], 36 ["polygon(nonzero, 10px 20px, 30px 40px, 40px 50px)", "polygon(nonzero, 10px 20px, 30px 40px, 40px 50px)"],
24 37
25 "content-box", 38 "content-box",
26 "padding-box", 39 "padding-box",
27 "border-box", 40 "border-box",
(...skipping 23 matching lines...) Expand all
51 "rectangle(10px 20px 30px 40px)", 64 "rectangle(10px 20px 30px 40px)",
52 "rectangle(10px, 20px, 30px, 40px, 50px, 60px, 70px)", 65 "rectangle(10px, 20px, 30px, 40px, 50px, 60px, 70px)",
53 66
54 "inset-rectangle()", 67 "inset-rectangle()",
55 "inset-rectangle(10px)", 68 "inset-rectangle(10px)",
56 "inset-rectangle(10px, 10px)", 69 "inset-rectangle(10px, 10px)",
57 "inset-rectangle(10px, 20px, 30px)", 70 "inset-rectangle(10px, 20px, 30px)",
58 "inset-rectangle(10px 20px 30px 40px)", 71 "inset-rectangle(10px 20px 30px 40px)",
59 "inset-rectangle(10px, 20px, 30px, 40px, 50px, 60px, 70px)", 72 "inset-rectangle(10px, 20px, 30px, 40px, 50px, 60px, 70px)",
60 73
61 "circle()", 74 "circle(10px, 20px)", // FIXME remove with deprecated circle
62 "circle(10px)", 75 "circle(10px 20px 30px)", // FIXME remove with deprecated circle
63 "circle(10px, 20px)", 76 "circle(10px, 20px, 30px, 40px)", // FIXME remove with deprecated circle
64 "circle(10px 20px 30px)", 77
65 "circle(10px, 20px, 30px, 40px)", 78 "circle(10px 20px)",
79 "circle(10px at 10px 10px 10px)",
80 "circle(10px at 10px 10px at center)",
81 "circle(10px at center center 10px)",
82 "circle(at 10px 10px 10px)",
83 "circle(at 10px 10px at center)",
84 "circle(at center center 10px)",
66 85
67 "ellipse()", 86 "ellipse()",
68 "ellipse(10px)", 87 "ellipse(10px)",
69 "ellipse(10px, 20px)", 88 "ellipse(10px, 20px)",
70 "ellipse(10px, 20px, 30px)", 89 "ellipse(10px, 20px, 30px)",
71 "ellipse(10px 20px 30px 40px)", 90 "ellipse(10px 20px 30px 40px)",
72 91
73 "polygon()", 92 "polygon()",
74 "polygon(evenodd 10px 20px, 30px 40px, 40px 50px)", 93 "polygon(evenodd 10px 20px, 30px 40px, 40px 50px)",
75 "polygon(nonzero 10px 20px, 30px 40px, 40px 50px)", 94 "polygon(nonzero 10px 20px, 30px 40px, 40px 50px)",
(...skipping 117 matching lines...) Expand 10 before | Expand all | Expand 10 after
193 212
194 function testNotInheritedShapeProperty(property, parentValue, childValue, expect edValue) 213 function testNotInheritedShapeProperty(property, parentValue, childValue, expect edValue)
195 { 214 {
196 shouldBeEqualToString('getParentAndChildComputedStylesString("' + property + '", "' + parentValue + '", "' + childValue + '")', expectedValue); 215 shouldBeEqualToString('getParentAndChildComputedStylesString("' + property + '", "' + parentValue + '", "' + childValue + '")', expectedValue);
197 } 216 }
198 217
199 function applyToEachArglist(testFunction, arglists) 218 function applyToEachArglist(testFunction, arglists)
200 { 219 {
201 arglists.forEach(function(arglist, i, a) {testFunction.apply(null, arglist); }); 220 arglists.forEach(function(arglist, i, a) {testFunction.apply(null, arglist); });
202 } 221 }
OLDNEW
« no previous file with comments | « LayoutTests/fast/shapes/parsing/parsing-shape-outside-expected.txt ('k') | Source/core/css/BasicShapeFunctions.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698