Mercurial > hg > release > icedtea6-1.13
changeset 2248:a6b05ef50569
New regression test added for checking if OpenGL context is properly initialized.
author | ptisnovs |
---|---|
date | Thu, 02 Sep 2010 13:54:31 +0200 |
parents | 423423aec247 |
children | dfc3c1061ec7 |
files | ChangeLog Makefile.am patches/icedtea-jtreg-OpenGLContextInit.patch |
diffstat | 3 files changed, 54 insertions(+), 1 deletions(-) [+] |
line wrap: on
line diff
--- a/ChangeLog Wed Sep 01 11:50:21 2010 +0200 +++ b/ChangeLog Thu Sep 02 13:54:31 2010 +0200 @@ -1,3 +1,9 @@ +2010-09-02 Pavel Tisnovsky <ptisnovs@redhat.com> + + * Makefile.am: Add new patch. + * patches/icedtea-jtreg-OpenGLContextInit.patch: + New regression test added for checking if OpenGL context is properly initialized. + 2010-09-01 Pavel Tisnovsky <ptisnovs@redhat.com> * Makefile.am: Add two new patches, removed one unused patch.
--- a/Makefile.am Wed Sep 01 11:50:21 2010 +0200 +++ b/Makefile.am Thu Sep 02 13:54:31 2010 +0200 @@ -292,7 +292,8 @@ patches/openjdk/6954424-opentype_javadoc.patch \ patches/openjdk/6438179-systray_check.patch \ patches/openjdk/6951319-sparc_build_fixes.patch \ - patches/icedtea-too-many-args.patch + patches/icedtea-too-many-args.patch \ + patches/icedtea-jtreg-OpenGLContextInit.patch if WITH_RHINO ICEDTEA_PATCHES += \
--- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/patches/icedtea-jtreg-OpenGLContextInit.patch Thu Sep 02 13:54:31 2010 +0200 @@ -0,0 +1,46 @@ +--- /dev/null 2010-06-29 11:10:08.737208357 +0200 ++++ openjdk/jdk/test/sun/java2d/OpenGL/OpenGLContextInit.java 2010-09-01 16:27:44.000000000 +0200 +@@ -0,0 +1,43 @@ ++/* ++ * Copyright 2010 Red Hat, Inc. 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 ++ * under the terms of the GNU General Public License version 2 only, as ++ * published by the Free Software Foundation. ++ * ++ * This code is distributed in the hope that it will be useful, but WITHOUT ++ * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or ++ * FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License ++ * version 2 for more details (a copy is included in the LICENSE file that ++ * accompanied this code). ++ * ++ * You should have received a copy of the GNU General Public License version ++ * 2 along with this work; if not, write to the Free Software Foundation, ++ * Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA. ++ */ ++ ++ ++/* ++ * @test ++ * @bug 6755274 6791612 ++ * @summary This test check if OpenGL context is properly initialized. ++ * @run main/othervm -Dsun.java2d.opengl=True OpenGLContextInit -ignore ++ * @author ptisnovs ++ */ ++ ++import javax.swing.JFrame; ++ ++public class OpenGLContextInit extends JFrame { ++ public OpenGLContextInit() ++ { ++ System.out.println("Nothing happens"); ++ } ++ ++ public static void main(String[] args) ++ { ++ OpenGLContextInit t = new OpenGLContextInit(); ++ System.out.println("Test Passed."); ++ } ++} ++