tor-browser

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

test_bug1130651.html (558B)


      1 <!DOCTYPE html>
      2 <title>Test for Bug 1130651</title>
      3 <script src="/tests/SimpleTest/SimpleTest.js"></script>
      4 <link rel="stylesheet" href="/tests/SimpleTest/test.css"/>
      5 <a target="_blank" href="https://bugzilla.mozilla.org/show_bug.cgi?id=1332876">Mozilla Bug 1332876</a>
      6 <div contenteditable>a b</div>
      7 <script>
      8 var div = document.querySelector("div");
      9 div.focus();
     10 getSelection().collapse(div.firstChild, 2);
     11 try {
     12  document.execCommand("inserttext", false, "\n");
     13  ok(true, "No exception thrown");
     14 } catch (e) {
     15  ok(false, "Exception: " + e);
     16 }
     17 </script>