Layout test to go with fix for bugzilla bug 3442
authorthatcher <thatcher@268f45cc-cd09-0410-ab3c-d52691b4dbfc>
Sun, 23 Oct 2005 15:24:28 +0000 (15:24 +0000)
committerthatcher <thatcher@268f45cc-cd09-0410-ab3c-d52691b4dbfc>
Sun, 23 Oct 2005 15:24:28 +0000 (15:24 +0000)
        Adds support for :first-of-type CSS3 pseudo-selectors

        * fast/selectors/034-expected.checksum: Added.
        * fast/selectors/034-expected.png: Added.
        * fast/selectors/034-expected.txt: Added.
        * fast/selectors/034.html: Added.

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

LayoutTests/ChangeLog
LayoutTests/fast/selectors/034-expected.checksum [new file with mode: 0644]
LayoutTests/fast/selectors/034-expected.png [new file with mode: 0644]
LayoutTests/fast/selectors/034-expected.txt [new file with mode: 0644]
LayoutTests/fast/selectors/034.html [new file with mode: 0644]

index ae627d762ae422c3296c76ad4703f7ef89e17a86..59d0a4532c02503ad92d3d8b591621429019a5ca 100644 (file)
@@ -1,3 +1,13 @@
+2005-10-23  Timothy Hatcher  <timothy@apple.com>
+
+        Layout test to go with fix for bugzilla bug 3442 
+        Adds support for :first-of-type CSS3 pseudo-selectors
+
+        * fast/selectors/034-expected.checksum: Added.
+        * fast/selectors/034-expected.png: Added.
+        * fast/selectors/034-expected.txt: Added.
+        * fast/selectors/034.html: Added.
+
 2005-10-22  Darin Adler  <darin@apple.com>
 
         - updated pixel results for tests with results that changed recently
diff --git a/LayoutTests/fast/selectors/034-expected.checksum b/LayoutTests/fast/selectors/034-expected.checksum
new file mode 100644 (file)
index 0000000..9c4a326
--- /dev/null
@@ -0,0 +1 @@
+7f29b5424b33752438895eb2936befb6
\ No newline at end of file
diff --git a/LayoutTests/fast/selectors/034-expected.png b/LayoutTests/fast/selectors/034-expected.png
new file mode 100644 (file)
index 0000000..5be0ce3
Binary files /dev/null and b/LayoutTests/fast/selectors/034-expected.png differ
diff --git a/LayoutTests/fast/selectors/034-expected.txt b/LayoutTests/fast/selectors/034-expected.txt
new file mode 100644 (file)
index 0000000..3a530b9
--- /dev/null
@@ -0,0 +1,18 @@
+layer at (0,0) size 800x600
+  RenderCanvas at (0,0) size 800x600
+layer at (0,0) size 800x128
+  RenderBlock {HTML} at (0,0) size 800x128
+    RenderBody {BODY} at (8,8) size 784x104
+      RenderBlock {DIV} at (0,0) size 784x104
+        RenderBlock (anonymous) at (0,0) size 784x18
+          RenderText {TEXT} at (0,0) size 188x18
+            text run at (0,0) width 188: "This div contains 3 addresses:"
+        RenderBlock {ADDRESS} at (16,18) size 768x18 [bgcolor=#00FF00]
+          RenderText {TEXT} at (0,0) size 331x18
+            text run at (0,0) width 331: "A first address that should have a green background"
+        RenderBlock {ADDRESS} at (16,52) size 768x18
+          RenderText {TEXT} at (0,0) size 272x18
+            text run at (0,0) width 272: "A second address with normal background"
+        RenderBlock {ADDRESS} at (16,86) size 768x18
+          RenderText {TEXT} at (0,0) size 258x18
+            text run at (0,0) width 258: "A third address with normal background"
diff --git a/LayoutTests/fast/selectors/034.html b/LayoutTests/fast/selectors/034.html
new file mode 100644 (file)
index 0000000..2e868a8
--- /dev/null
@@ -0,0 +1,23 @@
+<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01//EN">
+<html>
+ <head>
+  <title>:first-of-type pseudo-class</title>
+  <style type="text/css">.red { background-color : red }
+address { margin-bottom : 1em ; margin-left : 1em }
+address:first-of-type { background-color : lime }
+</style>
+  <link rel="first" href="css3-modsel-1.html" title="Groups of selectors">
+  <link rel="prev" href="css3-modsel-33.html" title=":last-child pseudo-class">
+  <link rel="next" href="css3-modsel-35.html" title=":last-of-type pseudo-class">
+  <link rel="last" href="css3-modsel-d5e.html" title="NEGATED :indeterminate with :checked">
+  <link rel="up" href="./index.html">
+  <link rel="top" href="../../index.html">
+ </head>
+ <body>
+<div>This div contains 3 addresses:
+<address class="red">A first address that should have a green background</address>
+<address>A second address with normal background</address>
+<address>A third address with normal background</address>
+</div>
+</body>
+</html>
\ No newline at end of file