summaryrefslogtreecommitdiffstats
path: root/layout/base/tests/bug1097242-1.html
blob: e94a8c9917c6124aa326aa90550d90afd03a1064 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
<!DOCTYPE html>
<html class="reftest-wait">
  <script src="/tests/SimpleTest/SimpleTest.js"></script>
  <script src="/tests/SimpleTest/EventUtils.js"></script>
  <script>
    function focused() {
      document.documentElement.removeAttribute("class");
    }
  </script>
  <body>
    <div contenteditable spellcheck="false" onfocus="focused()"
      style="outline: none">foo<span contenteditable=false
      style="-moz-user-select: none">bar</span>baz</div>
    <script>
      SimpleTest.waitForFocus(() => {
        SimpleTest.executeSoon(() => {
          synthesizeMouseAtCenter(document.querySelector("span"), {});
        });
      });
    </script>
  </body>
</html>