layout/base/tests/bug632215-1.html

changeset 0
6474c204b198
     1.1 --- /dev/null	Thu Jan 01 00:00:00 1970 +0000
     1.2 +++ b/layout/base/tests/bug632215-1.html	Wed Dec 31 06:09:35 2014 +0100
     1.3 @@ -0,0 +1,29 @@
     1.4 +<!DOCTYPE html>
     1.5 +<html class="reftest-wait">
     1.6 +  <head>
     1.7 +    <script type="text/javascript" src="/tests/SimpleTest/EventUtils.js"></script>
     1.8 +  </head>
     1.9 +  <body>
    1.10 +    <iframe src="data:text/html,<body spellcheck=false></body>"></iframe>
    1.11 +    <script>
    1.12 +      onload = function() {
    1.13 +        var i = document.querySelector("iframe");
    1.14 +        var d = i.contentDocument;
    1.15 +        var w = i.contentWindow;
    1.16 +        var s = w.getSelection();
    1.17 +        i.focus();
    1.18 +        d.body.contentEditable = true;
    1.19 +        d.body.contentEditable = false;
    1.20 +        d.designMode = "off";
    1.21 +        d.designMode = "on";
    1.22 +        d.body.focus();
    1.23 +        synthesizeKey("x", {});
    1.24 +        s.collapse(d.body.firstChild, 1);
    1.25 +        synthesizeKey("x", {});
    1.26 +        setTimeout(function() {
    1.27 +          document.documentElement.removeAttribute("class");
    1.28 +        }, 0);
    1.29 +      };
    1.30 +    </script>
    1.31 +  </body>
    1.32 +</html>

mercurial