| OLD | NEW |
| 1 <!DOCTYPE html> | 1 <!DOCTYPE html> |
| 2 <script src="../../resources/testharness.js"></script> | 2 <script src="../../resources/testharness.js"></script> |
| 3 <script src="../../resources/testharnessreport.js"></script> | 3 <script src="../../resources/testharnessreport.js"></script> |
| 4 <title>SVG bounding boxes are valid for a zero-width or zero-height circle</titl
e> | 4 <title>SVG bounding boxes are valid for a zero-width or zero-height circle</titl
e> |
| 5 <svg height="0"> | 5 <svg height="0"> |
| 6 <circle cx="300" cy="300" r="50"/> | 6 <circle cx="300" cy="300" r="50"/> |
| 7 <circle cx="300" cy="300" r="0"/> | 7 <circle cx="300" cy="300" r="0"/> |
| 8 <circle vector-effect="non-scaling-stroke" cx="300" cy="300" r="50"/> | 8 <circle vector-effect="non-scaling-stroke" cx="300" cy="300" r="50"/> |
| 9 <circle vector-effect="non-scaling-stroke" cx="300" cy="300" r="0"/> | 9 <circle vector-effect="non-scaling-stroke" cx="300" cy="300" r="0"/> |
| 10 </svg> | 10 </svg> |
| (...skipping 15 matching lines...) Expand all Loading... |
| 26 new BBox(300, 300, 0, 0), | 26 new BBox(300, 300, 0, 0), |
| 27 ]; | 27 ]; |
| 28 var circles = document.getElementsByTagName('circle'); | 28 var circles = document.getElementsByTagName('circle'); |
| 29 for (var i = 0, length = circles.length; i < length; ++i) { | 29 for (var i = 0, length = circles.length; i < length; ++i) { |
| 30 var circleBBox = circles[i].getBBox(); | 30 var circleBBox = circles[i].getBBox(); |
| 31 test(function() { | 31 test(function() { |
| 32 assert_equals(circleBBox.x, expectedBoxes[i].x); | 32 assert_equals(circleBBox.x, expectedBoxes[i].x); |
| 33 assert_equals(circleBBox.y, expectedBoxes[i].y); | 33 assert_equals(circleBBox.y, expectedBoxes[i].y); |
| 34 assert_equals(circleBBox.width, expectedBoxes[i].width); | 34 assert_equals(circleBBox.width, expectedBoxes[i].width); |
| 35 assert_equals(circleBBox.height, expectedBoxes[i].height); | 35 assert_equals(circleBBox.height, expectedBoxes[i].height); |
| 36 }, 'Bounding box size ' + expectedBoxes[i]); | 36 }, 'Bounding box size, circle ' + (i + 1) + ', ' + expectedBoxes[i]); |
| 37 } | 37 } |
| 38 </script> | 38 </script> |
| OLD | NEW |