test/java/awt/Mixing/AWT_Mixing/SimpleOverlappingTestBase.java

Print this page




   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.*;
  26 import javax.swing.*;

  27 
  28 /**
  29  * Base class for testing overlapping of Swing and AWT component put into one frame.
  30  * Validates drawing and event delivery at the components intersection.
  31  * <p> See base class for usage
  32  *
  33  * @author Sergey Grinev
  34 */
  35 public abstract class SimpleOverlappingTestBase extends OverlappingTestBase {
  36 
  37     {
  38         testEmbeddedFrame = true;
  39     }
  40 
  41     /**
  42      * Event delivery validation. If set to true (default) tested lightweight component will be provided
  43      * with mouse listener which should be called in order for test to pass.
  44      */
  45     protected final boolean useDefaultClickValidation;
  46 




   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.*;
  26 import javax.swing.*;
  27 import test.java.awt.regtesthelpers.Util;
  28 
  29 /**
  30  * Base class for testing overlapping of Swing and AWT component put into one frame.
  31  * Validates drawing and event delivery at the components intersection.
  32  * <p> See base class for usage
  33  *
  34  * @author Sergey Grinev
  35 */
  36 public abstract class SimpleOverlappingTestBase extends OverlappingTestBase {
  37 
  38     {
  39         testEmbeddedFrame = true;
  40     }
  41 
  42     /**
  43      * Event delivery validation. If set to true (default) tested lightweight component will be provided
  44      * with mouse listener which should be called in order for test to pass.
  45      */
  46     protected final boolean useDefaultClickValidation;
  47