Commit 7c64b0ed authored by abucur@adobe.com's avatar abucur@adobe.com

[CSS Regions] Convert percentage-margins-* tests to ref-tests

https://bugs.webkit.org/show_bug.cgi?id=118723

Reviewed by Andreas Kling.

The patch converts the percentage margins tests for regions in ref tests.

* fast/regions/percentage-margins-mixed-ltr-dominant-regions-expected.html: Added.
* fast/regions/percentage-margins-mixed-ltr-dominant-regions.html:
* fast/regions/percentage-margins-mixed-rtl-dominant-regions-expected.html: Added.
* fast/regions/percentage-margins-mixed-rtl-dominant-regions.html:
* fast/regions/percentage-margins-rtl-variable-width-regions-expected.html: Added.
* fast/regions/percentage-margins-rtl-variable-width-regions.html:
* fast/regions/percentage-margins-variable-width-regions-expected.html: Added.
* fast/regions/percentage-margins-variable-width-regions.html:
* platform/efl/fast/regions/percentage-margins-mixed-ltr-dominant-regions-expected.png: Removed.
* platform/efl/fast/regions/percentage-margins-mixed-ltr-dominant-regions-expected.txt: Removed.
* platform/efl/fast/regions/percentage-margins-mixed-rtl-dominant-regions-expected.png: Removed.
* platform/efl/fast/regions/percentage-margins-mixed-rtl-dominant-regions-expected.txt: Removed.
* platform/efl/fast/regions/percentage-margins-rtl-variable-width-regions-expected.png: Removed.
* platform/efl/fast/regions/percentage-margins-rtl-variable-width-regions-expected.txt: Removed.
* platform/efl/fast/regions/percentage-margins-variable-width-regions-expected.png: Removed.
* platform/efl/fast/regions/percentage-margins-variable-width-regions-expected.txt: Removed.
* platform/gtk/fast/regions/percentage-margins-mixed-ltr-dominant-regions-expected.png: Removed.
* platform/gtk/fast/regions/percentage-margins-mixed-ltr-dominant-regions-expected.txt: Removed.
* platform/gtk/fast/regions/percentage-margins-mixed-rtl-dominant-regions-expected.png: Removed.
* platform/gtk/fast/regions/percentage-margins-mixed-rtl-dominant-regions-expected.txt: Removed.
* platform/gtk/fast/regions/percentage-margins-rtl-variable-width-regions-expected.png: Removed.
* platform/gtk/fast/regions/percentage-margins-rtl-variable-width-regions-expected.txt: Removed.
* platform/gtk/fast/regions/percentage-margins-variable-width-regions-expected.png: Removed.
* platform/gtk/fast/regions/percentage-margins-variable-width-regions-expected.txt: Removed.
* platform/mac/fast/regions/percentage-margins-mixed-ltr-dominant-regions-expected.png: Removed.
* platform/mac/fast/regions/percentage-margins-mixed-ltr-dominant-regions-expected.txt: Removed.
* platform/mac/fast/regions/percentage-margins-mixed-rtl-dominant-regions-expected.png: Removed.
* platform/mac/fast/regions/percentage-margins-mixed-rtl-dominant-regions-expected.txt: Removed.
* platform/mac/fast/regions/percentage-margins-rtl-variable-width-regions-expected.png: Removed.
* platform/mac/fast/regions/percentage-margins-rtl-variable-width-regions-expected.txt: Removed.
* platform/mac/fast/regions/percentage-margins-variable-width-regions-expected.png: Removed.
* platform/mac/fast/regions/percentage-margins-variable-width-regions-expected.txt: Removed.
* platform/qt/fast/regions/percentage-margins-mixed-ltr-dominant-regions-expected.png: Removed.
* platform/qt/fast/regions/percentage-margins-mixed-ltr-dominant-regions-expected.txt: Removed.
* platform/qt/fast/regions/percentage-margins-mixed-rtl-dominant-regions-expected.png: Removed.
* platform/qt/fast/regions/percentage-margins-mixed-rtl-dominant-regions-expected.txt: Removed.
* platform/qt/fast/regions/percentage-margins-rtl-variable-width-regions-expected.png: Removed.
* platform/qt/fast/regions/percentage-margins-rtl-variable-width-regions-expected.txt: Removed.
* platform/qt/fast/regions/percentage-margins-variable-width-regions-expected.png: Removed.
* platform/qt/fast/regions/percentage-margins-variable-width-regions-expected.txt: Removed.


