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

Side by Side Diff: third_party/WebKit/LayoutTests/imported/csswg-test/css-shapes-1/shape-outside/values/shape-margin-003.html

Issue 2018883002: Fix testharness paths in imported/csswg-test. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 4 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 <!DOCTYPE html> 1 <!DOCTYPE html>
2 <html> 2 <html>
3 <head> 3 <head>
4 <title>Shape Margin Valid Values - calc() values</title> 4 <title>Shape Margin Valid Values - calc() values</title>
5 <link rel="author" title="Adobe" href="http://html.adobe.com/"> 5 <link rel="author" title="Adobe" href="http://html.adobe.com/">
6 <link rel="author" title="Rebecca Hauck" href="mailto:rhauck@adobe.com"> 6 <link rel="author" title="Rebecca Hauck" href="mailto:rhauck@adobe.com">
7 <link rel="help" href="http://www.w3.org/TR/css-shapes-1/#shape-margin-p roperty"> 7 <link rel="help" href="http://www.w3.org/TR/css-shapes-1/#shape-margin-p roperty">
8 <meta name="assert" content="shape-margin values may be calc() values"> 8 <meta name="assert" content="shape-margin values may be calc() values">
9 <meta name="flags" content="dom"> 9 <meta name="flags" content="dom">
10 <script src="../../../../../resources/testharness.js"></script> 10 <script src="/resources/testharness.js"></script>
11 <script src="../../../../../resources/testharnessreport.js"></script> 11 <script src="/resources/testharnessreport.js"></script>
12 <script src="support/parsing-utils.js"></script> 12 <script src="support/parsing-utils.js"></script>
13 </head> 13 </head>
14 <body> 14 <body>
15 <div id="log"></div> 15 <div id="log"></div>
16 <script type="text/javascript"> 16 <script type="text/javascript">
17 var shape_margin_calc_tests = []; 17 var shape_margin_calc_tests = [];
18 ParsingUtils.calcTestValues.forEach(function(value) { 18 ParsingUtils.calcTestValues.forEach(function(value) {
19 testCase = [ value[0], value[1] ]; 19 testCase = [ value[0], value[1] ];
20 if(Object.prototype.toString.call( value[2] ) === '[object Array]' & & value[2].length == 2) { 20 if(Object.prototype.toString.call( value[2] ) === '[object Array]' & & value[2].length == 2) {
21 testCase.push([ value[2][0], value[2][1] ]); 21 testCase.push([ value[2][0], value[2][1] ]);
22 } else { 22 } else {
23 testCase.push( value[2] ); 23 testCase.push( value[2] );
24 } 24 }
25 shape_margin_calc_tests.push(testCase); 25 shape_margin_calc_tests.push(testCase);
26 }); 26 });
27 generate_tests( ParsingUtils.testShapeMarginInlineStyle, 27 generate_tests( ParsingUtils.testShapeMarginInlineStyle,
28 ParsingUtils.buildCalcTests(shape_margin_calc_tests, "in line")); 28 ParsingUtils.buildCalcTests(shape_margin_calc_tests, "in line"));
29 generate_tests( ParsingUtils.testShapeMarginComputedStyle, 29 generate_tests( ParsingUtils.testShapeMarginComputedStyle,
30 ParsingUtils.buildCalcTests(shape_margin_calc_tests, "co mputed")); 30 ParsingUtils.buildCalcTests(shape_margin_calc_tests, "co mputed"));
31 </script> 31 </script>
32 </body> 32 </body>
33 </html> 33 </html>
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698