提交 21c48bd7 编写于 作者: K kshefov

8031422: [TEST_BUG] java/awt/Paint/bug8024864.java fails on Windows 7

Reviewed-by: pchelko, azvegint
上级 05fcc8ff
/* /*
* Copyright (c) 2013, Oracle and/or its affiliates. All rights reserved. * Copyright (c) 2013, 2014, Oracle and/or its affiliates. All rights reserved.
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER. * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
* *
* This code is free software; you can redistribute it and/or modify it * This code is free software; you can redistribute it and/or modify it
...@@ -22,7 +22,7 @@ ...@@ -22,7 +22,7 @@
*/ */
/* @test /* @test
* @bug 8024864 * @bug 8024864 8031422
* @summary [macosx] Problems with rendering of controls * @summary [macosx] Problems with rendering of controls
* @author Petr Pchelko * @author Petr Pchelko
* @library ../regtesthelpers * @library ../regtesthelpers
...@@ -65,7 +65,7 @@ public class bug8024864 ...@@ -65,7 +65,7 @@ public class bug8024864
Util.waitForIdle(r); Util.waitForIdle(r);
Dimension frameSize = frame.getSize(); Dimension frameSize = frame.getSize();
Point loc = new Point(frameSize.width - 5, frameSize.height - 5); Point loc = new Point(frameSize.width - 15, frameSize.height - 15);
SwingUtilities.convertPointToScreen(loc, frame); SwingUtilities.convertPointToScreen(loc, frame);
Color c = r.getPixelColor(loc.x, loc.y); Color c = r.getPixelColor(loc.x, loc.y);
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册