Add layout test for orphaned CSS unit coalescing.
authorhyatt <hyatt@268f45cc-cd09-0410-ab3c-d52691b4dbfc>
Fri, 26 Jan 2007 22:47:58 +0000 (22:47 +0000)
committerhyatt <hyatt@268f45cc-cd09-0410-ab3c-d52691b4dbfc>
Fri, 26 Jan 2007 22:47:58 +0000 (22:47 +0000)
git-svn-id: https://svn.webkit.org/repository/webkit/trunk@19165 268f45cc-cd09-0410-ab3c-d52691b4dbfc

LayoutTests/fast/css/quirk-orphaned-units-expected.checksum [new file with mode: 0644]
LayoutTests/fast/css/quirk-orphaned-units-expected.png [new file with mode: 0644]
LayoutTests/fast/css/quirk-orphaned-units-expected.txt [new file with mode: 0644]
LayoutTests/fast/css/quirk-orphaned-units.html [new file with mode: 0644]

diff --git a/LayoutTests/fast/css/quirk-orphaned-units-expected.checksum b/LayoutTests/fast/css/quirk-orphaned-units-expected.checksum
new file mode 100644 (file)
index 0000000..c1da594
--- /dev/null
@@ -0,0 +1 @@
+9506fe44013551aebbde0f385a997050
\ No newline at end of file
diff --git a/LayoutTests/fast/css/quirk-orphaned-units-expected.png b/LayoutTests/fast/css/quirk-orphaned-units-expected.png
new file mode 100644 (file)
index 0000000..cfd9adc
Binary files /dev/null and b/LayoutTests/fast/css/quirk-orphaned-units-expected.png differ
diff --git a/LayoutTests/fast/css/quirk-orphaned-units-expected.txt b/LayoutTests/fast/css/quirk-orphaned-units-expected.txt
new file mode 100644 (file)
index 0000000..9222047
--- /dev/null
@@ -0,0 +1,12 @@
+layer at (0,0) size 800x600
+  RenderView at (0,0) size 800x600
+layer at (0,0) size 800x600
+  RenderBlock {HTML} at (0,0) size 800x600
+    RenderBody {BODY} at (8,8) size 784x584
+      RenderBlock {DIV} at (0,0) size 784x178 [border: (80px solid #FF0000)]
+        RenderText {#text} at (80,80) size 208x18
+          text run at (80,80) width 208: "This border should be 5em thick."
+      RenderBlock {DIV} at (0,178) size 100x36 [bgcolor=#00FF00]
+        RenderText {#text} at (0,0) size 98x36
+          text run at (0,0) width 98: "This div should"
+          text run at (0,18) width 98: "be 100px wide."
diff --git a/LayoutTests/fast/css/quirk-orphaned-units.html b/LayoutTests/fast/css/quirk-orphaned-units.html
new file mode 100644 (file)
index 0000000..82047e5
--- /dev/null
@@ -0,0 +1,2 @@
+<div style="border:5 em solid red">This border should be 5em thick.</div>
+<div style="width:100 px; background-color:lime">This div should be 100px wide.</div>