equal
deleted
inserted
replaced
1 /* |
1 /* |
2 * Copyright (c) 2014, 2016, Oracle and/or its affiliates. All rights reserved. |
2 * Copyright (c) 2014, 2018, Oracle and/or its affiliates. All rights reserved. |
3 * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER. |
3 * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER. |
4 * |
4 * |
5 * This code is free software; you can redistribute it and/or modify it |
5 * This code is free software; you can redistribute it and/or modify it |
6 * under the terms of the GNU General Public License version 2 only, as |
6 * under the terms of the GNU General Public License version 2 only, as |
7 * published by the Free Software Foundation. |
7 * published by the Free Software Foundation. |
46 import sun.awt.ConstrainableGraphics; |
46 import sun.awt.ConstrainableGraphics; |
47 |
47 |
48 /** |
48 /** |
49 * @test |
49 * @test |
50 * @key headful |
50 * @key headful |
51 * @bug 6335200 6419610 |
51 * @bug 6335200 6419610 8198613 |
52 * @summary Tests that we don't render anything if specific empty clip is set |
52 * @summary Tests that we don't render anything if specific empty clip is set |
53 * @author Dmitri.Trembovetski@Sun.COM: area=Graphics |
53 * @author Dmitri.Trembovetski@Sun.COM: area=Graphics |
54 * @modules java.desktop/sun.awt |
54 * @modules java.desktop/sun.awt |
55 * @run main EmptyClipRenderingTest |
55 * @run main EmptyClipRenderingTest |
56 * @run main/othervm -Dsun.java2d.noddraw=true EmptyClipRenderingTest |
56 * @run main/othervm -Dsun.java2d.noddraw=true EmptyClipRenderingTest |
57 * @run main/othervm -Dsun.java2d.pmoffscreen=true EmptyClipRenderingTest |
57 * @run main/othervm -Dsun.java2d.pmoffscreen=true EmptyClipRenderingTest |
58 * @run main/othervm -Dsun.java2d.opengl=true EmptyClipRenderingTest |
|
59 */ |
58 */ |
60 public class EmptyClipRenderingTest { |
59 public class EmptyClipRenderingTest { |
61 static final int IMG_W = 400; |
60 static final int IMG_W = 400; |
62 static final int IMG_H = 400; |
61 static final int IMG_H = 400; |
63 |
62 |