Thu, 22 Jan 2015 13:21:57 +0100
Incorporate requested changes from Mozilla in review:
https://bugzilla.mozilla.org/show_bug.cgi?id=1123480#c6
1 <!doctype html>
2 <html>
3 <!--
4 https://bugzilla.mozilla.org/show_bug.cgi?id=719523
5 -->
6 <title>Test for Bug 719523</title>
7 <script src="/tests/SimpleTest/SimpleTest.js"></script>
8 <link rel="stylesheet" href="/tests/SimpleTest/test.css">
9 <a target="_blank" href="https://bugzilla.mozilla.org/show_bug.cgi?id=719523">Mozilla Bug 719523</a>
10 <p id="display"></p>
11 <div id="content" style="display: none"></div>
12 <pre id="test">
13 <script>
14 getSelection().selectAllChildren(document);
15 is(document.childNodes.length, 2, "Sanity check: number of document children");
16 is(getSelection().focusNode, document,
17 "Sanity check: document must be selected");
18 is(getSelection().focusOffset, 2,
19 "selectAllChildren() must select all the document's children");
20 </script>