Move parseFontFaceDescriptor to CSSPropertyParser.cpp
[chromium-blink-merge.git] / third_party / WebKit / LayoutTests / fast / shapes / parsing / parsing-shape-image-threshold.html
blob5729941ac82c216f0606834151ab045581920191
1 <!DOCTYPE html>
2 <html>
3 <head>
4 <script src="../../../resources/js-test.js"></script>
5 </head>
6 <body>
7 <script src="parsing-test-utils.js"></script>
8 <script>
9 description('Test parsing of the CSS shape-image-threshold property.');
11 // The test functions and globals used here are defined parsing-test-utils.js.
13 applyToEachArglist(
14 testShapeComputedProperty,
15 [// [property, value, expectedValue]
16 ["shape-image-threshold", "0", "0"],
17 ["shape-image-threshold", "0.5", "0.5"],
18 ["shape-image-threshold", "1", "1"],
19 ["shape-image-threshold", "-0.1", "0"],
20 ["shape-image-threshold", "1.1", "1"],
21 ["shape-image-threshold", "identifier", "0"],
22 ["shape-image-threshold", "\'string\'", "0"]
28 applyToEachArglist(
29 testNotInheritedShapeChildProperty,
30 [// [property, parentValue, childValue, expectedChildValue]
31 ["shape-image-threshold", "0", "0", "0"],
32 ["shape-image-threshold", "0", "1", "1"],
33 ["shape-image-threshold", "1", "-1", "0"],
34 ["shape-image-threshold", "2", "1", "1"]]
36 </script>
37 </body>
38 </html>