|
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"/> |
|
10 |
|
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> |
|
16 |
|
17 <!-- test code goes here --> |
|
18 <script type="application/javascript"><![CDATA[ |
|
19 |
|
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 } |
|
30 |
|
31 |
|
32 |
|
33 |
|
34 ]]></script> |
|
35 |
|
36 <box id="container"> |
|
37 <textbox id="item"> |
|
38 <observes element="broadcaster" attribute="disabled"/> |
|
39 </textbox> |
|
40 </box> |
|
41 |
|
42 <broadcasterset> |
|
43 <broadcaster id="broadcaster" disabled="true"/> |
|
44 </broadcasterset> |
|
45 |
|
46 </window> |