dom/xslt/tests/buster/buster.xul

changeset 0
6474c204b198
     1.1 --- /dev/null	Thu Jan 01 00:00:00 1970 +0000
     1.2 +++ b/dom/xslt/tests/buster/buster.xul	Wed Dec 31 06:09:35 2014 +0100
     1.3 @@ -0,0 +1,196 @@
     1.4 +<?xml version="1.0"?><!-- -*- Mode: xml; tab-width: 2; indent-tabs-mode: nil -*- -->
     1.5 +<!-- This Source Code Form is subject to the terms of the Mozilla Public
     1.6 +   - License, v. 2.0. If a copy of the MPL was not distributed with this
     1.7 +   - file, You can obtain one at http://mozilla.org/MPL/2.0/. -->
     1.8 +
     1.9 +<?xml-stylesheet href="chrome://communicator/skin/" type="text/css"?>
    1.10 +<?xml-stylesheet href="buster.css" type="text/css"?>
    1.11 +
    1.12 +<?xul-overlay href="chrome://global/content/globalOverlay.xul"?>
    1.13 +<?xul-overlay href="chrome://communicator/content/utilityOverlay.xul"?>
    1.14 +
    1.15 +<window id="XalanBuster"
    1.16 +        xmlns="http://www.mozilla.org/keymaster/gatekeeper/there.is.only.xul"
    1.17 +        onload="onLoad()" onunload="onUnload()"
    1.18 +        title="Xalan testcase harness"
    1.19 +        persist="width,height"
    1.20 +        width="800"
    1.21 +        height="600"
    1.22 +        orient="vertical">
    1.23 +<script type="application/x-javascript" src="buster-statics.js" />
    1.24 +<script type="application/x-javascript" src="buster-test.js" />
    1.25 +<script type="application/x-javascript" src="buster-view.js" />
    1.26 +<script type="application/x-javascript" src="buster-handlers.js" />
    1.27 +<script type="application/x-javascript" src="result-view.js" />
    1.28 +<script type="application/x-javascript" src="buster-files.js" />
    1.29 +<script type="application/x-javascript" src="DumpDOM.js" />
    1.30 +<script type="application/x-javascript" src="DiffDOM.js" />
    1.31 +
    1.32 +<commands id="busterKing">
    1.33 +  <commandset id="buster_file_cmds">
    1.34 +    <command id="cmd_fl_save" oncommand="goDoCommand('cmd_fl_save')" />
    1.35 +    <command id="cmd_fl_import" oncommand="goDoCommand('cmd_fl_import')"/>
    1.36 +  </commandset>
    1.37 +  <commandset id="buster_test_cmds">
    1.38 +    <command id="cmd_tst_run" oncommand="goDoCommand('cmd_tst_run')" />
    1.39 +    <command id="cmd_tst_runall" oncommand="goDoCommand('cmd_tst_runall')" />
    1.40 +  </commandset>
    1.41 +  <commandset id="commands">
    1.42 +    <command id="cmd_quit"/>
    1.43 +    <command id="cmd_close" oncommand="window.close();"/>
    1.44 +  </commandset>
    1.45 +</commands>
    1.46 +
    1.47 +<keyset>
    1.48 +  <key id="key_quit"/>
    1.49 +  <key id="key_close"/>
    1.50 +</keyset>
    1.51 +
    1.52 +<broadcasterset>
    1.53 +  <broadcaster id="obs_orig_success" hidden="true"/>
    1.54 +  <broadcaster id="not_yet" disabled="true"/>
    1.55 +</broadcasterset>
    1.56 +
    1.57 +
    1.58 +<menubar>
    1.59 +  <menu id="menu_File" label="File" accesskey="f">
    1.60 +    <menupopup id="menu_FilePopup">
    1.61 +      <menuitem label="Save results ..." accesskey="s"
    1.62 +                observes="cmd_fl_save"/>
    1.63 +      <menuitem label="Import results ..." accesskey="i"
    1.64 +                observes="cmd_fl_import"/>
    1.65 +      <menuitem id="menu_close"/>
    1.66 +    </menupopup>
    1.67 +  </menu>
    1.68 +  <menu id="busterTests" label="Tests" accesskey="t">
    1.69 +    <menupopup id="tests-popup">
    1.70 +      <menuitem label="run a test" accesskey="r"
    1.71 +                observes="cmd_tst_run"/>
    1.72 +      <menuitem label="run all tests" accesskey="a"
    1.73 +                observes="cmd_tst_runall"/>
    1.74 +    </menupopup>
    1.75 +  </menu>
    1.76 +</menubar>
    1.77 +
    1.78 +<popupset>
    1.79 +  <popup id="itemcontext" onpopupshowing="return view.fillItemContext();">
    1.80 +    <menuitem label="View Test" oncommand="onNewResultView(event)"/>
    1.81 +  </popup>
    1.82 +</popupset>
    1.83 +
    1.84 +<hbox>
    1.85 +  <button label="check all" oncommand="check(true)" observes="not_yet"/>
    1.86 +  <button label="uncheck all" oncommand="check(false)" observes="not_yet"/>
    1.87 +  <button label="reset success" oncommand="view.prune_ds()" />
    1.88 +  <button label="run checked tests" oncommand="view.onRun()" />
    1.89 +</hbox>
    1.90 +<hbox>
    1.91 +  <label value="Xalan index: " class="head"/>
    1.92 +  <textbox id="xalan_rdf" persist="url" crop="end" size="40"/>
    1.93 +  <button label="browse..." oncommand="view.browseForRDF()" />
    1.94 +</hbox>
    1.95 +<hbox>
    1.96 +<groupbox orient="horizontal"><caption label="search" />
    1.97 +  <button label="Search for " oncommand="select()" observes="not_yet"/>
    1.98 +  <textbox style="width: 10em;" id="search-name" persist="value" /><label value=" in " />
    1.99 +  <menulist id="search-field" persist="data" observes="not_yet">
   1.100 +    <menupopup>
   1.101 +      <menuitem value="1" label="Name" />
   1.102 +      <menuitem value="2" label="Purpose" />
   1.103 +      <menuitem value="3" label="Comment" />
   1.104 +    </menupopup>
   1.105 +  </menulist>
   1.106 +</groupbox>
   1.107 +<spacer flex="1" /></hbox>
   1.108 +
   1.109 +<tree id="out" flex="1" flags="dont-build-content" hidecolumnpicker="true"
   1.110 +      datasources="rdf:null" ref="urn:root" context="itemcontext">
   1.111 +  <treecols>
   1.112 +    <treecol id="NameColumn" flex="1" label="Name" sort="?name"
   1.113 +             primary="true" />
   1.114 +    <splitter class="tree-splitter" />
   1.115 +    <treecol id="PurpsColumn" flex="2" label="Purpose" sort="?purp" />
   1.116 +    <splitter class="tree-splitter" />
   1.117 +    <treecol id="SuccessColumn" flex="0" label="Success"  />
   1.118 +    <splitter class="tree-splitter" observes="obs_orig_success" />
   1.119 +    <treecol id="OrigSuccessColumn" flex="0" label="Previously" 
   1.120 +             observes="obs_orig_success" />
   1.121 +  </treecols>
   1.122 +  <template>
   1.123 +    <rule>
   1.124 +      <conditions>
   1.125 +        <content uri="?uri" />
   1.126 +        <member container="?uri" child="?subheading" />
   1.127 +        <triple subject="?subheading"
   1.128 +                predicate="http://home.netscape.com/NC-rdf#purp"
   1.129 +                object="?purp" />
   1.130 +      </conditions>
   1.131 +
   1.132 +      <bindings>
   1.133 +        <binding subject="?subheading"
   1.134 +                 predicate="http://home.netscape.com/NC-rdf#name"
   1.135 +                 object="?name" />
   1.136 +        <binding subject="?subheading"
   1.137 +                 predicate="http://home.netscape.com/NC-rdf#succ"
   1.138 +                 object="?succ" />
   1.139 +        <binding subject="?subheading"
   1.140 +                 predicate="http://home.netscape.com/NC-rdf#orig_succ"
   1.141 +                 object="?orig_succ" />
   1.142 +      </bindings>
   1.143 +
   1.144 +      <action>
   1.145 +        <treechildren>
   1.146 +          <treeitem uri="?subheading">
   1.147 +            <treerow>
   1.148 +              <treecell ref="NameColumn"    label="?name" />
   1.149 +              <treecell ref="PurpsColumn"   label="?purp" />
   1.150 +              <treecell ref="SuccessColumn" label="?succ"
   1.151 +                        properties="success ?succ"/>
   1.152 +              <treecell ref="OrigSuccessColumn" label="?orig_succ"
   1.153 +                        properties="success ?orig_succ" />
   1.154 +            </treerow>
   1.155 +          </treeitem>
   1.156 +        </treechildren>
   1.157 +      </action>
   1.158 +    </rule>
   1.159 +    <rule>
   1.160 +      <conditions>
   1.161 +        <content uri="?uri" />
   1.162 +        <member container="?uri" child="?subheading" />
   1.163 +      </conditions>
   1.164 +
   1.165 +      <bindings>
   1.166 +        <binding subject="?subheading"
   1.167 +                 predicate="http://home.netscape.com/NC-rdf#dir"
   1.168 +                 object="?dir" />
   1.169 +        <binding subject="?subheading"
   1.170 +                 predicate="http://home.netscape.com/NC-rdf#succCount"
   1.171 +                 object="?succ" />
   1.172 +        <binding subject="?subheading"
   1.173 +                 predicate="http://home.netscape.com/NC-rdf#failCount"
   1.174 +                 object="?fail" />
   1.175 +        <binding subject="?subheading"
   1.176 +                 predicate="http://home.netscape.com/NC-rdf#orig_succCount"
   1.177 +                 object="?orig_succ" />
   1.178 +        <binding subject="?subheading"
   1.179 +                 predicate="http://home.netscape.com/NC-rdf#orig_failCount"
   1.180 +                 object="?orig_fail" />
   1.181 +      </bindings>
   1.182 +
   1.183 +      <action>
   1.184 +        <treechildren>
   1.185 +          <treeitem uri="?subheading">
   1.186 +            <treerow>
   1.187 +              <treecell ref="NameColumn"    label="?dir" />
   1.188 +              <treecell ref="PurpsColumn"   label="" />
   1.189 +              <treecell ref="SuccessColumn" label="?succ / ?fail" />
   1.190 +              <treecell ref="OrigSuccessColumn" label="?orig_succ / ?orig_fail" />
   1.191 +            </treerow>
   1.192 +          </treeitem>
   1.193 +        </treechildren>
   1.194 +      </action>
   1.195 +    </rule>
   1.196 +  </template>
   1.197 +</tree>
   1.198 +<iframe style="visibility:hidden; height:0px;" id="hiddenHtml" />
   1.199 +</window>

mercurial