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