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

Side by Side Diff: LayoutTests/imported/csswg-test/css-shapes-1/shape-outside/values/shape-outside-ellipse-010.html

Issue 816533002: Import CSSWG Shapes tests (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: One more test expectations update Created 6 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 | Annotate | Revision Log
OLDNEW
(Empty)
1 <!DOCTYPE html>
2 <html>
3 <head>
4 <title>Shape Outside Ellipse args - calc() values</title>
5 <link rel="author" title="Adobe" href="http://html.adobe.com/">
6 <link rel="author" title="Rebecca Hauck" href="mailto:rhauck@adobe.com">
7 <link rel="reviewer" title="Alan Stearns" href="mailto:stearns@adobe.com "> <!-- 2014-03-04 -->
8 <link rel="help" href="http://www.w3.org/TR/css-shapes-1/#funcdef-ellips e">
9 <link rel="help" href="http://www.w3.org/TR/css-shapes-1/#shape-outside- property">
10 <link rel="help" href="http://www.w3.org/TR/css3-values/#calc">
11 <meta name="assert" content="An ellipse's arguments may be in calc() val ues.">
12 <meta name="flags" content="dom">
13 <script src="../../../../../resources/testharness.js"></script>
14 <script src="../../../../../resources/testharnessreport.js"></script>
15 <script src="support/parsing-utils.js"></script>
16 </head>
17 <body>
18 <div id="log"></div>
19 <script type="text/javascript">
20 var ellipse_calc_tests = [];
21 var defaultPosition = ' at 50% 50%';
22 ParsingUtils.calcTestValues.forEach(function(value) {
23 testCase = ['ellipse('+ value[0] +')',
24 'ellipse('+ value[1] + defaultPosition +')'];
25 if(Object.prototype.toString.call( value[2] ) === '[object Array ]' && value[2].length == 2) {
26 testCase.push([
27 'ellipse('+ value[2][0] + defaultPosition + ')',
28 'ellipse('+ value[2][1] + defaultPosition + ')',
29 ]);
30 } else {
31 testCase.push('ellipse('+ value[2] + defaultPosition +')');
32 }
33 ellipse_calc_tests.push(testCase);
34 });
35 ParsingUtils.calcTestValues.forEach(function(value) {
36 testCase = ['ellipse(farthest-side '+ value[0] +')',
37 'ellipse(farthest-side '+ value[1] + defaultPosition +')'];
38 if(Object.prototype.toString.call( value[2] ) === '[object Array ]' && value[2].length == 2) {
39 testCase.push([
40 'ellipse(farthest-side '+ value[2][0] + defa ultPosition +')',
41 'ellipse(farthest-side '+ value[2][1] + defa ultPosition +')'
42 ]);
43 } else {
44 testCase.push('ellipse(farthest-side '+ value[2] + defaultP osition +')');
45 }
46 ellipse_calc_tests.push(testCase);
47 });
48 ParsingUtils.calcTestValues.forEach(function(value) {
49 testCase = ['ellipse('+ value[0] +' '+ value[0] +')',
50 'ellipse('+ value[1] +' '+ value[1] + defaultPositio n +')'];
51 if(Object.prototype.toString.call( value[2] ) === '[object Array ]' && value[2].length == 2) {
52 testCase.push([
53 'ellipse('+ value[2][0] +' '+ value[2][0] + defaultPosition +')',
54 'ellipse('+ value[2][1] +' '+ value[2][1] + defaultPosition +')'
55 ]);
56 } else {
57 testCase.push('ellipse('+ value[2] +' '+ value[2] + default Position +')');
58 }
59
60 ellipse_calc_tests.push(testCase);
61 });
62 generate_tests(ParsingUtils.testInlineStyle, ParsingUtils.buildCalcT ests(ellipse_calc_tests, 'value'));
63 generate_tests(ParsingUtils.testComputedStyle, ParsingUtils.buildCal cTests(ellipse_calc_tests, 'computed'));
64 </script>
65 </body>
66 </html>
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698