< prev index next >

test/java/awt/Window/ShapedAndTranslucentWindows/TranslucentChoice.java

Print this page
rev 14836 : 8159690: [TESTBUG] Mark headful tests with @key headful.
   1 /*
   2  * Copyright (c) 2010, 2014, Oracle and/or its affiliates. All rights reserved.
   3  * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
   4  *
   5  * This code is free software; you can redistribute it and/or modify it
   6  * under the terms of the GNU General Public License version 2 only, as
   7  * published by the Free Software Foundation.
   8  *
   9  * This code is distributed in the hope that it will be useful, but WITHOUT
  10  * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
  11  * FITNESS FOR A PARTICULAR PURPOSE.  See the GNU General Public License
  12  * version 2 for more details (a copy is included in the LICENSE file that
  13  * accompanied this code).
  14  *
  15  * You should have received a copy of the GNU General Public License version
  16  * 2 along with this work; if not, write to the Free Software Foundation,
  17  * Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA.
  18  *
  19  * Please contact Oracle, 500 Oracle Parkway, Redwood Shores, CA 94065 USA
  20  * or visit www.oracle.com if you need additional information or have any
  21  * questions.
  22  */
  23 
  24 import java.awt.*;
  25 import java.awt.event.MouseAdapter;
  26 import java.awt.event.MouseEvent;
  27 
  28 /*
  29  * @test

  30  * @summary Check if a Choice present in a window set with opacity less than 1.0
  31  *          shows a translucent drop down
  32  *
  33  * Test Description: Check if TRANSLUCENT Translucency type is supported on the
  34  *      current platform. Proceed if supported. Show a window which contains an
  35  *      awt Choice and set with opacity less than 1.0. Another Window having a
  36  *      canvas component drawn with an image can be used as the background for
  37  *      the test window. Click on the ComboBox to show the drop down. Check if
  38  *      the drop down appears translucent. Repeat this for Window, Dialog and
  39  *      Frame.
  40  * Expected Result: If TRANSLUCENT Translucency type is supported, the drop down
  41  *      should appear translucent.
  42  *
  43  * @author mrkam
  44  * @author Dmitriy Ermashov (dmitriy.ermashov@oracle.com)
  45  * @library ../../../../lib/testlibrary
  46  * @build Common ExtendedRobot
  47  * @run main TranslucentChoice
  48  */
  49 


   1 /*
   2  * Copyright (c) 2010, 2016, Oracle and/or its affiliates. All rights reserved.
   3  * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
   4  *
   5  * This code is free software; you can redistribute it and/or modify it
   6  * under the terms of the GNU General Public License version 2 only, as
   7  * published by the Free Software Foundation.
   8  *
   9  * This code is distributed in the hope that it will be useful, but WITHOUT
  10  * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
  11  * FITNESS FOR A PARTICULAR PURPOSE.  See the GNU General Public License
  12  * version 2 for more details (a copy is included in the LICENSE file that
  13  * accompanied this code).
  14  *
  15  * You should have received a copy of the GNU General Public License version
  16  * 2 along with this work; if not, write to the Free Software Foundation,
  17  * Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA.
  18  *
  19  * Please contact Oracle, 500 Oracle Parkway, Redwood Shores, CA 94065 USA
  20  * or visit www.oracle.com if you need additional information or have any
  21  * questions.
  22  */
  23 
  24 import java.awt.*;
  25 import java.awt.event.MouseAdapter;
  26 import java.awt.event.MouseEvent;
  27 
  28 /*
  29  * @test
  30  * @key headful
  31  * @summary Check if a Choice present in a window set with opacity less than 1.0
  32  *          shows a translucent drop down
  33  *
  34  * Test Description: Check if TRANSLUCENT Translucency type is supported on the
  35  *      current platform. Proceed if supported. Show a window which contains an
  36  *      awt Choice and set with opacity less than 1.0. Another Window having a
  37  *      canvas component drawn with an image can be used as the background for
  38  *      the test window. Click on the ComboBox to show the drop down. Check if
  39  *      the drop down appears translucent. Repeat this for Window, Dialog and
  40  *      Frame.
  41  * Expected Result: If TRANSLUCENT Translucency type is supported, the drop down
  42  *      should appear translucent.
  43  *
  44  * @author mrkam
  45  * @author Dmitriy Ermashov (dmitriy.ermashov@oracle.com)
  46  * @library ../../../../lib/testlibrary
  47  * @build Common ExtendedRobot
  48  * @run main TranslucentChoice
  49  */
  50 


< prev index next >