< prev index next >
jdk/test/java/awt/Mixing/OpaqueTest.java
Print this page
*** 22,36 ****
*/
/*
@test
@key headful
! @bug 4811096
@summary Tests whether opaque and non-opaque components mix correctly
@author anthony.petrov@...: area=awt.mixing
@library ../regtesthelpers
- @modules java.desktop/com.sun.awt
@build Util
@run main OpaqueTest
*/
--- 22,35 ----
*/
/*
@test
@key headful
! @bug 4811096 8173409
@summary Tests whether opaque and non-opaque components mix correctly
@author anthony.petrov@...: area=awt.mixing
@library ../regtesthelpers
@build Util
@run main OpaqueTest
*/
*** 42,52 ****
import java.awt.*;
import java.awt.event.*;
import javax.swing.*;
import test.java.awt.regtesthelpers.Util;
- import com.sun.awt.AWTUtilities;
public class OpaqueTest
{
--- 41,50 ----
*** 123,138 ****
// Now perform the click at this point for 9 times
// In the middle of the process toggle the opaque
// flag value.
for (int i = 0; i < 9; ++i) {
if (i == 3) {
! AWTUtilities.setComponentMixingCutoutShape(light,
! new Rectangle());
}
if (i == 6) {
! AWTUtilities.setComponentMixingCutoutShape(light,
! null);
}
robot.mousePress(InputEvent.BUTTON1_MASK);
robot.mouseRelease(InputEvent.BUTTON1_MASK);
Util.waitForIdle(robot);
--- 121,134 ----
// Now perform the click at this point for 9 times
// In the middle of the process toggle the opaque
// flag value.
for (int i = 0; i < 9; ++i) {
if (i == 3) {
! light.setMixingCutoutShape(new Rectangle());
}
if (i == 6) {
! light.setMixingCutoutShape(null);
}
robot.mousePress(InputEvent.BUTTON1_MASK);
robot.mouseRelease(InputEvent.BUTTON1_MASK);
Util.waitForIdle(robot);
< prev index next >