OLD | NEW |
1 <html> | 1 <!DOCTYPE html> |
2 <head> | 2 <title>SVGTransformList.consolidate() on an empty transform list</title> |
| 3 <script src="../../resources/testharness.js"></script> |
| 4 <script src="../../resources/testharnessreport.js"></script> |
3 <script> | 5 <script> |
4 if (window.testRunner) | 6 test(function() { |
5 testRunner.dumpAsText(); | 7 let element = document.createElementNS("http://www.w3.org/2000/svg", "pattern"
); |
6 | 8 let transformList = element.patternTransform.baseVal; |
7 function go() { | 9 assert_equals(transformList.length, 0); |
8 var oSvgPatternElement = document.createElementNS("http://www.w3.org/2000/sv
g","pattern"); | 10 assert_equals(transformList.consolidate(), null); |
9 var oSvgTransformList = oSvgPatternElement.patternTransform.baseVal; | 11 }); |
10 oSvgTransformList.consolidate(); | |
11 } | |
12 </script> | 12 </script> |
13 </head> | |
14 <body onload="go()"> | |
15 This test passes if it doesn't fire an assertion. | |
16 </body> | |
17 </html> | |
OLD | NEW |