зеркало из https://github.com/mozilla/pjs.git
npob, fixup testsuite to catch exceptions from importStylesheet, too, as compiled stylesheets throw those
This commit is contained in:
Родитель
1d73fc958e
Коммит
094d7378ee
|
@ -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,
|
||||
|
|
Загрузка…
Ссылка в новой задаче