Bug #: 6061
authoreseidel <eseidel@268f45cc-cd09-0410-ab3c-d52691b4dbfc>
Tue, 13 Dec 2005 21:26:51 +0000 (21:26 +0000)
committereseidel <eseidel@268f45cc-cd09-0410-ab3c-d52691b4dbfc>
Tue, 13 Dec 2005 21:26:51 +0000 (21:26 +0000)
Submitted by: eseidel
Reviewed by: darin
        3 tests checking expected behavior for bad transform.
        http://bugzilla.opendarwin.org/show_bug.cgi?id=6061

        * svg/custom/transform-ignore-after-invalid-expected.checksum: Added.
        * svg/custom/transform-ignore-after-invalid-expected.png: Added.
        * svg/custom/transform-ignore-after-invalid-expected.txt: Added.
        * svg/custom/transform-ignore-after-invalid.svg: Added.
        * svg/custom/transform-invalid-expected.checksum: Added.
        * svg/custom/transform-invalid-expected.png: Added.
        * svg/custom/transform-invalid-expected.txt: Added.
        * svg/custom/transform-invalid.svg: Added.
        * svg/custom/transform-with-ending-space-expected.checksum: Added.
        * svg/custom/transform-with-ending-space-expected.png: Added.
        * svg/custom/transform-with-ending-space-expected.txt: Added.
        * svg/custom/transform-with-ending-space.svg: Added.

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

13 files changed:
LayoutTests/ChangeLog
LayoutTests/svg/custom/transform-ignore-after-invalid-expected.checksum [new file with mode: 0644]
LayoutTests/svg/custom/transform-ignore-after-invalid-expected.png [new file with mode: 0644]
LayoutTests/svg/custom/transform-ignore-after-invalid-expected.txt [new file with mode: 0644]
LayoutTests/svg/custom/transform-ignore-after-invalid.svg [new file with mode: 0644]
LayoutTests/svg/custom/transform-invalid-expected.checksum [new file with mode: 0644]
LayoutTests/svg/custom/transform-invalid-expected.png [new file with mode: 0644]
LayoutTests/svg/custom/transform-invalid-expected.txt [new file with mode: 0644]
LayoutTests/svg/custom/transform-invalid.svg [new file with mode: 0644]
LayoutTests/svg/custom/transform-with-ending-space-expected.checksum [new file with mode: 0644]
LayoutTests/svg/custom/transform-with-ending-space-expected.png [new file with mode: 0644]
LayoutTests/svg/custom/transform-with-ending-space-expected.txt [new file with mode: 0644]
LayoutTests/svg/custom/transform-with-ending-space.svg [new file with mode: 0644]

index c6bebb6627ef5b9c9f58504bae18abcfc4f99d24..b1d07c0c4fdd972c94c1cbceb71ab7f5a88b4a83 100644 (file)
@@ -1,3 +1,23 @@
+2005-12-13  Eric Seidel  <eseidel@apple.com>
+
+        Reviewed by darin.
+
+        3 tests checking expected behavior for bad transform.
+        http://bugzilla.opendarwin.org/show_bug.cgi?id=6061
+
+        * svg/custom/transform-ignore-after-invalid-expected.checksum: Added.
+        * svg/custom/transform-ignore-after-invalid-expected.png: Added.
+        * svg/custom/transform-ignore-after-invalid-expected.txt: Added.
+        * svg/custom/transform-ignore-after-invalid.svg: Added.
+        * svg/custom/transform-invalid-expected.checksum: Added.
+        * svg/custom/transform-invalid-expected.png: Added.
+        * svg/custom/transform-invalid-expected.txt: Added.
+        * svg/custom/transform-invalid.svg: Added.
+        * svg/custom/transform-with-ending-space-expected.checksum: Added.
+        * svg/custom/transform-with-ending-space-expected.png: Added.
+        * svg/custom/transform-with-ending-space-expected.txt: Added.
+        * svg/custom/transform-with-ending-space.svg: Added.
+
 2005-12-12  Justin Garcia  <justin.garcia@apple.com>
 
         Reviewed by harrison
