Bug 1122578 - Part 2: Test start point and direction of dashed stroking on SVG rect. r=longsonr, a=sledru
authorJonathan Watt <jwatt@jwatt.org>
Sun, 18 Jan 2015 11:43:29 +0000
changeset 242971 7850d99485e6
parent 242970 d3c92eebdf3e
child 242972 0b22d12d0736
push id4350
push userryanvm@gmail.com
push date2015-01-21 19:56 +0000
treeherdermozilla-beta@4501fcac9e0b [default view] [failures only]
perfherder[talos] [build metrics] [platform microbench] (compared to previous push)
reviewerslongsonr, sledru
bugs1122578
milestone36.0
Bug 1122578 - Part 2: Test start point and direction of dashed stroking on SVG rect. r=longsonr, a=sledru
layout/reftests/svg/reftest.list
layout/reftests/svg/stroke-dasharray-03.svg
--- a/layout/reftests/svg/reftest.list
+++ b/layout/reftests/svg/reftest.list
@@ -327,16 +327,17 @@ fuzzy-if(cocoaWidget&&layersGPUAccelerat
 == text-layout-07.svg text-layout-07-ref.svg
 == text-layout-08.svg text-layout-08-ref.svg
 == text-scale-01.svg text-scale-01-ref.svg
 HTTP(..) == text-scale-02.svg text-scale-02-ref.svg
 HTTP(..) == text-scale-03.svg text-scale-03-ref.svg
 == text-stroke-scaling-01.svg text-stroke-scaling-01-ref.svg
 == stroke-dasharray-01.svg stroke-dasharray-01-ref.svg
 == stroke-dasharray-02.svg pass.svg
+== stroke-dasharray-03.svg pass.svg
 == stroke-dasharray-and-pathLength-01.svg pass.svg
 == stroke-dasharray-and-text-01.svg stroke-dasharray-and-text-01-ref.svg
 == stroke-dashoffset-01.svg pass.svg
 == stroke-linecap-round-w-zero-length-segs-01.svg pass.svg
 == stroke-linecap-round-w-zero-length-segs-02.svg pass.svg
 == stroke-linecap-square-w-zero-length-segs-01.svg pass.svg
 == stroke-linecap-square-w-zero-length-segs-02.svg pass.svg
 == textPath-01.svg textPath-01-ref.svg
copy from layout/reftests/svg/stroke-dasharray-02.svg
copy to layout/reftests/svg/stroke-dasharray-03.svg
--- a/layout/reftests/svg/stroke-dasharray-02.svg
+++ b/layout/reftests/svg/stroke-dasharray-03.svg
@@ -1,33 +1,20 @@
 <!--
      Any copyright is dedicated to the Public Domain.
      http://creativecommons.org/publicdomain/zero/1.0/
 -->
 <svg xmlns="http://www.w3.org/2000/svg">
 
-  <title>Test the start point and direction of dashing on circle and ellipse</title>
+  <title>Test the start point and direction of dashing on rect</title>
 
-  <!-- https://bugzilla.mozilla.org/show_bug.cgi?id=944704 -->
+  <!-- https://bugzilla.mozilla.org/show_bug.cgi?id=1122578 -->
 
   <rect width="100%" height="100%" fill="lime"/>
 
-  <!-- Test circle element dashes cover two red circles -->
-  <circle cx="100" cy="62" r="8" fill="red"/>
-  <circle cx="66" cy="98" r="8" fill="red"/>
-  <circle cx="50" cy="50" r="50" fill="none" stroke="lime" stroke-width="30" stroke-dasharray="25 25 25 100000"/>
-
-  <!-- Sanity test to check that two circles cover circle element dashes (i.e. that the previous check didn't pass because the stroke was solid) -->
-  <circle cx="200" cy="50" r="50" fill="none" stroke="red" stroke-width="10" stroke-dasharray="10 40 10 100000"/>
-  <circle cx="250" cy="56" r="11" fill="lime"/>
-  <circle cx="223" cy="96" r="11" fill="lime"/>
+  <rect x="20" y="20"  width="100" height="60" fill="none" stroke="red" stroke-width="10" stroke-dasharray="120,10000"/>
+  <path d="M20,20 h100 v20" fill="none" stroke="lime" stroke-width="10"/>
 
-  <!-- Test ellipse element dashes cover two red circles -->
-  <circle cx="95" cy="211" r="8" fill="red"/>
-  <circle cx="47" cy="225" r="8" fill="red"/>
-  <ellipse cx="50" cy="200" rx="50" ry="25" fill="none" stroke="lime" stroke-width="25" stroke-dasharray="25 25 25 100000"/>
-
-  <!-- Sanity test to check that two circles cover ellipse element dashes (i.e. that the previous check didn't pass because the stroke was solid) -->
-  <ellipse cx="200" cy="200" rx="50" ry="25" fill="none" stroke="red" stroke-width="10" stroke-dasharray="10 40 10 100000"/>
-  <circle cx="250" cy="205" r="11" fill="lime"/>
-  <circle cx="206" cy="225" r="11" fill="lime"/>
+  <rect x="20" y="100" width="100" height="60" fill="none" stroke="red" stroke-width="10" stroke-dasharray="120,10000" rx="10" ry="10"/>
+  <path d="M30,100 h80 a10,10 0 0 1 10,10 v25" fill="none" stroke="lime" stroke-width="14"/>
 
 </svg>
+