Try to use reftest-wait to make iframe tests less brittle

This commit is contained in:
Martin Robinson 2016-11-15 15:52:18 +01:00
parent e164e87e98
commit 386567ee6d
2 changed files with 12 additions and 2 deletions

View file

@ -1,9 +1,14 @@
<html> <html class="reftest-wait">
<link rel=match href=overflow_ref.html> <link rel=match href=overflow_ref.html>
<body> <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" <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"> style="display: block; width: 108px; height: 108px; border: none">
</iframe> </iframe>
<script type="text/javascript">
window.onload = function() {
document.documentElement.classList.remove("reftest-wait");
}
</script>
</div> </div>
</body> </body>
</html> </html>

View file

@ -1,9 +1,14 @@
<html> <html class="reftest-wait">
<link rel=match href=positioning_margin_ref.html> <link rel=match href=positioning_margin_ref.html>
<body style="margin: 0px;"> <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" <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;"> style="display: block; border: 0px; width: 100px; height: 100px; margin-top: 100px;">
</iframe> </iframe>
<script type="text/javascript">
window.onload = function() {
document.documentElement.classList.remove("reftest-wait");
}
</script>
</body> </body>
</html> </html>