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

Side by Side Diff: third_party/WebKit/LayoutTests/imported/csswg-test/css-shapes-1/shape-outside/values/shape-image-threshold-001.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 Image Threshold - calc() values</title> 4 <title>Shape Image Threshold - 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-image-th reshold-property"> 7 <link rel="help" href="http://www.w3.org/TR/css-shapes-1/#shape-image-th reshold-property">
8 <meta name="assert" content="shape-image-threshold may take calc values and computed the 8 <meta name="assert" content="shape-image-threshold may take calc values and computed the
9 clipped value between 0 and 1."> 9 clipped value between 0 and 1.">
10 <meta name="flags" content="dom"> 10 <meta name="flags" content="dom">
11 <script src="../../../../../resources/testharness.js"></script> 11 <script src="/resources/testharness.js"></script>
12 <script src="../../../../../resources/testharnessreport.js"></script> 12 <script src="/resources/testharnessreport.js"></script>
13 <script src="support/parsing-utils.js"></script> 13 <script src="support/parsing-utils.js"></script>
14 </head> 14 </head>
15 <body> 15 <body>
16 <div id="log"></div> 16 <div id="log"></div>
17 <script type="text/javascript"> 17 <script type="text/javascript">
18 var shape_image_threshold_valid_tests = [ 18 var shape_image_threshold_valid_tests = [
19 { 19 {
20 "actual": "calc(10/100)", 20 "actual": "calc(10/100)",
21 "expected_computed": "0.1" 21 "expected_computed": "0.1"
22 }, 22 },
23 { 23 {
24 "actual": "calc(10/100 + 30/100)", 24 "actual": "calc(10/100 + 30/100)",
25 "expected_computed": "0.4" 25 "expected_computed": "0.4"
26 }, 26 },
27 { 27 {
28 "actual": "calc(150/100)", 28 "actual": "calc(150/100)",
29 "expected_computed": "1" 29 "expected_computed": "1"
30 }, 30 },
31 { 31 {
32 "actual": "calc(150/100 - 2)", 32 "actual": "calc(150/100 - 2)",
33 "expected_computed": "0" 33 "expected_computed": "0"
34 } 34 }
35 ]; 35 ];
36 generate_tests( ParsingUtils.testShapeThresholdComputedStyle, 36 generate_tests( ParsingUtils.testShapeThresholdComputedStyle,
37 ParsingUtils.buildTestCases(shape_image_threshold_valid_ tests, 'computed') ); 37 ParsingUtils.buildTestCases(shape_image_threshold_valid_ tests, 'computed') );
38 </script> 38 </script>
39 </body> 39 </body>
40 </html> 40 </html>
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698