Bug 1382534 - Make layout/reftests/svg/clipPath-polygon-elementFromPoint-01.svg a bit more permissive. r=mstange draft
authorBotond Ballo <botond@mozilla.com>
Mon, 25 Sep 2017 16:19:03 -0400
changeset 690305 8870b0d92cc7c7ff0e52148197c46de99d597773
parent 690304 86099814a5fcd7b391c86a471f23337bc345fcdf
child 690306 68690f54ea5129863dc5cfb3f4095c22e41409ad
push id87277
push userbballo@mozilla.com
push dateWed, 01 Nov 2017 21:17:50 +0000
reviewersmstange
bugs1382534
milestone58.0a1
Bug 1382534 - Make layout/reftests/svg/clipPath-polygon-elementFromPoint-01.svg a bit more permissive. r=mstange The test was asserting that a point on the boundary of an SVG path is inside the path, but for a point that's right on the boundary, either answer (inside or outside) is reasonable. MozReview-Commit-ID: 8srcoPFmDq
layout/reftests/svg/clipPath-polygon-elementFromPoint-01.svg
--- a/layout/reftests/svg/clipPath-polygon-elementFromPoint-01.svg
+++ b/layout/reftests/svg/clipPath-polygon-elementFromPoint-01.svg
@@ -16,21 +16,21 @@
   <script>
     function testElementFromPoint() {
       let inCount = 0, outCount = 0, inElem, outElem;
       document.getElementById("in").style.fill = "red";
       document.getElementById("out").style.fill = "blue";
 
       inElem = document.elementFromPoint(100, 100);
       if (inElem.style.fill == "red") { ++inCount; }
-      inElem = document.elementFromPoint(150, 100);
+      inElem = document.elementFromPoint(149, 100);
       if (inElem.style.fill == "red") { ++inCount; }
-      inElem = document.elementFromPoint(150, 150);
+      inElem = document.elementFromPoint(149, 149);
       if (inElem.style.fill == "red") { ++inCount; }
-      inElem = document.elementFromPoint(100, 150);
+      inElem = document.elementFromPoint(100, 149);
       if (inElem.style.fill == "red") { ++inCount; }
       if (inCount == 4) { document.getElementById("in").style.fill = "lime"; }
 
       outElem = document.elementFromPoint(99, 100);
       if (outElem.style.fill == "blue") { ++outCount; }
       outElem = document.elementFromPoint(150, 99);
       if (outElem.style.fill == "blue") { ++outCount; }
       outElem = document.elementFromPoint(151, 150);