jdk/src/solaris/classes/sun/awt/X11/XEmbedServerTester.java
changeset 439 3488710b02f8
parent 438 2ae294e4518c
child 3938 ef327bd847c0
equal deleted inserted replaced
438:2ae294e4518c 439:3488710b02f8
     1 /*
     1 /*
     2  * Copyright 2003-2007 Sun Microsystems, Inc.  All Rights Reserved.
     2  * Copyright 2003-2008 Sun Microsystems, Inc.  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.  Sun designates this
     7  * published by the Free Software Foundation.  Sun designates this
   258 
   258 
   259     public void test4_4() {
   259     public void test4_4() {
   260         mapped = 0;
   260         mapped = 0;
   261         embedCompletely();
   261         embedCompletely();
   262         sleep(1000);
   262         sleep(1000);
   263         if (XlibUtil.getWindowMapState(window.getWindow()) != XlibWrapper.IsUnmapped) {
   263         if (XlibUtil.getWindowMapState(window.getWindow()) != IsUnmapped) {
   264             throw new RuntimeException("Client has been mapped");
   264             throw new RuntimeException("Client has been mapped");
   265         }
   265         }
   266     }
   266     }
   267 
   267 
   268     public void test6_1_1() {
   268     public void test6_1_1() {
   611         if (!windowActive) {
   611         if (!windowActive) {
   612             throw new RuntimeException("Window is not active");
   612             throw new RuntimeException("Window is not active");
   613         }
   613         }
   614     }
   614     }
   615     private void checkMapped() {
   615     private void checkMapped() {
   616         if (XlibUtil.getWindowMapState(window.getWindow()) == XlibWrapper.IsUnmapped) {
   616         if (XlibUtil.getWindowMapState(window.getWindow()) == IsUnmapped) {
   617             throw new RuntimeException("Client is not mapped");
   617             throw new RuntimeException("Client is not mapped");
   618         }
   618         }
   619     }
   619     }
   620     private void checkNotMapped() {
   620     private void checkNotMapped() {
   621         if (XlibUtil.getWindowMapState(window.getWindow()) != XlibWrapper.IsUnmapped) {
   621         if (XlibUtil.getWindowMapState(window.getWindow()) != IsUnmapped) {
   622             throw new RuntimeException("Client is mapped");
   622             throw new RuntimeException("Client is mapped");
   623         }
   623         }
   624     }
   624     }
   625 
   625 
   626     private void sendMessage(int message) {
   626     private void sendMessage(int message) {