mirror of
https://github.com/servo/servo.git
synced 2025-08-05 13:40:08 +01:00
Add test for unblocking onload when removing an iframe from the tree.
This commit is contained in:
parent
e9b98ad5fa
commit
fbae86281d
2 changed files with 24 additions and 0 deletions
|
@ -5850,6 +5850,12 @@
|
|||
"url": "/_mozilla/mozilla/htmlspacechars.html"
|
||||
}
|
||||
],
|
||||
"mozilla/iframe-unblock-onload.html": [
|
||||
{
|
||||
"path": "mozilla/iframe-unblock-onload.html",
|
||||
"url": "/_mozilla/mozilla/iframe-unblock-onload.html"
|
||||
}
|
||||
],
|
||||
"mozilla/iframe_contentDocument.html": [
|
||||
{
|
||||
"path": "mozilla/iframe_contentDocument.html",
|
||||
|
|
18
tests/wpt/mozilla/tests/mozilla/iframe-unblock-onload.html
Normal file
18
tests/wpt/mozilla/tests/mozilla/iframe-unblock-onload.html
Normal file
|
@ -0,0 +1,18 @@
|
|||
<html>
|
||||
<head>
|
||||
<script src="/resources/testharness.js"></script>
|
||||
<script src="/resources/testharnessreport.js"></script>
|
||||
</head>
|
||||
<body>
|
||||
<iframe src="resources/iframe_contentDocument_inner.html?pipe=trickle(d20)"></iframe>
|
||||
<script>
|
||||
async_test(function(t) {
|
||||
window.addEventListener('load', t.step_func(function() {
|
||||
t.done();
|
||||
}, false));
|
||||
|
||||
document.querySelector('iframe').remove();
|
||||
}, "Document load is unblocked by iframe removal");
|
||||
</script>
|
||||
</body>
|
||||
</html>
|
Loading…
Add table
Add a link
Reference in a new issue