test_bug1315146.html (862B)
1 <!DOCTYPE HTML> 2 <html> 3 <!-- 4 https://bugzilla.mozilla.org/show_bug.cgi?id=1315146 5 --> 6 <head> 7 <title>Test for Bug 1315146</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=1315146">Mozilla Bug 1315146</a> 13 <p id="display"></p> 14 <div id="content"> 15 </div> 16 <pre id="test"> 17 <script type="application/javascript"> 18 19 /** Test for Bug 1315146 */ 20 21 SimpleTest.waitForExplicitFinish(); 22 onmessage = function(e) { 23 win.close(); 24 is(e.data.start, 2, "Correct start offset expected"); 25 is(e.data.end, 2, "Correct end offset expected"); 26 SimpleTest.finish(); 27 }; 28 let win = window.open("http://test1.example.org/tests/dom/html/test/bug1315146-main.html", "_blank"); 29 30 </script> 31 </pre> 32 </body> 33 </html>