Details
-
Bug
-
Resolution: Fixed
-
P4
-
1.4.2_11
-
b02
-
x86
-
windows
Description
Testcase 4306756 from regression workspace for 142 is failing, Testcase needs to be modified. This bug is same as 4839979.
Testcase <workspace_142>/test/javax/swing/JTextField/4306756 is not updated with the fix for 4839979, whereas same testcase is updated in tiger workspace and the same test is passing for 1.4.2_11-b01 also from Tiger workspace.
-----------------------
Difference of the java file from 142 workspace an tiger workspace is as follows,
diff <workspace_142>/test/javax/swing/JTextField/4306756/bug4306756.java <workspace_150>/test/javax/swing/JTextField/4306756/bug4306756.java
4a5,6
> @library ../../regtesthelpers
> @build Util
26a29,30
> private boolean finished = false;
>
30d33
< f.addWindowListener(new TestStateListener());
40a44,47
> synchronized (bug4306756.this) {
> finished = true;
> bug4306756.this.notifyAll();
> }
50a58,71
> public void start() {
> Util.blockTillDisplayed(tf);
> timer = new Timer();
> timer.schedule(new RobotTask(), 3000);
> synchronized (this) {
> if (!finished) {
> try {
> wait();
> } catch (Exception e) {
> }
> }
> }
> }
>
67,72d87
< class TestStateListener extends WindowAdapter {
< public void windowOpened(WindowEvent ev) {
< timer = new Timer();
< timer.schedule(new RobotTask(), 1000);
< }
< }
Testcase <workspace_142>/test/javax/swing/JTextField/4306756 is not updated with the fix for 4839979, whereas same testcase is updated in tiger workspace and the same test is passing for 1.4.2_11-b01 also from Tiger workspace.
-----------------------
Difference of the java file from 142 workspace an tiger workspace is as follows,
diff <workspace_142>/test/javax/swing/JTextField/4306756/bug4306756.java <workspace_150>/test/javax/swing/JTextField/4306756/bug4306756.java
4a5,6
> @library ../../regtesthelpers
> @build Util
26a29,30
> private boolean finished = false;
>
30d33
< f.addWindowListener(new TestStateListener());
40a44,47
> synchronized (bug4306756.this) {
> finished = true;
> bug4306756.this.notifyAll();
> }
50a58,71
> public void start() {
> Util.blockTillDisplayed(tf);
> timer = new Timer();
> timer.schedule(new RobotTask(), 3000);
> synchronized (this) {
> if (!finished) {
> try {
> wait();
> } catch (Exception e) {
> }
> }
> }
> }
>
67,72d87
< class TestStateListener extends WindowAdapter {
< public void windowOpened(WindowEvent ev) {
< timer = new Timer();
< timer.schedule(new RobotTask(), 1000);
< }
< }
Attachments
Issue Links
- relates to
-
JDK-4839979 TEST_BUG: RegTest javax/swing/text/View/4353673/bug4353673.java failed, Win32
- Closed