toolkit/content/tests/chrome/test_bug570192.xul

changeset 0
6474c204b198
     1.1 --- /dev/null	Thu Jan 01 00:00:00 1970 +0000
     1.2 +++ b/toolkit/content/tests/chrome/test_bug570192.xul	Wed Dec 31 06:09:35 2014 +0100
     1.3 @@ -0,0 +1,53 @@
     1.4 +<?xml version="1.0"?>
     1.5 +<?xml-stylesheet href="chrome://global/skin" type="text/css"?>
     1.6 +<?xml-stylesheet 
     1.7 +  href="chrome://mochikit/content/tests/SimpleTest/test.css"
     1.8 +  type="text/css"?>
     1.9 +<!--
    1.10 +https://bugzilla.mozilla.org/show_bug.cgi?id=570192
    1.11 +-->
    1.12 +<window title="Mozilla Bug 558406"
    1.13 +  xmlns="http://www.mozilla.org/keymaster/gatekeeper/there.is.only.xul">
    1.14 +
    1.15 +  <script type="application/javascript" 
    1.16 +          src="chrome://mochikit/content/tests/SimpleTest/SimpleTest.js"></script>
    1.17 +  <script type="application/javascript"
    1.18 +          src="chrome://mochikit/content/tests/SimpleTest/WindowSnapshot.js"></script>
    1.19 +  <script type="application/javascript"
    1.20 +          src="RegisterUnregisterChrome.js"></script>
    1.21 +
    1.22 +  <body  xmlns="http://www.w3.org/1999/xhtml">
    1.23 +    <a target="_blank" 
    1.24 +       href="https://bugzilla.mozilla.org/show_bug.cgi?id=570192">
    1.25 +      Mozilla Bug 570192
    1.26 +    </a>
    1.27 +
    1.28 +    <p id="display">
    1.29 +    </p>
    1.30 +    <div id="content" style="display: none">
    1.31 +    </div>
    1.32 +    <pre id="test">
    1.33 +    </pre>
    1.34 +  </body>
    1.35 +
    1.36 +  <script type="application/javascript">
    1.37 +    <![CDATA[
    1.38 +
    1.39 +    addLoadEvent(function() {
    1.40 +      try {
    1.41 +        var content = document.getElementById("content");
    1.42 +        content.innerHTML = '<textbox newlines="pasteintact" ' +
    1.43 +          'xmlns="http://www.mozilla.org/keymaster/gatekeeper/there.is.only.xul"/>';
    1.44 +        var textbox = content.firstChild;
    1.45 +        ok(textbox, "created the textbox");
    1.46 +        ok(!textbox.editor, "do we have an editor?");
    1.47 +      } catch (e) {
    1.48 +        ok(false, "Got an exception: " + e);
    1.49 +      }
    1.50 +      SimpleTest.finish();
    1.51 +    });
    1.52 +    SimpleTest.waitForExplicitFinish();
    1.53 +
    1.54 +   ]]>
    1.55 +  </script>
    1.56 +</window>

mercurial