Auto merge of #8686 - Ms2ger:test-ref, r=frewsxcv

Use wptrunner for some old-style reftests.

<!-- Reviewable:start -->
[<img src="https://reviewable.io/review_button.png" height=40 alt="Review on Reviewable"/>](https://reviewable.io/reviews/servo/servo/8686)
<!-- Reviewable:end -->
This commit is contained in:
bors-servo 2015-11-27 06:35:15 +05:30
commit 4e8c9c9811
23 changed files with 253 additions and 11 deletions

View file

@ -1687,6 +1687,126 @@
"url": "/_mozilla/css/iframe/simple_inline_default.html"
}
],
"css/iframe/simple_inline_height.html": [
{
"path": "css/iframe/simple_inline_height.html",
"references": [
[
"/_mozilla/css/iframe/simple_inline_height_ref.html",
"=="
]
],
"url": "/_mozilla/css/iframe/simple_inline_height.html"
}
],
"css/iframe/simple_inline_max.html": [
{
"path": "css/iframe/simple_inline_max.html",
"references": [
[
"/_mozilla/css/iframe/simple_inline_max_ref.html",
"=="
]
],
"url": "/_mozilla/css/iframe/simple_inline_max.html"
}
],
"css/iframe/simple_inline_min.html": [
{
"path": "css/iframe/simple_inline_min.html",
"references": [
[
"/_mozilla/css/iframe/simple_inline_min_ref.html",
"=="
]
],
"url": "/_mozilla/css/iframe/simple_inline_min.html"
}
],
"css/iframe/simple_inline_width.html": [
{
"path": "css/iframe/simple_inline_width.html",
"references": [
[
"/_mozilla/css/iframe/simple_inline_width_ref.html",
"=="
]
],
"url": "/_mozilla/css/iframe/simple_inline_width.html"
}
],
"css/iframe/simple_inline_width_height.html": [
{
"path": "css/iframe/simple_inline_width_height.html",
"references": [
[
"/_mozilla/css/iframe/simple_inline_width_height_ref.html",
"=="
]
],
"url": "/_mozilla/css/iframe/simple_inline_width_height.html"
}
],
"css/iframe/simple_inline_width_percentage.html": [
{
"path": "css/iframe/simple_inline_width_percentage.html",
"references": [
[
"/_mozilla/css/iframe/simple_inline_width_percentage_ref.html",
"=="
]
],
"url": "/_mozilla/css/iframe/simple_inline_width_percentage.html"
}
],
"css/iframe/size_attributes.html": [
{
"path": "css/iframe/size_attributes.html",
"references": [
[
"/_mozilla/css/iframe/size_attributes_ref.html",
"=="
]
],
"url": "/_mozilla/css/iframe/size_attributes.html"
}
],
"css/iframe/size_attributes_vertical_writing_mode.html": [
{
"path": "css/iframe/size_attributes_vertical_writing_mode.html",
"references": [
[
"/_mozilla/css/iframe/size_attributes_vertical_writing_mode_ref.html",
"=="
]
],
"url": "/_mozilla/css/iframe/size_attributes_vertical_writing_mode.html"
}
],
"css/iframe/stacking_context.html": [
{
"path": "css/iframe/stacking_context.html",
"references": [
[
"/_mozilla/css/iframe/stacking_context_ref.html",
"=="
]
],
"url": "/_mozilla/css/iframe/stacking_context.html"
}
],
"css/iframe/stacking_context_position_a.html": [
{
"path": "css/iframe/stacking_context_position_a.html",
"references": [
[
"/_mozilla/css/iframe/stacking_context_position_ref.html",
"=="
]
],
"url": "/_mozilla/css/iframe/stacking_context_position_a.html"
}
],
"css/image_rendering_auto_a.html": [
{
"path": "css/image_rendering_auto_a.html",
@ -7254,6 +7374,126 @@
"url": "/_mozilla/css/iframe/simple_inline_default.html"
}
],
"css/iframe/simple_inline_height.html": [
{
"path": "css/iframe/simple_inline_height.html",
"references": [
[
"/_mozilla/css/iframe/simple_inline_height_ref.html",
"=="
]
],
"url": "/_mozilla/css/iframe/simple_inline_height.html"
}
],
"css/iframe/simple_inline_max.html": [
{
"path": "css/iframe/simple_inline_max.html",
"references": [
[
"/_mozilla/css/iframe/simple_inline_max_ref.html",
"=="
]
],
"url": "/_mozilla/css/iframe/simple_inline_max.html"
}
],
"css/iframe/simple_inline_min.html": [
{
"path": "css/iframe/simple_inline_min.html",
"references": [
[
"/_mozilla/css/iframe/simple_inline_min_ref.html",
"=="
]
],
"url": "/_mozilla/css/iframe/simple_inline_min.html"
}
],
"css/iframe/simple_inline_width.html": [
{
"path": "css/iframe/simple_inline_width.html",
"references": [
[
"/_mozilla/css/iframe/simple_inline_width_ref.html",
"=="
]
],
"url": "/_mozilla/css/iframe/simple_inline_width.html"
}
],
"css/iframe/simple_inline_width_height.html": [
{
"path": "css/iframe/simple_inline_width_height.html",
"references": [
[
"/_mozilla/css/iframe/simple_inline_width_height_ref.html",
"=="
]
],
"url": "/_mozilla/css/iframe/simple_inline_width_height.html"
}
],
"css/iframe/simple_inline_width_percentage.html": [
{
"path": "css/iframe/simple_inline_width_percentage.html",
"references": [
[
"/_mozilla/css/iframe/simple_inline_width_percentage_ref.html",
"=="
]
],
"url": "/_mozilla/css/iframe/simple_inline_width_percentage.html"
}
],
"css/iframe/size_attributes.html": [
{
"path": "css/iframe/size_attributes.html",
"references": [
[
"/_mozilla/css/iframe/size_attributes_ref.html",
"=="
]
],
"url": "/_mozilla/css/iframe/size_attributes.html"
}
],
"css/iframe/size_attributes_vertical_writing_mode.html": [
{
"path": "css/iframe/size_attributes_vertical_writing_mode.html",
"references": [
[
"/_mozilla/css/iframe/size_attributes_vertical_writing_mode_ref.html",
"=="
]
],
"url": "/_mozilla/css/iframe/size_attributes_vertical_writing_mode.html"
}
],
"css/iframe/stacking_context.html": [
{
"path": "css/iframe/stacking_context.html",
"references": [
[
"/_mozilla/css/iframe/stacking_context_ref.html",
"=="
]
],
"url": "/_mozilla/css/iframe/stacking_context.html"
}
],
"css/iframe/stacking_context_position_a.html": [
{
"path": "css/iframe/stacking_context_position_a.html",
"references": [
[
"/_mozilla/css/iframe/stacking_context_position_ref.html",
"=="
]
],
"url": "/_mozilla/css/iframe/stacking_context_position_a.html"
}
],
"css/image_rendering_auto_a.html": [
{
"path": "css/image_rendering_auto_a.html",

View file

@ -0,0 +1,3 @@
prefs: [layout.writing-mode.enabled:true]
[viewport_meta.html]
type: reftest

View file

@ -0,0 +1,10 @@
<html>
<link rel=match href=simple_inline_height_ref.html>
<body>
<div style="margin-top: 20px;">
<iframe src="data:text/html,%3Cspan%3EJust%20a%20simple%20little%20iframe.%3C%2Fspan%3E"
style="display: inline; border: 1px solid black; height: 300px;">
</iframe>
</div>
</body>
</html>

View file

@ -0,0 +1,7 @@
<html>
<body>
<div style="border: 1px solid black; width: 300px; height: 300px; margin-top: 20px;">
<div style="margin: 8px; /* matches user-agent body */">Just a simple little iframe.</div>
</div>
</body>
</html>

View file

@ -0,0 +1,10 @@
<html>
<link rel=match href=simple_inline_max_ref.html>
<body>
<div style="margin-top: 20px;">
<iframe src="data:text/html,%3Cspan%3EJust%20a%20simple%20little%20iframe.%3C%2Fspan%3E"
style="display: inline; border: 1px solid black; max-width: 250px; max-height: 50px;">
</iframe>
</div>
</body>
</html>

View file

@ -0,0 +1,7 @@
<html>
<body>
<div style="border: 1px solid black; width: 250px; height: 50px; margin-top: 20px;">
<div style="margin: 8px; /* matches user-agent body */">Just a simple little iframe.</div>
</div>
</body>
</html>

View file

@ -0,0 +1,10 @@
<html>
<link rel=match href=simple_inline_min_ref.html>
<body>
<div style="margin-top: 20px;">
<iframe src="data:text/html,%3Cspan%3EJust%20a%20simple%20little%20iframe.%3C%2Fspan%3E"
style="display: inline; border: 1px solid black; min-width: 400px; min-height: 250px;">
</iframe>
</div>
</body>
</html>

View file

@ -0,0 +1,7 @@
<html>
<body>
<div style="border: 1px solid black; width: 400px; height: 250px; margin-top: 20px;">
<div style="margin: 8px; /* matches user-agent body */">Just a simple little iframe.</div>
</div>
</body>
</html>

View file

@ -0,0 +1,10 @@
<html>
<link rel=match href=simple_inline_width_ref.html>
<body>
<div style="margin-top: 20px;">
<iframe src="data:text/html,%3Cspan%3EJust%20a%20simple%20little%20iframe.%3C%2Fspan%3E"
style="display: inline; border: 1px solid black; width: 500px;">
</iframe>
</div>
</body>
</html>

View file

@ -0,0 +1,10 @@
<html>
<link rel=match href=simple_inline_width_height_ref.html>
<body>
<div style="margin-top: 20px;">
<iframe src="data:text/html,%3Cspan%3EJust%20a%20simple%20little%20iframe.%3C%2Fspan%3E"
style="display: inline; border: 1px solid black; width: 500px; height: 300px;">
</iframe>
</div>
</body>
</html>

View file

@ -0,0 +1,7 @@
<html>
<body>
<div style="border: 1px solid black; width: 500px; height: 300px; margin-top: 20px;">
<div style="margin: 8px; /* matches user-agent body */">Just a simple little iframe.</div>
</div>
</body>
</html>

View file

@ -0,0 +1,10 @@
<html>
<link rel=match href=simple_inline_width_percentage_ref.html>
<body>
<div style="margin-top: 20px; width: 400px;">
<iframe src="data:text/html,%3Cspan%3EJust%20a%20simple%20little%20iframe.%3C%2Fspan%3E"
style="display: inline; border: 1px solid black; width: 50%;">
</iframe>
</div>
</body>
</html>

View file

@ -0,0 +1,7 @@
<html>
<body>
<div style="border: 1px solid black; width: 200px; height: 150px; margin-top: 20px;">
<div style="margin: 8px; /* matches user-agent body */">Just a simple little iframe.</div>
</div>
</body>
</html>

View file

@ -0,0 +1,7 @@
<html>
<body>
<div style="border: 1px solid black; width: 500px; height: 150px; margin-top: 20px;">
<div style="margin: 8px; /* matches user-agent body */">Just a simple little iframe.</div>
</div>
</body>
</html>

View file

@ -0,0 +1,15 @@
<!DOCTYPE html>
<html>
<head>
<link rel=match href=size_attributes_ref.html>
<style>
body {
background: purple;
}
</style>
</head>
<body>
<iframe src="about:blank" width=200 height=100></iframe>
</body>
</html>

View file

@ -0,0 +1,18 @@
<!DOCTYPE html>
<html>
<head>
<style>
body {
background: purple;
}
iframe {
width: 200px;
height: 100px;
}
</style>
</head>
<body>
<iframe src="about:blank"></iframe>
</body>
</html>

View file

@ -0,0 +1,19 @@
<!DOCTYPE html>
<html>
<head>
<link rel=match href=size_attributes_vertical_writing_mode_ref.html>
<style>
body {
background: purple;
}
iframe {
writing-mode: vertical-rl;
}
</style>
</head>
<body>
<iframe src="about:blank" width=200 height=100></iframe>
</body>
</html>

View file

@ -0,0 +1,19 @@
<!DOCTYPE html>
<html>
<head>
<style>
body {
background: purple;
text-align: right;
}
iframe {
width: 200px;
height: 100px;
}
</style>
</head>
<body>
<iframe src="about:blank"></iframe>
</body>
</html>

View file

@ -0,0 +1,14 @@
<!DOCTYPE html>
<link rel=match href=stacking_context_ref.html>
<style>
iframe {
position: absolute;
width: 200px;
height: 200px;
top: 100px;
left: 100px;
border: solid green 50px;
transform: translateX(0px); /* form a stacking context */
}
</style>
<iframe src="data:text/html,%3Cspan%3EJust%20a%20simple%20little%20iframe.%3C%2Fspan%3E">

View file

@ -0,0 +1,6 @@
<link rel=match href=stacking_context_position_ref.html>
<body style="background:tan">
<div style="transform: translateX(0px)">
<iframe src="data:text/html,%3Cspan%3EJust%20a%20simple%20little%20iframe.%3C%2Fspan%3E"></iframe>
</div>
</body>

View file

@ -0,0 +1,5 @@
<body style="background:tan">
<div>
<iframe style="transform: translateX(0px)" src="data:text/html,%3Cspan%3EJust%20a%20simple%20little%20iframe.%3C%2Fspan%3E"></iframe>
</div>
</body>

View file

@ -0,0 +1,12 @@
<!DOCTYPE html>
<style>
iframe {
position: absolute;
width: 200px;
height: 200px;
top: 100px;
left: 100px;
border: solid green 50px;
}
</style>
<iframe src="data:text/html,%3Cspan%3EJust%20a%20simple%20little%20iframe.%3C%2Fspan%3E">