Re: ReTest has landed

Hi Maciej.

Maciej Stachowiak:
> As requested, I broke out the test harness and generator script from  
> the Window test suite into a separate module called ReTest:
> 
> http://dev.w3.org/cvsweb/2006/webapi/ReTest/
> 
> I also updated the WindowTestSuite module to use it (although I just  
> noticed that it needs a README now to explain how to regenerate it).
> 
> Feel free to send patches for improvements.

I have made some modifications to ReTest and consequently the
WindowTestSuite to handle Java tests as well as Ecmascript.  Since I
don't have CVS access, and some of the files I have are binaries (Java
class/jar files), a diff wouldn't work so well.  So I've put my modified
versions here:

  https://svn.mcc.id.au/svn/webapi-test/new/ReTest/
  https://svn.mcc.id.au/svn/webapi-test/new/WindowTestSuite/

Summary of changes (since I haven't modified the ChangeLog files):

  * Factored out language independent functionality from bin/retest into
    a ReTest::Language class, and added ReTest::Language::Ecmascript
    and ReTest::Language::Java classes to implement language specifics.

  * Modified location of some resource files.  The js-test-* and
    TEMPLATE.* files that were previously in lib/ReTest are now in
    lib/ReTest/ecmascript.

  * lib/ReTest/java contains Java source files (in the sources
    directory) for the Java test framework.  AbstractTestHarness.java
    is an abstract base class for test harnesses.  Currently one
    concrete class, SVGTestHarness, is provided.  AbstractTest.java
    is an abstract base class for test cases.

    This directory also contains the compiled (*.class) versions of
    these Java classes.  These can be rebuilt by running the rebuild
    script.  This should be done from the MakeMaker-made Makefile, but I
    am unfamiliar with it.

    The lib directory contains jar files of the SVG DOM (so that SVG
    test classes can implement EventListenerInitializer) and the Window
    DOM.

    The test framework classes are in the Java package
    org.w3c.webapi.test, and test cases are assumed to be in
    org.w3c.webapi.tests.

  * Updated docs/ReTest.html to document the assertions available in
    Java tests.

  * Common script files for a given language get published into
    publish/shared/<language> rather than publish/shared, now.

My Perl is a little write-only; feel free to clean it up.

I fixed a bug in Batik[1] where different jar files referenced from
script elements couldn't see each others' classes, and now the SVG Java
test has a common jar (publish/shared/svg/java/java-test-svg.jar) that
is loaded after an individual test jar.  It passes the current Window
tests now.

Thanks,

Cameron

[1] The branch where the Web API interface implementations are going:
    http://svn.apache.org/repos/asf/xmlgraphics/batik/branches/webapi/

-- 
 Cameron McCormack			ICQ: 26955922
 cam (at) mcc.id.au			MSN: cam (at) mcc.id.au
 http://mcc.id.au/			JBR: heycam (at) jabber.org

Received on Sunday, 26 March 2006 05:20:57 UTC