npob, fixup testsuite to catch exceptions from importStylesheet, too, as compiled stylesheets throw those

git-svn-id: svn://10.0.0.236/trunk@140405 18797224-902f-48f8-a5cc-f745e15eee43
This commit is contained in:
axel%pike.org
2003-03-27 20:17:54 +00:00
parent 4cb4e33c8f
commit a81e8c7b45

View File

@@ -307,12 +307,10 @@ runItem.prototype =
doTransform : function()
{
this.kProcessor.reset();
this.kProcessor.importStylesheet(this.mStyleDoc);
this.mResDoc = this.kProcessor.transformToDocument(this.mSourceDoc);
//var proc = new XSLTProcessor;
//proc.importStylesheet(this.mStyleDoc);
//this.mResDoc = proc.transformToDocument(this.mSourceDoc);
try {
this.kProcessor.importStylesheet(this.mStyleDoc);
this.mResDoc =
this.kProcessor.transformToDocument(this.mSourceDoc);
this.mRefDoc.normalize();
isGood = DiffDOM(this.mResDoc.documentElement,
this.mRefDoc.documentElement,