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
7 * published by the Free Software Foundation.
8 *
9 * This code is distributed in the hope that it will be useful, but WITHOUT
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 /*
25 @test
26 @bug 8005932
27 @summary Java 7 on mac os x only provides text clipboard formats
28 @author mikhail.cherkasov@oracle.com
29 @library ../../regtesthelpers
30 @library ../../regtesthelpers/process
31 @build Util
32 @build ProcessResults ProcessCommunicator
33
34
35 @run applet/othervm MissedHtmlAndRtfBug.html
36 */
37 import java.awt.*;
38 import java.awt.datatransfer.DataFlavor;
39 import java.awt.event.*;
40 import java.applet.Applet;
41 import java.io.File;
42 import java.util.ArrayList;
43
44 import test.java.awt.regtesthelpers.process.ProcessCommunicator;
45 import test.java.awt.regtesthelpers.process.ProcessResults;
46 import test.java.awt.regtesthelpers.Util;
47 import sun.awt.OSInfo;
48
49 import static java.lang.Thread.sleep;
50
51 public class MissedHtmlAndRtfBug extends Applet {
52 public void init() {
53 setLayout(new BorderLayout());
54 }//End init()
55
56 public void start() {
|
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
7 * published by the Free Software Foundation.
8 *
9 * This code is distributed in the hope that it will be useful, but WITHOUT
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 /*
25 @bug 8005932
26 @summary Java 7 on mac os x only provides text clipboard formats
27 @author mikhail.cherkasov@oracle.com
28 @library ../../regtesthelpers
29 @library ../../regtesthelpers/process
30 @build Util
31 @build ProcessResults ProcessCommunicator
32 @run applet/othervm MissedHtmlAndRtfBug.html
33 */
34
35 import java.awt.*;
36 import java.awt.datatransfer.DataFlavor;
37 import java.awt.event.*;
38 import java.applet.Applet;
39 import java.io.File;
40 import java.util.ArrayList;
41
42 import test.java.awt.regtesthelpers.process.ProcessCommunicator;
43 import test.java.awt.regtesthelpers.process.ProcessResults;
44 import test.java.awt.regtesthelpers.Util;
45 import sun.awt.OSInfo;
46
47 import static java.lang.Thread.sleep;
48
49 public class MissedHtmlAndRtfBug extends Applet {
50 public void init() {
51 setLayout(new BorderLayout());
52 }//End init()
53
54 public void start() {
|