[rfc][icedtea-web] second modification to Makefile - all icons from testcases
Jana Fabrikova
jfabriko at redhat.com
Thu May 2 07:43:30 PDT 2013
Hello,
please find the attached patch (+one image file) for the second change
to the Makefile.am (and corresponding reproducer which uses the
changes).
The change:
During the processing of one reproducer all the files from
reproducer/testcases were compiled.
The new possibility is to include also non-java files (images...) in the
reproducer/testcases directories. *.java files are compiled and
processed as usual, non-java files are all copied into
tests.build/test-extensions-tests directory which is on classpath for
the reproducers, unit tests, and code-coverage.
Reason for this change:
The testcases of reproducers that use AWTFramework may sometimes contain
an image of a button or other component of applet/application that
should be found in the screenshot. These images should be copied
somewhere to be accessible from the testcase via classloader.
ChangeLog:
* Makefile.am:
Change in processing the goal
(stamps/compile-reproducers-testcases.stamp):
All .java files from reproducers testcases directory are
compiled, all non-java files are copied into the
TEST_EXTENSIONS_TESTS_DIR, i.e.
tests.build/test-extensions-tests directory
*
tests/reproducers/simple/JavawsAWTRobotFindsButton/resources/javaws-awtrobot-finds-button.jnlp:
jnlp file for displaying the applet
*
tests/reproducers/simple/JavawsAWTRobotFindsButton/srcs/JavawsAWTRobotFindsButton.java:
the applet used in the reproducer
*
tests/reproducers/simple/JavawsAWTRobotFindsButton/testcases/JavawsAWTRobotFindsButtonTest.java:
adding 2 tests: that an icon is loaded, and that the button is
identified from the given icon and clicked by awt robot
*
tests/reproducers/simple/JavawsAWTRobotFindsButton/testcases/buttonA.png:
the icon of the wanted button
cheers,
Jana
-------------- next part --------------
A non-text attachment was scrubbed...
Name: modifying_makefile_all_icons.patch
Type: text/x-patch
Size: 14582 bytes
Desc: not available
Url : http://mail.openjdk.java.net/pipermail/distro-pkg-dev/attachments/20130502/542c3086/modifying_makefile_all_icons.patch
-------------- next part --------------
A non-text attachment was scrubbed...
Name: buttonA.png
Type: image/png
Size: 452 bytes
Desc: not available
Url : http://mail.openjdk.java.net/pipermail/distro-pkg-dev/attachments/20130502/542c3086/buttonA.png
More information about the distro-pkg-dev
mailing list