| OLD | NEW |
| 1 <!DOCTYPE HTML> | 1 <!DOCTYPE HTML> |
| 2 <html> | 2 <html> |
| 3 <head> | 3 <head> |
| 4 <script> | 4 <script> |
| 5 if (window.layoutTestController) | 5 if (window.layoutTestController) |
| 6 layoutTestController.dumpAsText(); | 6 layoutTestController.dumpAsText(); |
| 7 | 7 |
| 8 function loaded() { | 8 function loaded() { |
| 9 try { | 9 try { |
| 10 window.location.fail(); | 10 window.location.fail(); |
| 11 } catch(ex) { | 11 } catch(ex) { |
| 12 alert("Yay! Calling a function that shouldn't exist threw an exception."); | 12 alert("Yay! Calling a function that shouldn't exist threw an exception."); |
| 13 } | 13 } |
| 14 } | 14 } |
| 15 | 15 |
| 16 </script> | 16 </script> |
| 17 </head> | 17 </head> |
| 18 <body onload="loaded()"> | 18 <body onload="loaded()"> |
| 19 This test passes if it doesn't alert the string "fail". | 19 This test passes if it doesn't alert the string "fail". |
| 20 <iframe src="http://127.0.0.1:8080/security/resources/location-prototype-overwri
te.html"></iframe> | 20 <iframe src="http://127.0.0.1:8080/security/resources/location-prototype-overwri
te.html"></iframe> |
| 21 </body> | 21 </body> |
| 22 </html> | 22 </html> |
| OLD | NEW |