blob: fbc3ee360f8ab6d317ae6e848a34b1dd78ecc520 [file] [log] [blame]
Torne (Richard Coles)5c87bf82012-11-14 11:46:17 +00001This test makes sure we don't crash when storing the return value from showModalDialog. Popup blocking needs to be disabled for this test to run.<br>
2<script>
3if (showModalDialog("data:text/html,<script>returnValue={value:'PASS'}; close()</"+"script>").value == "PASS")
4 document.write("<span style='color:green'>Test passed.<br>");
5else
6 document.write("<span style='color:red'>Test failed due to incorrect result.<br>");
7value = showModalDialog("data:text/html,<script>close()</"+"script>");
8if (!value)
9 document.write("<span style='color:green'>Test passed.<br>");
10else
11 document.write("<span style='color:red'>Test failed due to incorrect result.<br>");
12
13</script>