Add test for #11818

This commit is contained in:
Michael Howell 2016-08-12 16:15:15 -07:00
parent ad4b9aab45
commit 0809809c23
7 changed files with 95 additions and 17 deletions

View file

@ -211,8 +211,8 @@ class ServoRefTestExecutor(ProcessTestExecutor):
for stylesheet in self.browser.user_stylesheets:
command += ["--user-stylesheet", stylesheet]
for pref in test.environment.get('prefs', {}):
command += ["--pref", pref]
for pref, value in test.environment.get('prefs', {}).iteritems():
command += ["--pref", "%s=%s" % (pref, value)]
if viewport_size:
command += ["--resolution", viewport_size]

View file

@ -1344,6 +1344,18 @@
"url": "/_mozilla/css/data_img_a.html"
}
],
"css/direction_style_caching.html": [
{
"path": "css/direction_style_caching.html",
"references": [
[
"/_mozilla/css/direction_style_caching_ref.html",
"=="
]
],
"url": "/_mozilla/css/direction_style_caching.html"
}
],
"css/empty_cells_a.html": [
{
"path": "css/empty_cells_a.html",
@ -10552,6 +10564,18 @@
"url": "/_mozilla/css/data_img_a.html"
}
],
"css/direction_style_caching.html": [
{
"path": "css/direction_style_caching.html",
"references": [
[
"/_mozilla/css/direction_style_caching_ref.html",
"=="
]
],
"url": "/_mozilla/css/direction_style_caching.html"
}
],
"css/empty_cells_a.html": [
{
"path": "css/empty_cells_a.html",

View file

@ -0,0 +1,3 @@
prefs: [layout.threads:1]
[direction_style_caching.html]
type: reftest

View file

@ -0,0 +1,28 @@
<!doctype html>
<meta charset="utf-8">
<title>Style caching with directions</title>
<link rel="match" href="direction_style_caching_ref.html">
<style>
.wrapper {
width: 200px;
}
p { margin: 0 }
.a p, .b p {
width: 100px;
height: 1px;
background: red;
}
.b {
direction: rtl;
}
</style>
<div class=wrapper>
<div class=a><p></p></div>
<div class=a><p></p></div>
<div class=a><p></p></div>
<div class=a><p></p></div>
<div class=b><p></p></div>
<div class=b><p></p></div>
<div class=b><p></p></div>
<div class=b><p></p></div>
</div>

View file

@ -0,0 +1,19 @@
<!DOCTYPE html>
<style>
.wrapper {
width: 200px;
}
p { margin: 0 }
.a p, .b p {
width: 100px;
height: 4px;
background: red;
}
.b p {
margin-left: 100px;
}
</style>
<div class=wrapper>
<div class=a><p></p></div>
<div class=b><p></p></div>
</div>