changeset 7806:ad4062c4253d

6560348: PIT : java/awt/xembed/server/RunTestXEmbed.java fails Summary: Testcase correction. Reviewed-by: anthony
author ptisnovs
date Wed, 22 Dec 2010 14:37:15 +0100
parents ca2d2a7e657a
children d026f4f9c119
files jdk/test/java/awt/xembed/server/TestXEmbedServer.java
diffstat 1 files changed, 5 insertions(+), 2 deletions(-) [+]
line wrap: on
line diff
--- 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);
     }