OLD | NEW |
(Empty) | |
| 1 <!DOCTYPE html> |
| 2 <html> |
| 3 <head> |
| 4 <title>Shape Margin Valid Values - Length Units</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-margin-p
roperty"> |
| 8 <meta name="assert" content="shape-margin values may be in any length un
it"> |
| 9 <meta name="flags" content="dom"> |
| 10 <script src="../../../../../resources/testharness.js"></script> |
| 11 <script src="../../../../../resources/testharnessreport.js"></script> |
| 12 <script src="support/parsing-utils.js"></script> |
| 13 </head> |
| 14 <body> |
| 15 <div id="log"></div> |
| 16 <script type="text/javascript"> |
| 17 var shape_margin_valid_unit_tests = []; |
| 18 ParsingUtils.validUnits.forEach(function(unit) { |
| 19 test = "10"+unit; |
| 20 testCase = new Object(); |
| 21 // actual & expected_inline should be the same |
| 22 // expected_computed will get converted to the px value in the test
framework |
| 23 testCase["actual"] = test; |
| 24 testCase["expected_inline"] = test; |
| 25 testCase["expected_computed"] = test; |
| 26 shape_margin_valid_unit_tests.push(testCase); |
| 27 }); |
| 28 generate_tests( ParsingUtils.testShapeMarginInlineStyle, |
| 29 ParsingUtils.buildTestCases(shape_margin_valid_unit_test
s, "inline"), true); |
| 30 generate_tests( ParsingUtils.testShapeMarginComputedStyle, |
| 31 ParsingUtils.buildTestCases(shape_margin_valid_unit_test
s, "computed"), true); |
| 32 </script> |
| 33 </body> |
| 34 </html> |
OLD | NEW |