Skip to content

Commit

Permalink
Make some iframe reftests more robust.
Browse files Browse the repository at this point in the history
  • Loading branch information
Ms2ger committed Nov 30, 2016
1 parent b86965f commit 6075d0e
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 13 deletions.
16 changes: 4 additions & 12 deletions tests/wpt/mozilla/tests/css/iframe/overflow.html
@@ -1,14 +1,6 @@
<html class="reftest-wait">
<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>
<script type="text/javascript">
window.onload = function() {
document.documentElement.classList.remove("reftest-wait");
}
</script>
</div>
</body>
</html>
<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"
onload="document.documentElement.classList.remove('reftest-wait')">
</iframe>
5 changes: 4 additions & 1 deletion tests/wpt/mozilla/tests/css/iframe/stacking_context.html
@@ -1,4 +1,5 @@
<!DOCTYPE html>
<html class=reftest-wait>
<link rel=match href=stacking_context_ref.html>
<style>
iframe {
Expand All @@ -11,4 +12,6 @@
transform: translateX(0px); /* form a stacking context */
}
</style>
<iframe src="data:text/html,%3Cspan%3EJust%20a%20simple%20little%20iframe.%3C%2Fspan%3E">
<iframe src="data:text/html,%3Cspan%3EJust%20a%20simple%20little%20iframe.%3C%2Fspan%3E"
onload="document.documentElement.classList.remove('reftest-wait')">
</iframe>

0 comments on commit 6075d0e

Please sign in to comment.