mirror of
https://github.com/servo/servo.git
synced 2025-08-06 06:00:15 +01:00
Try to use reftest-wait to make iframe tests less brittle
This commit is contained in:
parent
e164e87e98
commit
386567ee6d
2 changed files with 12 additions and 2 deletions
|
@ -1,9 +1,14 @@
|
|||
<html>
|
||||
<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>
|
||||
|
|
|
@ -1,9 +1,14 @@
|
|||
<html>
|
||||
<html class="reftest-wait">
|
||||
<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>
|
||||
<script type="text/javascript">
|
||||
window.onload = function() {
|
||||
document.documentElement.classList.remove("reftest-wait");
|
||||
}
|
||||
</script>
|
||||
</body>
|
||||
</html>
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue