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 11/*
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.
33 * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
44 *
55 * This code is free software; you can redistribute it and/or modify it
4444 * @bug 8342098
4545 * @summary Verify that the image captured from the screen using a Robot
4646 * 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"
4758 * @run main/othervm -Dsun.java2d.uiScale=1 ScreenCaptureRobotTest
4859 */
4960public class ScreenCaptureRobotTest {
@@ -96,6 +107,7 @@ private static void initializeGUI() {
96107
97108 private static void doTest () throws Exception {
98109 Robot robot = new Robot ();
110+ robot .mouseMove (0 , 0 );
99111 robot .waitForIdle ();
100112 robot .delay (500 );
101113
You can’t perform that action at this time.
0 commit comments