Skip to content
Permalink
Browse files
8196019: java/awt/Window/Grab/GrabTest.java fails on Windows
Reviewed-by: prr, jdv
  • Loading branch information
mrserb committed Apr 7, 2020
1 parent ead83e6 commit 8eb7c3efb1cdef6ea2f4a67da59d8eae540633c8
Showing 2 changed files with 7 additions and 6 deletions.
@@ -235,7 +235,6 @@ java/awt/TrayIcon/TrayIconMouseTest/TrayIconMouseTest.java 8150540 windows-all
java/awt/TrayIcon/TrayIconPopup/TrayIconPopupClickTest.java 8150540 windows-all,macosx-all
java/awt/TrayIcon/TrayIconPopup/TrayIconPopupTest.java 8150540 windows-all
java/awt/TrayIcon/PopupMenuLeakTest/PopupMenuLeakTest.java 8196440 linux-all
java/awt/Window/Grab/GrabTest.java 8196019 windows-all
java/awt/Window/ShapedAndTranslucentWindows/SetShapeAndClick.java 8197936 macosx-all
java/awt/Window/ShapedAndTranslucentWindows/SetShapeDynamicallyAndClick.java 8013450 macosx-all
java/awt/Window/ShapedAndTranslucentWindows/ShapedTranslucentWindowClick.java 8013450 macosx-all
@@ -1,5 +1,5 @@
/*
* Copyright (c) 2012, 2016, Oracle and/or its affiliates. All rights reserved.
* Copyright (c) 2012, 2020, Oracle and/or its affiliates. All rights reserved.
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
*
* This code is free software; you can redistribute it and/or modify it
@@ -77,7 +77,7 @@ public void mousePressed(MouseEvent e) {
});

f1 = new Frame("OtherFrame");
f1.setBounds(700, 100, 200, 200);
f1.setBounds(700, 100, 300, 300);

w = new Window(f);
w.setLayout(new FlowLayout());
@@ -89,7 +89,7 @@ public void actionPerformed(ActionEvent e) {
}
});
w.add(b);
w.setBounds(400, 100, 200, 200);
w.setBounds(400, 100, 300, 300);
w.setBackground(Color.blue);
w.addMouseListener(new MouseAdapter() {
public void mousePressed(MouseEvent e) {
@@ -103,11 +103,13 @@ public void mousePressed(MouseEvent e) {

frame = new Frame();
window1 = new Window(frame);
window1.setBounds(0, 0, 100, 100);
window1.setSize(200, 200);
window1.setLocationRelativeTo(null);
window1.setBackground(Color.blue);

window2 = new Window(window1);
window2.setBounds(0, 0, 50, 50);
window2.setSize(100, 100);
window2.setLocationRelativeTo(null);
window2.setBackground(Color.green);

tk = (sun.awt.SunToolkit)Toolkit.getDefaultToolkit();

0 comments on commit 8eb7c3e

Please sign in to comment.