OLD | NEW |
1 description("Test paint-order.") | 1 description("Test paint-order.") |
2 if (internals.runtimeFlags.svgPaintOrderEnabled) { | |
3 | 2 |
4 if (window.testRunner) | 3 if (window.testRunner) |
5 testRunner.dumpAsText(); | 4 testRunner.dumpAsText(); |
6 createSVGTestCase(); | 5 createSVGTestCase(); |
7 | 6 |
8 var text = createSVGElement("text"); | 7 var text = createSVGElement("text"); |
9 text.setAttribute("id", "text"); | 8 text.setAttribute("id", "text"); |
10 text.setAttribute("x", "100px"); | 9 text.setAttribute("x", "100px"); |
11 text.setAttribute("y", "100px"); | 10 text.setAttribute("y", "100px"); |
12 rootSVGElement.appendChild(text); | 11 rootSVGElement.appendChild(text); |
(...skipping 77 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
90 | 89 |
91 debug(""); | 90 debug(""); |
92 debug("Test invalid values of 'paint-order' (presentation attribute)"); | 91 debug("Test invalid values of 'paint-order' (presentation attribute)"); |
93 test_attr("foo", "fill stroke markers"); | 92 test_attr("foo", "fill stroke markers"); |
94 test_attr("fill foo", "fill stroke markers"); | 93 test_attr("fill foo", "fill stroke markers"); |
95 test_attr("stroke foo", "fill stroke markers"); | 94 test_attr("stroke foo", "fill stroke markers"); |
96 test_attr("markers foo", "fill stroke markers"); | 95 test_attr("markers foo", "fill stroke markers"); |
97 test_attr("normal foo", "fill stroke markers"); | 96 test_attr("normal foo", "fill stroke markers"); |
98 test_attr("fill markers stroke foo", "fill stroke markers"); | 97 test_attr("fill markers stroke foo", "fill stroke markers"); |
99 | 98 |
100 } else { | |
101 debug("paint-order is disabled, skipping test."); | |
102 } | |
103 | |
104 var successfullyParsed = true; | 99 var successfullyParsed = true; |
105 | 100 |
106 completeTest(); | 101 completeTest(); |
OLD | NEW |