1.1 --- /dev/null Thu Jan 01 00:00:00 1970 +0000 1.2 +++ b/toolkit/content/tests/chrome/window_preferences_commandretarget.xul Wed Dec 31 06:09:35 2014 +0100 1.3 @@ -0,0 +1,36 @@ 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. This particular test ensures that 1.8 + a checkbox with a command attribute properly updates even though the command 1.9 + event gets retargeted. 1.10 +--> 1.11 +<prefwindow xmlns="http://www.mozilla.org/keymaster/gatekeeper/there.is.only.xul" 1.12 + title="preferences window" 1.13 + windowtype="test:preferences" 1.14 + buttons="accept,cancel" 1.15 + onload="RunTest(window.arguments)"> 1.16 + <script type="application/javascript"> 1.17 + <; 1.21 + document.documentElement.cancelDialog(); 1.22 + } 1.23 + ]]> 1.24 + </script> 1.25 + 1.26 + <prefpane id="sample_pane" label="Sample Prefpane"> 1.27 + <preferences id="sample_preferences"> 1.28 + <preference id="tests.static_preference_bool" 1.29 + name="tests.static_preference_bool" 1.30 + type="bool"/> 1.31 + </preferences> 1.32 + 1.33 + <commandset> 1.34 + <command id="cmd_test" preference="tests.static_preference_bool"/> 1.35 + </commandset> 1.36 + 1.37 + <checkbox id="checkbox" label="Enable Option" preference="tests.static_preference_bool" command="cmd_test"/> 1.38 + </prefpane> 1.39 +</prefwindow>