git-svn-id: http://svn.webkit.org/repository/webkit/trunk@153057 268f45cc-cd09-0410-ab3c-d52691b4dbfc
parent d49f03ad
2013-07-23 Andrei Bucur <abucur@adobe.com>
[CSS Regions] Convert percentage-margins-* tests to ref-tests
https://bugs.webkit.org/show_bug.cgi?id=118723
Reviewed by Andreas Kling.
The patch converts the percentage margins tests for regions in ref tests.
* fast/regions/percentage-margins-mixed-ltr-dominant-regions-expected.html: Added.
* fast/regions/percentage-margins-mixed-ltr-dominant-regions.html:
* fast/regions/percentage-margins-mixed-rtl-dominant-regions-expected.html: Added.
* fast/regions/percentage-margins-mixed-rtl-dominant-regions.html:
* fast/regions/percentage-margins-rtl-variable-width-regions-expected.html: Added.
* fast/regions/percentage-margins-rtl-variable-width-regions.html:
* fast/regions/percentage-margins-variable-width-regions-expected.html: Added.
* fast/regions/percentage-margins-variable-width-regions.html:
* platform/efl/fast/regions/percentage-margins-mixed-ltr-dominant-regions-expected.png: Removed.
* platform/efl/fast/regions/percentage-margins-mixed-ltr-dominant-regions-expected.txt: Removed.
* platform/efl/fast/regions/percentage-margins-mixed-rtl-dominant-regions-expected.png: Removed.
* platform/efl/fast/regions/percentage-margins-mixed-rtl-dominant-regions-expected.txt: Removed.
* platform/efl/fast/regions/percentage-margins-rtl-variable-width-regions-expected.png: Removed.
* platform/efl/fast/regions/percentage-margins-rtl-variable-width-regions-expected.txt: Removed.
* platform/efl/fast/regions/percentage-margins-variable-width-regions-expected.png: Removed.
* platform/efl/fast/regions/percentage-margins-variable-width-regions-expected.txt: Removed.
* platform/gtk/fast/regions/percentage-margins-mixed-ltr-dominant-regions-expected.png: Removed.
* platform/gtk/fast/regions/percentage-margins-mixed-ltr-dominant-regions-expected.txt: Removed.
* platform/gtk/fast/regions/percentage-margins-mixed-rtl-dominant-regions-expected.png: Removed.
* platform/gtk/fast/regions/percentage-margins-mixed-rtl-dominant-regions-expected.txt: Removed.
* platform/gtk/fast/regions/percentage-margins-rtl-variable-width-regions-expected.png: Removed.
* platform/gtk/fast/regions/percentage-margins-rtl-variable-width-regions-expected.txt: Removed.
* platform/gtk/fast/regions/percentage-margins-variable-width-regions-expected.png: Removed.
* platform/gtk/fast/regions/percentage-margins-variable-width-regions-expected.txt: Removed.
* platform/mac/fast/regions/percentage-margins-mixed-ltr-dominant-regions-expected.png: Removed.
* platform/mac/fast/regions/percentage-margins-mixed-ltr-dominant-regions-expected.txt: Removed.
* platform/mac/fast/regions/percentage-margins-mixed-rtl-dominant-regions-expected.png: Removed.
* platform/mac/fast/regions/percentage-margins-mixed-rtl-dominant-regions-expected.txt: Removed.
* platform/mac/fast/regions/percentage-margins-rtl-variable-width-regions-expected.png: Removed.
* platform/mac/fast/regions/percentage-margins-rtl-variable-width-regions-expected.txt: Removed.
* platform/mac/fast/regions/percentage-margins-variable-width-regions-expected.png: Removed.
* platform/mac/fast/regions/percentage-margins-variable-width-regions-expected.txt: Removed.
* platform/qt/fast/regions/percentage-margins-mixed-ltr-dominant-regions-expected.png: Removed.
* platform/qt/fast/regions/percentage-margins-mixed-ltr-dominant-regions-expected.txt: Removed.
* platform/qt/fast/regions/percentage-margins-mixed-rtl-dominant-regions-expected.png: Removed.
* platform/qt/fast/regions/percentage-margins-mixed-rtl-dominant-regions-expected.txt: Removed.
* platform/qt/fast/regions/percentage-margins-rtl-variable-width-regions-expected.png: Removed.
* platform/qt/fast/regions/percentage-margins-rtl-variable-width-regions-expected.txt: Removed.
* platform/qt/fast/regions/percentage-margins-variable-width-regions-expected.png: Removed.
* platform/qt/fast/regions/percentage-margins-variable-width-regions-expected.txt: Removed.
2013-07-23 Tim Horton <timothy_horton@apple.com>
Add a test for plug-in unavailability indicator obscurity detection
<!doctype html>
<html style="direction:ltr">
<head>
<style>
p {
margin-top: 16px;
margin-bottom: 16px;
}
.content {
text-align: justify;
padding: 5px;
font-size: 10px;
font-family: Ahem;
}
.first-box {
border: 1px solid blue;
margin:0 10%;
}
.second-box {
margin:10px;
border: 1px solid green;
direction:rtl
}
#region1, #region2, #region3 {
border: 1px solid black;
}
#region1 {
width: 200px;
height: 100px;
overflow: hidden;
}
#region2 {
width: 300px;
height: 180px;
overflow: hidden;
}
#region3 {
width: 120px;
height: 120px;
}
</style>
</head>
<body>
<p>The text lines should not overflow the regions. The fragment boxes should respect the margin values for their regions.</p>
<div id="container">
<div id="region1">
<div class="content">
<div class="first-box">
<div class="second-box">
<p>This line of text should not get out of the region. This line of text <span style="line-height: 100px;">XXXXXXX</span></p>
</div>
</div>
</div>
</div>
<div id="region2">
<div class="content" style="margin-top: -33px;">
<div class="first-box">
<div class="second-box">
<p>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.</p>
<p>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 <span style="line-height: 100px;">XXXXXX</span></p>
</div>
</div>
</div>
</div>
<div id="region3">
<div class="content" style="overflow: hidden;">
<div class="first-box" style="margin-top: -33px;">
<div class="second-box">
<p>should not get out of the region.</p>
<p>This line of text should not get out of the region.</p>
</div>
</div>
</div>
</div>
</div>
\ No newline at end of file
......@@ -2,15 +2,22 @@
<html style="direction:ltr">
<head>
<style>
p {
margin-top: 16px;
margin-bottom: 16px;
}
#content {
-webkit-flow-into: flow1;
text-align: justify;
padding: 5px;
font-size: 10px;
font-family: Ahem;
}
#first-box {
border: 1px solid blue;
margin:0 10%
margin:0 10%;
}
#second-box {
......@@ -41,6 +48,7 @@
</style>
</head>
<body>
<p>The text lines should not overflow the regions. The fragment boxes should respect the margin values for their regions.</p>
<div id="content">
<div id="first-box">
<div id="second-box">
......
<!doctype html>
<html style="direction:rtl">
<head>
<style>
p {
margin-top: 16px;
margin-bottom: 16px;
}
.content {
text-align: justify;
padding: 5px;
font-size: 10px;
font-family: Ahem;
}
.first-box {
border: 1px solid blue;
margin:0 10%;
}
.second-box {
margin:10px;
border: 1px solid green;
direction:ltr
}
#region1, #region2, #region3 {
border: 1px solid black;
}
#region1 {
width: 200px;
height: 100px;
overflow: hidden;
}
#region2 {
width: 300px;
height: 180px;
overflow: hidden;
}
#region3 {
width: 120px;
height: 120px;
}
</style>
</head>
<body>
<p>The text lines should not overflow the regions. The fragment boxes should respect the margin values for their regions.</p>
<div id="container">
<div id="region1">
<div class="content">
<div class="first-box">
<div class="second-box">
<p>This line of text should not get out of the region. This line of text <span style="line-height: 100px;">XXXXXXX</span></p>
</div>
</div>
</div>
</div>
<div id="region2">
<div class="content" style="margin-top: -33px;">
<div class="first-box">
<div class="second-box">
<p>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.</p>
<p>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 <span style="line-height: 100px;">XXXXXX</span></p>
</div>
</div>
</div>
</div>
<div id="region3">
<div class="content" style="overflow: hidden;">
<div class="first-box" style="margin-top: -33px;">
<div class="second-box">
<p>should not get out of the region.</p>
<p>This line of text should not get out of the region.</p>
</div>
</div>
</div>
</div>
</div>
\ No newline at end of file
......@@ -2,15 +2,22 @@
<html style="direction:rtl">
<head>
<style>
p {
margin-top: 16px;
margin-bottom: 16px;
}
#content {
-webkit-flow-into: flow1;
text-align: justify;
padding: 5px;
font-size: 10px;
font-family: Ahem;
}
#first-box {
border: 1px solid blue;
margin:0 10%
margin:0 10%;
}
#second-box {
......@@ -41,6 +48,7 @@
</style>
</head>
<body>
<p>The text lines should not overflow the regions. The fragment boxes should respect the margin values for their regions.</p>
<div id="content">
<div id="first-box">
<div id="second-box">
......
<!doctype html>
<html style="direction:rtl">
<head>
<style>
p {
margin-top: 16px;
margin-bottom: 16px;
}
.content {
text-align: justify;
padding: 5px;
font-size: 10px;
font-family: Ahem;
}
.first-box {
border: 1px solid blue;
margin:0 10%;
}
.second-box {
margin:10px;
border: 1px solid green;
}
#region1, #region2, #region3 {
border: 1px solid black;
}
#region1 {
width: 200px;
height: 100px;
overflow: hidden;
}
#region2 {
width: 300px;
height: 180px;
overflow: hidden;
}
#region3 {
width: 120px;
height: 120px;
}
</style>
</head>
<body>
<p>The text lines should not overflow the regions. The fragment boxes should respect the margin values for their regions.</p>
<div id="container">
<div id="region1">
<div class="content">
<div class="first-box">
<div class="second-box">
<p>This line of text should not get out of the region. This line of text <span style="line-height: 100px;">XXXXXXX</span></p>
</div>
</div>
</div>
</div>
<div id="region2">
<div class="content" style="margin-top: -33px;">
<div class="first-box">
<div class="second-box">
<p>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.</p>
<p>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 <span style="line-height: 100px;">XXXXXX</span></p>
</div>
</div>
</div>
</div>
<div id="region3">
<div class="content" style="overflow: hidden;">
<div class="first-box" style="margin-top: -33px;">
<div class="second-box">
<p>should not get out of the region.</p>
<p>This line of text should not get out of the region.</p>
</div>
</div>
</div>
</div>
</div>
\ No newline at end of file
......@@ -2,15 +2,22 @@
<html style="direction:rtl">
<head>
<style>
p {
margin-top: 16px;
margin-bottom: 16px;
}
#content {
-webkit-flow-into: flow1;
text-align: justify;
padding: 5px;
font-size: 10px;
font-family: Ahem;
}
#first-box {
border: 1px solid blue;
margin:0 10%
margin:0 10%;
}
#second-box {
......@@ -40,6 +47,7 @@
</style>
</head>
<body>
<p>The text lines should not overflow the regions. The fragment boxes should respect the margin values for their regions.</p>
<div id="content">
<div id="first-box">
<div id="second-box">
......
<!doctype html>
<html>
<head>
<style>
p {
margin-top: 16px;
margin-bottom: 16px;
}
.content {
text-align: justify;
padding: 5px;
font-size: 10px;
font-family: Ahem;
}
.first-box {
border: 1px solid blue;
margin:0 10%;
}
.second-box {
margin:10px;
border: 1px solid green;
}
#region1, #region2, #region3 {
border: 1px solid black;
}
#region1 {
width: 200px;
height: 100px;
overflow: hidden;
}
#region2 {
width: 300px;
height: 180px;
overflow: hidden;
}
#region3 {
width: 120px;
height: 120px;
}
</style>
</head>
<body>
<p>The text lines should not overflow the regions. The fragment boxes should respect the margin values for their regions.</p>
<div id="container">
<div id="region1">
<div class="content">
<div class="first-box">
<div class="second-box">
<p>This line of text should not get out of the region. This line of text <span style="line-height: 100px;">XXXXXXX</span></p>
</div>
</div>
</div>
</div>
<div id="region2">
<div class="content" style="margin-top: -33px;">
<div class="first-box">
<div class="second-box">
<p>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.</p>
<p>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 <span style="line-height: 100px;">XXXXXX</span></p>
</div>
</div>
</div>
</div>
<div id="region3">
<div class="content" style="overflow: hidden;">
<div class="first-box" style="margin-top: -33px;">
<div class="second-box">
<p>should not get out of the region.</p>
<p>This line of text should not get out of the region.</p>
</div>
</div>
</div>
</div>
</div>
\ No newline at end of file
<!doctype html>
<html>
<head>
<style>
p {
margin-top: 16px;
margin-bottom: 16px;
}
#content {
-webkit-flow-into: flow1;
text-align: justify;
padding: 5px;
font-size: 10px;
font-family: Ahem;
}
#first-box {
border: 1px solid blue;
margin:0 10%
margin:0 10%;
}
#second-box {
......@@ -37,7 +45,9 @@
height: 120px;
}
</style>
</head>
<body>
<p>The text lines should not overflow the regions. The fragment boxes should respect the margin values for their regions.</p>
<div id="content">
<div id="first-box">
<div id="second-box">
......
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
RenderNamedFlowThread at (0,0) size 300x400
RenderBlock {DIV} at (0,0) size 300x599
RenderBlock {DIV} at (34,5) size 232x589 [border: (1px solid #0000FF)]
RenderBlock {DIV} at (11,11) size 210x567 [border: (1px solid #008000)]
RenderBlock {P} at (1,17) size 208x157
RenderText {#text} at (-10,0) size 218x156
text run at (-10,0) width 128: "This line of text"
text run at (-10,18) width 128: "should not get out"
text run at (-10,36) width 128: "of the region. This"
text run at (0,67) width 208: "line of text should not get out of"
text run at (0,85) width 208: "the region. This line of text"
text run at (0,103) width 208: "should not get out of the region."
text run at (0,121) width 208: "This line of text should not get"
text run at (100,139) width 4 RTL: "."
text run at (104,139) width 104: "out of the region"
RenderBlock {P} at (1,190) size 208x236
RenderText {#text} at (0,0) size 226x235
text run at (0,0) width 208: "This line of text should not get"
text run at (0,18) width 208: "out of the region. This line of"
text run at (0,36) width 208: "text should not get out of the"
text run at (0,54) width 208: "region. This line of text should"
text run at (-18,74) width 64: "not get"
text run at (-18,92) width 64: "out of the"
text run at (2,110) width 44: "region."
text run at (-18,128) width 64: "This line"
text run at (-18,146) width 64: "of text"
text run at (4,164) width 42: "should"
text run at (-18,182) width 64: "not get"
text run at (-18,200) width 64: "out of the"
text run at (2,218) width 4 RTL: "."
text run at (6,218) width 40: "region"
RenderBlock {P} at (1,442) size 208x108
RenderText {#text} at (-18,0) size 64x107
text run at (-18,0) width 64: "This line"
text run at (-18,18) width 64: "of text"
text run at (4,36) width 42: "should"
text run at (-18,54) width 64: "not get"
text run at (-18,72) width 64: "out of the"
text run at (2,90) width 4 RTL: "."
text run at (6,90) width 40: "region"
Regions for flow 'flow1'
RenderRegion {DIV} #region1
RenderRegion {DIV} #region2
RenderRegion {DIV} #region3
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 (582,0) size 202x102 [border: (1px solid #000000)]
RenderRegion {DIV} at (482,102) size 302x182 [border: (1px solid #000000)]
RenderRegion {DIV} at (662,284) size 122x122 [border: (1px solid #000000)]
Flow Threads
Thread with flow-name 'flow1'
layer at (0,0) size 300x400
RenderNamedFlowThread at (0,0) size 300x400
RenderBlock {DIV} at (0,0) size 300x599
RenderBlock {DIV} at (34,5) size 232x589 [border: (1px solid #0000FF)]