<AWT Dev>  Review request for CR 7145406 - [macosx] Migrate Apple tests from macosx-port to 7u
alexandr.scherbatiy at oracle.com
Thu Feb 28 05:02:11 PST 2013
On 2/27/2013 5:45 PM, Konstantin Shefov wrote:
> I replaced Thread.sleep() with toolkit.realSync() and made swing
> mwthod to run on EDT.
> New webrev: http://cr.openjdk.java.net/~kshefov/7145406/webrev.01
>> - Is it possible to run the test with jtreg or JUnit is necessary
>> for the test invocation?
I run the test and got the compilation error:
TestDoublePaint.java:34: error: package junit.framework does not exist.
It seems it is because the '@run main TestDoublePaint' jtreg task
does not put the junit jar to the test jdk class path.
The '@run junit TestDoublePaint' task passes the test. (I use the
JTReg 4.1 b05 from http://download.java.net/openjdk/jtreg/)
It is also interesting is it necessary to have the main method for
the junit task?
>> - line: 68 Thread.sleep(2000); // 2 seconds should be plenty
>> enough to catch 2 repaints
>> Is it possible to use the toolkit.realSync() method here?
>> - Swing classes should be created and used on the EDT.
More information about the awt-dev