test_bug675587.html (815B)
1 <!DOCTYPE HTML> 2 <html> 3 <!-- 4 https://bugzilla.mozilla.org/show_bug.cgi?id=675587 5 --> 6 <head> 7 <title>Test for Bug 675587</title> 8 <script src="/tests/SimpleTest/SimpleTest.js"></script> 9 <link rel="stylesheet" type="text/css" href="/tests/SimpleTest/test.css"/> 10 </head> 11 <body> 12 <a target="_blank" href="https://bugzilla.mozilla.org/show_bug.cgi?id=675587">Mozilla Bug 675587</a> 13 <p id="display"> 14 <iframe src="file_bug675587.html#hash"></iframe> 15 </p> 16 <div id="content" style="display: none"> 17 18 </div> 19 <pre id="test"> 20 <script type="application/javascript"> 21 22 /** Test for Bug 675587 */ 23 SimpleTest.waitForExplicitFinish(); 24 addLoadEvent(function() { 25 ok(window.frames[0].location.href.endsWith("file_bug675587.html#"), 26 "Should have the right href"); 27 SimpleTest.finish(); 28 }); 29 30 </script> 31 </pre> 32 </body> 33 </html>