editor/libeditor/base/tests/test_bug599983.html

changeset 0
6474c204b198
     1.1 --- /dev/null	Thu Jan 01 00:00:00 1970 +0000
     1.2 +++ b/editor/libeditor/base/tests/test_bug599983.html	Wed Dec 31 06:09:35 2014 +0100
     1.3 @@ -0,0 +1,16 @@
     1.4 +<!doctype html>
     1.5 +<!--
     1.6 +https://bugzilla.mozilla.org/show_bug.cgi?id=599983
     1.7 +-->
     1.8 +<title>Test for Bug 599983</title>
     1.9 +<script src="/tests/SimpleTest/SimpleTest.js"></script>
    1.10 +<link rel="stylesheet" href="/tests/SimpleTest/test.css">
    1.11 +<script src="/tests/SimpleTest/EventUtils.js"></script>
    1.12 +<a target="_blank" href="https://bugzilla.mozilla.org/show_bug.cgi?id=599983">Mozilla Bug 599983</a>
    1.13 +<div contenteditable>foo</div>
    1.14 +<script>
    1.15 +getSelection().selectAllChildren(document.querySelector("div"));
    1.16 +document.execCommand("bold");
    1.17 +is(document.querySelector("[_moz_dirty]"), null,
    1.18 +   "No _moz_dirty allowed in webpages");
    1.19 +</script>

mercurial