Skip to content

Commit

Permalink
8169187: [macosx] Aqua: java/awt/image/multiresolution/Multiresolutio…
Browse files Browse the repository at this point in the history
…nIconTest.java

Backport-of: 90257f95058626196339c444937f037516dbd21e
  • Loading branch information
GoeLin committed Oct 4, 2022
1 parent b513ba2 commit d4a0c18
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 3 deletions.
1 change: 0 additions & 1 deletion test/jdk/ProblemList.txt
Expand Up @@ -238,7 +238,6 @@ java/awt/font/TextLayout/TextLayoutBounds.java 8169188 generic-all
java/awt/FontMetrics/FontCrash.java 8198336 windows-all
java/awt/image/BufferedImage/ICMColorDataTest/ICMColorDataTest.java 8233028 generic-all
java/awt/image/DrawImage/IncorrectAlphaSurface2SW.java 8056077 linux-all
java/awt/image/multiresolution/MultiresolutionIconTest.java 8169187,8252812 macosx-all,windows-all,linux-x64
java/awt/print/Headless/HeadlessPrinterJob.java 8196088 windows-all
sun/awt/datatransfer/SuplementaryCharactersTransferTest.java 8011371 generic-all
sun/awt/shell/ShellFolderMemoryLeak.java 8197794 windows-all
Expand Down
@@ -1,5 +1,5 @@
/*
* Copyright (c) 2016, 2016, Oracle and/or its affiliates. All rights reserved.
* Copyright (c) 2016, 2022, Oracle and/or its affiliates. All rights reserved.
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
*
* This code is free software; you can redistribute it and/or modify it
Expand Down Expand Up @@ -128,7 +128,7 @@ private void UI() {

private boolean checkPressedColor(int x, int y, Color ok) {

r.mouseMove(x, y);
r.mouseMove(x+5, y+5);
r.waitForIdle();
r.mousePress(InputEvent.BUTTON1_DOWN_MASK);
r.waitForIdle(100);
Expand Down Expand Up @@ -217,6 +217,10 @@ private void doTest() {
public static void main(String[] args) throws Exception {

for (UIManager.LookAndFeelInfo LF: UIManager.getInstalledLookAndFeels()) {
// skip AquaL&F because Aqua icon darkening fails the test
if (LF.getName().equalsIgnoreCase("Mac OS X")) {
continue;
}
System.out.println("\nL&F: " + LF.getName());
(new MultiresolutionIconTest(LF)).doTest();
}
Expand Down

0 comments on commit d4a0c18

Please sign in to comment.