blob: e2fed520dc25de5f8b3d9b99c7d9381ad148ae9e [file] [log] [blame]
<!doctype html>
<script src="../../resources/js-test.js"></script>
<body></body>
<script>
description("Tests that the promise from detached iframes do get resolved.");
jsTestIsAsync = true;
frame = document.createElement('iframe');
document.body.appendChild(frame);
frame.contentWindow.Promise.resolve("test").then(() => {
testPassed("Promise was resolved");
finishJSTest();
});
frame.remove();
</script>