Flaky Test: fast/events/resize-subframe-in-rendering-update.html
[WebKit-https.git] / LayoutTests / fast / events / before-unload-return-string-conversion.html
1 <!DOCTYPE html>
2 <html>
3 <body>
4 <script src="../../resources/js-test-pre.js"></script>
5 <script>
6 description("Tests that the value returned from a beforeunload event handler gets converted to a string, even if the returnValue property was already set.");
7 jsTestIsAsync = true;
8
9 const iframe = document.createElement("iframe");
10 iframe.onload = function() {
11     iframe.onload = null;
12     iframe.contentWindow.runTest();
13 };
14
15 iframe.src = "resources/before-unload-return-string-conversion-frame.html";
16 document.body.appendChild(iframe);
17 </script>
18 <script src="../../resources/js-test-post.js"></script>
19 </body>