< prev index next >
test/javax/swing/plaf/basic/BasicHTML/4960629/bug4960629.java
Print this page
rev 17561 : 8185500: [TESTBUG] Add keywords headful/printer in java/awt and javax tests.
Summary: Add new keyword 'printer'. Some minor test fixes to show headless exception. Add some @requires windows.
*** 19,34 ****
* Please contact Oracle, 500 Oracle Parkway, Redwood Shores, CA 94065 USA
* or visit www.oracle.com if you need additional information or have any
* questions.
*/
! /* @test
! @bug 4960629 7124238
! @summary Tests if font for html text on widgets in correct.
! @author Denis Sharypov
! @run main bug4960629
! */
import java.awt.Font;
import java.lang.reflect.InvocationTargetException;
import javax.swing.JFrame;
import javax.swing.JLabel;
--- 19,36 ----
* Please contact Oracle, 500 Oracle Parkway, Redwood Shores, CA 94065 USA
* or visit www.oracle.com if you need additional information or have any
* questions.
*/
! /**
! * @test
! * @key headful
! * @bug 4960629 7124238
! * @summary Tests if font for html text on widgets in correct.
! * @author Denis Sharypov
! * @run main bug4960629
! */
import java.awt.Font;
import java.lang.reflect.InvocationTargetException;
import javax.swing.JFrame;
import javax.swing.JLabel;
*** 55,65 ****
f.getContentPane().add(label);
f.pack();
f.setVisible(true);
test();
} finally {
! f.dispose();
}
}
bug4960629() throws InvocationTargetException, InterruptedException {
SwingUtilities.invokeAndWait(new Runnable() {
--- 57,67 ----
f.getContentPane().add(label);
f.pack();
f.setVisible(true);
test();
} finally {
! if (f != null) { f.dispose(); }
}
}
bug4960629() throws InvocationTargetException, InterruptedException {
SwingUtilities.invokeAndWait(new Runnable() {
< prev index next >