test_bug666225.html (1124B)
1 <!DOCTYPE HTML> 2 <html> 3 <!-- 4 https://bugzilla.mozilla.org/show_bug.cgi?id=666225 5 --> 6 <head> 7 <title>Test for Bug 666225</title> 8 <script src="/tests/SimpleTest/SimpleTest.js"></script> 9 <script src="/tests/SimpleTest/EventUtils.js"></script> 10 <link rel="stylesheet" type="text/css" href="/tests/SimpleTest/test.css"/> 11 </head> 12 <body> 13 <a target="_blank" href="https://bugzilla.mozilla.org/show_bug.cgi?id=666225">Mozilla Bug 666225</a> 14 <p id="display"><input id="i" onmousedown="this.type='file';"></p> 15 <div id="content" style="display: none"> 16 17 </div> 18 <pre id="test"> 19 <script type="application/javascript"> 20 /** 21 * Test for Bug 666225 22 * Causes ASSERTION: Unexpected document: 'capturingContent->GetUncomposedDoc() == GetDocument()' (bug 560764) 23 */ 24 25 function click() 26 { 27 $("i").addEventListener("mouseup", test); 28 synthesizeMouseAtCenter($("i"), { type: "mousedown" }); 29 synthesizeMouseAtCenter($("i"), { type: "mouseup" }); 30 } 31 32 function test() 33 { 34 ok(true, "should not crash"); 35 SimpleTest.finish(); 36 } 37 38 SimpleTest.waitForExplicitFinish(); 39 SimpleTest.waitForFocus(click); 40 41 </script> 42 </pre> 43 </body> 44 </html>