< prev index next >

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

Print this page

        

@@ -20,30 +20,23 @@
  * or visit www.oracle.com if you need additional information or have any
  * questions.
  */
 
 /*
+  @test
+  @key headful
   @bug 6392086 8014725
-  @summary Tests basic DnD functionality in an applet
-  @author Alexey Utkin, Semyon Sadetsky
-  @run applet HTMLTransferTest.html
+  @summary tests that HTMLs of all supported native HTML formats are transfered
+           properly
+  @run main/othervm HTMLTransferTest
 */
 
-/**
- * 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 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,10 +57,16 @@
     }
 
     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 >