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

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

Issue 1120133004: Serialize <number> to round to at most 6 decimals (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@master
Patch Set: Fix tests Created 5 years, 7 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 - Decimal, Positive/Negative lengths</t itle> 4 <title>Shape Margin Valid Values - Decimal, Positive/Negative lengths</t itle>
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 either a length or percentage"> 8 <meta name="assert" content="shape-margin values may be either a length or percentage">
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_valid_tests = [ 17 var shape_margin_valid_tests = [
18 { 18 {
19 "actual": "10.12345px", 19 "actual": "10.12345px",
20 "expected_inline": "10.12345px", 20 "expected_inline": "10.1235px",
Timothy Loh 2015/05/19 00:26:17 This file looks imported too, I guess we shouldn't
21 "expected_computed": "10.12345px" 21 "expected_computed": "10.1235px"
22 }, 22 },
23 { 23 {
24 "actual": ".5px", 24 "actual": ".5px",
25 "expected_inline": "0.5px", 25 "expected_inline": "0.5px",
26 "expected_computed": "0.5px" 26 "expected_computed": "0.5px"
27 }, 27 },
28 { 28 {
29 "actual": "+15px", 29 "actual": "+15px",
30 "expected_inline": "15px", 30 "expected_inline": "15px",
31 "expected_computed": "15px" 31 "expected_computed": "15px"
32 }, 32 },
33 { 33 {
34 "actual": "+10.678px", 34 "actual": "+10.678px",
35 "expected_inline": "10.678px", 35 "expected_inline": "10.678px",
36 "expected_computed": "10.678px" 36 "expected_computed": "10.678px"
37 }, 37 },
38 ]; 38 ];
39 generate_tests( ParsingUtils.testShapeMarginInlineStyle, 39 generate_tests( ParsingUtils.testShapeMarginInlineStyle,
40 ParsingUtils.buildTestCases(shape_margin_valid_tests, "i nline"), true); 40 ParsingUtils.buildTestCases(shape_margin_valid_tests, "i nline"), true);
41 generate_tests( ParsingUtils.testShapeMarginComputedStyle, 41 generate_tests( ParsingUtils.testShapeMarginComputedStyle,
42 ParsingUtils.buildTestCases(shape_margin_valid_tests, "c omputed"), true); 42 ParsingUtils.buildTestCases(shape_margin_valid_tests, "c omputed"), true);
43 </script> 43 </script>
44 </body> 44 </body>
45 </html> 45 </html>
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698