Bug 1874684 - Part 17: Fix uninitialised variable warnings from clang-tidy. r=allstarschh
[gecko.git] / editor / libeditor / tests / test_bug1130651.html
bloba9e1bad8c2a8d9e351b0c06f62bd8305369c7582
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);
17 </script>