dom/tests/mochitest/chrome/test_queryCaretRect.html

Thu, 22 Jan 2015 13:21:57 +0100

author
Michael Schloh von Bennewitz <michael@schloh.com>
date
Thu, 22 Jan 2015 13:21:57 +0100
branch
TOR_BUG_9701
changeset 15
b8a032363ba2
permissions
-rw-r--r--

Incorporate requested changes from Mozilla in review:
https://bugzilla.mozilla.org/show_bug.cgi?id=1123480#c6

     1 <!DOCTYPE HTML>
     2 <html>
     3 <head>
     4   <title>nsIDOMWindowUtils::sendQueryContentEvent w/QUERY_CARET_RECT test</title>
     5   <script type="text/javascript" src="chrome://mochikit/content/tests/SimpleTest/SimpleTest.js"></script>
     6   <link rel="stylesheet" type="text/css" href="chrome://mochikit/content/tests/SimpleTest/test.css">
     7 <script type="application/javascript">
     8   SimpleTest.waitForExplicitFinish();
     9   function done() {
    10     testwindow.close();
    11     SimpleTest.finish();
    12   }
    13   var isWindows = ("@mozilla.org/windows-registry-key;1" in Components.classes);
    14   var testwindow = window.open("queryCaretRect" + (isWindows ? "Win" : "Unix") + ".html",
    15                                "_new", "width=800,height=800");
    16 </script>
    17 </head>
    18 <body>
    19 <p id="display"></p>
    20 <div id="content" style="display: none">
    21 </body>
    22 </html>

mercurial