Auto merge of #8648 - 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/8648)
<!-- Reviewable:end -->
This commit is contained in:
bors-servo 2015-11-25 15:30:12 +05:30
commit 6684804846
23 changed files with 250 additions and 10 deletions

View file

@ -1567,6 +1567,126 @@
"url": "/_mozilla/css/hide_after_create.html"
}
],
"css/iframe/bg_color.html": [
{
"path": "css/iframe/bg_color.html",
"references": [
[
"/_mozilla/css/iframe/bg_color_ref.html",
"=="
]
],
"url": "/_mozilla/css/iframe/bg_color.html"
}
],
"css/iframe/hide_after_load.html": [
{
"path": "css/iframe/hide_after_load.html",
"references": [
[
"/_mozilla/css/iframe/hide_after_load_ref.html",
"=="
]
],
"url": "/_mozilla/css/iframe/hide_after_load.html"
}
],
"css/iframe/hide_and_show.html": [
{
"path": "css/iframe/hide_and_show.html",
"references": [
[
"/_mozilla/css/iframe/hide_and_show_ref.html",
"=="
]
],
"url": "/_mozilla/css/iframe/hide_and_show.html"
}
],
"css/iframe/hide_layers1.html": [
{
"path": "css/iframe/hide_layers1.html",
"references": [
[
"/_mozilla/css/iframe/hide_layers_ref.html",
"=="
]
],
"url": "/_mozilla/css/iframe/hide_layers1.html"
}
],
"css/iframe/hide_layers2.html": [
{
"path": "css/iframe/hide_layers2.html",
"references": [
[
"/_mozilla/css/iframe/hide_layers_ref.html",
"=="
]
],
"url": "/_mozilla/css/iframe/hide_layers2.html"
}
],
"css/iframe/multiple_external.html": [
{
"path": "css/iframe/multiple_external.html",
"references": [
[
"/_mozilla/css/iframe/multiple_external_ref.html",
"=="
]
],
"url": "/_mozilla/css/iframe/multiple_external.html"
}
],
"css/iframe/overflow.html": [
{
"path": "css/iframe/overflow.html",
"references": [
[
"/_mozilla/css/iframe/overflow_ref.html",
"=="
]
],
"url": "/_mozilla/css/iframe/overflow.html"
}
],
"css/iframe/positioning_margin.html": [
{
"path": "css/iframe/positioning_margin.html",
"references": [
[
"/_mozilla/css/iframe/positioning_margin_ref.html",
"=="
]
],
"url": "/_mozilla/css/iframe/positioning_margin.html"
}
],
"css/iframe/simple.html": [
{
"path": "css/iframe/simple.html",
"references": [
[
"/_mozilla/css/iframe/simple_ref.html",
"=="
]
],
"url": "/_mozilla/css/iframe/simple.html"
}
],
"css/iframe/simple_inline_default.html": [
{
"path": "css/iframe/simple_inline_default.html",
"references": [
[
"/_mozilla/css/iframe/simple_inline_default_ref.html",
"=="
]
],
"url": "/_mozilla/css/iframe/simple_inline_default.html"
}
],
"css/image_rendering_auto_a.html": [
{
"path": "css/image_rendering_auto_a.html",
@ -7008,6 +7128,126 @@
"url": "/_mozilla/css/hide_after_create.html"
}
],
"css/iframe/bg_color.html": [
{
"path": "css/iframe/bg_color.html",
"references": [
[
"/_mozilla/css/iframe/bg_color_ref.html",
"=="
]
],
"url": "/_mozilla/css/iframe/bg_color.html"
}
],
"css/iframe/hide_after_load.html": [
{
"path": "css/iframe/hide_after_load.html",
"references": [
[
"/_mozilla/css/iframe/hide_after_load_ref.html",
"=="
]
],
"url": "/_mozilla/css/iframe/hide_after_load.html"
}
],
"css/iframe/hide_and_show.html": [
{
"path": "css/iframe/hide_and_show.html",
"references": [
[
"/_mozilla/css/iframe/hide_and_show_ref.html",
"=="
]
],
"url": "/_mozilla/css/iframe/hide_and_show.html"
}
],
"css/iframe/hide_layers1.html": [
{
"path": "css/iframe/hide_layers1.html",
"references": [
[
"/_mozilla/css/iframe/hide_layers_ref.html",
"=="
]
],
"url": "/_mozilla/css/iframe/hide_layers1.html"
}
],
"css/iframe/hide_layers2.html": [
{
"path": "css/iframe/hide_layers2.html",
"references": [
[
"/_mozilla/css/iframe/hide_layers_ref.html",
"=="
]
],
"url": "/_mozilla/css/iframe/hide_layers2.html"
}
],
"css/iframe/multiple_external.html": [
{
"path": "css/iframe/multiple_external.html",
"references": [
[
"/_mozilla/css/iframe/multiple_external_ref.html",
"=="
]
],
"url": "/_mozilla/css/iframe/multiple_external.html"
}
],
"css/iframe/overflow.html": [
{
"path": "css/iframe/overflow.html",
"references": [
[
"/_mozilla/css/iframe/overflow_ref.html",
"=="
]
],
"url": "/_mozilla/css/iframe/overflow.html"
}
],
"css/iframe/positioning_margin.html": [
{
"path": "css/iframe/positioning_margin.html",
"references": [
[
"/_mozilla/css/iframe/positioning_margin_ref.html",
"=="
]
],
"url": "/_mozilla/css/iframe/positioning_margin.html"
}
],
"css/iframe/simple.html": [
{
"path": "css/iframe/simple.html",
"references": [
[
"/_mozilla/css/iframe/simple_ref.html",
"=="
]
],
"url": "/_mozilla/css/iframe/simple.html"
}
],
"css/iframe/simple_inline_default.html": [
{
"path": "css/iframe/simple_inline_default.html",
"references": [
[
"/_mozilla/css/iframe/simple_inline_default_ref.html",
"=="
]
],
"url": "/_mozilla/css/iframe/simple_inline_default.html"
}
],
"css/image_rendering_auto_a.html": [
{
"path": "css/image_rendering_auto_a.html",

View file

@ -0,0 +1,9 @@
<html>
<link rel=match href=bg_color_ref.html>
<body style="background-color: blue; margin: 0;">
<div style="margin: 20px;">
<iframe src="about:blank" style="border: 0; background-color: green;">
</iframe>
</div>
</body>
</html>

View file

@ -0,0 +1,6 @@
<html>
<body style="background-color: blue; margin: 0;">
<div style="width: 300px; height: 150px; margin: 20px; background-color: green;">
</div>
</body>
</html>

View file

@ -0,0 +1,19 @@
<!DOCTYPE html>
<html class="reftest-wait">
<link rel=match href=hide_after_load_ref.html>
<body style="background: green;">
<iframe style="border: 0" src="hide_after_load_inner_frame.html"></iframe>
<script type="text/javascript">
var iframe = document.getElementsByTagName('iframe')[0];
iframe.onload = function() {
iframe.style.display = "none";
// We do this in a timeout, so that the compositor has a chance
// to update the layer tree.
setTimeout(function() {
document.documentElement.classList.remove("reftest-wait");
}, 0);
}
</script>
</body>
</html>

View file

@ -0,0 +1,6 @@
<!DOCTYPE html>
<html>
<body style="background: red;">
hidden content
</body>
</html>

View file

@ -0,0 +1,4 @@
<!DOCTYPE html>
<html>
<body style="background: green;"> </body>
</html>

View file

@ -0,0 +1,21 @@
<!DOCTYPE html>
<html class="reftest-wait">
<link rel=match href=hide_and_show_ref.html>
<style type="text/css">
.hidden {
display: none;
}
iframe {
border: 0;
}
</style>
<body id="container">
<iframe id="iframe" class="hidden" src="data:text/html,%3Cbody%20style%3D%22background%3Agreen%3B%20%22%3E"></iframe>
</body>
<script type="text/javascript">
window.onload = function() {
document.getElementById("iframe").classList.remove("hidden");
document.documentElement.classList.remove("reftest-wait");
}
</script>
</html>

View file

@ -0,0 +1,13 @@
<!DOCTYPE html>
<html>
<style type="text/css">
div {
width: 300px;
height: 150px;
background-color: green;
}
</style>
<body>
<div></div>
</body>
</html>

View file

@ -0,0 +1,21 @@
<!DOCTYPE html>
<html class="reftest-wait">
<link rel=match href=hide_layers_ref.html>
<style type="text/css">
.hidden {
display: none;
}
body {
background-color: green;
}
</style>
<body>
<iframe id="iframe" src="data:text/html,%3Cspan%3EJust%20a%20simple%20little%20iframe.%3C%2Fspan%3E"></iframe>
</body>
<script type="text/javascript">
window.onload = function() {
document.getElementById("iframe").classList.add("hidden");
document.documentElement.classList.remove("reftest-wait");
}
</script>
</html>

View file

@ -0,0 +1,19 @@
<!DOCTYPE html>
<html class="reftest-wait">
<link rel=match href=hide_layers_ref.html>
<style type="text/css">
body {
background-color: green;
}
</style>
<body>
<iframe id="iframe" src="data:text/html,%3Cspan%3EJust%20a%20simple%20little%20iframe.%3C%2Fspan%3E"></iframe>
</body>
<script type="text/javascript">
window.onload = function() {
var iframe = document.getElementById("iframe");
iframe.parentNode.removeChild(iframe);
document.documentElement.classList.remove("reftest-wait");
}
</script>
</html>

View file

@ -0,0 +1,10 @@
<!DOCTYPE html>
<html>
<style type="text/css">
body {
background-color: green;
}
</style>
<body>
</body>
</html>

View file

@ -0,0 +1,20 @@
<!DOCTYPE html>
<html>
<head>
<link rel=match href=multiple_external_ref.html>
<style>
iframe {
margin: 10px;
float: left;
width: 300px;
height: 300px;
border: none;
}
</style>
</head>
<body>
iframe test
<iframe sandbox="allow-scripts" src="multiple_external_child.html"> </iframe>
<iframe sandbox="allow-scripts" src="multiple_external_child.html"> </iframe>
</body>
</html>

View file

@ -0,0 +1,5 @@
<!DOCTYPE html>
<html>
<body>
</body>
</html>

View file

@ -0,0 +1,6 @@
<!DOCTYPE html>
<html>
<body>
iframe test
</body>
</html>

View file

@ -0,0 +1,9 @@
<html>
<link rel=match href=overflow_ref.html>
<body>
<iframe src="data:text/html,%3Cdiv%20style%3D%22background%3Agreen%3B%20width%3A%20200px%3B%20height%3A%20200px%3B%22%3E%3C%2Fdiv%3E"
style="display: block; width: 108px; height: 108px; border: none">
</iframe>
</div>
</body>
</html>

View file

@ -0,0 +1,6 @@
<html>
<body style="margin: 16px;">
<div style="background: green; width: 100px; height: 100px;"></div>
</div>
</body>
</html>

View file

@ -0,0 +1,9 @@
<html>
<link rel=match href=positioning_margin_ref.html>
<body style="margin: 0px;">
<iframe src="data:text/html,%3Chtml%3E%3Cbody%20style%3D%22margin%3A%200px%3B%22%3E%3Cdiv%20style%3D%22background%3A%20green%3B%20height%3A%20100px%3B%20width%3A%20100px%3B%22%3E%3C%2Fdiv%3E%3C%2Fbody%3E%3C%2Fhtml%3E"
style="display: block; border: 0px; width: 100px; height: 100px; margin-top: 100px;">
</iframe>
</body>
</html>

View file

@ -0,0 +1,5 @@
<html>
<body>
<div style="position: absolute; width: 100px; height: 100px; background: green; top: 100px; left: 0px;"></div>
</body>
</html>

View file

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

View file

@ -0,0 +1,10 @@
<html>
<link rel=match href=simple_inline_default_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;">
</iframe>
</div>
</body>
</html>

View file

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