content/xul/document/test/test_bug414907.xul

branch
TOR_BUG_9701
changeset 8
97036ab72558
equal deleted inserted replaced
-1:000000000000 0:9c1853174759
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=414907
6 -->
7 <window title="Mozilla Bug 414907"
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 <vbox hidden="true">
12 <bindings xmlns="http://www.mozilla.org/xbl" style="display: block;"
13 xmlns:xul="http://www.mozilla.org/keymaster/gatekeeper/there.is.only.xul">
14 <binding id="anon">
15 <implementation>
16 <constructor>
17 <![CDATA[
18 var node = this.firstChild;
19 this.palette = node;
20 this.removeChild(node);
21 ]]>
22 </constructor>
23 </implementation>
24 </binding>
25 </bindings>
26 </vbox>
27
28 <!-- test results are displayed in the html:body -->
29 <body xmlns="http://www.w3.org/1999/xhtml">
30 <a href="https://bugzilla.mozilla.org/show_bug.cgi?id=414907"
31 target="_blank">Mozilla Bug 414907</a>
32 </body>
33
34 <!-- test code goes here -->
35 <script type="application/javascript"><![CDATA[
36
37 SimpleTest.waitForExplicitFinish();
38 window.onload = function onload() {
39 is($("box").palette.getAttribute("label"), $("command").getAttribute("label"));
40 SimpleTest.finish();
41 }
42
43 ]]></script>
44
45 <command id="command" label="label"/>
46
47 <box id="box" style="-moz-binding:url('#anon');">
48 <button observes="command"/>
49 </box>
50
51
52
53 </window>

mercurial