summaryrefslogtreecommitdiffstats
path: root/dom/xslt/tests/buster/buster.xul
blob: 7191dff4ec9a604a12823980f46dd843fc20f5a2 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
<?xml version="1.0"?><!-- -*- Mode: xml; tab-width: 2; indent-tabs-mode: nil -*- -->
<!-- This Source Code Form is subject to the terms of the Mozilla Public
   - License, v. 2.0. If a copy of the MPL was not distributed with this
   - file, You can obtain one at http://mozilla.org/MPL/2.0/. -->

<?xml-stylesheet href="chrome://communicator/skin/" type="text/css"?>
<?xml-stylesheet href="buster.css" type="text/css"?>

<?xul-overlay href="chrome://global/content/globalOverlay.xul"?>
<?xul-overlay href="chrome://communicator/content/utilityOverlay.xul"?>

<window id="XalanBuster"
        xmlns="http://www.mozilla.org/keymaster/gatekeeper/there.is.only.xul"
        onload="onLoad()" onunload="onUnload()"
        title="Xalan testcase harness"
        persist="width,height"
        width="800"
        height="600"
        orient="vertical">
<script type="application/x-javascript" src="buster-statics.js" />
<script type="application/x-javascript" src="buster-test.js" />
<script type="application/x-javascript" src="buster-view.js" />
<script type="application/x-javascript" src="buster-handlers.js" />
<script type="application/x-javascript" src="result-view.js" />
<script type="application/x-javascript" src="buster-files.js" />
<script type="application/x-javascript" src="DumpDOM.js" />
<script type="application/x-javascript" src="DiffDOM.js" />

<commands id="busterKing">
  <commandset id="buster_file_cmds">
    <command id="cmd_fl_save" oncommand="goDoCommand('cmd_fl_save')" />
    <command id="cmd_fl_import" oncommand="goDoCommand('cmd_fl_import')"/>
  </commandset>
  <commandset id="buster_test_cmds">
    <command id="cmd_tst_run" oncommand="goDoCommand('cmd_tst_run')" />
    <command id="cmd_tst_runall" oncommand="goDoCommand('cmd_tst_runall')" />
  </commandset>
  <commandset id="commands">
    <command id="cmd_quit"/>
    <command id="cmd_close" oncommand="window.close();"/>
  </commandset>
</commands>

<keyset>
  <key id="key_quit"/>
  <key id="key_close"/>
</keyset>

<broadcasterset>
  <broadcaster id="obs_orig_success" hidden="true"/>
  <broadcaster id="not_yet" disabled="true"/>
</broadcasterset>


<menubar>
  <menu id="menu_File" label="File" accesskey="f">
    <menupopup id="menu_FilePopup">
      <menuitem label="Save results ..." accesskey="s"
                observes="cmd_fl_save"/>
      <menuitem label="Import results ..." accesskey="i"
                observes="cmd_fl_import"/>
      <menuitem id="menu_close"/>
    </menupopup>
  </menu>
  <menu id="busterTests" label="Tests" accesskey="t">
    <menupopup id="tests-popup">
      <menuitem label="run a test" accesskey="r"
                observes="cmd_tst_run"/>
      <menuitem label="run all tests" accesskey="a"
                observes="cmd_tst_runall"/>
    </menupopup>
  </menu>
</menubar>

<popupset>
  <popup id="itemcontext" onpopupshowing="return view.fillItemContext();">
    <menuitem label="View Test" oncommand="onNewResultView(event)"/>
  </popup>
</popupset>

<hbox>
  <button label="check all" oncommand="check(true)" observes="not_yet"/>
  <button label="uncheck all" oncommand="check(false)" observes="not_yet"/>
  <button label="reset success" oncommand="view.prune_ds()" />
  <button label="run checked tests" oncommand="view.onRun()" />
</hbox>
<hbox>
  <label value="Xalan index: " class="head"/>
  <textbox id="xalan_rdf" persist="url" crop="end" size="40"/>
  <button label="browse..." oncommand="view.browseForRDF()" />
