File tree Expand file tree Collapse file tree 1 file changed +13
-1
lines changed Expand file tree Collapse file tree 1 file changed +13
-1
lines changed Original file line number Diff line number Diff line change 1
1
/*
2
- * Copyright (c) 2000, 2024 , Oracle and/or its affiliates. All rights reserved.
2
+ * Copyright (c) 2000, 2025 , Oracle and/or its affiliates. All rights reserved.
3
3
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
4
4
*
5
5
* This code is free software; you can redistribute it and/or modify it
44
44
* @bug 8342098
45
45
* @summary Verify that the image captured from the screen using a Robot
46
46
* and the source image are same.
47
+ * @requires os.family == "mac"
48
+ * @run main/othervm ScreenCaptureRobotTest
49
+ */
50
+
51
+ /*
52
+ * @test
53
+ * @key headful
54
+ * @bug 8342098
55
+ * @summary Verify that the image captured from the screen using a Robot
56
+ * and the source image are same.
57
+ * @requires os.family != "mac"
47
58
* @run main/othervm -Dsun.java2d.uiScale=1 ScreenCaptureRobotTest
48
59
*/
49
60
public class ScreenCaptureRobotTest {
@@ -96,6 +107,7 @@ private static void initializeGUI() {
96
107
97
108
private static void doTest () throws Exception {
98
109
Robot robot = new Robot ();
110
+ robot .mouseMove (0 , 0 );
99
111
robot .waitForIdle ();
100
112
robot .delay (500 );
101
113
You can’t perform that action at this time.
0 commit comments