<Swing Dev> [13] RFR 8194048:Regression automated test '/open/test/jdk/javax/swing/text/DefaultCaret/HidingSelection/HidingSelectionTest.java' fails

Tejpal Rebari tejpal.rebari at oracle.com
Mon Jun 17 10:21:17 UTC 2019


Hi All,
Please review a test-fix for JDK-8194048 where the test fails on windows 7 because, when selection ownership goes to second window the selection is still shown in first window.
In Windows and Mac platform when some text field is selected on second Window, the selected text in first Window remains selected, while clears in Linux Platform.

In Windows 10 and Mac the screenshot image of text field on first window after the some text is selected on second window, differ from the screenshot image of the same text field initially when there was only one window and the text field was selected ,(It differ in terms of colour) but it remains same in Windows 7. That's why the test is failing only on Windows 7.

Proposed solution is to check that the selected text field in first window should be shown selected after some text field is selected on second window in windows 7, 
while it should not be shown selected in other platform.

Bug		: https://bugs.openjdk.java.net/browse/JDK-8194048 <https://bugs.openjdk.java.net/browse/JDK-8194048>
webrev 	: http://cr.openjdk.java.net/~pkbalakr/Tejpal/8194048/webrev0/ <http://cr.openjdk.java.net/~pkbalakr/Tejpal/8194048/webrev0/>


Thanks and regards
Tejpal
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://mail.openjdk.java.net/pipermail/swing-dev/attachments/20190617/7e207a54/attachment.html>


More information about the swing-dev mailing list