Move hide_after_load.html to wpt reftests.

This commit is contained in:
Ms2ger 2015-11-22 15:10:15 +01:00
parent 833cd524e0
commit 19c4991c55
5 changed files with 25 additions and 1 deletions

View file

@ -1579,6 +1579,18 @@
"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/image_rendering_auto_a.html": [
{
"path": "css/image_rendering_auto_a.html",
@ -7032,6 +7044,18 @@
"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/image_rendering_auto_a.html": [
{
"path": "css/image_rendering_auto_a.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>