toolkit/content/tests/chrome/window_preferences_commandretarget.xul

branch
TOR_BUG_3246
changeset 7
129ffea94266
equal deleted inserted replaced
-1:000000000000 0:6d71600fed2f
1 <?xml version="1.0"?>
2 <?xml-stylesheet href="chrome://global/skin" type="text/css"?>
3 <!--
4 XUL Widget Test for preferences window. This particular test ensures that
5 a checkbox with a command attribute properly updates even though the command
6 event gets retargeted.
7 -->
8 <prefwindow xmlns="http://www.mozilla.org/keymaster/gatekeeper/there.is.only.xul"
9 title="preferences window"
10 windowtype="test:preferences"
11 buttons="accept,cancel"
12 onload="RunTest(window.arguments)">
13 <script type="application/javascript">
14 <![CDATA[
15 function RunTest(aArgs)
16 {
17 aArgs[0](this);
18 document.documentElement.cancelDialog();
19 }
20 ]]>
21 </script>
22
23 <prefpane id="sample_pane" label="Sample Prefpane">
24 <preferences id="sample_preferences">
25 <preference id="tests.static_preference_bool"
26 name="tests.static_preference_bool"
27 type="bool"/>
28 </preferences>
29
30 <commandset>
31 <command id="cmd_test" preference="tests.static_preference_bool"/>
32 </commandset>
33
34 <checkbox id="checkbox" label="Enable Option" preference="tests.static_preference_bool" command="cmd_test"/>
35 </prefpane>
36 </prefwindow>

mercurial