W3C home > Mailing lists > Public > www-dom-ts@w3.org > June 2002

RE: Status check

From: Arnold, Curt <Curt.Arnold@hyprotech.com>
Date: Tue, 4 Jun 2002 10:20:18 -0600
Message-ID: <4D62A7266F41D611B92C00E018C1C19C0DD5C6@thor.aeathtl.com>
To: "'bclary@netscape.com'" <bclary@netscape.com>
Cc: "'www-dom-ts@w3.org'" <www-dom-ts@w3.org>

Bob Clary wrote:
>Can't the build process copy the jsUnitCore.js script into the test 
>directory?

That can be done but it fixes the test to only working with one specific
version of JSUnit (or versions of JSUnit with a compatible jsUnitCore.js).
If you tried to run the test suite with a latter version of JSUnit, bad
things might happen.

If the implementation of the methods could be moved out of jsUnitCore.js and
replaced by proxies that do something like:

function assertTrue(msg, value) {
   //  delegate to implementation in test runner
   //    actual statement is bogus
   navigator.frames(2).assertTrue(msg,value);
}

Then you'd be able to switch to later versions of JSUnit without needed to
replace the jsUnitCore.js files in your test directories.
Received on Tuesday, 4 June 2002 12:17:08 UTC

This archive was generated by hypermail 2.3.1 : Tuesday, 6 January 2015 20:34:05 UTC