Home | History | Annotate | Download | only in ManualTests
      1 <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01//EN"
      2         "http://www.w3.org/TR/html4/strict.dtd">
      3 <html lang="en">
      4 <head>
      5 </head>
      6 <body>
      7 <p><b>BUG ID:</b> <a href="rdar://problem/4094363">rdar://problem/4094363</a> Can't re-open a window at capripalace.com website because "close" fails on already-closed window</p>
      8 
      9 <p id="test" style="background-color:skyblue; padding:3px;"><b>STEPS TO TEST:</b> 
     10 <ol>
     11     <li>Click the link below </li>
     12     <li>Close the window that opens </li>
     13     <li>Click the link again </li>
     14 </ol>
     15 </p>
     16 
     17 <p id="success" style="background-color:palegreen; padding:3px;"><b>TEST PASS:</b> 
     18 If the bug is fixed, a window WILL OPEN after Step #3.
     19 </p>
     20 
     21 <p id="failure" style="background-color:#FF3300; padding:3px;"><b>TEST FAIL:</b>  
     22 If the bug is not fixed, a window WILL NOT OPEN after Step #3.
     23 </p>
     24 
     25 <script language="JavaScript">
     26 win = null;
     27 function win_open() {
     28 
     29     if (win != null) {
     30         win.close();
     31     }
     32     win = window.open('about:blank');
     33 }
     34 </script>
     35 
     36  <a href="javascript:win_open();">Click this link</a>
     37 
     38 </body>
     39 </html>
     40