Move hide_and_show.html to wpt reftests.

This commit is contained in:
Ms2ger 2015-11-22 15:12:08 +01:00
parent 19c4991c55
commit 4466fc3537
4 changed files with 25 additions and 1 deletions

View file

@ -1591,6 +1591,18 @@
"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/image_rendering_auto_a.html": [
{
"path": "css/image_rendering_auto_a.html",
@ -7056,6 +7068,18 @@
"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/image_rendering_auto_a.html": [
{
"path": "css/image_rendering_auto_a.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>