Bug 1404222 Part 5 - Adjust tolerance value in shape-outside-radial-gradient-004.html. draft
authorTing-Yu Lin <tlin@mozilla.com>
Tue, 09 Jan 2018 17:49:23 +0800
changeset 720821 12e5f82675cb2887ece79c316b22955e711dafe7
parent 720820 9d055ad487c718d28dce0e05909c4f4943c5f953
child 720822 754948a0b52424890bad8314069dd73067ecd25f
push id95655
push userbmo:tlin@mozilla.com
push dateTue, 16 Jan 2018 10:10:17 +0000
bugs1404222
milestone59.0a1
Bug 1404222 Part 5 - Adjust tolerance value in shape-outside-radial-gradient-004.html. The test will pass if the diff pixels is less than or equal to the tolerance value. (See test-utils.js) In this test, the diff pixels of <span id='test0'> is 1.01666259765625, so I loose the tolerance to 1.5 pixels, which is the same as the tolerance value use in shape-outside-radial-gradient-001.html. MozReview-Commit-ID: KuIYl0wWkll
testing/web-platform/tests/css/css-shapes/shape-outside/shape-image/gradients/shape-outside-radial-gradient-004.html
--- a/testing/web-platform/tests/css/css-shapes/shape-outside/shape-image/gradients/shape-outside-radial-gradient-004.html
+++ b/testing/web-platform/tests/css/css-shapes/shape-outside/shape-image/gradients/shape-outside-radial-gradient-004.html
@@ -1,12 +1,12 @@
 <!DOCTYPE html>
 <html>
 <head>
-    <title>CSS Test: Left float with radial gradient shape, shape margin, and shape-image-threshold</title>
+    <title>CSS Test: Right float with radial gradient shape, and shape-image-threshold</title>
     <link rel="author" title="Bear Travis" href="mailto:betravis@adobe.com"/>
     <link rel="help" href="http://www.w3.org/TR/css-shapes-1/#shapes-from-image"/>
     <link rel="help" href="http://www.w3.org/TR/css-shapes-1/#shape-outside-property"/>
     <link rel="help" href="http://www.w3.org/TR/css-shapes-1/#shape-image-threshold-property"/>
     <script src="/resources/testharness.js"></script>
     <script src="/resources/testharnessreport.js"></script>
     <script src="../../supported-shapes/support/rounded-rectangle.js"></script>
     <script src="../../supported-shapes/support/subpixel-utils.js"></script>
@@ -58,12 +58,12 @@
     </div>
     <div id="log"></div>
     <script>
         verifyTextPoints({
                 roundedRect: {x: 100, y: 10, width: 100, height: 100, rx: 50, ry: 50},
                 containerWidth: 200,
                 containerHeight: 200,
                 lineHeight: 10
-        }, 10, 1, "right");
+        }, 10, 1.5, "right");
      </script>
 </body>
 </html>