OLD | NEW |
(Empty) | |
| 1 <!DOCTYPE html> |
| 2 <title>SVGSVGElement no-op methods</title> |
| 3 <script src="../../resources/testharness.js"></script> |
| 4 <script src="../../resources/testharnessreport.js"></script> |
| 5 <script> |
| 6 test(function() { |
| 7 var svg = document.createElementNS("http://www.w3.org/2000/svg", "svg"); |
| 8 |
| 9 assert_equals(svg.suspendRedraw.length, 1); |
| 10 assert_throws(new TypeError(), function() { |
| 11 svg.suspendRedraw(); |
| 12 }); |
| 13 svg.suspendRedraw(0); |
| 14 |
| 15 assert_equals(svg.unsuspendRedraw.length, 1); |
| 16 assert_throws(new TypeError(), function() { |
| 17 svg.unsuspendRedraw(); |
| 18 }); |
| 19 svg.unsuspendRedraw(0); |
| 20 |
| 21 assert_equals(svg.unsuspendRedrawAll.length, 0); |
| 22 svg.unsuspendRedrawAll(); |
| 23 |
| 24 assert_equals(svg.forceRedraw.length, 0); |
| 25 svg.forceRedraw(); |
| 26 }); |
| 27 </script> |
OLD | NEW |