layout/generic/test/test_bug719523.html

changeset 0
6474c204b198
     1.1 --- /dev/null	Thu Jan 01 00:00:00 1970 +0000
     1.2 +++ b/layout/generic/test/test_bug719523.html	Wed Dec 31 06:09:35 2014 +0100
     1.3 @@ -0,0 +1,20 @@
     1.4 +<!doctype html>
     1.5 +<html>
     1.6 +<!--
     1.7 +https://bugzilla.mozilla.org/show_bug.cgi?id=719523
     1.8 +-->
     1.9 +<title>Test for Bug 719523</title>
    1.10 +<script src="/tests/SimpleTest/SimpleTest.js"></script>
    1.11 +<link rel="stylesheet" href="/tests/SimpleTest/test.css">
    1.12 +<a target="_blank" href="https://bugzilla.mozilla.org/show_bug.cgi?id=719523">Mozilla Bug 719523</a>
    1.13 +<p id="display"></p>
    1.14 +<div id="content" style="display: none"></div>
    1.15 +<pre id="test">
    1.16 +<script>
    1.17 +getSelection().selectAllChildren(document);
    1.18 +is(document.childNodes.length, 2, "Sanity check: number of document children");
    1.19 +is(getSelection().focusNode, document,
    1.20 +   "Sanity check: document must be selected");
    1.21 +is(getSelection().focusOffset, 2,
    1.22 +   "selectAllChildren() must select all the document's children");
    1.23 +</script>

mercurial