diff --git a/extensions/transformiix/resources/buster/buster.xul b/extensions/transformiix/resources/buster/buster.xul
index c5fa50814b0b..15d370bece6c 100644
--- a/extensions/transformiix/resources/buster/buster.xul
+++ b/extensions/transformiix/resources/buster/buster.xul
@@ -33,7 +33,7 @@
-
+
@@ -49,8 +49,8 @@
-
-
+
+
@@ -59,21 +59,23 @@
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
diff --git a/extensions/transformiix/resources/buster/txTools.css b/extensions/transformiix/resources/buster/txTools.css
index 164b1ac2a728..030b47e0f752 100644
--- a/extensions/transformiix/resources/buster/txTools.css
+++ b/extensions/transformiix/resources/buster/txTools.css
@@ -31,6 +31,14 @@ column {
margin-right: 2px;
}
-junkwindow {
+#tests{
overflow: auto;
-}
\ No newline at end of file
+}
+
+.succeeded {
+ background-color: green;
+}
+
+.failed {
+ background-color: red;
+}
diff --git a/extensions/transformiix/resources/buster/txTools.js b/extensions/transformiix/resources/buster/txTools.js
index 873e056910ff..ef8d5fb53149 100644
--- a/extensions/transformiix/resources/buster/txTools.js
+++ b/extensions/transformiix/resources/buster/txTools.js
@@ -84,8 +84,10 @@ txDocSet.prototype = {
if (!isGood){
dump(" and failed\n\n");
this.mVerbose=true;
+ handle_result(this.mName,false);
} else {
dump(" and succeeded\n\n");
+ handle_result(this.mName,true);
}
if (this.mVerbose){
dump("Result:\n");
diff --git a/extensions/transformiix/resources/buster/xulTxTools.js b/extensions/transformiix/resources/buster/xulTxTools.js
index 6499d607e8bf..4c80128f91bd 100644
--- a/extensions/transformiix/resources/buster/xulTxTools.js
+++ b/extensions/transformiix/resources/buster/xulTxTools.js
@@ -23,7 +23,7 @@
var pop_last=0, pop_chunk=25;
var isinited=false;
var xalan_base, xalan_xml, xalan_elems, xalan_length, content_row, target;
-var pref;
+var matchRE, matchNameTag, matchFieldTag;
function loaderstuff(eve) {
var ns = "http://www.mozilla.org/keymaster/gatekeeper/there.is.only.xul";
@@ -33,8 +33,11 @@ function loaderstuff(eve) {
content_row.appendChild(document.createElementNS(ns,"text"));
content_row.appendChild(document.createElementNS(ns,"text"));
content_row.appendChild(document.createElementNS(ns,"text"));
+ content_row.setAttribute("class", "notrun");
netscape.security.PrivilegeManager.enablePrivilege('UniversalXPConnect');
target = document.getElementById("xalan_grid");
+ matchNameTag = document.getElementById("search-name");
+ matchFieldTag = document.getElementById("search-field");
xalan_base = document.getElementById("xalan_base");
xalan_xml = document.implementation.createDocument("","",null);
xalan_xml.addEventListener("load", xalanIndexLoaded, false);
@@ -46,12 +49,11 @@ function loaderstuff(eve) {
function xalanIndexLoaded(e) {
xalan_elems = xalan_xml.getElementsByTagName("test");
xalan_length = xalan_elems.length;
- populate_xalan();
return true;
}
function refresh_xalan() {
- while(target.hasChildNodes()) target.removeChild(target.lastChild);
+ while(target.childNodes.length>1) target.removeChild(target.lastChild);
xalan_elems = xalan_xml.getElementsByTagName("test");
xalan_length = xalan_elems.length;
populate_xalan();
@@ -61,22 +63,29 @@ function refresh_xalan() {
function populate_xalan() {
var upper=pop_last+pop_chunk;
- var current,test,i,j, re=/\/err\//;
+ var current,test,i,j, lName, re=/\/err\//;
+ var searchField = matchFieldTag.getAttribute("data");
+ var matchValue = matchNameTag.value;
+ if (matchValue.length==0) matchValue='.';
+ var matchRE = new RegExp(matchValue);
for (i=pop_last;i3) return;
+ var searchField = matchFieldTag.getAttribute("data");
+ var matchRE = new RegExp(matchNameTag.value);
var nds = target.childNodes;
for (i=1;i