content/xul/document/test/test_bug418216.xul

Thu, 15 Jan 2015 21:03:48 +0100

author
Michael Schloh von Bennewitz <michael@schloh.com>
date
Thu, 15 Jan 2015 21:03:48 +0100
branch
TOR_BUG_9701
changeset 11
deefc01c0e14
permissions
-rw-r--r--

Integrate friendly tips from Tor colleagues to make (or not) 4.5 alpha 3;
This includes removal of overloaded (but unused) methods, and addition of
a overlooked call to DataStruct::SetData(nsISupports, uint32_t, bool.)

     1 <?xml version="1.0"?>
     2 <?xml-stylesheet href="chrome://global/skin" type="text/css"?>
     3 <?xml-stylesheet href="chrome://mochikit/content/tests/SimpleTest/test.css" type="text/css"?>
     4 <!--
     5 https://bugzilla.mozilla.org/show_bug.cgi?id=418216
     6 -->
     7 <window title="Mozilla Bug 418216"
     8   xmlns="http://www.mozilla.org/keymaster/gatekeeper/there.is.only.xul">
     9   <script type="application/javascript" src="chrome://mochikit/content/tests/SimpleTest/SimpleTest.js"/>
    11   <!-- test results are displayed in the html:body -->
    12   <body xmlns="http://www.w3.org/1999/xhtml">
    13   <a href="https://bugzilla.mozilla.org/show_bug.cgi?id=418216"
    14      target="_blank">Mozilla Bug 418216</a>
    15   </body>
    17   <!-- test code goes here -->
    18   <script type="application/javascript"><![CDATA[
    20     /** Test for Bug 418216 **/
    21   SimpleTest.waitForExplicitFinish();
    22   window.onload = function onload() {
    23     var element = $("item");
    24     $("container").removeChild($("item"));
    25     $("broadcaster").removeAttribute("disabled");
    26     $("container").appendChild(element);
    27     is($("item").hasAttribute("disabled"), $("broadcaster").hasAttribute("disabled"));
    28     SimpleTest.finish();
    29   }
    34   ]]></script>
    36 <box id="container">
    37 <textbox id="item">
    38     <observes element="broadcaster" attribute="disabled"/>
    39 </textbox>
    40 </box>
    42 <broadcasterset>
    43     <broadcaster id="broadcaster" disabled="true"/>
    44 </broadcasterset>
    46 </window>

mercurial