< prev index next >

test/java/awt/MenuBar/RemoveHelpMenu/RemoveHelpMenu.java

Print this page
rev 14836 : 8159690: [TESTBUG] Mark headful tests with @key headful.


  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.Frame;
  25 import java.awt.Menu;
  26 import java.awt.MenuBar;
  27 
  28 /**
  29  * @test

  30  * @bug 6475361
  31  * @author Sergey Bylokhov
  32  */
  33 public final class RemoveHelpMenu {
  34 
  35     public static void main(final String[] args) {
  36         final Frame frame = new Frame("RemoveHelpMenu Test");
  37         try {
  38             frame.pack();
  39             // peer exists
  40             test1(getMenuBar(frame));
  41             test2(getMenuBar(frame));
  42             test3(getMenuBar(frame));
  43             test4(getMenuBar(frame));
  44         } finally {
  45             frame.dispose();
  46         }
  47         // peer is null
  48         test1(getMenuBar(frame));
  49         test2(getMenuBar(frame));




  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.Frame;
  25 import java.awt.Menu;
  26 import java.awt.MenuBar;
  27 
  28 /**
  29  * @test
  30  * @key headful
  31  * @bug 6475361
  32  * @author Sergey Bylokhov
  33  */
  34 public final class RemoveHelpMenu {
  35 
  36     public static void main(final String[] args) {
  37         final Frame frame = new Frame("RemoveHelpMenu Test");
  38         try {
  39             frame.pack();
  40             // peer exists
  41             test1(getMenuBar(frame));
  42             test2(getMenuBar(frame));
  43             test3(getMenuBar(frame));
  44             test4(getMenuBar(frame));
  45         } finally {
  46             frame.dispose();
  47         }
  48         // peer is null
  49         test1(getMenuBar(frame));
  50         test2(getMenuBar(frame));


< prev index next >