1.1 --- /dev/null Thu Jan 01 00:00:00 1970 +0000 1.2 +++ b/toolkit/content/tests/chrome/window_preferences.xul Wed Dec 31 06:09:35 2014 +0100 1.3 @@ -0,0 +1,73 @@ 1.4 +<?xml version="1.0"?> 1.5 +<?xml-stylesheet href="chrome://global/skin" type="text/css"?> 1.6 +<!-- 1.7 + XUL Widget Test for preferences window 1.8 +--> 1.9 +<prefwindow xmlns="http://www.mozilla.org/keymaster/gatekeeper/there.is.only.xul" 1.10 + title="preferences window" 1.11 + windowtype="test:preferences" 1.12 + buttons="accept,cancel" 1.13 + onload="RunTest(window.arguments)" 1.14 +> 1.15 + <script type="application/javascript"> 1.16 + <; 1.21 + // close dialog 1.22 + document.documentElement[aArgs[1] ? "acceptDialog" : "cancelDialog"](); 1.23 + } 1.24 + ]]> 1.25 + </script> 1.26 + 1.27 + <prefpane id="sample_pane" label="Sample Prefpane"> 1.28 + <preferences id="sample_preferences"> 1.29 + <!-- one of each type known to <preferences>.valueFromPreferences --> 1.30 + <preference id ="tests.static_preference_int" 1.31 + name="tests.static_preference_int" 1.32 + type="int"/> 1.33 + <preference id ="tests.static_preference_bool" 1.34 + name="tests.static_preference_bool" 1.35 + type="bool"/> 1.36 + <preference id ="tests.static_preference_string" 1.37 + name="tests.static_preference_string" 1.38 + type="string"/> 1.39 + <preference id ="tests.static_preference_wstring" 1.40 + name="tests.static_preference_wstring" 1.41 + type="wstring"/> 1.42 + <preference id ="tests.static_preference_unichar" 1.43 + name="tests.static_preference_unichar" 1.44 + type="unichar"/> 1.45 + <preference id ="tests.static_preference_file" 1.46 + name="tests.static_preference_file" 1.47 + type="file"/> 1.48 + </preferences> 1.49 + 1.50 + <!-- one element for each preference type above --> 1.51 + <hbox> 1.52 + <label flex="1" value="int"/> 1.53 + <textbox id="static_element_int" preference="tests.static_preference_int"/> 1.54 + </hbox> 1.55 + <hbox> 1.56 + <label flex="1" value="bool"/> 1.57 + <checkbox id="static_element_bool" preference="tests.static_preference_bool"/> 1.58 + </hbox> 1.59 + <hbox> 1.60 + <label flex="1" value="string"/> 1.61 + <textbox id="static_element_string" preference="tests.static_preference_string"/> 1.62 + </hbox> 1.63 + <hbox> 1.64 + <label flex="1" value="wstring"/> 1.65 + <textbox id="static_element_wstring" preference="tests.static_preference_wstring"/> 1.66 + </hbox> 1.67 + <hbox> 1.68 + <label flex="1" value="unichar"/> 1.69 + <textbox id="static_element_unichar" preference="tests.static_preference_unichar"/> 1.70 + </hbox> 1.71 + <hbox> 1.72 + <label flex="1" value="file"/> 1.73 + <textbox id="static_element_file" preference="tests.static_preference_file"/> 1.74 + </hbox> 1.75 + </prefpane> 1.76 +</prefwindow>