toolkit/content/tests/chrome/test_bug570192.xul

Wed, 31 Dec 2014 06:09:35 +0100

author
Michael Schloh von Bennewitz <michael@schloh.com>
date
Wed, 31 Dec 2014 06:09:35 +0100
changeset 0
6474c204b198
permissions
-rw-r--r--

Cloned upstream origin tor-browser at tor-browser-31.3.0esr-4.5-1-build1
revision ID fc1c9ff7c1b2defdbc039f12214767608f46423f for hacking purpose.

     1 <?xml version="1.0"?>
     2 <?xml-stylesheet href="chrome://global/skin" type="text/css"?>
     3 <?xml-stylesheet 
     4   href="chrome://mochikit/content/tests/SimpleTest/test.css"
     5   type="text/css"?>
     6 <!--
     7 https://bugzilla.mozilla.org/show_bug.cgi?id=570192
     8 -->
     9 <window title="Mozilla Bug 558406"
    10   xmlns="http://www.mozilla.org/keymaster/gatekeeper/there.is.only.xul">
    12   <script type="application/javascript" 
    13           src="chrome://mochikit/content/tests/SimpleTest/SimpleTest.js"></script>
    14   <script type="application/javascript"
    15           src="chrome://mochikit/content/tests/SimpleTest/WindowSnapshot.js"></script>
    16   <script type="application/javascript"
    17           src="RegisterUnregisterChrome.js"></script>
    19   <body  xmlns="http://www.w3.org/1999/xhtml">
    20     <a target="_blank" 
    21        href="https://bugzilla.mozilla.org/show_bug.cgi?id=570192">
    22       Mozilla Bug 570192
    23     </a>
    25     <p id="display">
    26     </p>
    27     <div id="content" style="display: none">
    28     </div>
    29     <pre id="test">
    30     </pre>
    31   </body>
    33   <script type="application/javascript">
    34     <![CDATA[
    36     addLoadEvent(function() {
    37       try {
    38         var content = document.getElementById("content");
    39         content.innerHTML = '<textbox newlines="pasteintact" ' +
    40           'xmlns="http://www.mozilla.org/keymaster/gatekeeper/there.is.only.xul"/>';
    41         var textbox = content.firstChild;
    42         ok(textbox, "created the textbox");
    43         ok(!textbox.editor, "do we have an editor?");
    44       } catch (e) {
    45         ok(false, "Got an exception: " + e);
    46       }
    47       SimpleTest.finish();
    48     });
    49     SimpleTest.waitForExplicitFinish();
    51    ]]>
    52   </script>
    53 </window>

mercurial