blob: 3c8bb671f7b54253a2eaf5df1460f26624235a01 [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>