Title: [105200] trunk/LayoutTests
Revision
105200
Author
[email protected]
Date
2012-01-17 15:25:53 -0800 (Tue, 17 Jan 2012)

Log Message

Convert some fast/regions pixel tests to reftests
https://bugs.webkit.org/show_bug.cgi?id=74133

Patch by Jacob Goldstein <[email protected]> on 2012-01-17
Reviewed by Tony Chang.

* fast/regions/webkit-flow-inlines-dynamic-expected.html: Added.
* fast/regions/webkit-flow-inlines-dynamic.html:
* platform/efl/fast/regions/webkit-flow-inlines-dynamic-expected.png: Removed.
* platform/efl/fast/regions/webkit-flow-inlines-dynamic-expected.txt: Removed.
* platform/mac/fast/regions/webkit-flow-inlines-dynamic-expected.png: Removed.
* platform/mac/fast/regions/webkit-flow-inlines-dynamic-expected.txt: Removed.

Modified Paths

Added Paths

Removed Paths

Diff

Modified: trunk/LayoutTests/ChangeLog (105199 => 105200)


--- trunk/LayoutTests/ChangeLog	2012-01-17 23:10:46 UTC (rev 105199)
+++ trunk/LayoutTests/ChangeLog	2012-01-17 23:25:53 UTC (rev 105200)
@@ -1,3 +1,17 @@
+2012-01-17  Jacob Goldstein  <[email protected]>
+
+        Convert some fast/regions pixel tests to reftests
+        https://bugs.webkit.org/show_bug.cgi?id=74133
+
+        Reviewed by Tony Chang.
+
+        * fast/regions/webkit-flow-inlines-dynamic-expected.html: Added.
+        * fast/regions/webkit-flow-inlines-dynamic.html:
+        * platform/efl/fast/regions/webkit-flow-inlines-dynamic-expected.png: Removed.
+        * platform/efl/fast/regions/webkit-flow-inlines-dynamic-expected.txt: Removed.
+        * platform/mac/fast/regions/webkit-flow-inlines-dynamic-expected.png: Removed.
+        * platform/mac/fast/regions/webkit-flow-inlines-dynamic-expected.txt: Removed.
+
 2012-01-17  Csaba Osztrogonác  <[email protected]>
 
         [Qt] Unreviewed gardening after r105172.

Added: trunk/LayoutTests/fast/regions/webkit-flow-inlines-dynamic-expected.html (0 => 105200)


--- trunk/LayoutTests/fast/regions/webkit-flow-inlines-dynamic-expected.html	                        (rev 0)
+++ trunk/LayoutTests/fast/regions/webkit-flow-inlines-dynamic-expected.html	2012-01-17 23:25:53 UTC (rev 105200)
@@ -0,0 +1,108 @@
+<!doctype html>
+
+ <style>
+
+    @font-face {
+        font-family: webkit-ahem;
+        font-style: normal;
+        src: url(../../resources/Ahem.ttf);
+    }
+
+    #test-goals, #test, #test2, #test3 {
+        font-family: webkit-ahem;
+    }    
+
+    #first-box {
+	    border-top: 1px solid blue;
+	    margin-top: 5px;
+	    height: 49px;
+    }
+
+    #first-box2 {
+	    height: 45px;
+    }
+
+    #first-box3 {
+	    border-bottom: 1px solid blue;
+    }
+
+    #first-box, #first-box2, #first-box3 {
+	    border-left: 1px solid blue;
+	    border-right: 1px solid blue;
+	    margin-left: 5px;
+	    margin-right: 5px;
+    }
+
+    #second-box {
+	    border-top: 1px solid green;
+	    margin-top: 7px;
+	    height: 41px;
+    }
+
+    #second-box2 {
+	    height: 45px;
+    }
+
+    #second-box3 {
+	    border-bottom: 1px solid green;
+	    margin-bottom: 7px;
+    }
+
+    #second-box, #second-box2, #second-box3 {
+	    border-left: 1px solid green;
+	    border-right: 1px solid green;
+	    margin-left: 7px;
+	    margin-right: 7px;
+    }
+
+    #region1 {
+	    width: 15em;
+	    height: 55px;
+    }
+
+    #region2 {
+	    width: 35em;
+	    height: 45px;
+    }
+
+    #region3 {
+	    width: 10em;
+	    height: 55px;
+    }
+
+    #region1, #region2, #region3 {
+	    border: 1px solid black;
+    }
+
+</style>
+
+<div id="topLevel">
+	<span id="test-goals">Text should flow through all three regions and not spill outside of the border</span>
+</div>
+
+<div id="container">
+	<div id="region1">
+		<div id="first-box">
+			<div id="second-box">
+				<span id="test">mnopq mnopq mnopq mnopq</span>
+			</div>
+		</div>
+	</div>
+	
+	<div id="region2">
+		<div id="first-box2">
+			<div id="second-box2">
+				<span id="test2">qponmqponm mnopqmnopq mnopqmnopq mnopqmnopq mnopqmnopq mnopqmnopq</span>
+			</div>
+		</div>
+	</div>
+	
+	<div id="region3">
+		<div id="first-box3">
+			<div id="second-box3">
+				<span id="test3">mno mno mno mno mno mno mno mno</span>
+			</div>
+		</div>
+	</div>
+	
+</div>
\ No newline at end of file

