6560348: PIT : java/awt/xembed/server/RunTestXEmbed.java fails
Summary: Testcase correction.
Reviewed-by: anthony
--- a/jdk/test/java/awt/xembed/server/TestXEmbedServer.java Tue Dec 21 11:32:34 2010 +0000
+++ b/jdk/test/java/awt/xembed/server/TestXEmbedServer.java Wed Dec 22 14:37:15 2010 +0100
@@ -31,6 +31,9 @@
import java.awt.datatransfer.*;
public abstract class TestXEmbedServer {
+ // vertical position of server AND client windows
+ private static final int VERTICAL_POSITION = 200;
+
private static final Logger log = Logger.getLogger("test.xembed");
Frame f;
Canvas client;
@@ -161,10 +164,10 @@
dummy = new JFrame("Dummy");
dummy.getContentPane().add(new JButton("Button"));
dummy.setDefaultCloseOperation(WindowConstants.DISPOSE_ON_CLOSE);
- dummy.setBounds(0, 0, 100, 100);
+ dummy.setBounds(0, VERTICAL_POSITION, 100, 100);
dummy.setVisible(true);
- f.setBounds(300, 0, 800, 300);
+ f.setBounds(300, VERTICAL_POSITION, 800, 300);
f.setVisible(true);
}