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

This commit is contained in:
axel%pike.org 2003-03-27 20:17:54 +00:00
Родитель 1d73fc958e
Коммит 094d7378ee
1 изменённых файлов: 3 добавлений и 5 удалений

Просмотреть файл

@ -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,