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 /*
26 @test
27 @bug 4718897
28 @summary tests that a Unicode string can be transferred between JVMs.
29 @author das@sparc.spb.su area=datatransfer
30 @library ../../regtesthelpers/process
31 @build ProcessResults ProcessCommunicator
32 @run main UnicodeTransferTest
33 */
34
35 import java.awt.datatransfer.*;
36 import java.awt.*;
37 import java.text.Normalizer;
38
39 import test.java.awt.regtesthelpers.process.ProcessResults;
40 import test.java.awt.regtesthelpers.process.ProcessCommunicator;
41
42 public class UnicodeTransferTest {
43 private static final Toolkit tk = Toolkit.getDefaultToolkit();
44 private static final Clipboard clipboard = tk.getSystemClipboard();
45 private static final Transferable t = new StringSelection(Util.getTestString());
46
|
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 /*
26 @test
27 @key headful
28 @bug 4718897
29 @summary tests that a Unicode string can be transferred between JVMs.
30 @author das@sparc.spb.su area=datatransfer
31 @library ../../regtesthelpers/process
32 @build ProcessResults ProcessCommunicator
33 @run main UnicodeTransferTest
34 */
35
36 import java.awt.datatransfer.*;
37 import java.awt.*;
38 import java.text.Normalizer;
39
40 import test.java.awt.regtesthelpers.process.ProcessResults;
41 import test.java.awt.regtesthelpers.process.ProcessCommunicator;
42
43 public class UnicodeTransferTest {
44 private static final Toolkit tk = Toolkit.getDefaultToolkit();
45 private static final Clipboard clipboard = tk.getSystemClipboard();
46 private static final Transferable t = new StringSelection(Util.getTestString());
47
|