mirror of
https://github.com/openjdk/jdk.git
synced 2026-02-05 16:09:09 +00:00
8196019: java/awt/Window/Grab/GrabTest.java fails on Windows
Reviewed-by: prr, jdv
This commit is contained in:
parent
ead83e6b63
commit
8eb7c3efb1
@ -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 class GrabTest {
|
||||
});
|
||||
|
||||
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 class GrabTest {
|
||||
}
|
||||
});
|
||||
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 class GrabTest {
|
||||
|
||||
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();
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user