diff options
Diffstat (limited to 'testing/web-platform/tests/html/webappapis/user-prompts/print-in-detached-frame.html')
-rw-r--r-- | testing/web-platform/tests/html/webappapis/user-prompts/print-in-detached-frame.html | 19 |
1 files changed, 19 insertions, 0 deletions
diff --git a/testing/web-platform/tests/html/webappapis/user-prompts/print-in-detached-frame.html b/testing/web-platform/tests/html/webappapis/user-prompts/print-in-detached-frame.html new file mode 100644 index 0000000000..474f4f4d2a --- /dev/null +++ b/testing/web-platform/tests/html/webappapis/user-prompts/print-in-detached-frame.html @@ -0,0 +1,19 @@ +<!DOCTYPE html> +<meta charset="utf-8"> +<title>print() in a detached iframe</title> +<script src="/resources/testharness.js"></script> +<script src="/resources/testharnessreport.js"></script> + +<body> +<script> +"use strict"; + +test(() => { + const iframe = document.createElement("iframe"); + document.body.append(iframe); + const print = iframe.contentWindow.print; + iframe.remove(); + + print(); +}); +</script> |