<AWT Dev> Patch for SelectionAutoscrollTest

Man Wong mwong at redhat.com
Tue Jun 30 13:25:08 PDT 2009


   I have encountered the jtreg failure of the selection autoscroll test (openjdk/jdk/test/java/awt/TextArea/UsingWithMouse/SelectionAutoscrollTest). I found out the problem occurs because in the test, the mouse is not pressed for long enough outside the text box to allow the highlight to reach the bottom (even though the behaviour is still correct). Hence, all that was needed was to add a delay on the mouse press event after it had moved outside of the text box. The only concern I have is whether the duration for the delay I set is reasonable (I have it at 2s) or would a more generalized approach be more suitable (i.e. find a way to check if the highlighting is still moving on to the next character). Let me know what you think and thanks.

   By the way, my system is Fedora 10 32 bits running on gnome 2.24.3, icedtea6 build with openjdk6.

Man Lung Wong
-------------- next part --------------
A non-text attachment was scrubbed...
Name: icedtea-jtreg-selectionautoscrolltest.patch
Type: text/x-patch
Size: 1034 bytes
Desc: not available
Url : http://mail.openjdk.java.net/pipermail/awt-dev/attachments/20090630/6faab124/icedtea-jtreg-selectionautoscrolltest.patch 

More information about the awt-dev mailing list