1 This 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>
3 if (showModalDialog("data:text/html,<script>returnValue={value:'PASS'}; close()</"+"script>").value == "PASS")
4 document.write("<span style='color:green'>Test passed.<br>");
6 document.write("<span style='color:red'>Test failed due to incorrect result.<br>");
7 value = showModalDialog("data:text/html,<script>close()</"+"script>");
9 document.write("<span style='color:green'>Test passed.<br>");
11 document.write("<span style='color:red'>Test failed due to incorrect result.<br>");