OLD | NEW |
1 <!DOCTYPE html> | 1 <!DOCTYPE html> |
2 <html> | 2 <html> |
3 <head> | 3 <head> |
4 <title>Check that window features are set</title> | 4 <title>Check that window.opener is not set</title> |
5 </head> | 5 </head> |
6 <body> | 6 <body> |
7 <div id="console"></div> | 7 <div id="console"></div> |
8 <script> | 8 <script> |
9 var log = document.querySelector("#console"); | 9 var log = document.querySelector("#console"); |
10 var result; | 10 var result; |
11 if (window.locationbar.visible) | 11 if (window.opener != null) |
12 result = "FAIL: window features not set"; | 12 result = "FAIL: opener set"; |
13 else | 13 else |
14 result = "PASS"; | 14 result = "PASS"; |
15 log.innerText = result; | 15 log.innerText = result; |
16 document.title = result; | 16 document.title = result; |
17 </script> | 17 </script> |
18 </body> | 18 </body> |
19 </html> | 19 </html> |
OLD | NEW |