< prev index next >

test/java/awt/event/MouseEvent/MultipleMouseButtonsTest/MultipleMouseButtonsTest.java

Print this page
rev 14989 : 8160974: [TESTBUG] Mark more headful tests with @key headful.


  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.*;
  26 import java.util.ArrayList;
  27 
  28 import test.java.awt.event.helpers.lwcomponents.LWButton;
  29 import test.java.awt.event.helpers.lwcomponents.LWList;
  30 
  31 import static jdk.testlibrary.Asserts.*;
  32 
  33 /*
  34  * @test

  35  * @bug 8043126
  36  * @summary Check whether correct modifiers set when multiple mouse buttons were pressed;
  37  *          check number of received events.
  38  *
  39  * @library ../../../../../lib/testlibrary/  ../../helpers/lwcomponents/
  40  * @build LWComponent
  41  * @build LWButton
  42  * @build LWList
  43  * @build ExtendedRobot
  44  * @run main/timeout=600 MultipleMouseButtonsTest
  45  */
  46 
  47 
  48 public class MultipleMouseButtonsTest implements MouseListener {
  49 
  50     private final static int robotDelay = 1000;
  51 
  52     private final ExtendedRobot robot;
  53     private final Object lock = new Object();
  54 




  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.*;
  26 import java.util.ArrayList;
  27 
  28 import test.java.awt.event.helpers.lwcomponents.LWButton;
  29 import test.java.awt.event.helpers.lwcomponents.LWList;
  30 
  31 import static jdk.testlibrary.Asserts.*;
  32 
  33 /*
  34  * @test
  35  * @key headful
  36  * @bug 8043126
  37  * @summary Check whether correct modifiers set when multiple mouse buttons were pressed;
  38  *          check number of received events.
  39  *
  40  * @library ../../../../../lib/testlibrary/  ../../helpers/lwcomponents/
  41  * @build LWComponent
  42  * @build LWButton
  43  * @build LWList
  44  * @build ExtendedRobot
  45  * @run main/timeout=600 MultipleMouseButtonsTest
  46  */
  47 
  48 
  49 public class MultipleMouseButtonsTest implements MouseListener {
  50 
  51     private final static int robotDelay = 1000;
  52 
  53     private final ExtendedRobot robot;
  54     private final Object lock = new Object();
  55 


< prev index next >