toolkit/content/tests/chrome/window_preferences2.xul

changeset 0
6474c204b198
     1.1 --- /dev/null	Thu Jan 01 00:00:00 1970 +0000
     1.2 +++ b/toolkit/content/tests/chrome/window_preferences2.xul	Wed Dec 31 06:09:35 2014 +0100
     1.3 @@ -0,0 +1,25 @@
     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:preferences2"
    1.12 +            buttons="accept,cancel"
    1.13 +            onload="RunTest(window.arguments)"
    1.14 +>
    1.15 +  <script type="application/javascript">
    1.16 +  <![CDATA[
    1.17 +    function RunTest(aArgs)
    1.18 +    {
    1.19 +      // open child
    1.20 +      document.documentElement.openSubDialog("window_preferences3.xul", "", {test: aArgs[0], accept: aArgs[1]});
    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 +</prefwindow>

mercurial