From a81e8c7b451c9612db99444c56b73f6337a7fc55 Mon Sep 17 00:00:00 2001 From: "axel%pike.org" Date: Thu, 27 Mar 2003 20:17:54 +0000 Subject: [PATCH] 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 --- .../transformiix/resources/buster/buster-test.js | 8 +++----- 1 file changed, 3 insertions(+), 5 deletions(-) diff --git a/mozilla/extensions/transformiix/resources/buster/buster-test.js b/mozilla/extensions/transformiix/resources/buster/buster-test.js index 4c46a6a6da5..5f693efc7dc 100644 --- a/mozilla/extensions/transformiix/resources/buster/buster-test.js +++ b/mozilla/extensions/transformiix/resources/buster/buster-test.js @@ -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,