< prev index next >

test/jdk/java/awt/Clipboard/HTMLTransferTest/HTMLTransferTest.java

Print this page

        

*** 20,49 **** * or visit www.oracle.com if you need additional information or have any * questions. */ /* @bug 6392086 8014725 ! @summary Tests basic DnD functionality in an applet ! @author Alexey Utkin, Semyon Sadetsky ! @run applet HTMLTransferTest.html */ - /** - * HTMLTransferTest.java - * - * summary: tests that HTMLs of all supported native HTML formats - * are transfered properly - */ - - import java.applet.Applet; import java.awt.*; import java.awt.datatransfer.*; import java.io.*; ! ! public class HTMLTransferTest extends Applet { public static final int CODE_NOT_RETURNED = 100; public static final int CODE_CONSUMER_TEST_FAILED = 101; public static final int CODE_FAILURE = 102; public static DataFlavor[] HTMLFlavors = null; public static DataFlavor SyncFlavor = null; --- 20,42 ---- * or visit www.oracle.com if you need additional information or have any * questions. */ /* + @test + @key headful @bug 6392086 8014725 ! @summary tests that HTMLs of all supported native HTML formats are transfered ! properly ! @run main/othervm HTMLTransferTest */ import java.awt.*; import java.awt.datatransfer.*; import java.io.*; ! public class HTMLTransferTest { public static final int CODE_NOT_RETURNED = 100; public static final int CODE_CONSUMER_TEST_FAILED = 101; public static final int CODE_FAILURE = 102; public static DataFlavor[] HTMLFlavors = null; public static DataFlavor SyncFlavor = null;
*** 64,73 **** --- 57,72 ---- } private THTMLProducer imPr; private int returnCode = CODE_NOT_RETURNED; + public static void main(final String[] args) { + HTMLTransferTest app = new HTMLTransferTest(); + app.init(); + app.start(); + } + public void init() { initImpl(); } // init()
< prev index next >