editor/reftests/824080-2-ref.html

changeset 0
6474c204b198
     1.1 --- /dev/null	Thu Jan 01 00:00:00 1970 +0000
     1.2 +++ b/editor/reftests/824080-2-ref.html	Wed Dec 31 06:09:35 2014 +0100
     1.3 @@ -0,0 +1,22 @@
     1.4 +<!DOCTYPE html>
     1.5 +<html>
     1.6 +<head>
     1.7 +  <script type="text/javascript">
     1.8 +    function doTest()
     1.9 +    {
    1.10 +      document.getSelection().selectAllChildren(document.getElementById("text"));
    1.11 +      var editor = document.getElementById("editor");
    1.12 +      var editorBody = editor.contentDocument.body;
    1.13 +      editor.contentDocument.getSelection().selectAllChildren(editorBody);
    1.14 +      editor.focus();
    1.15 +      editor.blur();
    1.16 +    }
    1.17 +  </script>
    1.18 +</head>
    1.19 +<body>
    1.20 +<p id="text">normal text</p>
    1.21 +<iframe id="editor" onload="doTest();"
    1.22 +  src="data:text/html,<body>editable text</body>"></iframe>
    1.23 +</body>
    1.24 +</html>
    1.25 +

mercurial