mirror of
https://github.com/openjdk/jdk8u.git
synced 2025-12-10 10:44:16 -06:00
8185500: [TESTBUG] Add keywords headful/printer in java/awt and javax tests.
8186259: IOExceptionIfEncodedURLTest.sh versus IOExceptionIfEncodedURLTest.java Add new keyword 'printer'. Some minor test fixes to show headless exception. Add some @requires windows. Reviewed-by: serb Backport-of: 34afeced211cd7115e2529b043c1e57dfa1291fe
This commit is contained in:
parent
2821dcef94
commit
cc30193d1b
@ -10,9 +10,11 @@
|
||||
# randomness tests.
|
||||
#
|
||||
# A "headful" test requires a graphical environment to meaningfully
|
||||
# run. Tests that are not headful are "headless."
|
||||
# run. Tests that are not headful are "headless".
|
||||
# A test flagged with key "printer" requires a printer to succeed, else
|
||||
# throws a PrinterException or the like.
|
||||
|
||||
keys=2d dnd i18n intermittent randomness headful jfr
|
||||
keys=2d dnd headful i18n intermittent printer randomness jfr
|
||||
|
||||
# Tests that must run in othervm mode
|
||||
othervm.dirs=java/awt java/beans java/rmi javax/accessibility javax/imageio javax/sound javax/print javax/management com/sun/awt sun/awt sun/java2d sun/pisces sun/rmi
|
||||
|
||||
@ -1,5 +1,5 @@
|
||||
/*
|
||||
* Copyright (c) 2013, Oracle and/or its affiliates. All rights reserved.
|
||||
* Copyright (c) 2013, 2017, 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
|
||||
@ -21,8 +21,9 @@
|
||||
* questions.
|
||||
*/
|
||||
|
||||
/*
|
||||
/**
|
||||
* @test
|
||||
* @key headful
|
||||
* @bug 8007267
|
||||
* @summary [macosx] com.apple.eawt.Application.setDefaultMenuBar is not working
|
||||
* @requires (os.family == "mac")
|
||||
|
||||
@ -1,5 +1,5 @@
|
||||
/*
|
||||
* Copyright (c) 2016 Oracle and/or its affiliates. All rights reserved.
|
||||
* Copyright (c) 2016, 2017, 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
|
||||
@ -20,13 +20,16 @@
|
||||
* or visit www.oracle.com if you need additional information or have any
|
||||
* questions.
|
||||
*/
|
||||
/*
|
||||
|
||||
/**
|
||||
* @test
|
||||
* @key headful
|
||||
* @bug 8158325
|
||||
* @summary Memory leak in com.apple.laf.ScreenMenu: removed JMenuItems are still referenced
|
||||
* @requires (os.family == "mac")
|
||||
* @run main/timeout=300/othervm -Xmx16m ScreenMenuMemoryLeakTest
|
||||
*/
|
||||
|
||||
import java.awt.EventQueue;
|
||||
import java.lang.ref.WeakReference;
|
||||
import java.lang.reflect.InvocationTargetException;
|
||||
@ -102,4 +105,4 @@ public class ScreenMenuMemoryLeakTest {
|
||||
Objects.requireNonNull(menuItem, "The menu item should still be available at this point");
|
||||
sMenu.remove(menuItem);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
@ -21,7 +21,9 @@
|
||||
* questions.
|
||||
*/
|
||||
|
||||
/* @test
|
||||
/**
|
||||
* @test
|
||||
* @key headful
|
||||
* @bug 8157827
|
||||
* @summary AWT_Desktop/Automated/Exceptions/BasicTest loads incorrect GTK
|
||||
* version when jdk.gtk.version=3
|
||||
|
||||
@ -1,5 +1,5 @@
|
||||
/*
|
||||
* Copyright (c) 2014, Oracle and/or its affiliates. All rights reserved.
|
||||
* Copyright (c) 2014, 2017, 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
|
||||
@ -30,6 +30,7 @@ import java.util.concurrent.atomic.AtomicReference;
|
||||
|
||||
/**
|
||||
* @test
|
||||
* @key headful
|
||||
* @bug 8043705
|
||||
* @summary Can't exit color chooser dialog when running as an applet
|
||||
* @run main CloseDialogTest
|
||||
|
||||
@ -1,5 +1,5 @@
|
||||
/*
|
||||
* Copyright (c) 2013, 2015, Oracle and/or its affiliates. All rights reserved.
|
||||
* Copyright (c) 2013, 2017, 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
|
||||
@ -21,21 +21,17 @@
|
||||
* questions.
|
||||
*/
|
||||
|
||||
/*
|
||||
@test
|
||||
@bug 4980592
|
||||
@summary switching user in XP causes an NPE in
|
||||
sun.awt.windows.WWindowPeer.displayChanged
|
||||
@requires (os.family == "windows")
|
||||
@author son@sparc.spb.su: area=embedded
|
||||
@run main DisplayChangedTest
|
||||
*/
|
||||
/**
|
||||
* DisplayChangedTest.java
|
||||
*
|
||||
* summary: switching user in XP causes an NPE in
|
||||
* sun.awt.windows.WWindowPeer.displayChanged
|
||||
* @test
|
||||
* @key headful
|
||||
* @bug 4980592
|
||||
* @summary switching user in XP causes an NPE in
|
||||
* sun.awt.windows.WWindowPeer.displayChanged
|
||||
* @requires (os.family == "windows")
|
||||
* @author son@sparc.spb.su: area=embedded
|
||||
* @run main DisplayChangedTest
|
||||
*/
|
||||
|
||||
import java.awt.Frame;
|
||||
import java.awt.Dialog;
|
||||
import java.awt.TextArea;
|
||||
|
||||
@ -1,5 +1,5 @@
|
||||
/*
|
||||
* Copyright (c) 2013, 2015, Oracle and/or its affiliates. All rights reserved.
|
||||
* Copyright (c) 2013, 2017, 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
|
||||
@ -21,19 +21,16 @@
|
||||
* questions.
|
||||
*/
|
||||
|
||||
/*
|
||||
@test
|
||||
@bug 6345002
|
||||
@summary grab problems with EmbeddedFrame
|
||||
@requires (os.family == "windows")
|
||||
@author Oleg.Semenov@sun.com area=EmbeddedFrame
|
||||
@run main EmbeddedFrameGrabTest
|
||||
*/
|
||||
/**
|
||||
* EmbeddedFrameGrabTest.java
|
||||
*
|
||||
* summary: grab problems with EmbeddedFrame
|
||||
* @test
|
||||
* @key headful
|
||||
* @bug 6345003
|
||||
* @summary grab problems with EmbeddedFrame
|
||||
* @requires (os.family == "windows")
|
||||
* @author Oleg.Semenov@sun.com area=EmbeddedFrame
|
||||
* @run main EmbeddedFrameGrabTest
|
||||
*/
|
||||
|
||||
import java.awt.Frame;
|
||||
import java.awt.peer.FramePeer;
|
||||
import javax.swing.JComboBox;
|
||||
|
||||
@ -1,5 +1,5 @@
|
||||
<!--
|
||||
Copyright (c) 1998, 2013, Oracle and/or its affiliates. All rights reserved.
|
||||
Copyright (c) 1998, 2017, 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
|
||||
@ -23,6 +23,7 @@
|
||||
|
||||
<HTML>
|
||||
<!-- @test
|
||||
@key headful
|
||||
@bug 4023283
|
||||
@summary Checks that an Error which propogate up to the EventDispatch
|
||||
loop does not crash AWT.
|
||||
|
||||
@ -1,5 +1,5 @@
|
||||
/*
|
||||
* Copyright (c) 2015, Oracle and/or its affiliates. All rights reserved.
|
||||
* Copyright (c) 2015, 2017, 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
|
||||
@ -21,11 +21,13 @@
|
||||
* questions.
|
||||
*/
|
||||
|
||||
/* @test
|
||||
@bug 6980209
|
||||
@summary Make tracking SecondaryLoop.enter/exit methods easier
|
||||
@author Semyon Sadetsky
|
||||
*/
|
||||
/**
|
||||
* @test
|
||||
* @key headful
|
||||
* @bug 6980209
|
||||
* @summary Make tracking SecondaryLoop.enter/exit methods easier
|
||||
* @author Semyon Sadetsky
|
||||
*/
|
||||
|
||||
import javax.swing.*;
|
||||
import java.awt.*;
|
||||
|
||||
@ -21,15 +21,17 @@
|
||||
* questions.
|
||||
*/
|
||||
|
||||
/*
|
||||
@test
|
||||
@bug 6516675
|
||||
@summary Tests that EmbeddedFrame can be focused.
|
||||
@author anton.tarasov: area=awt-focus
|
||||
@library ../../regtesthelpers
|
||||
@build Util UtilInternal
|
||||
@run main FocusEmbeddedFrameTest
|
||||
*/
|
||||
/**
|
||||
* @test
|
||||
* @key headful
|
||||
* @bug 6516675
|
||||
* @summary Tests that EmbeddedFrame can be focused.
|
||||
* @author anton.tarasov: area=awt-focus
|
||||
* @requires (os.family == "windows")
|
||||
* @library ../../regtesthelpers
|
||||
* @build Util UtilInternal
|
||||
* @run main FocusEmbeddedFrameTest
|
||||
*/
|
||||
|
||||
import java.awt.*;
|
||||
import java.awt.event.*;
|
||||
|
||||
@ -1,5 +1,5 @@
|
||||
/*
|
||||
* Copyright (c) 2015, Oracle and/or its affiliates. All rights reserved.
|
||||
* Copyright (c) 2015, 2017, 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
|
||||
@ -21,8 +21,9 @@
|
||||
* questions.
|
||||
*/
|
||||
|
||||
/*
|
||||
/**
|
||||
* @test
|
||||
* @key headful
|
||||
* @bug 8064833
|
||||
* @summary Test correct font is obtained via family+style
|
||||
* @run main HelvLtOblTest
|
||||
|
||||
@ -1,5 +1,5 @@
|
||||
/*
|
||||
* Copyright (c) 2013, Oracle and/or its affiliates. All rights reserved.
|
||||
* Copyright (c) 2013, 2017, 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
|
||||
@ -21,8 +21,9 @@
|
||||
* questions.
|
||||
*/
|
||||
|
||||
/*
|
||||
/**
|
||||
* @test
|
||||
* @key headful
|
||||
* @bug 8015556
|
||||
* @summary Surrogate pairs do not render properly on MacOS X.
|
||||
*/
|
||||
|
||||
@ -1,5 +1,5 @@
|
||||
/*
|
||||
* Copyright (c) 2014, Oracle and/or its affiliates. All rights reserved.
|
||||
* Copyright (c) 2014, 2017, 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
|
||||
@ -21,12 +21,14 @@
|
||||
* questions.
|
||||
*/
|
||||
|
||||
/* @test
|
||||
@bug 8032078
|
||||
@summary Frame.setExtendedState throws RuntimeException, if
|
||||
windowState=ICONIFIED|MAXIMIZED_BOTH, on OS X
|
||||
@author Anton Litvinov
|
||||
*/
|
||||
/**
|
||||
* @test
|
||||
* @key headful
|
||||
* @bug 8032078
|
||||
* @summary Frame.setExtendedState throws RuntimeException, if
|
||||
* windowState=ICONIFIED|MAXIMIZED_BOTH, on OS X
|
||||
* @author Anton Litvinov
|
||||
*/
|
||||
|
||||
import java.awt.*;
|
||||
|
||||
|
||||
@ -1,5 +1,5 @@
|
||||
/*
|
||||
* Copyright (c) 2013, Oracle and/or its affiliates. All rights reserved.
|
||||
* Copyright (c) 2013, 2017, 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
|
||||
@ -21,7 +21,9 @@
|
||||
* questions.
|
||||
*/
|
||||
|
||||
/* @test
|
||||
/**
|
||||
* @test
|
||||
* @key headful
|
||||
* @bug 8026143
|
||||
* @summary [macosx] Maximized state could be inconsistent between peer and frame
|
||||
* @author Petr Pchelko
|
||||
@ -70,7 +72,7 @@ public class MaximizedByPlatform {
|
||||
throw new RuntimeException("Maximized state was not set for frame in setBounds");
|
||||
}
|
||||
} finally {
|
||||
frame.dispose();
|
||||
if (frame != null) frame.dispose();
|
||||
}
|
||||
|
||||
|
||||
@ -87,7 +89,7 @@ public class MaximizedByPlatform {
|
||||
throw new RuntimeException("Maximized state was not set for frame in setVisible");
|
||||
}
|
||||
} finally {
|
||||
frame.dispose();
|
||||
if (frame != null) frame.dispose();
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
@ -21,8 +21,9 @@
|
||||
* questions.
|
||||
*/
|
||||
|
||||
/*
|
||||
/**
|
||||
* @test
|
||||
* @key headful
|
||||
* @bug 8171949 8214046
|
||||
* @summary Tests that bitwise mask is set and state listener is notified during state transition.
|
||||
* @author Dmitry Markov
|
||||
|
||||
@ -1,5 +1,5 @@
|
||||
/*
|
||||
* Copyright (c) 2007, 2014, Oracle and/or its affiliates. All rights reserved.
|
||||
* Copyright (c) 2007, 2017, 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
|
||||
@ -23,8 +23,9 @@
|
||||
|
||||
import java.awt.*;
|
||||
|
||||
/*
|
||||
/**
|
||||
* @test
|
||||
* @key headful
|
||||
* @summary When Frame.setExtendedState(Frame.MAXIMIZED_BOTH)
|
||||
* is called for a Frame after been called setMaximizedBounds() with
|
||||
* certain value, Frame bounds must equal to this value.
|
||||
|
||||
@ -1,5 +1,5 @@
|
||||
/*
|
||||
* Copyright (c) 2012, 2013, Oracle and/or its affiliates. All rights reserved.
|
||||
* Copyright (c) 2012, 2017, 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
|
||||
@ -21,15 +21,16 @@
|
||||
* questions.
|
||||
*/
|
||||
|
||||
/*
|
||||
@test
|
||||
@bug 7128738 7161759
|
||||
@summary dragged dialog freezes system on dispose
|
||||
@author Oleg Pekhovskiy: area=awt.toplevel
|
||||
@library ../../regtesthelpers
|
||||
@build Util
|
||||
@run main WindowDragTest
|
||||
*/
|
||||
/**
|
||||
* @test
|
||||
* @key headful
|
||||
* @bug 7128738 7161759
|
||||
* @summary dragged dialog freezes system on dispose
|
||||
* @author Oleg Pekhovskiy: area=awt.toplevel
|
||||
* @library ../../regtesthelpers
|
||||
* @build Util
|
||||
* @run main WindowDragTest
|
||||
*/
|
||||
|
||||
import java.awt.Frame;
|
||||
import java.awt.event.InputEvent;
|
||||
|
||||
@ -1,5 +1,5 @@
|
||||
/*
|
||||
* Copyright (c) 2011, 2013, Oracle and/or its affiliates. All rights reserved.
|
||||
* Copyright (c) 2011, 2017, 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
|
||||
@ -21,15 +21,16 @@
|
||||
* questions.
|
||||
*/
|
||||
|
||||
/*
|
||||
@test
|
||||
@bug 6741526
|
||||
@summary KeyboardFocusManager.setDefaultFocusTraversalPolicy(FocusTraversalPolicy) affects created components
|
||||
@library ../../regtesthelpers
|
||||
@build Sysout
|
||||
@author Andrei Dmitriev : area=awt-focus
|
||||
@run main DefaultPolicyChange_Swing
|
||||
*/
|
||||
/**
|
||||
* @test
|
||||
* @key headful
|
||||
* @bug 6741526
|
||||
* @summary KeyboardFocusManager.setDefaultFocusTraversalPolicy(FocusTraversalPolicy) affects created components
|
||||
* @library ../../regtesthelpers
|
||||
* @build Sysout
|
||||
* @author Andrei Dmitriev : area=awt-focus
|
||||
* @run main DefaultPolicyChange_Swing
|
||||
*/
|
||||
|
||||
import java.awt.*;
|
||||
import javax.swing.*;
|
||||
|
||||
@ -1,5 +1,5 @@
|
||||
/*
|
||||
* Copyright (c) 2013, Oracle and/or its affiliates. All rights reserved.
|
||||
* Copyright (c) 2013, 2017, 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
|
||||
@ -21,8 +21,9 @@
|
||||
* questions.
|
||||
*/
|
||||
|
||||
/*
|
||||
/**
|
||||
* @test
|
||||
* @key headful
|
||||
* @bug 8007006
|
||||
* @summary [macosx] Closing subwindow loses main window menus.
|
||||
* @author Leonid Romanov
|
||||
|
||||
@ -1,5 +1,5 @@
|
||||
/*
|
||||
* Copyright (c) 2013, Oracle and/or its affiliates. All rights reserved.
|
||||
* Copyright (c) 2013, 2017, 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
|
||||
@ -33,8 +33,9 @@ import java.lang.reflect.InvocationHandler;
|
||||
import java.lang.reflect.Method;
|
||||
import java.lang.reflect.Proxy;
|
||||
|
||||
/*
|
||||
/**
|
||||
* @test
|
||||
* @key headful
|
||||
* @bug 8013468
|
||||
* @summary Cursor does not update properly when in fullscreen mode on Mac
|
||||
* The core reason of the issue was the lack of a mouse entered event in fullscreen
|
||||
@ -44,6 +45,7 @@ import java.lang.reflect.Proxy;
|
||||
* @author Petr Pchelko area=awt.event
|
||||
* @run main FullscreenEnterEventTest
|
||||
*/
|
||||
|
||||
public class FullscreenEnterEventTest {
|
||||
|
||||
private static String OS = System.getProperty("os.name").toLowerCase();
|
||||
|
||||
@ -35,8 +35,9 @@ import javax.swing.JFrame;
|
||||
import javax.swing.SwingUtilities;
|
||||
import javax.swing.WindowConstants;
|
||||
|
||||
/*
|
||||
/**
|
||||
* @test
|
||||
* @key headful
|
||||
* @bug 8024185
|
||||
* @summary Native Mac OS X full screen does not work after showing the splash
|
||||
* @requires (os.family == "mac")
|
||||
@ -46,6 +47,7 @@ import javax.swing.WindowConstants;
|
||||
* @author Petr Pchelko area=awt.event
|
||||
* @run main/othervm -splash:test.png FullScreenAfterSplash
|
||||
*/
|
||||
|
||||
public class FullScreenAfterSplash {
|
||||
|
||||
private static JFrame frame;
|
||||
|
||||
@ -1,5 +1,5 @@
|
||||
/*
|
||||
* Copyright (c) 2008, Oracle and/or its affiliates. All rights reserved.
|
||||
* Copyright (c) 2008, 2017, 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
|
||||
@ -21,16 +21,6 @@
|
||||
* questions.
|
||||
*/
|
||||
|
||||
/*
|
||||
test
|
||||
@bug 6193279
|
||||
@summary REGRESSION: AppletViewer throws IOException when path is encoded URL
|
||||
@author Dmitry Cherepanov: area=appletviewer
|
||||
@run compile IOExceptionIfEncodedURLTest.java
|
||||
@run main IOExceptionIfEncodedURLTest
|
||||
@run shell IOExceptionIfEncodedURLTest.sh
|
||||
*/
|
||||
|
||||
import java.applet.Applet;
|
||||
import sun.net.www.ParseUtil;
|
||||
import java.io.File;
|
||||
|
||||
@ -24,7 +24,8 @@
|
||||
#!/bin/ksh -p
|
||||
#
|
||||
# @test IOExceptionIfEncodedURLTest.sh
|
||||
# @bug 6193279 6619458 8137087
|
||||
# @key headful
|
||||
# @bug 6193279 6619458 8137087 8186259
|
||||
# @summary REGRESSION: AppletViewer throws IOException when path is encoded URL
|
||||
# @author Dmitry Cherepanov: area=appletviewer
|
||||
# @run compile IOExceptionIfEncodedURLTest.java
|
||||
|
||||
@ -1,5 +1,5 @@
|
||||
/*
|
||||
* Copyright (c) 2015, Oracle and/or its affiliates. All rights reserved.
|
||||
* Copyright (c) 2015, 2017, 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
|
||||
@ -32,6 +32,7 @@ import static java.awt.event.InputEvent.BUTTON1_DOWN_MASK;
|
||||
|
||||
/**
|
||||
* @test
|
||||
* @key headful
|
||||
* @bug 8076106
|
||||
* @author Hendrik Schreiber
|
||||
* @summary [macosx] Drag image of TransferHandler does not honor
|
||||
|
||||
@ -1,5 +1,5 @@
|
||||
/*
|
||||
* Copyright (c) 2013, Oracle and/or its affiliates. All rights reserved.
|
||||
* Copyright (c) 2013, 2017, 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
|
||||
@ -21,15 +21,17 @@
|
||||
* questions.
|
||||
*/
|
||||
|
||||
/*
|
||||
@test
|
||||
@bug 7075105
|
||||
@summary WIN: Provide a way to format HTML on drop
|
||||
@author Denis Fokin: area=datatransfer
|
||||
@build HtmlTransferable PutAllHtmlFlavorsOnClipboard
|
||||
@build PutOnlyAllHtmlFlavorOnClipboard PutSelectionAndFragmentHtmlFlavorsOnClipboard
|
||||
@run main HTMLDataFlavorTest
|
||||
*/
|
||||
/**
|
||||
* @test
|
||||
* @key headful
|
||||
* @bug 7075105
|
||||
* @summary WIN: Provide a way to format HTML on drop
|
||||
* @author Denis Fokin: area=datatransfer
|
||||
* @requires (os.family == "windows")
|
||||
* @build HtmlTransferable PutAllHtmlFlavorsOnClipboard
|
||||
* @build PutOnlyAllHtmlFlavorOnClipboard PutSelectionAndFragmentHtmlFlavorsOnClipboard
|
||||
* @run main HTMLDataFlavorTest
|
||||
*/
|
||||
|
||||
import java.awt.*;
|
||||
import java.awt.datatransfer.*;
|
||||
|
||||
@ -1,5 +1,5 @@
|
||||
/*
|
||||
* Copyright (c) 2012, 2013, Oracle and/or its affiliates. All rights reserved.
|
||||
* Copyright (c) 2012, 2017, 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
|
||||
@ -21,8 +21,9 @@
|
||||
* questions.
|
||||
*/
|
||||
|
||||
/*
|
||||
/**
|
||||
* @test
|
||||
* @key headful
|
||||
* @bug 8020209
|
||||
* @summary [macosx] Mac OS X key event confusion for "COMMAND PLUS"
|
||||
* @author leonid.romanov@oracle.com
|
||||
|
||||
@ -1,5 +1,5 @@
|
||||
/*
|
||||
* Copyright (c) 2012, Oracle and/or its affiliates. All rights reserved.
|
||||
* Copyright (c) 2012, 2017, 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
|
||||
@ -21,8 +21,9 @@
|
||||
* questions.
|
||||
*/
|
||||
|
||||
/*
|
||||
/**
|
||||
* @test
|
||||
* @key headful
|
||||
* @bug 7199180
|
||||
* @summary [macosx] Dead keys handling for input methods
|
||||
* @author alexandr.scherbatiy area=awt.event
|
||||
@ -30,6 +31,7 @@
|
||||
* @build jdk.testlibrary.OSInfo
|
||||
* @run main DeadKeyMacOSXInputText
|
||||
*/
|
||||
|
||||
import java.awt.*;
|
||||
import java.awt.event.*;
|
||||
import java.awt.event.KeyEvent;
|
||||
|
||||
@ -1,5 +1,5 @@
|
||||
/*
|
||||
* Copyright (c) 2012, Oracle and/or its affiliates. All rights reserved.
|
||||
* Copyright (c) 2012, 2017, 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
|
||||
@ -21,8 +21,9 @@
|
||||
* questions.
|
||||
*/
|
||||
|
||||
/*
|
||||
/**
|
||||
* @test
|
||||
* @key headful
|
||||
* @bug 7196547
|
||||
* @summary Dead Key implementation for KeyEvent on Mac OS X
|
||||
* @author alexandr.scherbatiy area=awt.event
|
||||
|
||||
@ -21,7 +21,9 @@
|
||||
*
|
||||
*/
|
||||
|
||||
/* @test
|
||||
/**
|
||||
* @test
|
||||
* @key headful
|
||||
* @summary verify lack of crash on U+0DDD.
|
||||
* @bug 6795060
|
||||
*/
|
||||
|
||||
@ -21,12 +21,13 @@
|
||||
* questions.
|
||||
*/
|
||||
|
||||
/*
|
||||
/**
|
||||
* @test
|
||||
* @bug 6396526
|
||||
* @summary Verify below-the-spot IM in the swing L&F JFrame.
|
||||
* Although the swing component is decorated with L&F
|
||||
* the IM window should have no decoration.
|
||||
* @key headful
|
||||
* @bug 6396526
|
||||
* @summary Verify below-the-spot IM in the swing L&F JFrame.
|
||||
* Although the swing component is decorated with L&F
|
||||
* the IM window should have no decoration.
|
||||
* @author yuriko.yamasaki
|
||||
*/
|
||||
|
||||
|
||||
@ -1,5 +1,5 @@
|
||||
/*
|
||||
* Copyright (c) 2014, Oracle and/or its affiliates. All rights reserved.
|
||||
* Copyright (c) 2014, 2017, 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
|
||||
@ -22,12 +22,14 @@
|
||||
*/
|
||||
|
||||
|
||||
/*
|
||||
@test
|
||||
@bug 8041990
|
||||
@summary Language specific keys does not work in applets when opened outside the browser
|
||||
@author Petr Pchelko
|
||||
*/
|
||||
/**
|
||||
* @test
|
||||
* @key headful
|
||||
* @bug 8041990
|
||||
* @summary Language specific keys does not work in applets when opened outside the browser
|
||||
* @author Petr Pchelko
|
||||
*/
|
||||
|
||||
|
||||
import sun.awt.SunToolkit;
|
||||
|
||||
|
||||
@ -1,5 +1,5 @@
|
||||
/*
|
||||
* Copyright (c) 2013, Oracle and/or its affiliates. All rights reserved.
|
||||
* Copyright (c) 2013, 2017, 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
|
||||
@ -45,6 +45,7 @@ import sun.awt.image.MultiResolutionImage;
|
||||
/**
|
||||
* @test
|
||||
* @bug 8011059
|
||||
* @key headful
|
||||
* @author Alexander Scherbatiy
|
||||
* @summary [macosx] Make JDK demos look perfect on retina displays
|
||||
* @run main MultiResolutionImageTest CUSTOM
|
||||
@ -52,6 +53,7 @@ import sun.awt.image.MultiResolutionImage;
|
||||
* @run main MultiResolutionImageTest TOOLKIT_LOAD
|
||||
* @run main MultiResolutionImageTest TOOLKIT
|
||||
*/
|
||||
|
||||
public class MultiResolutionImageTest {
|
||||
|
||||
private static final int IMAGE_WIDTH = 300;
|
||||
|
||||
@ -1,5 +1,5 @@
|
||||
/*
|
||||
* Copyright (c) 2014, Oracle and/or its affiliates. All rights reserved.
|
||||
* Copyright (c) 2014, 2017, 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
|
||||
@ -36,11 +36,13 @@ import sun.awt.image.MultiResolutionToolkitImage;
|
||||
|
||||
/**
|
||||
* @test
|
||||
* @key headful
|
||||
* @bug 8040291
|
||||
* @author Alexander Scherbatiy
|
||||
* @summary [macosx] Http-Images are not fully loaded when using ImageIcon
|
||||
* @run main MultiResolutionToolkitImageTest
|
||||
*/
|
||||
|
||||
public class MultiResolutionToolkitImageTest {
|
||||
|
||||
private static final int IMAGE_WIDTH = 300;
|
||||
|
||||
@ -1,5 +1,5 @@
|
||||
/*
|
||||
* Copyright (c) 2014, Oracle and/or its affiliates. All rights reserved.
|
||||
* Copyright (c) 2014, 2017, 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
|
||||
@ -25,16 +25,15 @@ import java.awt.*;
|
||||
import java.awt.event.*;
|
||||
|
||||
/**
|
||||
* Test that it is possible to type "Alt code" on Windows.
|
||||
* Windows-only test.
|
||||
* @test
|
||||
* @key headful
|
||||
* @summary Test that it is possible to type "Alt code" on Windows.
|
||||
* @requires (os.family == "windows")
|
||||
* @library ../../../../lib/testlibrary
|
||||
* @build ExtendedRobot
|
||||
* @run main AltPlusNumberKeyCombinationsTest
|
||||
*/
|
||||
/*
|
||||
@test
|
||||
@summary Test that it is possible to type "Alt code" on Windows.
|
||||
@library ../../../../lib/testlibrary
|
||||
@build ExtendedRobot
|
||||
@run main AltPlusNumberKeyCombinationsTest
|
||||
*/
|
||||
|
||||
public class AltPlusNumberKeyCombinationsTest {
|
||||
|
||||
private Frame frame;
|
||||
|
||||
@ -1,5 +1,5 @@
|
||||
/*
|
||||
* Copyright (c) 2007, Oracle and/or its affiliates. All rights reserved.
|
||||
* Copyright (c) 2007, 2017, 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
|
||||
@ -23,6 +23,7 @@
|
||||
|
||||
/**
|
||||
* @test
|
||||
* @key printer
|
||||
* @bug 4151151
|
||||
* @summary Confirm that low-level print code does doPrivilege.
|
||||
* @author Graham Hamilton
|
||||
|
||||
@ -23,6 +23,7 @@
|
||||
|
||||
/**
|
||||
* @test
|
||||
* @key printer
|
||||
* @bug 6467557
|
||||
* @summary No exception should be thrown.
|
||||
* @run main ExceptionTest
|
||||
|
||||
@ -1,5 +1,5 @@
|
||||
/*
|
||||
* Copyright (c) 2014, Oracle and/or its affiliates. All rights reserved.
|
||||
* Copyright (c) 2014, 2017, 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
|
||||
@ -23,6 +23,7 @@
|
||||
|
||||
/**
|
||||
* @test
|
||||
* @key printer
|
||||
* @bug 8061392
|
||||
* @summary Test no NPE when printing transparency with null clip.
|
||||
*/
|
||||
|
||||
@ -1,5 +1,5 @@
|
||||
/*
|
||||
* Copyright (c) 2007, Oracle and/or its affiliates. All rights reserved.
|
||||
* Copyright (c) 2007, 2017, 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
|
||||
@ -23,6 +23,7 @@
|
||||
|
||||
/**
|
||||
* @test
|
||||
* @key headful
|
||||
* @bug 6543815
|
||||
* @summary Image should be sent to printer, no exceptions thrown.
|
||||
* The 2 printouts should have a rectangle which is the minimum
|
||||
|
||||
@ -1,5 +1,5 @@
|
||||
/*
|
||||
* Copyright (c) 2007, 2014, Oracle and/or its affiliates. All rights reserved.
|
||||
* Copyright (c) 2007, 2017, 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
|
||||
@ -23,6 +23,7 @@
|
||||
|
||||
/**
|
||||
* @test
|
||||
* @key headful printer
|
||||
* @bug 6498340
|
||||
* @summary No exception when printing text with a paint.
|
||||
* @run main PaintText
|
||||
|
||||
@ -21,9 +21,9 @@
|
||||
* questions.
|
||||
*/
|
||||
|
||||
/*
|
||||
/**
|
||||
* @test
|
||||
* @key headful
|
||||
* @key printer headful
|
||||
* @bug 8163889
|
||||
* @summary Printing crashes on OSX.
|
||||
* @run main PrintCrashTest
|
||||
|
||||
@ -21,14 +21,15 @@
|
||||
* questions.
|
||||
*/
|
||||
|
||||
/*
|
||||
@test PrintTextPane.java
|
||||
@bug 6452415 6570471
|
||||
@summary Test that swing text prints using GDI printer fonts.
|
||||
@author prr: area=PrinterJob
|
||||
@run main PrintTextPane
|
||||
|
||||
/**
|
||||
* @test PrintTextPane.java
|
||||
* @key headful printer
|
||||
* @bug 6452415 6570471
|
||||
* @summary Test that swing text prints using GDI printer fonts.
|
||||
* @author prr: area=PrinterJob
|
||||
* @run main PrintTextPane
|
||||
*/
|
||||
|
||||
import java.io.*;
|
||||
import java.net.*;
|
||||
import java.awt.*;
|
||||
|
||||
@ -1,5 +1,5 @@
|
||||
/*
|
||||
* Copyright (c) 2001, 2009, Oracle and/or its affiliates. All rights reserved.
|
||||
* Copyright (c) 2001, 2017, 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
|
||||
@ -20,12 +20,14 @@
|
||||
* or visit www.oracle.com if you need additional information or have any
|
||||
* questions.
|
||||
*/
|
||||
/*
|
||||
@test
|
||||
@bug 4429544
|
||||
@summary This test should not throw a printer exception. Test has been modified to correspond with the behavior of 1.5 and above.
|
||||
@run main PrtException
|
||||
*/
|
||||
|
||||
/**
|
||||
* @test
|
||||
* @key printer
|
||||
* @bug 4429544
|
||||
* @summary This test should not throw a printer exception. Test has been modified to correspond with the behavior of 1.5 and above.
|
||||
* @run main PrtException
|
||||
*/
|
||||
|
||||
import java.awt.*;
|
||||
import java.awt.print.*;
|
||||
|
||||
@ -1,5 +1,5 @@
|
||||
/*
|
||||
* Copyright (c) 2004, 2009, Oracle and/or its affiliates. All rights reserved.
|
||||
* Copyright (c) 2004, 2017, 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
|
||||
@ -21,12 +21,14 @@
|
||||
* questions.
|
||||
*/
|
||||
|
||||
/*
|
||||
/**
|
||||
* @test
|
||||
* @key printer
|
||||
* @bug 4996318 6731937
|
||||
* @summary There should be no duplicates returned by getSupportedDocFlavors.
|
||||
* @run main CheckDupFlavor
|
||||
*/
|
||||
|
||||
import javax.print.*;
|
||||
import javax.print.attribute.*;
|
||||
import javax.print.attribute.standard.*;
|
||||
|
||||
@ -1,7 +1,7 @@
|
||||
#!/bin/sh
|
||||
|
||||
#
|
||||
# Copyright (c) 2008, Oracle and/or its affiliates. All rights reserved.
|
||||
# Copyright (c) 2008, 2017, 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
|
||||
@ -24,8 +24,11 @@
|
||||
#
|
||||
|
||||
# @test
|
||||
# @key printer
|
||||
# @bug 6662775
|
||||
# @summary Tests queuePrintJob is sufficient permission.
|
||||
# @summary Tests queuePrintJob is sufficient permission for printing. This test
|
||||
# prints a page to a printer. If a document printer is installed, a
|
||||
# popup can appear (to select the file location).
|
||||
# @run clean PrintSE
|
||||
# @run build PrintSE
|
||||
# @run compile PrintSE.java
|
||||
|
||||
@ -1,5 +1,5 @@
|
||||
/*
|
||||
* Copyright (c) 2006, 2010, Oracle and/or its affiliates. All rights reserved.
|
||||
* Copyright (c) 2006, 2017, 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
|
||||
@ -21,12 +21,14 @@
|
||||
* questions.
|
||||
*/
|
||||
|
||||
/*
|
||||
/**
|
||||
* @test
|
||||
* @key printer
|
||||
* @bug 6387255
|
||||
* @summary Tests conflict of Media values returned by isAttrValueSupported and getSupportedAttrValues. No runtime exception should be thrown.
|
||||
* @run main AttributeTest
|
||||
*/
|
||||
|
||||
import javax.print.*;
|
||||
import javax.print.attribute.standard.*;
|
||||
import javax.print.attribute.*;
|
||||
|
||||
@ -1,5 +1,5 @@
|
||||
/*
|
||||
* Copyright (c) 2001, 2009, Oracle and/or its affiliates. All rights reserved.
|
||||
* Copyright (c) 2001, 2017, 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
|
||||
@ -20,12 +20,14 @@
|
||||
* or visit www.oracle.com if you need additional information or have any
|
||||
* questions.
|
||||
*/
|
||||
/*
|
||||
@test
|
||||
@bug 4463280
|
||||
@summary No ClassCastException should occur.
|
||||
@run main GetCopiesSupported
|
||||
*/
|
||||
|
||||
/**
|
||||
* @test
|
||||
* @key printer
|
||||
* @bug 4463280
|
||||
* @summary No ClassCastException should occur.
|
||||
* @run main GetCopiesSupported
|
||||
*/
|
||||
|
||||
import javax.print.*;
|
||||
import javax.print.attribute.*;
|
||||
|
||||
@ -1,5 +1,5 @@
|
||||
/*
|
||||
* Copyright (c) 2003, 2010, Oracle and/or its affiliates. All rights reserved.
|
||||
* Copyright (c) 2003, 2017, 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
|
||||
@ -20,12 +20,15 @@
|
||||
* or visit www.oracle.com if you need additional information or have any
|
||||
* questions.
|
||||
*/
|
||||
/*
|
||||
|
||||
/**
|
||||
* @test
|
||||
* @key printer
|
||||
* @bug 4903366
|
||||
* @summary No crash should occur.
|
||||
* @run main SidesPageRangesTest
|
||||
*/
|
||||
*/
|
||||
|
||||
import java.awt.*;
|
||||
import javax.print.*;
|
||||
import javax.print.attribute.standard.*;
|
||||
|
||||
@ -1,5 +1,5 @@
|
||||
/*
|
||||
* Copyright (c) 2003, 2009, Oracle and/or its affiliates. All rights reserved.
|
||||
* Copyright (c) 2003, 2017, 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
|
||||
@ -21,8 +21,9 @@
|
||||
* questions.
|
||||
*/
|
||||
|
||||
/*
|
||||
/**
|
||||
* @test
|
||||
* @key printer
|
||||
* @bug 4762773 6289206 6324049 6362765
|
||||
* @summary Tests that get non-null return list of printable areas.
|
||||
* @run main SupportedPrintableAreas
|
||||
|
||||
@ -1,5 +1,5 @@
|
||||
/*
|
||||
* Copyright (c) 2014, Oracle and/or its affiliates. All rights reserved.
|
||||
* Copyright (c) 2014, 2017, 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
|
||||
@ -26,8 +26,9 @@ import javax.swing.JComboBox;
|
||||
import javax.swing.JFrame;
|
||||
import javax.swing.SwingUtilities;
|
||||
|
||||
/*
|
||||
/**
|
||||
* @test
|
||||
* @key headful
|
||||
* @bug 8019180
|
||||
* @summary Tests that combobox works if it is used as action listener
|
||||
* @author Sergey Malenkov
|
||||
|
||||
@ -1,5 +1,5 @@
|
||||
/*
|
||||
* Copyright (c) 2009, 2013, Oracle and/or its affiliates. All rights reserved.
|
||||
* Copyright (c) 2009, 2017, 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
|
||||
@ -21,8 +21,9 @@
|
||||
* questions.
|
||||
*/
|
||||
|
||||
/*
|
||||
/**
|
||||
* @test
|
||||
* @key headful
|
||||
* @bug 4337267
|
||||
* @summary test that numeric shaping works in Swing components
|
||||
* @author Sergey Groznyh
|
||||
|
||||
@ -1,5 +1,5 @@
|
||||
/*
|
||||
* Copyright (c) 2014, Oracle and/or its affiliates. All rights reserved.
|
||||
* Copyright (c) 2014, 2017, 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
|
||||
@ -22,13 +22,15 @@
|
||||
*/
|
||||
|
||||
|
||||
/*
|
||||
@test
|
||||
@bug 8043610
|
||||
@summary Tests that JComponent invalidate, revalidate and repaint methods could
|
||||
be called from any thread
|
||||
@author Petr Pchelko
|
||||
*/
|
||||
/**
|
||||
* @test
|
||||
* @key headful
|
||||
* @bug 8043610
|
||||
* @summary Tests that JComponent invalidate, revalidate and repaint methods could
|
||||
* be called from any thread
|
||||
* @author Petr Pchelko
|
||||
*/
|
||||
|
||||
|
||||
import sun.awt.SunToolkit;
|
||||
|
||||
|
||||
@ -1,5 +1,5 @@
|
||||
/*
|
||||
* Copyright (c) 2010, Oracle and/or its affiliates. All rights reserved.
|
||||
* Copyright (c) 2010, 2017, 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
|
||||
@ -21,11 +21,14 @@
|
||||
* questions.
|
||||
*/
|
||||
|
||||
/* @test
|
||||
@bug 6639507
|
||||
@summary Title of javax.swing.JDialog is null while spec says it's empty
|
||||
@author Pavel Porvatov
|
||||
*/
|
||||
/**
|
||||
* @test
|
||||
* @key headful
|
||||
* @bug 6639507
|
||||
* @summary Title of javax.swing.JDialog is null while spec says it's empty
|
||||
* @author Pavel Porvatov
|
||||
*/
|
||||
|
||||
import javax.swing.*;
|
||||
import java.awt.*;
|
||||
|
||||
|
||||
@ -1,5 +1,5 @@
|
||||
/*
|
||||
* Copyright (c) 2009, Oracle and/or its affiliates. All rights reserved.
|
||||
* Copyright (c) 2009, 2017, 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
|
||||
@ -21,12 +21,14 @@
|
||||
* questions.
|
||||
*/
|
||||
|
||||
/* @test
|
||||
@bug 6713352
|
||||
@summary Deadlock in JFileChooser with synchronized custom FileSystemView
|
||||
@author Pavel Porvatov
|
||||
@run main bug6713352
|
||||
*/
|
||||
/**
|
||||
* @test
|
||||
* @key headful
|
||||
* @bug 6713352
|
||||
* @summary Deadlock in JFileChooser with synchronized custom FileSystemView
|
||||
* @author Pavel Porvatov
|
||||
* @run main bug6713352
|
||||
*/
|
||||
|
||||
import sun.awt.shell.ShellFolder;
|
||||
|
||||
|
||||
@ -1,5 +1,5 @@
|
||||
/*
|
||||
* Copyright (c) 2013, Oracle and/or its affiliates. All rights reserved.
|
||||
* Copyright (c) 2013, 2017, 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
|
||||
@ -21,11 +21,13 @@
|
||||
* questions.
|
||||
*/
|
||||
|
||||
/*
|
||||
/**
|
||||
* @test
|
||||
* @key headful
|
||||
* @bug 6817933
|
||||
* @summary Tests that HTMLEditorKit does not affect JFileChooser
|
||||
* @author Sergey Malenkov
|
||||
* @requires (os.family == "windows")
|
||||
*/
|
||||
|
||||
import java.awt.Color;
|
||||
|
||||
@ -1,5 +1,5 @@
|
||||
/*
|
||||
* Copyright (c) 2013, Oracle and/or its affiliates. All rights reserved.
|
||||
* Copyright (c) 2013, 2017, 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
|
||||
@ -21,8 +21,9 @@
|
||||
* questions.
|
||||
*/
|
||||
|
||||
/*
|
||||
/**
|
||||
* @test
|
||||
* @key headful
|
||||
* @bug 8013442
|
||||
* @summary Tests that at least one file filter is selected
|
||||
* @author Sergey Malenkov
|
||||
|
||||
@ -1,5 +1,5 @@
|
||||
/*
|
||||
* Copyright (c) 2013, Oracle and/or its affiliates. All rights reserved.
|
||||
* Copyright (c) 2013, 2017, 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
|
||||
@ -21,12 +21,15 @@
|
||||
* questions.
|
||||
*/
|
||||
|
||||
/* @test
|
||||
@bug 8016356
|
||||
@summary Any swing frame resizes ugly.
|
||||
@run main bug8016356
|
||||
@author Oleg Pekhovskiy
|
||||
*/
|
||||
/**
|
||||
* @test
|
||||
* @key headful
|
||||
* @bug 8016356
|
||||
* @summary Any swing frame resizes ugly.
|
||||
* @author Oleg Pekhovskiy
|
||||
* @requires (os.family == "windows")
|
||||
* @run main bug8016356
|
||||
*/
|
||||
|
||||
import java.awt.AWTException;
|
||||
import java.awt.Color;
|
||||
|
||||
@ -1,5 +1,5 @@
|
||||
/*
|
||||
* Copyright (c) 2013, Oracle and/or its affiliates. All rights reserved.
|
||||
* Copyright (c) 2013, 2017, 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
|
||||
@ -32,6 +32,7 @@ import jdk.testlibrary.OSInfo;
|
||||
|
||||
/**
|
||||
* @test
|
||||
* @key headful
|
||||
* @bug 7124513
|
||||
* @summary We should support NSTexturedBackgroundWindowMask style on OSX.
|
||||
* @author Sergey Bylokhov
|
||||
@ -39,6 +40,7 @@ import jdk.testlibrary.OSInfo;
|
||||
* @build ExtendedRobot jdk.testlibrary.OSInfo
|
||||
* @run main NSTexturedJFrame
|
||||
*/
|
||||
|
||||
public final class NSTexturedJFrame {
|
||||
|
||||
private static final String BRUSH = "apple.awt.brushMetalLook";
|
||||
|
||||
@ -1,5 +1,5 @@
|
||||
/*
|
||||
* Copyright (c) 2009, Oracle and/or its affiliates. All rights reserved.
|
||||
* Copyright (c) 2009, 2017, 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
|
||||
@ -21,8 +21,9 @@
|
||||
* questions.
|
||||
*/
|
||||
|
||||
/*
|
||||
/**
|
||||
* @test
|
||||
* @key headful
|
||||
* @bug 6325652
|
||||
* @summary Tests keyboard shortcuts
|
||||
* @author Sergey Malenkov
|
||||
|
||||
@ -1,5 +1,5 @@
|
||||
/*
|
||||
* Copyright (c) 2011, 2014, Oracle and/or its affiliates. All rights reserved.
|
||||
* Copyright (c) 2011, 2017, 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
|
||||
@ -20,14 +20,18 @@
|
||||
* or visit www.oracle.com if you need additional information or have any
|
||||
* questions.
|
||||
*/
|
||||
/* @test
|
||||
@bug 6538132
|
||||
@summary Regression: Pressing Escape key don't close the menu items from jdk7.0 b07 onwards
|
||||
@author Alexander Potochkin
|
||||
@library ../../../../lib/testlibrary
|
||||
@build ExtendedRobot
|
||||
@run main bug6538132
|
||||
*/
|
||||
|
||||
/**
|
||||
* @test
|
||||
* @key headful
|
||||
* @bug 6538132
|
||||
* @summary Regression: Pressing Escape key don't close the menu items from jdk7.0 b07 onwards
|
||||
* @author Alexander Potochkin
|
||||
* @requires (os.family == "windows")
|
||||
* @library ../../../../lib/testlibrary
|
||||
* @build ExtendedRobot
|
||||
* @run main bug6538132
|
||||
*/
|
||||
|
||||
import javax.swing.*;
|
||||
import java.awt.*;
|
||||
|
||||
@ -1,5 +1,5 @@
|
||||
/*
|
||||
* Copyright (c) 2016, Oracle and/or its affiliates. All rights reserved.
|
||||
* Copyright (c) 2016, 2017, 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
|
||||
@ -21,13 +21,15 @@
|
||||
* questions.
|
||||
*/
|
||||
|
||||
/*
|
||||
/**
|
||||
* @test
|
||||
* @key headful
|
||||
* @bug 8152981 8159135
|
||||
* @summary Double icons with JMenuItem setHorizontalTextPosition on Win 10
|
||||
* @requires (os.family == "windows")
|
||||
* @run main MenuItemIconTest
|
||||
*/
|
||||
|
||||
import java.awt.Color;
|
||||
import java.awt.Dimension;
|
||||
import java.awt.Graphics;
|
||||
|
||||
@ -21,8 +21,9 @@
|
||||
* questions.
|
||||
*/
|
||||
|
||||
/*
|
||||
/**
|
||||
* @test
|
||||
* @key headful
|
||||
* @bug 7160951
|
||||
* @summary [macosx] ActionListener called twice for JMenuItem using ScreenMenuBar
|
||||
* @author vera.akulova@oracle.com
|
||||
|
||||
@ -1,5 +1,5 @@
|
||||
/*
|
||||
* Copyright (c) 2011, 2014, Oracle and/or its affiliates. All rights reserved.
|
||||
* Copyright (c) 2011, 2017, 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
|
||||
@ -20,15 +20,18 @@
|
||||
* or visit www.oracle.com if you need additional information or have any
|
||||
* questions.
|
||||
*/
|
||||
/*
|
||||
@test
|
||||
@bug 6217905
|
||||
@summary JPopupMenu keyboard navigation stops working
|
||||
@author Alexander Potochkin
|
||||
@library ../../../../lib/testlibrary
|
||||
@build ExtendedRobot
|
||||
@run main bug6217905
|
||||
*/
|
||||
|
||||
/**
|
||||
* @test
|
||||
* @key headful
|
||||
* @bug 6217905
|
||||
* @summary JPopupMenu keyboard navigation stops working
|
||||
* @author Alexander Potochkin
|
||||
* @requires (os.family == "windows")
|
||||
* @library ../../../../lib/testlibrary
|
||||
* @build ExtendedRobot
|
||||
* @run main bug6217905
|
||||
*/
|
||||
|
||||
import javax.swing.*;
|
||||
import java.awt.*;
|
||||
|
||||
@ -21,14 +21,15 @@
|
||||
* questions.
|
||||
*/
|
||||
|
||||
/*
|
||||
@test
|
||||
@bug 7154841
|
||||
@summary JPopupMenu is overlapped by a Dock on Mac OS X
|
||||
@author Petr Pchelko
|
||||
@library ../../../../lib/testlibrary
|
||||
@build ExtendedRobot jdk.testlibrary.OSInfo
|
||||
@run main bug7154841
|
||||
/**
|
||||
* @test
|
||||
* @key headful
|
||||
* @bug 7154841
|
||||
* @summary JPopupMenu is overlapped by a Dock on Mac OS X
|
||||
* @author Petr Pchelko
|
||||
* @library ../../../../lib/testlibrary
|
||||
* @build ExtendedRobot jdk.testlibrary.OSInfo
|
||||
* @run main bug7154841
|
||||
*/
|
||||
|
||||
import java.awt.*;
|
||||
|
||||
@ -1,5 +1,5 @@
|
||||
/*
|
||||
* Copyright (c) 2014, Oracle and/or its affiliates. All rights reserved.
|
||||
* Copyright (c) 2014, 2017, 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
|
||||
@ -37,6 +37,7 @@ import javax.swing.plaf.metal.MetalLookAndFeel;
|
||||
|
||||
/**
|
||||
* @test
|
||||
* @key headful
|
||||
* @bug 7170310
|
||||
* @author Alexey Ivanov
|
||||
* @summary Selected tab should be scrolled into view.
|
||||
@ -44,6 +45,7 @@ import javax.swing.plaf.metal.MetalLookAndFeel;
|
||||
* @build ExtendedRobot
|
||||
* @run main bug7170310
|
||||
*/
|
||||
|
||||
public class bug7170310 {
|
||||
private static final int TABS_NUMBER = 3;
|
||||
|
||||
@ -75,7 +77,7 @@ public class bug7170310 {
|
||||
System.out.printf("Test passed");
|
||||
}
|
||||
} finally {
|
||||
frame.dispose();
|
||||
if (frame != null) { frame.dispose(); }
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
@ -1,5 +1,5 @@
|
||||
/*
|
||||
* Copyright (c) 2010, Oracle and/or its affiliates. All rights reserved.
|
||||
* Copyright (c) 2010, 2017, 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
|
||||
@ -21,10 +21,13 @@
|
||||
* questions.
|
||||
*/
|
||||
|
||||
/* @test
|
||||
/**
|
||||
* @test
|
||||
* @key headful
|
||||
* @bug 6940863
|
||||
* @summary Textarea within scrollpane shows vertical scrollbar
|
||||
* @author Pavel Porvatov
|
||||
* @requires (os.family == "windows")
|
||||
* @run main bug6940863
|
||||
*/
|
||||
|
||||
|
||||
@ -1,5 +1,5 @@
|
||||
/*
|
||||
* Copyright (c) 2010, Oracle and/or its affiliates. All rights reserved.
|
||||
* Copyright (c) 2010, 2017, 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
|
||||
@ -23,6 +23,7 @@
|
||||
|
||||
/*
|
||||
* @test
|
||||
* @key headful
|
||||
* @bug 6938813
|
||||
* @summary Swing mutable statics
|
||||
* @author Pavel Porvatov
|
||||
|
||||
@ -21,27 +21,27 @@
|
||||
* questions.
|
||||
*/
|
||||
|
||||
/* @test
|
||||
* @bug 7123767
|
||||
*
|
||||
* @summary Check if a tooltip location in Multi-Monitor
|
||||
* configurations is correct.
|
||||
* If the configurations number per device exceeds 5,
|
||||
* then some 5 random configurations will be checked.
|
||||
* Please Use -Dseed=X to set the random generator seed
|
||||
* (if necessary).
|
||||
*
|
||||
* @author Vladislav Karnaukhov
|
||||
*
|
||||
* @key headful
|
||||
* @key randomness
|
||||
*
|
||||
* @modules java.desktop/sun.awt
|
||||
* @library /lib/testlibrary/
|
||||
* @build jdk.testlibrary.*
|
||||
*
|
||||
* @run main/timeout=300 bug7123767
|
||||
*/
|
||||
/**
|
||||
* @test
|
||||
* @bug 7123767
|
||||
*
|
||||
* @summary Check if a tooltip location in Multi-Monitor
|
||||
* configurations is correct.
|
||||
* If the configurations number per device exceeds 5,
|
||||
* then some 5 random configurations will be checked.
|
||||
* Please Use -Dseed=X to set the random generator seed
|
||||
* (if necessary).
|
||||
*
|
||||
* @author Vladislav Karnaukhov
|
||||
*
|
||||
* @key headful randomness
|
||||
*
|
||||
* @modules java.desktop/sun.awt
|
||||
* @library /lib/testlibrary/
|
||||
* @build jdk.testlibrary.*
|
||||
*
|
||||
* @run main/timeout=300 bug7123767
|
||||
*/
|
||||
|
||||
import javax.swing.*;
|
||||
import javax.swing.plaf.metal.MetalLookAndFeel;
|
||||
|
||||
@ -1,5 +1,5 @@
|
||||
/*
|
||||
* Copyright (c) 2015, Oracle and/or its affiliates. All rights reserved.
|
||||
* Copyright (c) 2015, 2017, 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
|
||||
@ -21,14 +21,16 @@
|
||||
* questions.
|
||||
*/
|
||||
|
||||
/* @test
|
||||
@bug 8073001 8081764
|
||||
@summary Test verifies that combo box with custom editor renders
|
||||
focus ring around arrow button correctly.
|
||||
@library /lib/testlibrary
|
||||
@build jdk.testlibrary.OSInfo
|
||||
@run main CustomComboBoxFocusTest
|
||||
*/
|
||||
/**
|
||||
* @test
|
||||
* @key headful
|
||||
* @bug 8073001 8081764
|
||||
* @summary Test verifies that combo box with custom editor renders
|
||||
* focus ring around arrow button correctly.
|
||||
* @library /lib/testlibrary
|
||||
* @build jdk.testlibrary.OSInfo
|
||||
* @run main CustomComboBoxFocusTest
|
||||
*/
|
||||
|
||||
import java.awt.AWTException;
|
||||
import java.awt.Component;
|
||||
|
||||
@ -1,5 +1,5 @@
|
||||
/*
|
||||
* Copyright (c) 2016, Oracle and/or its affiliates. All rights reserved.
|
||||
* Copyright (c) 2016, 2017, 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
|
||||
@ -23,6 +23,7 @@
|
||||
|
||||
/*
|
||||
* @test
|
||||
* @key headful
|
||||
* @bug 8154069
|
||||
* @summary Jaws reads wrong values from comboboxes when no element is selected
|
||||
* @run main Bug8154069
|
||||
@ -89,7 +90,7 @@ public class Bug8154069 {
|
||||
}
|
||||
} finally {
|
||||
SwingUtilities.invokeAndWait(() -> {
|
||||
frame.dispose();
|
||||
if (frame != null) { frame.dispose(); }
|
||||
});
|
||||
}
|
||||
}
|
||||
|
||||
@ -1,5 +1,5 @@
|
||||
/*
|
||||
* Copyright (c) 2015, Oracle and/or its affiliates. All rights reserved.
|
||||
* Copyright (c) 2015, 2017, 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
|
||||
@ -21,12 +21,14 @@
|
||||
* questions.
|
||||
*/
|
||||
|
||||
/* @test
|
||||
@bug 4960629 7124238
|
||||
@summary Tests if font for html text on widgets in correct.
|
||||
@author Denis Sharypov
|
||||
@run main bug4960629
|
||||
*/
|
||||
/**
|
||||
* @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;
|
||||
@ -57,7 +59,7 @@ public class bug4960629 {
|
||||
f.setVisible(true);
|
||||
test();
|
||||
} finally {
|
||||
f.dispose();
|
||||
if (f != null) { f.dispose(); }
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
@ -1,5 +1,5 @@
|
||||
/*
|
||||
* Copyright (c) 2015, Oracle and/or its affiliates. All rights reserved.
|
||||
* Copyright (c) 2015, 2017, 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
|
||||
@ -21,14 +21,17 @@
|
||||
* questions.
|
||||
*/
|
||||
|
||||
/* @test
|
||||
@bug 7172652
|
||||
@summary With JDK 1.7 text field does not obtain focus when using mnemonic Alt/Key combin
|
||||
@author Semyon Sadetsky
|
||||
@library /lib/testlibrary
|
||||
@build jdk.testlibrary.OSInfo
|
||||
@run main bug7172652
|
||||
*/
|
||||
/**
|
||||
* @test
|
||||
* @key headful
|
||||
* @bug 7172652
|
||||
* @summary With JDK 1.7 text field does not obtain focus when using mnemonic Alt/Key combin
|
||||
* @author Semyon Sadetsky
|
||||
* @requires (os.family == "windows")
|
||||
* @library /lib/testlibrary
|
||||
* @build jdk.testlibrary.OSInfo
|
||||
* @run main bug7172652
|
||||
*/
|
||||
|
||||
import javax.swing.*;
|
||||
import javax.swing.event.ChangeEvent;
|
||||
|
||||
@ -1,5 +1,5 @@
|
||||
/*
|
||||
* Copyright (c) 2015, Oracle and/or its affiliates. All rights reserved.
|
||||
* Copyright (c) 2015, 2017, 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
|
||||
@ -21,11 +21,13 @@
|
||||
* questions.
|
||||
*/
|
||||
|
||||
/* @test
|
||||
@bug 8134828
|
||||
@summary Scrollbar thumb disappears with Nimbus L&F
|
||||
@author Semyon Sadetsky
|
||||
*/
|
||||
/**
|
||||
* @test
|
||||
* @key headful
|
||||
* @bug 8134828
|
||||
* @summary Scrollbar thumb disappears with Nimbus L&F
|
||||
* @author Semyon Sadetsky
|
||||
*/
|
||||
|
||||
import javax.swing.*;
|
||||
import java.awt.*;
|
||||
@ -76,7 +78,7 @@ public class ScrollBarThumbVisibleTest
|
||||
SwingUtilities.invokeAndWait(new Runnable() {
|
||||
@Override
|
||||
public void run() {
|
||||
frame.dispose();
|
||||
if (frame != null) { frame.dispose(); }
|
||||
}
|
||||
});
|
||||
}
|
||||
|
||||
@ -21,12 +21,15 @@
|
||||
* questions.
|
||||
*/
|
||||
|
||||
/* @test
|
||||
@bug 8001633 8028271 8039888
|
||||
@summary Wrong alt processing during switching between windows
|
||||
@author mikhail.cherkasov@oracle.com
|
||||
@run main WrongAltProcessing
|
||||
*/
|
||||
/**
|
||||
* @test
|
||||
* @key headful
|
||||
* @bug 8001633 8028271 8039888
|
||||
* @summary Wrong alt processing during switching between windows
|
||||
* @author mikhail.cherkasov@oracle.com
|
||||
* @requires (os.family == "windows")
|
||||
* @run main WrongAltProcessing
|
||||
*/
|
||||
|
||||
import javax.swing.*;
|
||||
import java.awt.*;
|
||||
|
||||
@ -1,5 +1,5 @@
|
||||
/*
|
||||
* Copyright (c) 2009, 2010, Oracle and/or its affiliates. All rights reserved.
|
||||
* Copyright (c) 2009, 2017, 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
|
||||
@ -21,13 +21,15 @@
|
||||
* questions.
|
||||
*/
|
||||
|
||||
/* @test
|
||||
@bug 6799345
|
||||
@summary Tests that no exceptions are thrown from TimerQueue and
|
||||
SwingWorker on AppContext shutdown
|
||||
@author art
|
||||
@run main TestShutdown
|
||||
*/
|
||||
/**
|
||||
* @test
|
||||
* @bug 6799345
|
||||
* @key headful
|
||||
* @summary Tests that no exceptions are thrown from TimerQueue and
|
||||
* SwingWorker on AppContext shutdown
|
||||
* @author art
|
||||
* @run main TestShutdown
|
||||
*/
|
||||
|
||||
import java.awt.*;
|
||||
import java.awt.event.*;
|
||||
|
||||
@ -1,5 +1,5 @@
|
||||
/*
|
||||
* Copyright (c) 2007, 2016, Oracle and/or its affiliates. All rights reserved.
|
||||
* Copyright (c) 2007, 2017, 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
|
||||
@ -21,13 +21,15 @@
|
||||
* questions.
|
||||
*/
|
||||
|
||||
/* @test
|
||||
@bug 6452106 6606443 8161195
|
||||
@author Peter Zhelezniakov
|
||||
@library ../../regtesthelpers
|
||||
@build Test JRobot SwingTestHelper
|
||||
@run main/timeout=300 LayoutTest
|
||||
*/
|
||||
/**
|
||||
* @test
|
||||
* @key headful
|
||||
* @bug 6452106 6606443 8161195
|
||||
* @author Peter Zhelezniakov
|
||||
* @library ../../regtesthelpers
|
||||
* @build Test JRobot SwingTestHelper
|
||||
* @run main/timeout=300 LayoutTest
|
||||
*/
|
||||
|
||||
import javax.swing.text.*;
|
||||
import javax.swing.*;
|
||||
|
||||
@ -1,5 +1,5 @@
|
||||
/*
|
||||
* Copyright (c) 2007, 2013, Oracle and/or its affiliates. All rights reserved.
|
||||
* Copyright (c) 2007, 2017, 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
|
||||
@ -21,8 +21,9 @@
|
||||
* questions.
|
||||
*/
|
||||
|
||||
/*
|
||||
/**
|
||||
* @test
|
||||
* @key headful
|
||||
* @bug 8015853
|
||||
* @summary Tests the rendering of a large HTML document
|
||||
* @author Dmitry Markov
|
||||
|
||||
@ -21,11 +21,13 @@
|
||||
* questions.
|
||||
*/
|
||||
|
||||
/* @test
|
||||
@bug 4783068
|
||||
@summary Disabled components should render grayed-out HTML
|
||||
@author Peter Zhelezniakov
|
||||
@run main Test4783068
|
||||
/**
|
||||
* @test
|
||||
* @key headful
|
||||
* @bug 4783068
|
||||
* @summary Disabled components should render grayed-out HTML
|
||||
* @author Peter Zhelezniakov
|
||||
* @run main Test4783068
|
||||
*/
|
||||
|
||||
import java.awt.*;
|
||||
|
||||
@ -1,5 +1,5 @@
|
||||
/*
|
||||
* Copyright (c) 2007, 2008, Oracle and/or its affiliates. All rights reserved.
|
||||
* Copyright (c) 2007, 2017, 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
|
||||
@ -21,14 +21,16 @@
|
||||
* questions.
|
||||
*/
|
||||
|
||||
/*
|
||||
/**
|
||||
* @test
|
||||
* @key headful
|
||||
* @bug 6668439
|
||||
* @summary Verifies that no exceptions are thrown when frame is resized to 0x0
|
||||
* @author Dmitri.Trembovetski@sun.com: area=Graphics
|
||||
* @run main/othervm IAEforEmptyFrameTest
|
||||
* @run main/othervm -Dsun.java2d.d3d=false IAEforEmptyFrameTest
|
||||
*/
|
||||
|
||||
import javax.swing.JFrame;
|
||||
|
||||
public class IAEforEmptyFrameTest {
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user