tor-browser

The Tor Browser
git clone https://git.dasho.dev/tor-browser.git
Log | Files | Refs | README | LICENSE

bug1550869-1c.html (1081B)


      1 <!DOCTYPE HTML>
      2 <html class="reftest-wait">
      3  <title>Bug 1516963: Test AccessibleCaret doesn't show when clicking on an undraggable image button.</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  input {
     15    border: 0;
     16    outline: 0;
     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"><input draggable="false" width="60px" height="40px" type="image" src="chrome/blue-32x32.png" id="img"></div>
     32  </body>
     33 </html>