8202864: [TESTBUG] Need to replace the image used in two Swing tests
Reviewed-by: prr, jdv
--- a/test/jdk/javax/swing/JLayer/8041982/bug8041982.java Thu Jun 07 11:35:42 2018 -0700
+++ b/test/jdk/javax/swing/JLayer/8041982/bug8041982.java Fri Jun 08 12:52:50 2018 +0530
@@ -1,5 +1,5 @@
/*
- * Copyright (c) 2014, Oracle and/or its affiliates. All rights reserved.
+ * Copyright (c) 2014, 2018, 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
@@ -53,7 +53,7 @@
private class BusyLayer extends LayerUI<JComponent> {
private volatile boolean animated = true;
- private Icon icon = new ImageIcon(bug8041982.class.getResource("cupanim.gif"));
+ private Icon icon = new ImageIcon(bug8041982.class.getResource("duke.gif"));
private int imageUpdateCount;
@Override
Binary file test/jdk/javax/swing/JLayer/8041982/cupanim.gif has changed
Binary file test/jdk/javax/swing/JLayer/8041982/duke.gif has changed
--- a/test/jdk/javax/swing/JSlider/4987336/bug4987336.html Thu Jun 07 11:35:42 2018 -0700
+++ b/test/jdk/javax/swing/JSlider/4987336/bug4987336.html Fri Jun 08 12:52:50 2018 +0530
@@ -1,5 +1,5 @@
<!--
- Copyright (c) 2007, 2013, Oracle and/or its affiliates. All rights reserved.
+ Copyright (c) 2007, 2018, 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,7 +24,7 @@
<html>
<body>
<applet code="bug4987336.class" width=600 height=400></applet>
-There are four Sliders. Each of them has a label with animated gif (a cup of coffee)
+There are four Sliders. Each of them has a label with animated gif (a waving duke)
and a label with static image.
Check that for every LAF animation works for all Sliders.
--- a/test/jdk/javax/swing/JSlider/4987336/bug4987336.java Thu Jun 07 11:35:42 2018 -0700
+++ b/test/jdk/javax/swing/JSlider/4987336/bug4987336.java Fri Jun 08 12:52:50 2018 +0530
@@ -1,5 +1,5 @@
/*
- * Copyright (c) 2007, 2008, Oracle and/or its affiliates. All rights reserved.
+ * Copyright (c) 2007, 2018, 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,7 +37,7 @@
public class bug4987336 extends JApplet {
private static final String IMAGE_RES = "box.gif";
- private static final String ANIM_IMAGE_RES = "cupanim.gif";
+ private static final String ANIM_IMAGE_RES = "duke.gif";
public void init() {
JPanel pnLafs = new JPanel();
Binary file test/jdk/javax/swing/JSlider/4987336/cupanim.gif has changed
Binary file test/jdk/javax/swing/JSlider/4987336/duke.gif has changed