Modified: trunk/LayoutTests/fast/regions/webkit-flow-inlines-dynamic.html (105199 => 105200)


--- trunk/LayoutTests/fast/regions/webkit-flow-inlines-dynamic.html	2012-01-17 23:10:46 UTC (rev 105199)
+++ trunk/LayoutTests/fast/regions/webkit-flow-inlines-dynamic.html	2012-01-17 23:25:53 UTC (rev 105200)
@@ -1,9 +1,19 @@
 <!doctype html>
 
  <style>
+
+    @font-face {
+	    font-family: webkit-ahem;
+	    font-style: normal;
+	    src: url(../../resources/Ahem.ttf);
+    }
+
+    #test-goals, #test, #test2{
+	    font-family: webkit-ahem;
+    }
+
     #content {
         -webkit-flow-into: flow1;
-        text-align: justify;
         padding: 5px;
     }
     
@@ -12,7 +22,7 @@
     }
     
     #second-box {
-        margin:10px;
+        margin:7px;
         border: 1px solid green;
     }
     
@@ -22,27 +32,28 @@
     }
 
     #region1 {
-        width: 200px;
-        height: 100px;
+        width: 15em;
+        height: 55px;
     }
     
     #region2 {
-        width: 300px;
-        height: 180px;
+        width: 35em;
+        height: 45px;
     }
     
     #region3 {
-        width: 120px;
-        height: 120px;
+        width: 10em;
+        height: 55px;
     }
 </style>
 
+<div id="topLevel">
+	<span id="test-goals">Text should flow through all three regions and not spill outside of the border</span>
+</div>
 <div id="content">
     <div id="first-box">
         <div id="second-box">
-            <span id="test">This line of text should not get out of the region.</span> This line of text should not get out of the region. This line of text should not get out of the region. This line of text should not get out of the region.<br><br>
-            This line of text should not get out of the region. This line of text should not get out of the region. This line of text should not get out of the region. This line of text should not get out of the region.<br><br>
-            This line of text should not get out of the region.<br><br>
+            <span id="test">mnopq mnopq mnopq mnopq </span> <span id="test2"> mnopqmnopq mnopqmnopq mnopqmnopq mnopqmnopq mnopqmnopq mno mno mno mno mno mno mno mno</span>
         </div>
     </div>
 </div>
@@ -55,5 +66,5 @@
 
 <script>
 document.body.offsetWidth;
-document.getElementById('test').appendChild(document.createTextNode(" Here is some added content that will mess things up, since it shoves things down."));
+document.getElementById('test').appendChild(document.createTextNode("qponmqponm "));
 </script>