diff --git a/LayoutTests/svg/custom/transform-ignore-after-invalid-expected.checksum b/LayoutTests/svg/custom/transform-ignore-after-invalid-expected.checksum
new file mode 100644 (file)
index 0000000..01759ba
--- /dev/null
@@ -0,0 +1 @@
+5e41aeb73f52555c5781c27b6b300835
\ No newline at end of file
diff --git a/LayoutTests/svg/custom/transform-ignore-after-invalid-expected.png b/LayoutTests/svg/custom/transform-ignore-after-invalid-expected.png
new file mode 100644 (file)
index 0000000..a7dfddd
Binary files /dev/null and b/LayoutTests/svg/custom/transform-ignore-after-invalid-expected.png differ
diff --git a/LayoutTests/svg/custom/transform-ignore-after-invalid-expected.txt b/LayoutTests/svg/custom/transform-ignore-after-invalid-expected.txt
new file mode 100644 (file)
index 0000000..70e633f
--- /dev/null
@@ -0,0 +1,5 @@
+layer at (0,0) size 480x360
+  RenderCanvas at (0,0) size 480x360
+    KCanvasContainer {svg} at (0,0) size 100x100
+      KCanvasItem {rect} at (0,0) size 100x100 [fill={[type=SOLID] [color=#FF0000]}] [data="M0.00,0.00L100.00,0.00L100.00,100.00L0.00,100.00"]
+      KCanvasItem {rect} at (0,0) size 100x100 [fill={[type=SOLID] [color=#008000]}] [data="M0.00,0.00L100.00,0.00L100.00,100.00L0.00,100.00"]
diff --git a/LayoutTests/svg/custom/transform-ignore-after-invalid.svg b/LayoutTests/svg/custom/transform-ignore-after-invalid.svg
new file mode 100644 (file)
index 0000000..ecc3b16
--- /dev/null
@@ -0,0 +1,8 @@
+<?xml version="1.0" encoding="UTF-8" standalone="no"?>
+<!DOCTYPE svg PUBLIC "-//W3C//DTD SVG 1.0//EN" "http://www.w3.org/TR/2001/REC-SVG-20010904/DTD/svg10.dtd">
+<svg xmlns="http://www.w3.org/2000/svg" width="100" height="100" viewBox="0 0 100 100">
+    <!-- The current behavior is to ignore invalid transforms (and any transforms after).
+         We might choose to enter an "error state" on an invlalid transform in the future. -->
+    <rect width="100" height="100" fill="red"/>
+       <rect width="100" height="100" transform="scale(1,2,3) translate(50,50)" fill="green"/>
+</svg>
diff --git a/LayoutTests/svg/custom/transform-invalid-expected.checksum b/LayoutTests/svg/custom/transform-invalid-expected.checksum
new file mode 100644 (file)
index 0000000..01759ba
--- /dev/null
@@ -0,0 +1 @@
+5e41aeb73f52555c5781c27b6b300835
\ No newline at end of file
diff --git a/LayoutTests/svg/custom/transform-invalid-expected.png b/LayoutTests/svg/custom/transform-invalid-expected.png
new file mode 100644 (file)
index 0000000..a7dfddd
Binary files /dev/null and b/LayoutTests/svg/custom/transform-invalid-expected.png differ
diff --git a/LayoutTests/svg/custom/transform-invalid-expected.txt b/LayoutTests/svg/custom/transform-invalid-expected.txt
new file mode 100644 (file)
index 0000000..259f55a
--- /dev/null
@@ -0,0 +1,5 @@
+layer at (0,0) size 480x360
+  RenderCanvas at (0,0) size 480x360
+    KCanvasContainer {svg} at (0,0) size 100x100
+      KCanvasItem {rect} at (0,0) size 100x100 [fill={[type=SOLID] [color=#008000]}] [data="M0.00,0.00L100.00,0.00L100.00,100.00L0.00,100.00"]
+      KCanvasItem {rect} at (0,0) size 100x100 [fill={[type=SOLID] [color=#008000]}] [data="M0.00,0.00L100.00,0.00L100.00,100.00L0.00,100.00"]
diff --git a/LayoutTests/svg/custom/transform-invalid.svg b/LayoutTests/svg/custom/transform-invalid.svg
new file mode 100644 (file)
index 0000000..5e94d7e
--- /dev/null
@@ -0,0 +1,7 @@
+<?xml version="1.0" encoding="UTF-8" standalone="no"?>
+<!DOCTYPE svg PUBLIC "-//W3C//DTD SVG 1.0//EN" "http://www.w3.org/TR/2001/REC-SVG-20010904/DTD/svg10.dtd">
+<svg xmlns="http://www.w3.org/2000/svg" width="100" height="100" viewBox="0 0 100 100">
+    <!-- Both of these previously caused crashes, but now should be ignored. -->
+       <rect width="100" height="100" transform="scale()" fill="green"/>
+       <rect width="100" height="100" transform="foo(1,1)" fill="green"/>
+</svg>
diff --git a/LayoutTests/svg/custom/transform-with-ending-space-expected.checksum b/LayoutTests/svg/custom/transform-with-ending-space-expected.checksum
new file mode 100644 (file)
index 0000000..01759ba
--- /dev/null
@@ -0,0 +1 @@
+5e41aeb73f52555c5781c27b6b300835
\ No newline at end of file
diff --git a/LayoutTests/svg/custom/transform-with-ending-space-expected.png b/LayoutTests/svg/custom/transform-with-ending-space-expected.png
new file mode 100644 (file)
index 0000000..a7dfddd
Binary files /dev/null and b/LayoutTests/svg/custom/transform-with-ending-space-expected.png differ
diff --git a/LayoutTests/svg/custom/transform-with-ending-space-expected.txt b/LayoutTests/svg/custom/transform-with-ending-space-expected.txt
new file mode 100644 (file)
index 0000000..df67b13
--- /dev/null
@@ -0,0 +1,4 @@
+layer at (0,0) size 480x360
+  RenderCanvas at (0,0) size 480x360
+    KCanvasContainer {svg} at (0,0) size 100x100
+      KCanvasItem {rect} at (0,0) size 100x100 [fill={[type=SOLID] [color=#008000]}] [data="M0.00,0.00L100.00,0.00L100.00,100.00L0.00,100.00"]
diff --git a/LayoutTests/svg/custom/transform-with-ending-space.svg b/LayoutTests/svg/custom/transform-with-ending-space.svg
new file mode 100644 (file)
index 0000000..ab30bee
--- /dev/null
@@ -0,0 +1,5 @@
+<?xml version="1.0" encoding="UTF-8" standalone="no"?>
+<!DOCTYPE svg PUBLIC "-//W3C//DTD SVG 1.0//EN" "http://www.w3.org/TR/2001/REC-SVG-20010904/DTD/svg10.dtd">
+<svg xmlns="http://www.w3.org/2000/svg" width="100" height="100" viewBox="0 0 100 100">
+       <rect width="100" height="100" transform="scale(1,1) " fill="green"/>
+</svg>