|
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 <; |
|
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> |