Deleted: trunk/LayoutTests/platform/efl/fast/regions/webkit-flow-inlines-dynamic-expected.png


(Binary files differ)

Deleted: trunk/LayoutTests/platform/efl/fast/regions/webkit-flow-inlines-dynamic-expected.txt (105199 => 105200)


--- trunk/LayoutTests/platform/efl/fast/regions/webkit-flow-inlines-dynamic-expected.txt	2012-01-17 23:10:46 UTC (rev 105199)
+++ trunk/LayoutTests/platform/efl/fast/regions/webkit-flow-inlines-dynamic-expected.txt	2012-01-17 23:25:53 UTC (rev 105200)
@@ -1,54 +0,0 @@
-layer at (0,0) size 800x600
-  RenderView at (0,0) size 800x600
-layer at (0,0) size 800x422
-  RenderBlock {HTML} at (0,0) size 800x422
-    RenderBody {BODY} at (8,8) size 784x406
-      RenderBlock {DIV} at (0,0) size 784x406
-        RenderRegion {DIV} at (0,0) size 202x102 [border: (1px solid #000000)]
-        RenderRegion {DIV} at (0,102) size 302x182 [border: (1px solid #000000)]
-        RenderRegion {DIV} at (0,284) size 122x122 [border: (1px solid #000000)]
-Flow Threads
-  Thread with flow-name 'flow1'
-    layer at (0,0) size 300x400
-      RenderFlowThread at (0,0) size 300x400
-        RenderBlock {DIV} at (0,0) size 300x534
-          RenderBlock {DIV} at (5,5) size 290x524 [border: (1px solid #0000FF)]
-            RenderBlock {DIV} at (11,11) size 268x502 [border: (1px solid #008000)]
-              RenderInline {SPAN} at (0,0) size 266x102
-                RenderText {#text} at (1,1) size 166x38
-                  text run at (1,1) width 166: "This line of text should"
-                  text run at (1,20) width 166: "not get out of the region."
-                RenderText {#text} at (1,39) size 266x64
-                  text run at (1,39) width 166: "Here is some added"
-                  text run at (1,58) width 166: "content that will mess"
-                  text run at (1,84) width 266: "things up, since it shoves things down."
-              RenderText {#text} at (1,103) size 266x76
-                text run at (1,103) width 266: "This line of text should not get out of the"
-                text run at (1,122) width 266: "region. This line of text should not get out"
-                text run at (1,141) width 266: "of the region. This line of text should not"
-                text run at (1,160) width 131: "get out of the region."
-              RenderBR {BR} at (132,160) size 0x19
-              RenderBR {BR} at (1,179) size 0x19
-              RenderText {#text} at (1,198) size 266x180
-                text run at (1,198) width 266: "This line of text should not get out of the"
-                text run at (1,217) width 266: "region. This line of text should not get out"
-                text run at (1,236) width 266: "of the region. This line of text should not"
-                text run at (1,264) width 86: "get out of the"
-                text run at (1,283) width 86: "region. This"
-                text run at (1,302) width 86: "line of text"
-                text run at (1,321) width 86: "should not"
-                text run at (1,340) width 86: "get out of the"
-                text run at (1,359) width 44: "region."
-              RenderBR {BR} at (45,359) size 0x19
-              RenderBR {BR} at (1,387) size 0x19
-              RenderText {#text} at (1,406) size 86x76
-                text run at (1,406) width 86: "This line of"
-                text run at (1,425) width 86: "text should"
-                text run at (1,444) width 86: "not get out of"
-                text run at (1,463) width 67: "the region."
-              RenderBR {BR} at (68,463) size 0x19
-              RenderBR {BR} at (1,482) size 0x19
-  Regions for flow 'flow1'
-    RenderRegion {DIV} #region1
-    RenderRegion {DIV} #region2
-    RenderRegion {DIV} #region3

Deleted: trunk/LayoutTests/platform/mac/fast/regions/webkit-flow-inlines-dynamic-expected.png


(Binary files differ)

Deleted: trunk/LayoutTests/platform/mac/fast/regions/webkit-flow-inlines-dynamic-expected.txt (105199 => 105200)


--- trunk/LayoutTests/platform/mac/fast/regions/webkit-flow-inlines-dynamic-expected.txt	2012-01-17 23:10:46 UTC (rev 105199)
+++ trunk/LayoutTests/platform/mac/fast/regions/webkit-flow-inlines-dynamic-expected.txt	2012-01-17 23:25:53 UTC (rev 105200)
@@ -1,52 +0,0 @@
-layer at (0,0) size 800x600
-  RenderView at (0,0) size 800x600
-layer at (0,0) size 800x422
-  RenderBlock {HTML} at (0,0) size 800x422
-    RenderBody {BODY} at (8,8) size 784x406
-      RenderBlock {DIV} at (0,0) size 784x406
-        RenderRegion {DIV} at (0,0) size 202x102 [border: (1px solid #000000)]
-        RenderRegion {DIV} at (0,102) size 302x182 [border: (1px solid #000000)]
-        RenderRegion {DIV} at (0,284) size 122x122 [border: (1px solid #000000)]
-Flow Threads
-  Thread with flow-name 'flow1'
-    layer at (0,0) size 300x400
-      RenderFlowThread at (0,0) size 300x400
-        RenderBlock {DIV} at (0,0) size 300x459
-          RenderBlock {DIV} at (5,5) size 290x449 [border: (1px solid #0000FF)]
-            RenderBlock {DIV} at (11,11) size 268x427 [border: (1px solid #008000)]
-              RenderInline {SPAN} at (0,0) size 266x101
-                RenderText {#text} at (1,1) size 166x36
-                  text run at (1,1) width 166: "This line of text should"
-                  text run at (1,19) width 166: "not get out of the region."
-                RenderText {#text} at (1,37) size 266x65
-                  text run at (1,37) width 166: "Here is some added"
-                  text run at (1,55) width 166: "content that will mess"
-                  text run at (1,84) width 266: "things up, since it shoves things down."
-              RenderText {#text} at (1,102) size 266x72
-                text run at (1,102) width 266: "This line of text should not get out of the"
-                text run at (1,120) width 266: "region. This line of text should not get out"
-                text run at (1,138) width 266: "of the region. This line of text should not"
-                text run at (1,156) width 131: "get out of the region."
-              RenderBR {BR} at (132,156) size 0x18
-              RenderBR {BR} at (1,174) size 0x18
-              RenderText {#text} at (1,192) size 266x126
-                text run at (1,192) width 266: "This line of text should not get out of the"
-                text run at (1,210) width 266: "region. This line of text should not get out"
-                text run at (1,228) width 266: "of the region. This line of text should not"
-                text run at (1,246) width 266: "get out of the region. This line of text"
-                text run at (1,264) width 86: "should not"
-                text run at (1,282) width 86: "get out of the"
-                text run at (1,300) width 44: "region."
-              RenderBR {BR} at (45,300) size 0x18
-              RenderBR {BR} at (1,318) size 0x18
-              RenderText {#text} at (1,336) size 86x72
-                text run at (1,336) width 86: "This line of"
-                text run at (1,354) width 86: "text should"
-                text run at (1,372) width 86: "not get out of"
-                text run at (1,390) width 67: "the region."
-              RenderBR {BR} at (68,390) size 0x18
-              RenderBR {BR} at (1,408) size 0x18
-  Regions for flow 'flow1'
-    RenderRegion {DIV} #region1
-    RenderRegion {DIV} #region2
-    RenderRegion {DIV} #region3
_______________________________________________
webkit-changes mailing list
[email protected]
http://lists.webkit.org/mailman/listinfo.cgi/webkit-changes

Reply via email to