test/jdk/javax/imageio/AppletResourceTest.java
changeset 54231 e4813eded7cb
parent 47216 71c04702a3d5
equal deleted inserted replaced
54230:d9d9655bb077 54231:e4813eded7cb
     1 /*
     1 /*
     2  * Copyright (c) 2003, 2017, Oracle and/or its affiliates. All rights reserved.
     2  * Copyright (c) 2003, 2018, 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.
    22  */
    22  */
    23 
    23 
    24 /*
    24 /*
    25  * @test
    25  * @test
    26  * @bug 4481957
    26  * @bug 4481957
    27  * @key headful
       
    28  * @summary Tests that applet-supplied ImageReader, ImageWriter, and
    27  * @summary Tests that applet-supplied ImageReader, ImageWriter, and
    29  *          IIOMetadataFormat implementations do not throw unexpected exceptions
    28  *          IIOMetadataFormat implementations do not throw unexpected exceptions
    30  *          when indirectly attempting to access ResourceBundles
    29  *          when indirectly attempting to access ResourceBundles
    31  * @run main AppletResourceTest
    30  * @run main AppletResourceTest
    32  * @run applet AppletResourceTest.html
       
    33  */
    31  */
    34 
    32 
    35 import java.applet.Applet;
       
    36 import java.awt.Rectangle;
    33 import java.awt.Rectangle;
    37 import java.awt.image.BufferedImage;
    34 import java.awt.image.BufferedImage;
    38 import java.io.IOException;
    35 import java.io.IOException;
    39 import java.util.Iterator;
    36 import java.util.Iterator;
    40 import java.util.ListResourceBundle;
    37 import java.util.ListResourceBundle;
    51 import javax.imageio.metadata.IIOMetadata;
    48 import javax.imageio.metadata.IIOMetadata;
    52 import javax.imageio.spi.ImageReaderSpi;
    49 import javax.imageio.spi.ImageReaderSpi;
    53 
    50 
    54 import org.w3c.dom.Node;
    51 import org.w3c.dom.Node;
    55 
    52 
    56 public class AppletResourceTest extends Applet {
    53 public class AppletResourceTest {
    57 
    54 
    58     public static void main(String[] argv) {
    55     public static void main(String[] argv) {
    59         new AppletResourceTest().init();
    56         new AppletResourceTest().init();
    60     }
    57     }
    61 
    58