dom/xslt/tests/buster/buster.xul

Tue, 06 Jan 2015 21:39:09 +0100

author
Michael Schloh von Bennewitz <michael@schloh.com>
date
Tue, 06 Jan 2015 21:39:09 +0100
branch
TOR_BUG_9701
changeset 8
97036ab72558
permissions
-rw-r--r--

Conditionally force memory storage according to privacy.thirdparty.isolate;
This solves Tor bug #9701, complying with disk avoidance documented in
https://www.torproject.org/projects/torbrowser/design/#disk-avoidance.

     1 <?xml version="1.0"?><!-- -*- Mode: xml; tab-width: 2; indent-tabs-mode: nil -*- -->
     2 <!-- This Source Code Form is subject to the terms of the Mozilla Public
     3    - License, v. 2.0. If a copy of the MPL was not distributed with this
     4    - file, You can obtain one at http://mozilla.org/MPL/2.0/. -->
     6 <?xml-stylesheet href="chrome://communicator/skin/" type="text/css"?>
     7 <?xml-stylesheet href="buster.css" type="text/css"?>
     9 <?xul-overlay href="chrome://global/content/globalOverlay.xul"?>
    10 <?xul-overlay href="chrome://communicator/content/utilityOverlay.xul"?>
    12 <window id="XalanBuster"
    13         xmlns="http://www.mozilla.org/keymaster/gatekeeper/there.is.only.xul"
    14         onload="onLoad()" onunload="onUnload()"
    15         title="Xalan testcase harness"
    16         persist="width,height"
    17         width="800"
    18         height="600"
    19         orient="vertical">
    20 <script type="application/x-javascript" src="buster-statics.js" />
    21 <script type="application/x-javascript" src="buster-test.js" />
    22 <script type="application/x-javascript" src="buster-view.js" />
    23 <script type="application/x-javascript" src="buster-handlers.js" />
    24 <script type="application/x-javascript" src="result-view.js" />
    25 <script type="application/x-javascript" src="buster-files.js" />
    26 <script type="application/x-javascript" src="DumpDOM.js" />
    27 <script type="application/x-javascript" src="DiffDOM.js" />
    29 <commands id="busterKing">
    30   <commandset id="buster_file_cmds">
    31     <command id="cmd_fl_save" oncommand="goDoCommand('cmd_fl_save')" />
    32     <command id="cmd_fl_import" oncommand="goDoCommand('cmd_fl_import')"/>
    33   </commandset>
    34   <commandset id="buster_test_cmds">
    35     <command id="cmd_tst_run" oncommand="goDoCommand('cmd_tst_run')" />
    36     <command id="cmd_tst_runall" oncommand="goDoCommand('cmd_tst_runall')" />
    37   </commandset>
    38   <commandset id="commands">
    39     <command id="cmd_quit"/>
    40     <command id="cmd_close" oncommand="window.close();"/>
    41   </commandset>
    42 </commands>
    44 <keyset>
    45   <key id="key_quit"/>
    46   <key id="key_close"/>
    47 </keyset>
    49 <broadcasterset>
    50   <broadcaster id="obs_orig_success" hidden="true"/>
    51   <broadcaster id="not_yet" disabled="true"/>
    52 </broadcasterset>
    55 <menubar>
    56   <menu id="menu_File" label="File" accesskey="f">
    57     <menupopup id="menu_FilePopup">
    58       <menuitem label="Save results ..." accesskey="s"
    59                 observes="cmd_fl_save"/>
    60       <menuitem label="Import results ..." accesskey="i"
    61                 observes="cmd_fl_import"/>
    62       <menuitem id="menu_close"/>
    63     </menupopup>
    64   </menu>
    65   <menu id="busterTests" label="Tests" accesskey="t">
    66     <menupopup id="tests-popup">
    67       <menuitem label="run a test" accesskey="r"
    68                 observes="cmd_tst_run"/>
    69       <menuitem label="run all tests" accesskey="a"
    70                 observes="cmd_tst_runall"/>
    71     </menupopup>
    72   </menu>
    73 </menubar>
    75 <popupset>
    76   <popup id="itemcontext" onpopupshowing="return view.fillItemContext();">
    77     <menuitem label="View Test" oncommand="onNewResultView(event)"/>
    78   </popup>
    79 </popupset>
    81 <hbox>
    82   <button label="check all" oncommand="check(true)" observes="not_yet"/>
    83   <button label="uncheck all" oncommand="check(false)" observes="not_yet"/>
    84   <button label="reset success" oncommand="view.prune_ds()" />
    85   <button label="run checked tests" oncommand="view.onRun()" />
    86 </hbox>
    87 <hbox>
    88   <label value="Xalan index: " class="head"/>
    89   <textbox id="xalan_rdf" persist="url" crop="end" size="40"/>
    90   <button label="browse..." oncommand="view.browseForRDF()" />
    91 </hbox>
    92 <hbox>
    93 <groupbox orient="horizontal"><caption label="search" />
    94   <button label="Search for " oncommand="select()" observes="not_yet"/>
    95   <textbox style="width: 10em;" id="search-name" persist="value" /><label value=" in " />
    96   <menulist id="search-field" persist="data" observes="not_yet">
    97     <menupopup>
    98       <menuitem value="1" label="Name" />
    99       <menuitem value="2" label="Purpose" />
   100       <menuitem value="3" label="Comment" />
   101     </menupopup>
   102   </menulist>
   103 </groupbox>
   104 <spacer flex="1" /></hbox>
   106 <tree id="out" flex="1" flags="dont-build-content" hidecolumnpicker="true"
   107       datasources="rdf:null" ref="urn:root" context="itemcontext">
   108   <treecols>
   109     <treecol id="NameColumn" flex="1" label="Name" sort="?name"
   110              primary="true" />
   111     <splitter class="tree-splitter" />
   112     <treecol id="PurpsColumn" flex="2" label="Purpose" sort="?purp" />
   113     <splitter class="tree-splitter" />
   114     <treecol id="SuccessColumn" flex="0" label="Success"  />
   115     <splitter class="tree-splitter" observes="obs_orig_success" />
   116     <treecol id="OrigSuccessColumn" flex="0" label="Previously" 
   117              observes="obs_orig_success" />
   118   </treecols>
   119   <template>
   120     <rule>
   121       <conditions>
   122         <content uri="?uri" />
   123         <member container="?uri" child="?subheading" />
   124         <triple subject="?subheading"
   125                 predicate="http://home.netscape.com/NC-rdf#purp"
   126                 object="?purp" />
   127       </conditions>
   129       <bindings>
   130         <binding subject="?subheading"
   131                  predicate="http://home.netscape.com/NC-rdf#name"
   132                  object="?name" />
   133         <binding subject="?subheading"
   134                  predicate="http://home.netscape.com/NC-rdf#succ"
   135                  object="?succ" />
   136         <binding subject="?subheading"
   137                  predicate="http://home.netscape.com/NC-rdf#orig_succ"
   138                  object="?orig_succ" />
   139       </bindings>
   141       <action>
   142         <treechildren>
   143           <treeitem uri="?subheading">
   144             <treerow>
   145               <treecell ref="NameColumn"    label="?name" />
   146               <treecell ref="PurpsColumn"   label="?purp" />
   147               <treecell ref="SuccessColumn" label="?succ"
   148                         properties="success ?succ"/>
   149               <treecell ref="OrigSuccessColumn" label="?orig_succ"
   150                         properties="success ?orig_succ" />
   151             </treerow>
   152           </treeitem>
   153         </treechildren>
   154       </action>
   155     </rule>
   156     <rule>
   157       <conditions>
   158         <content uri="?uri" />
   159         <member container="?uri" child="?subheading" />
   160       </conditions>
   162       <bindings>
   163         <binding subject="?subheading"
   164                  predicate="http://home.netscape.com/NC-rdf#dir"
   165                  object="?dir" />
   166         <binding subject="?subheading"
   167                  predicate="http://home.netscape.com/NC-rdf#succCount"
   168                  object="?succ" />
   169         <binding subject="?subheading"
   170                  predicate="http://home.netscape.com/NC-rdf#failCount"
   171                  object="?fail" />
   172         <binding subject="?subheading"
   173                  predicate="http://home.netscape.com/NC-rdf#orig_succCount"
   174                  object="?orig_succ" />
   175         <binding subject="?subheading"
   176                  predicate="http://home.netscape.com/NC-rdf#orig_failCount"
   177                  object="?orig_fail" />
   178       </bindings>
   180       <action>
   181         <treechildren>
   182           <treeitem uri="?subheading">
   183             <treerow>
   184               <treecell ref="NameColumn"    label="?dir" />
   185               <treecell ref="PurpsColumn"   label="" />
   186               <treecell ref="SuccessColumn" label="?succ / ?fail" />
   187               <treecell ref="OrigSuccessColumn" label="?orig_succ / ?orig_fail" />
   188             </treerow>
   189           </treeitem>
   190         </treechildren>
   191       </action>
   192     </rule>
   193   </template>
   194 </tree>
   195 <iframe style="visibility:hidden; height:0px;" id="hiddenHtml" />
   196 </window>

mercurial