OLD | NEW |
1 description('Test parsing of the CSS shape-margin property.'); | 1 description('Test parsing of the CSS shape-margin property.'); |
2 | 2 |
3 if (window.internals) | |
4 window.internals.settings.setCSSExclusionsEnabled(true); | |
5 | |
6 // The test functions and globals used here are defined parsing-test-utils.js. | 3 // The test functions and globals used here are defined parsing-test-utils.js. |
7 | 4 |
8 validShapeLengths.forEach(function(value, i, a) { | 5 validShapeLengths.forEach(function(value, i, a) { |
9 testShapeSpecifiedProperty("-webkit-shape-margin", value, value); | 6 testShapeSpecifiedProperty("-webkit-shape-margin", value, value); |
10 }); | 7 }); |
11 | 8 |
12 testShapeSpecifiedProperty("-webkit-shape-margin", "0", "0px"); | 9 testShapeSpecifiedProperty("-webkit-shape-margin", "0", "0px"); |
13 | 10 |
14 invalidShapeLengths.forEach(function(value, i, a) { | 11 invalidShapeLengths.forEach(function(value, i, a) { |
15 testShapeSpecifiedProperty("-webkit-shape-margin", value, ""); | 12 testShapeSpecifiedProperty("-webkit-shape-margin", value, ""); |
(...skipping 12 matching lines...) Expand all Loading... |
28 applyToEachArglist( | 25 applyToEachArglist( |
29 testNotInheritedShapeChildProperty, | 26 testNotInheritedShapeChildProperty, |
30 [// [property, parentValue, childValue, expectedChildValue] | 27 [// [property, parentValue, childValue, expectedChildValue] |
31 ["-webkit-shape-margin", "0", "0", "0px"], | 28 ["-webkit-shape-margin", "0", "0", "0px"], |
32 ["-webkit-shape-margin", "0", "1px", "1px"], | 29 ["-webkit-shape-margin", "0", "1px", "1px"], |
33 ["-webkit-shape-margin", "1px", "-1em", "0px"], | 30 ["-webkit-shape-margin", "1px", "-1em", "0px"], |
34 ["-webkit-shape-margin", "2px", "1px", "1px"]] | 31 ["-webkit-shape-margin", "2px", "1px", "1px"]] |
35 ); | 32 ); |
36 | 33 |
37 | 34 |
OLD | NEW |