REGRESSION (r91125): Polyline tool in google docs is broken
authorcommit-queue@webkit.org <commit-queue@webkit.org@268f45cc-cd09-0410-ab3c-d52691b4dbfc>
Tue, 15 Nov 2011 18:21:17 +0000 (18:21 +0000)
committercommit-queue@webkit.org <commit-queue@webkit.org@268f45cc-cd09-0410-ab3c-d52691b4dbfc>
Tue, 15 Nov 2011 18:21:17 +0000 (18:21 +0000)
https://bugs.webkit.org/show_bug.cgi?id=65796

This adds test to ensure that the bug does not reappear unnoticed.

Patch by Stephen Chenney <schenney@chromium.org> on 2011-11-15
Reviewed by Nikolas Zimmermann.

* svg/custom/zero-path-square-cap-rendering3-expected.png: Added.
* svg/custom/zero-path-square-cap-rendering3-expected.txt: Added.
* svg/custom/zero-path-square-cap-rendering3.svg: Added.

git-svn-id: https://svn.webkit.org/repository/webkit/trunk@100291 268f45cc-cd09-0410-ab3c-d52691b4dbfc

LayoutTests/ChangeLog
LayoutTests/svg/custom/zero-path-square-cap-rendering3-expected.png [new file with mode: 0644]
LayoutTests/svg/custom/zero-path-square-cap-rendering3-expected.txt [new file with mode: 0644]
LayoutTests/svg/custom/zero-path-square-cap-rendering3.svg [new file with mode: 0644]

index 8034b0d14a3ffda36b0bd24dcc4b46ce40b5d12a..3b3c0d89d00dae308f1dc857744c05830e0d7deb 100644 (file)
@@ -1,3 +1,16 @@
+2011-11-15  Stephen Chenney  <schenney@chromium.org>
+
+        REGRESSION (r91125): Polyline tool in google docs is broken
+        https://bugs.webkit.org/show_bug.cgi?id=65796
+
+        This adds test to ensure that the bug does not reappear unnoticed.
+
+        Reviewed by Nikolas Zimmermann.
+
+        * svg/custom/zero-path-square-cap-rendering3-expected.png: Added.
+        * svg/custom/zero-path-square-cap-rendering3-expected.txt: Added.
+        * svg/custom/zero-path-square-cap-rendering3.svg: Added.
+
 2011-11-15  Erik Arvidsson  <arv@chromium.org>
 
         Fix invalid markup in some tests
diff --git a/LayoutTests/svg/custom/zero-path-square-cap-rendering3-expected.png b/LayoutTests/svg/custom/zero-path-square-cap-rendering3-expected.png
new file mode 100644 (file)
index 0000000..f981ffc
Binary files /dev/null and b/LayoutTests/svg/custom/zero-path-square-cap-rendering3-expected.png differ
diff --git a/LayoutTests/svg/custom/zero-path-square-cap-rendering3-expected.txt b/LayoutTests/svg/custom/zero-path-square-cap-rendering3-expected.txt
new file mode 100644 (file)
index 0000000..d67e35f
--- /dev/null
@@ -0,0 +1,7 @@
+layer at (0,0) size 800x600
+  RenderView at (0,0) size 800x600
+layer at (0,0) size 800x600
+  RenderSVGRoot {svg} at (0,0) size 77x77
+    RenderSVGContainer {g} at (0,0) size 77x77 [transform={m=((0.77,0.00)(0.00,0.77)) t=(0.00,0.00)}]
+      RenderSVGPath {rect} at (0,0) size 77x77 [fill={[type=SOLID] [color=#008000]}] [x=0.00] [y=0.00] [width=100.00] [height=100.00]
+      RenderSVGPath {path} at (0,0) size 0x0 [stroke={[type=SOLID] [color=#FF0000] [stroke width=496.95] [miter limit=8.00] [line cap=SQUARE]}] [fill={[type=SOLID] [color=#000000]}] [data="M 0 0"]
diff --git a/LayoutTests/svg/custom/zero-path-square-cap-rendering3.svg b/LayoutTests/svg/custom/zero-path-square-cap-rendering3.svg
new file mode 100644 (file)
index 0000000..595a3ca
--- /dev/null
@@ -0,0 +1,6 @@
+<svg width="100%" height="100%" version="1.1" xmlns="http://www.w3.org/2000/svg">
+  <g transform="scale(0.766666)">
+    <rect width="100" height="100" style="fill:green"/>
+    <path stroke="red" stroke-width="496.95" stroke-linecap="square" stroke-linejoin="miter" stroke-miterlimit="8" shape-rendering="optimizeSpeed" d="M 0 0"/>
+  </g>
+</svg>