</hbox>
<hbox>
<groupbox orient="horizontal"><caption label="search" />
  <button label="Search for " oncommand="select()" observes="not_yet"/>
  <textbox style="width: 10em;" id="search-name" persist="value" /><label value=" in " />
  <menulist id="search-field" persist="data" observes="not_yet">
    <menupopup>
      <menuitem value="1" label="Name" />
      <menuitem value="2" label="Purpose" />
      <menuitem value="3" label="Comment" />
    </menupopup>
  </menulist>
</groupbox>
<spacer flex="1" /></hbox>

<tree id="out" flex="1" flags="dont-build-content" hidecolumnpicker="true"
      datasources="rdf:null" ref="urn:root" context="itemcontext">
  <treecols>
    <treecol id="NameColumn" flex="1" label="Name" sort="?name"
             primary="true" />
    <splitter class="tree-splitter" />
    <treecol id="PurpsColumn" flex="2" label="Purpose" sort="?purp" />
    <splitter class="tree-splitter" />
    <treecol id="SuccessColumn" flex="0" label="Success"  />
    <splitter class="tree-splitter" observes="obs_orig_success" />
    <treecol id="OrigSuccessColumn" flex="0" label="Previously" 
             observes="obs_orig_success" />
  </treecols>
  <template>
    <rule>
      <conditions>
        <content uri="?uri" />
        <member container="?uri" child="?subheading" />
        <triple subject="?subheading"
                predicate="http://home.netscape.com/NC-rdf#purp"
                object="?purp" />
      </conditions>

      <bindings>
        <binding subject="?subheading"
                 predicate="http://home.netscape.com/NC-rdf#name"
                 object="?name" />
        <binding subject="?subheading"
                 predicate="http://home.netscape.com/NC-rdf#succ"
                 object="?succ" />
        <binding subject="?subheading"
                 predicate="http://home.netscape.com/NC-rdf#orig_succ"
                 object="?orig_succ" />
      </bindings>

      <action>
        <treechildren>
          <treeitem uri="?subheading">
            <treerow>
              <treecell ref="NameColumn"    label="?name" />
              <treecell ref="PurpsColumn"   label="?purp" />
              <treecell ref="SuccessColumn" label="?succ"
                        properties="success ?succ"/>
              <treecell ref="OrigSuccessColumn" label="?orig_succ"
                        properties="success ?orig_succ" />
            </treerow>
          </treeitem>
        </treechildren>
      </action>
    </rule>
    <rule>
      <conditions>
        <content uri="?uri" />
        <member container="?uri" child="?subheading" />
      </conditions>

      <bindings>
        <binding subject="?subheading"
                 predicate="http://home.netscape.com/NC-rdf#dir"
                 object="?dir" />
        <binding subject="?subheading"
                 predicate="http://home.netscape.com/NC-rdf#succCount"
                 object="?succ" />
        <binding subject="?subheading"
                 predicate="http://home.netscape.com/NC-rdf#failCount"
                 object="?fail" />
        <binding subject="?subheading"
                 predicate="http://home.netscape.com/NC-rdf#orig_succCount"
                 object="?orig_succ" />
        <binding subject="?subheading"
                 predicate="http://home.netscape.com/NC-rdf#orig_failCount"
                 object="?orig_fail" />
      </bindings>

      <action>
        <treechildren>
          <treeitem uri="?subheading">
            <treerow>
              <treecell ref="NameColumn"    label="?dir" />
              <treecell ref="PurpsColumn"   label="" />
              <treecell ref="SuccessColumn" label="?succ / ?fail" />
              <treecell ref="OrigSuccessColumn" label="?orig_succ / ?orig_fail" />
            </treerow>
          </treeitem>
        </treechildren>
      </action>
    </rule>
  </template>
</tree>
<iframe style="visibility:hidden; height:0px;" id="hiddenHtml" />
</window>