Adding layout test for bug 10899.
authorhyatt <hyatt@268f45cc-cd09-0410-ab3c-d52691b4dbfc>
Sun, 17 Sep 2006 23:04:09 +0000 (23:04 +0000)
committerhyatt <hyatt@268f45cc-cd09-0410-ab3c-d52691b4dbfc>
Sun, 17 Sep 2006 23:04:09 +0000 (23:04 +0000)
        * fast/text/basic/generic-family-changes-expected.checksum: Added.
        * fast/text/basic/generic-family-changes-expected.png: Added.
        * fast/text/basic/generic-family-changes-expected.txt: Added.
        * fast/text/basic/generic-family-changes.html: Added.

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

LayoutTests/ChangeLog
LayoutTests/fast/text/basic/generic-family-changes-expected.checksum [new file with mode: 0644]
LayoutTests/fast/text/basic/generic-family-changes-expected.png [new file with mode: 0644]
LayoutTests/fast/text/basic/generic-family-changes-expected.txt [new file with mode: 0644]
LayoutTests/fast/text/basic/generic-family-changes.html [new file with mode: 0644]

index db9e5bccda78174e528c8ba4f33cc0f7ed44f436..b75c684928d702968b566083655174e3e5e70e0f 100644 (file)
@@ -1,3 +1,12 @@
+2006-09-17  David Hyatt  <hyatt@apple.com>
+
+        Adding layout test for bug 10899.
+
+        * fast/text/basic/generic-family-changes-expected.checksum: Added.
+        * fast/text/basic/generic-family-changes-expected.png: Added.
+        * fast/text/basic/generic-family-changes-expected.txt: Added.
+        * fast/text/basic/generic-family-changes.html: Added.
+
 2006-09-17  Alexey Proskuryakov  <ap@nypop.com>
 
         Reviewed by Brady.
diff --git a/LayoutTests/fast/text/basic/generic-family-changes-expected.checksum b/LayoutTests/fast/text/basic/generic-family-changes-expected.checksum
new file mode 100644 (file)
index 0000000..526c2e9
--- /dev/null
@@ -0,0 +1 @@
+255023aaa14ba2266f4da9f33d738447
\ No newline at end of file
diff --git a/LayoutTests/fast/text/basic/generic-family-changes-expected.png b/LayoutTests/fast/text/basic/generic-family-changes-expected.png
new file mode 100644 (file)
index 0000000..ebe0d4b
Binary files /dev/null and b/LayoutTests/fast/text/basic/generic-family-changes-expected.png differ
diff --git a/LayoutTests/fast/text/basic/generic-family-changes-expected.txt b/LayoutTests/fast/text/basic/generic-family-changes-expected.txt
new file mode 100644 (file)
index 0000000..ee11474
--- /dev/null
@@ -0,0 +1,43 @@
+layer at (0,0) size 800x600
+  RenderView at (0,0) size 800x600
+layer at (0,0) size 800x302
+  RenderBlock {HTML} at (0,0) size 800x302
+    RenderBody {BODY} at (8,8) size 784x278
+      RenderBlock (anonymous) at (0,0) size 784x54
+        RenderText {#text} at (0,0) size 778x54
+          text run at (0,0) width 529: "Tests of WebKit's intepretation of font sizes when no absolute font size is specified. "
+          text run at (529,0) width 249: "Percentages and logical keywords scale"
+          text run at (0,18) width 161: "to reflect the family type. "
+          text run at (161,18) width 608: "Opera 9 matches this behavior as well (except it has a bug with multiple font-family mappings as"
+          text run at (0,36) width 129: "in the first example)."
+      RenderBlock {PRE} at (0,67) size 784x15
+        RenderInline {SPAN} at (0,0) size 120x15
+          RenderText {#text} at (0,0) size 120x15
+            text run at (0,0) width 120: "Should be 13 px"
+      RenderBlock {PRE} at (0,95) size 784x15
+        RenderInline {SPAN} at (0,0) size 86x15
+          RenderText {#text} at (0,0) size 86x15
+            text run at (0,0) width 86: "Should be 13px"
+      RenderBlock {PRE} at (0,123) size 784x15
+        RenderInline {SPAN} at (0,0) size 86x15
+          RenderText {#text} at (0,0) size 86x15
+            text run at (0,0) width 86: "Should be 13px"
+      RenderBlock {P} at (0,154) size 784x18
+        RenderInline {SPAN} at (0,0) size 86x15
+          RenderText {#text} at (0,2) size 86x15
+            text run at (0,2) width 86: "Should be 13px"
+      RenderBlock {P} at (0,188) size 784x18
+        RenderInline {TT} at (0,0) size 100x18
+          RenderInline {SPAN} at (0,0) size 100x18
+            RenderText {#text} at (0,0) size 100x18
+              text run at (0,0) width 100: "Should be 16px"
+      RenderBlock {P} at (0,222) size 784x18
+        RenderInline {TT} at (0,0) size 100x15
+          RenderInline {SPAN} at (0,0) size 100x18
+            RenderText {#text} at (0,0) size 100x18
+              text run at (0,0) width 100: "Should be 16px"
+      RenderBlock {P} at (0,256) size 784x22
+        RenderInline {TT} at (0,0) size 124x15
+          RenderInline {SPAN} at (0,0) size 124x22
+            RenderText {#text} at (0,0) size 124x22
+              text run at (0,0) width 124: "Should be 19px"
diff --git a/LayoutTests/fast/text/basic/generic-family-changes.html b/LayoutTests/fast/text/basic/generic-family-changes.html
new file mode 100644 (file)
index 0000000..93aa6dd
--- /dev/null
@@ -0,0 +1,20 @@
+<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0//EN">
+<head>
+<style>
+.serif { font-family: serif }
+</style>
+</head>
+<body>
+Tests of WebKit's intepretation of font sizes when no absolute font size is specified.  Percentages and logical keywords scale
+to reflect the family type.  Opera 9 matches this behavior as well (except it has a bug with multiple font-family mappings
+as in the first example).
+
+<pre><span class="serif" style="font-size:medium; font-family: monospace">Should be 13 px</span></pre>
+
+<pre><span style="font-size:13px;font-family:Times">Should be 13px</span></pre>
+<pre><span style="font-size:small;font-family:Times">Should be 13px</span></pre>
+<p><span style="font-size:small;font-family:Times">Should be 13px</span></p>
+
+<p><tt style="font-size:16px"><span style="font-family:Times">Should be 16px</font></tt></p>
+<p><tt><span style="font-size:100%;font-family:Times">Should be 16px</font></tt></p>
+<p><tt><span style="font-size:larger;font-family:Times">Should be 19px</font></tt></p>