Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(187)

Side by Side Diff: third_party/WebKit/LayoutTests/svg/custom/getBBox-ellipse-has-one-zero-value.html

Issue 2782583002: Deduplicate testharness test names in LayoutTests/svg/ (Closed)
Patch Set: Created 3 years, 8 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
OLDNEW
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-rx or zero-ry ellipse</title> 4 <title>SVG bounding boxes are valid for a zero-rx or zero-ry ellipse</title>
5 <svg height="0"> 5 <svg height="0">
6 <ellipse cx="50" cy="100" rx="0" ry="50"/> 6 <ellipse cx="50" cy="100" rx="0" ry="50"/>
7 <ellipse cx="50" cy="100" rx="50" ry="0"/> 7 <ellipse cx="50" cy="100" rx="50" ry="0"/>
8 <ellipse vector-effect="non-scaling-stroke" cx="50" cy="100" rx="0" ry="50"/> 8 <ellipse vector-effect="non-scaling-stroke" cx="50" cy="100" rx="0" ry="50"/>
9 <ellipse vector-effect="non-scaling-stroke" cx="50" cy="100" rx="50" ry="0"/> 9 <ellipse vector-effect="non-scaling-stroke" cx="50" cy="100" rx="50" ry="0"/>
10 </svg> 10 </svg>
(...skipping 15 matching lines...) Expand all
26 new BBox(0, 100, 100, 0), 26 new BBox(0, 100, 100, 0),
27 ]; 27 ];
28 var ellipses = document.getElementsByTagName('ellipse'); 28 var ellipses = document.getElementsByTagName('ellipse');
29 for (var i = 0, length = ellipses.length; i < length; ++i) { 29 for (var i = 0, length = ellipses.length; i < length; ++i) {
30 var ellipseBBox = ellipses[i].getBBox(); 30 var ellipseBBox = ellipses[i].getBBox();
31 test(function() { 31 test(function() {
32 assert_equals(ellipseBBox.x, expectedBoxes[i].x); 32 assert_equals(ellipseBBox.x, expectedBoxes[i].x);
33 assert_equals(ellipseBBox.y, expectedBoxes[i].y); 33 assert_equals(ellipseBBox.y, expectedBoxes[i].y);
34 assert_equals(ellipseBBox.width, expectedBoxes[i].width); 34 assert_equals(ellipseBBox.width, expectedBoxes[i].width);
35 assert_equals(ellipseBBox.height, expectedBoxes[i].height); 35 assert_equals(ellipseBBox.height, expectedBoxes[i].height);
36 }, 'Bounding box size ' + expectedBoxes[i]); 36 }, 'Bounding box size, ellipse ' + (i + 1) + ', ' + expectedBoxes[i]);
37 } 37 }
38 </script> 38 </script>
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698