8202864: [TESTBUG] Need to replace the image used in two Swing tests
authorpsadhukhan
Fri, 08 Jun 2018 12:52:50 +0530
changeset 50493 8a3b993c6adc
parent 50492 bc4563382e8f
child 50494 1ac60dacaafb
8202864: [TESTBUG] Need to replace the image used in two Swing tests Reviewed-by: prr, jdv
test/jdk/javax/swing/JLayer/8041982/bug8041982.java
test/jdk/javax/swing/JLayer/8041982/cupanim.gif
test/jdk/javax/swing/JLayer/8041982/duke.gif
test/jdk/javax/swing/JSlider/4987336/bug4987336.html
test/jdk/javax/swing/JSlider/4987336/bug4987336.java
test/jdk/javax/swing/JSlider/4987336/cupanim.gif
test/jdk/javax/swing/JSlider/4987336/duke.gif
--- 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