| OLD | NEW |
| 1 <!DOCTYPE html> | 1 <!DOCTYPE html> |
| 2 <html> | 2 <html> |
| 3 <head> | 3 <head> |
| 4 <title>Check that window.opener is not set</title> | 4 <title>Check that the frame name is correct</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.opener != null) | 11 if (window.name == "") |
| 12 result = "FAIL: opener set"; | 12 result = "FAIL: no name"; |
| 13 else if (window.name != "fancyname") |
| 14 result = "FAIL: incorrect frame name: " + window.name; |
| 13 else | 15 else |
| 14 result = "PASS"; | 16 result = "PASS"; |
| 15 log.innerText = result; | 17 log.innerText = result; |
| 16 document.title = result; | 18 document.title = result; |
| 17 </script> | 19 </script> |
| 18 </body> | 20 </body> |
| 19 </html> | 21 </html> |
| OLD | NEW |