bug1550869-1a.html (1013B)
1 <!DOCTYPE HTML> 2 <html class="reftest-wait"> 3 <title>Bug 1516963: Test AccessibleCaret doesn't show when clicking on a draggable image.</title> 4 <script src="/tests/SimpleTest/EventUtils.js"></script> 5 <script src="/tests/SimpleTest/SimpleTest.js"></script> 6 <link rel="stylesheet" type="text/css" href="/tests/SimpleTest/test.css"/> 7 <style> 8 #container { 9 border: 1px solid blue; 10 width: 100px; 11 height: 100px; 12 background-color: yellow; 13 } 14 img { 15 width: 60px; 16 height: 40px; 17 } 18 </style> 19 <script> 20 document.addEventListener("selectionchange", () => { 21 ok(window.getSelection().isCollapsed, "The selection should be collapsed!"); 22 }); 23 24 function click() { 25 let img = document.getElementById("img"); 26 synthesizeMouseAtCenter(img, {}); 27 setTimeout(() => { document.documentElement.removeAttribute("class"); }); 28 } 29 </script> 30 <body onload="SimpleTest.waitForFocus(click);"> 31 <div id="container"><img id="img" src="chrome/blue-32x32.png"></div> 32 </body> 33 </html>