equal
deleted
inserted
replaced
1 /* |
1 /* |
2 * Copyright (c) 2014, 2015, Oracle and/or its affiliates. All rights reserved. |
2 * Copyright (c) 2014, 2016, Oracle and/or its affiliates. All rights reserved. |
3 * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER. |
3 * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER. |
4 * |
4 * |
5 * This code is free software; you can redistribute it and/or modify it |
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 |
6 * under the terms of the GNU General Public License version 2 only, as |
7 * published by the Free Software Foundation. |
7 * published by the Free Software Foundation. |
44 * <p>This test verify if AWT components are drawn correctly being partially shown through viewport |
44 * <p>This test verify if AWT components are drawn correctly being partially shown through viewport |
45 * <p>See <a href="http://monaco.sfbay.sun.com/detail.jsf?cr=6778882">CR6778882</a> for details |
45 * <p>See <a href="http://monaco.sfbay.sun.com/detail.jsf?cr=6778882">CR6778882</a> for details |
46 * <p>See base class for test info. |
46 * <p>See base class for test info. |
47 */ |
47 */ |
48 /* |
48 /* |
49 @test |
49 * @test |
50 @bug 6778882 |
50 * @key headful |
51 @summary Viewport overlapping test for each AWT component |
51 * @bug 6778882 |
52 @author sergey.grinev@oracle.com: area=awt.mixing |
52 * @summary Viewport overlapping test for each AWT component |
53 @library /java/awt/patchlib ../../regtesthelpers |
53 * @author sergey.grinev@oracle.com: area=awt.mixing |
54 @modules java.desktop/sun.awt |
54 * @library /java/awt/patchlib ../../regtesthelpers |
55 java.desktop/java.awt.peer |
55 * @modules java.desktop/sun.awt |
56 @build java.desktop/java.awt.Helper |
56 * java.desktop/java.awt.peer |
57 @build Util |
57 * @build java.desktop/java.awt.Helper |
58 @run main ViewportOverlapping |
58 * @build Util |
|
59 * @run main ViewportOverlapping |
59 */ |
60 */ |
60 public class ViewportOverlapping extends OverlappingTestBase { |
61 public class ViewportOverlapping extends OverlappingTestBase { |
61 |
62 |
62 private volatile int frameClicked; |
63 private volatile int frameClicked; |
63 private Point hLoc; |
64 private Point hLoc; |