dom/xslt/tests/buster/buster.xul

Thu, 22 Jan 2015 13:21:57 +0100

author
Michael Schloh von Bennewitz <michael@schloh.com>
date
Thu, 22 Jan 2015 13:21:57 +0100
branch
TOR_BUG_9701
changeset 15
b8a032363ba2
permissions
-rw-r--r--

Incorporate requested changes from Mozilla in review:
https://bugzilla.mozilla.org/show_bug.cgi?id=1123480#c6

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

mercurial