| OLD | NEW |
| 1 <!DOCTYPE html> | 1 <!DOCTYPE html> |
| 2 <html> | 2 <html> |
| 3 <head> | 3 <head> |
| 4 <title>Shape Image Threshold - Valid values</title> | 4 <title>Shape Image Threshold - Valid 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 is any valid number a
nd computed the | 8 <meta name="assert" content="shape-image-threshold is any valid number a
nd 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": "0.0", | 20 "actual": "0.0", |
| 21 "expected_inline": "0", | 21 "expected_inline": "0", |
| 22 "expected_computed": "0" | 22 "expected_computed": "0" |
| (...skipping 19 matching lines...) Expand all Loading... |
| 42 "expected_computed": "1" | 42 "expected_computed": "1" |
| 43 } | 43 } |
| 44 ]; | 44 ]; |
| 45 generate_tests( ParsingUtils.testShapeThresholdInlineStyle, | 45 generate_tests( ParsingUtils.testShapeThresholdInlineStyle, |
| 46 ParsingUtils.buildTestCases(shape_image_threshold_valid_
tests, 'inline') ); | 46 ParsingUtils.buildTestCases(shape_image_threshold_valid_
tests, 'inline') ); |
| 47 generate_tests( ParsingUtils.testShapeThresholdComputedStyle, | 47 generate_tests( ParsingUtils.testShapeThresholdComputedStyle, |
| 48 ParsingUtils.buildTestCases(shape_image_threshold_valid_
tests, 'computed') ); | 48 ParsingUtils.buildTestCases(shape_image_threshold_valid_
tests, 'computed') ); |
| 49 </script> | 49 </script> |
| 50 </body> | 50 </body> |
| 51 </html> | 51 </html> |
| OLD | NEW |