[rfc][icedtea-web] Refactor of LiveConnect Tests Version 2

Jie Kang jkang at redhat.com
Wed Jun 4 18:59:06 UTC 2014


Hello,

This patch refactors the LiveConnect Tests and also modifies the Makefile.am in order to allow for shared resources to be used during test runs. E.g. the refactored tests all use the same function located in file JSTest.js. This is located in tests/shared/resources and when dist-tests are run, there is a new stamp compile-copy-shared-resources.stamp that is created that also moves the files in the shared folder into the appropriate folder for test runs. This currently works for reproducer tests and may be expanded on in the future.


Regards,

Jie Kang

----- Original Message -----
> Hello,
> 
> This patch refactors the majority of LiveConnect Tests (JS to Java and
> vice-versa) fixing the race condition between asynchronous JS and the
> J-applet. Code format is standardized and deprecated code usage is
> removed/replaced. Note that the file JSTest.js is duplicated for all
> LiveConnect Tests. This is because every single test requires the same
> function in JSTest.js to prevent the race condition from occurring. However,
> the test suite is not designed to easily have this code appear only once
> while also having tests be properly separate (ie. every single test-case
> should be able to run by itself without relying on another test case). If
> anyone has any suggestions on how to better implement this please say.
> 
> 
> Thanks,
> 
> Jie Kang
-------------- next part --------------
A non-text attachment was scrubbed...
Name: liveconnect-testrefactor-2.patch
Type: text/x-patch
Size: 128587 bytes
Desc: not available
URL: <http://mail.openjdk.java.net/pipermail/distro-pkg-dev/attachments/20140604/b296fd71/liveconnect-testrefactor-2-0001.patch>


More information about the distro-pkg-dev mailing list