8150535: [TEST_BUG] fix @library for test/java/awt/TrayIcon/MouseMovedTest/MouseMovedTest.java
8151033: [TEST_BUG] typo in java/awt/MouseInfo/PointerInfoCrashTest.java: no sun.awt.peer 8151037: [TEST_BUG] javax/swing/Action/8133039/bug8133039.java requires @modules 8152301: [TESTBUG] Compilation errors in client lib test files Reviewed-by: serb, alexsch
This commit is contained in:
parent
458f8d2597
commit
c0deba4235
jdk/test
java/awt
Mixing/AWT_Mixing
MouseInfo
Toolkit/Headless/WrappedToolkitTest
TrayIcon/MouseMovedTest
xembed/server
javax/swing/Action/8133039
@ -50,9 +50,10 @@ import test.java.awt.regtesthelpers.Util;
|
|||||||
@bug 6778882
|
@bug 6778882
|
||||||
@summary Viewport overlapping test for each AWT component
|
@summary Viewport overlapping test for each AWT component
|
||||||
@author sergey.grinev@oracle.com: area=awt.mixing
|
@author sergey.grinev@oracle.com: area=awt.mixing
|
||||||
@library ../../regtesthelpers
|
@library /java/awt/patchlib ../../regtesthelpers
|
||||||
@modules java.desktop/sun.awt
|
@modules java.desktop/sun.awt
|
||||||
java.desktop/java.awt.peer
|
java.desktop/java.awt.peer
|
||||||
|
@build java.desktop/java.awt.Helper
|
||||||
@build Util
|
@build Util
|
||||||
@run main ViewportOverlapping
|
@run main ViewportOverlapping
|
||||||
*/
|
*/
|
||||||
|
@ -32,7 +32,7 @@ import sun.awt.ComponentFactory;
|
|||||||
* @test
|
* @test
|
||||||
* @bug 8143316
|
* @bug 8143316
|
||||||
* @modules java.desktop/java.awt.peer
|
* @modules java.desktop/java.awt.peer
|
||||||
* java.desktop/sun.awt.peer
|
* java.desktop/sun.awt
|
||||||
* @summary Crash Trend in 1.9.0-ea-b93 (sun.awt.DefaultMouseInfoPeer.fillPointWithCoords)
|
* @summary Crash Trend in 1.9.0-ea-b93 (sun.awt.DefaultMouseInfoPeer.fillPointWithCoords)
|
||||||
*/
|
*/
|
||||||
public class PointerInfoCrashTest {
|
public class PointerInfoCrashTest {
|
||||||
|
@ -105,17 +105,6 @@ if [ -z "${TESTJAVA}" ] ; then
|
|||||||
fi
|
fi
|
||||||
echo "JDK under test is: $TESTJAVA"
|
echo "JDK under test is: $TESTJAVA"
|
||||||
|
|
||||||
##Deal with .class files:
|
|
||||||
#if [ -n "${STANDALONE}" ] ; then
|
|
||||||
# # then compile all .java files (if there are any) into .class files
|
|
||||||
# if [ -a *.java ]; then
|
|
||||||
# ${TESTJAVA}/bin/javac$ ./*.java ;
|
|
||||||
# fi
|
|
||||||
# # else in harness so copy all the class files from where jtreg put them
|
|
||||||
# # over to the scratch directory this test is running in.
|
|
||||||
# else cp ${TESTCLASSES}/*.class . ;
|
|
||||||
#fi
|
|
||||||
#
|
|
||||||
#if in test harness, then copy the entire directory that the test is in over
|
#if in test harness, then copy the entire directory that the test is in over
|
||||||
# to the scratch directory. This catches any support files needed by the test.
|
# to the scratch directory. This catches any support files needed by the test.
|
||||||
if [ -z "${STANDALONE}" ] ;
|
if [ -z "${STANDALONE}" ] ;
|
||||||
|
@ -30,7 +30,7 @@ import java.awt.image.BufferedImage;
|
|||||||
* @bug 7153700
|
* @bug 7153700
|
||||||
* @summary Check for mouseMoved event for java.awt.TrayIcon
|
* @summary Check for mouseMoved event for java.awt.TrayIcon
|
||||||
* @author Dmitriy Ermashov (dmitriy.ermashov@oracle.com)
|
* @author Dmitriy Ermashov (dmitriy.ermashov@oracle.com)
|
||||||
* @library ../../../../lib/testlibrary
|
* @library ../../../../lib/testlibrary ../
|
||||||
* @build ExtendedRobot SystemTrayIconHelper
|
* @build ExtendedRobot SystemTrayIconHelper
|
||||||
* @run main MouseMovedTest
|
* @run main MouseMovedTest
|
||||||
*/
|
*/
|
||||||
|
@ -28,8 +28,8 @@
|
|||||||
* @author Denis Mikhalkin: area=awt.xembed
|
* @author Denis Mikhalkin: area=awt.xembed
|
||||||
* @requires (!(os.family=="mac") & !(os.family=="windows"))
|
* @requires (!(os.family=="mac") & !(os.family=="windows"))
|
||||||
* @library /lib/testlibrary
|
* @library /lib/testlibrary
|
||||||
* @build jdk.testlibrary.Platform
|
|
||||||
* @modules java.desktop/sun.awt
|
* @modules java.desktop/sun.awt
|
||||||
|
* @build jdk.testlibrary.Platform
|
||||||
* @compile JavaClient.java TesterClient.java TestXEmbedServer.java
|
* @compile JavaClient.java TesterClient.java TestXEmbedServer.java
|
||||||
* @run main/timeout=6000 RunTestXEmbed
|
* @run main/timeout=6000 RunTestXEmbed
|
||||||
*/
|
*/
|
||||||
@ -39,6 +39,7 @@ import java.lang.reflect.Method;
|
|||||||
import java.util.logging.*;
|
import java.util.logging.*;
|
||||||
import java.util.*;
|
import java.util.*;
|
||||||
import java.io.*;
|
import java.io.*;
|
||||||
|
import jdk.testlibrary.Platform;
|
||||||
|
|
||||||
public class RunTestXEmbed extends TestXEmbedServer {
|
public class RunTestXEmbed extends TestXEmbedServer {
|
||||||
private static final Logger log = Logger.getLogger("test.xembed");
|
private static final Logger log = Logger.getLogger("test.xembed");
|
||||||
@ -72,7 +73,7 @@ public class RunTestXEmbed extends TestXEmbedServer {
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
Process proc = Runtime.getRuntime().exec(java_home +
|
Process proc = Runtime.getRuntime().exec(java_home +
|
||||||
"/bin/java -Dawt.toolkit=sun.awt.X11.XToolkit TesterClient "
|
"/bin/java -XaddExports:java.desktop/sun.awt.X11=ALL-UNNAMED -Dawt.toolkit=sun.awt.X11.XToolkit TesterClient "
|
||||||
+ test.getName() + " " + window + buf,
|
+ test.getName() + " " + window + buf,
|
||||||
enva);
|
enva);
|
||||||
System.err.println("Test for " + test.getName() + " has started.");
|
System.err.println("Test for " + test.getName() + " has started.");
|
||||||
|
@ -26,6 +26,7 @@
|
|||||||
* @bug 4931668
|
* @bug 4931668
|
||||||
* @summary Tests XEmbed server/client functionality
|
* @summary Tests XEmbed server/client functionality
|
||||||
* @author denis mikhalkin: area=awt.xembed
|
* @author denis mikhalkin: area=awt.xembed
|
||||||
|
* @requires (!(os.family=="mac") & !(os.family=="windows"))
|
||||||
* @modules java.desktop/sun.awt
|
* @modules java.desktop/sun.awt
|
||||||
* @compile JavaClient.java TesterClient.java TestXEmbedServer.java
|
* @compile JavaClient.java TesterClient.java TestXEmbedServer.java
|
||||||
* @run main/manual TestXEmbedServerJava
|
* @run main/manual TestXEmbedServerJava
|
||||||
@ -38,9 +39,6 @@ import java.io.*;
|
|||||||
|
|
||||||
public class TestXEmbedServerJava extends TestXEmbedServer {
|
public class TestXEmbedServerJava extends TestXEmbedServer {
|
||||||
public static void main(String[] args) {
|
public static void main(String[] args) {
|
||||||
if (System.getProperty("os.name").toLowerCase().startsWith("win")) {
|
|
||||||
return;
|
|
||||||
}
|
|
||||||
|
|
||||||
// Enabled XEmbed
|
// Enabled XEmbed
|
||||||
System.setProperty("sun.awt.xembedserver", "true");
|
System.setProperty("sun.awt.xembedserver", "true");
|
||||||
@ -78,7 +76,7 @@ public class TestXEmbedServerJava extends TestXEmbedServer {
|
|||||||
public Process startClient(Rectangle[] bounds, long window) {
|
public Process startClient(Rectangle[] bounds, long window) {
|
||||||
try {
|
try {
|
||||||
String java_home = System.getProperty("java.home");
|
String java_home = System.getProperty("java.home");
|
||||||
return Runtime.getRuntime().exec(java_home + "/bin/java JavaClient " + window);
|
return Runtime.getRuntime().exec(java_home + "/bin/java -XaddExports:java.desktop/sun.awt.X11=ALL-UNNAMED JavaClient " + window);
|
||||||
} catch (IOException ex1) {
|
} catch (IOException ex1) {
|
||||||
ex1.printStackTrace();
|
ex1.printStackTrace();
|
||||||
}
|
}
|
||||||
|
@ -32,7 +32,6 @@ public class TesterClient {
|
|||||||
public static void main(String[] args) throws Throwable {
|
public static void main(String[] args) throws Throwable {
|
||||||
// First parameter is the name of the test, second is the window, the rest are rectangles
|
// First parameter is the name of the test, second is the window, the rest are rectangles
|
||||||
Class cl = Class.forName("sun.awt.X11.XEmbedServerTester");
|
Class cl = Class.forName("sun.awt.X11.XEmbedServerTester");
|
||||||
cl.getModule().addExports("sun.awt.X11",TesterClient.class.getModule());
|
|
||||||
|
|
||||||
test = cl.getMethod(args[0], new Class[0]);
|
test = cl.getMethod(args[0], new Class[0]);
|
||||||
long window = Long.parseLong(args[1]);
|
long window = Long.parseLong(args[1]);
|
||||||
|
@ -37,6 +37,7 @@ import sun.swing.UIAction;
|
|||||||
* @test
|
* @test
|
||||||
* @bug 8133039
|
* @bug 8133039
|
||||||
* @summary Provide public API to sun.swing.UIAction#isEnabled(Object)
|
* @summary Provide public API to sun.swing.UIAction#isEnabled(Object)
|
||||||
|
* @modules java.desktop/sun.swing
|
||||||
* @author Alexander Scherbatiy
|
* @author Alexander Scherbatiy
|
||||||
*/
|
*/
|
||||||
public class bug8133039 {
|
public class bug8133039 {
|
||||||
|
Loading…
x
Reference in New Issue
Block a user