OLD | NEW |
(Empty) | |
| 1 <!DOCTYPE html> |
| 2 <html> |
| 3 <head> |
| 4 <title>Shape Image Threshold - Valid 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="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 |
| 9 clipped value between 0 and 1."> |
| 10 <meta name="flags" content="dom"> |
| 11 <script src="../../../../../resources/testharness.js"></script> |
| 12 <script src="../../../../../resources/testharnessreport.js"></script> |
| 13 <script src="support/parsing-utils.js"></script> |
| 14 </head> |
| 15 <body> |
| 16 <div id="log"></div> |
| 17 <script type="text/javascript"> |
| 18 var shape_image_threshold_valid_tests = [ |
| 19 { |
| 20 "actual": "0.0", |
| 21 "expected_inline": "0", |
| 22 "expected_computed": "0" |
| 23 }, |
| 24 { |
| 25 "actual": ".2", |
| 26 "expected_inline": "0.2", |
| 27 "expected_computed": "0.2" |
| 28 }, |
| 29 { |
| 30 "actual": "0.333", |
| 31 "expected_inline": "0.333", |
| 32 "expected_computed": "0.333" |
| 33 }, |
| 34 { |
| 35 "actual": "1.0", |
| 36 "expected_inline": "1", |
| 37 "expected_computed": "1" |
| 38 }, |
| 39 { |
| 40 "actual": "1.5", |
| 41 "expected_inline": "1.5", |
| 42 "expected_computed": "1" |
| 43 } |
| 44 ]; |
| 45 generate_tests( ParsingUtils.testShapeThresholdInlineStyle, |
| 46 ParsingUtils.buildTestCases(shape_image_threshold_valid_
tests, 'inline') ); |
| 47 generate_tests( ParsingUtils.testShapeThresholdComputedStyle, |
| 48 ParsingUtils.buildTestCases(shape_image_threshold_valid_
tests, 'computed') ); |
| 49 </script> |
| 50 </body> |
| 51 </html> |
OLD | NEW |