8297241: Update sun/java2d/DirectX/OnScreenRenderingResizeTest/OnScreenRenderingResizeTest.java
8297153: sun/java2d/DirectX/OnScreenRenderingResizeTest/OnScreenRenderingResizeTest.java fails again Reviewed-by: serb
This commit is contained in:
parent
45d1807ad3
commit
3c0949824e
@ -63,7 +63,10 @@ public class OnScreenRenderingResizeTest {
|
||||
private static Frame frame;
|
||||
|
||||
private static void createAndShowGUI() {
|
||||
frame = new Frame();
|
||||
frame = new Frame() {
|
||||
public void paint(Graphics g) {}
|
||||
public void update(Graphics g) {}
|
||||
};
|
||||
frame.setBackground(bgColor);
|
||||
frame.setUndecorated(true);
|
||||
frame.setAlwaysOnTop(true);
|
||||
@ -148,6 +151,9 @@ public class OnScreenRenderingResizeTest {
|
||||
incH = -incH;
|
||||
}
|
||||
frame.setSize(w, h);
|
||||
if (robot != null) {
|
||||
robot.waitForIdle();
|
||||
}
|
||||
cnt = 0;
|
||||
}
|
||||
// try to put the device into non-default state, for example,
|
||||
|
Loading…
Reference in New Issue
Block a user