harmony-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From hinde...@apache.org
Subject svn commit: r495929 - in /harmony/enhanced/classlib/trunk/modules/swing/src: main/java/common/javax/swing/plaf/basic/BasicSliderUI.java test/api/java/common/javax/swing/plaf/basic/BasicSliderUITest.java
Date Sat, 13 Jan 2007 17:21:51 GMT
Author: hindessm
Date: Sat Jan 13 09:21:50 2007
New Revision: 495929

URL: http://svn.apache.org/viewvc?view=rev&rev=495929
Log:
Applying patch from "[#HARMONY-2591] [classlib][swing]
javax.swing.plaf.basic.BasicSliderUI.ActionScroller.isEnabled() returns
false while RI returns true".

Modified:
    harmony/enhanced/classlib/trunk/modules/swing/src/main/java/common/javax/swing/plaf/basic/BasicSliderUI.java
    harmony/enhanced/classlib/trunk/modules/swing/src/test/api/java/common/javax/swing/plaf/basic/BasicSliderUITest.java

Modified: harmony/enhanced/classlib/trunk/modules/swing/src/main/java/common/javax/swing/plaf/basic/BasicSliderUI.java
URL: http://svn.apache.org/viewvc/harmony/enhanced/classlib/trunk/modules/swing/src/main/java/common/javax/swing/plaf/basic/BasicSliderUI.java?view=diff&rev=495929&r1=495928&r2=495929
==============================================================================
--- harmony/enhanced/classlib/trunk/modules/swing/src/main/java/common/javax/swing/plaf/basic/BasicSliderUI.java
(original)
+++ harmony/enhanced/classlib/trunk/modules/swing/src/main/java/common/javax/swing/plaf/basic/BasicSliderUI.java
Sat Jan 13 09:21:50 2007
@@ -70,7 +70,7 @@
         }
 
         public boolean isEnabled() {
-            return false;
+            return true;
         }
     }
 

Modified: harmony/enhanced/classlib/trunk/modules/swing/src/test/api/java/common/javax/swing/plaf/basic/BasicSliderUITest.java
URL: http://svn.apache.org/viewvc/harmony/enhanced/classlib/trunk/modules/swing/src/test/api/java/common/javax/swing/plaf/basic/BasicSliderUITest.java?view=diff&rev=495929&r1=495928&r2=495929
==============================================================================
--- harmony/enhanced/classlib/trunk/modules/swing/src/test/api/java/common/javax/swing/plaf/basic/BasicSliderUITest.java
(original)
+++ harmony/enhanced/classlib/trunk/modules/swing/src/test/api/java/common/javax/swing/plaf/basic/BasicSliderUITest.java
Sat Jan 13 09:21:50 2007
@@ -224,4 +224,14 @@
         sliderUI.setThumbLocation(-200, 500);
         assertEquals(new Point(-200, 500), sliderUI.thumbRect.getLocation());
     }
+    
+    /**
+     * Regression test for HARMONY-2591
+     * */
+    public void testActionScrollerEnabled() {
+        BasicSliderUI.ActionScroller m = sliderUI.new ActionScroller(new JSlider(),
+                3, true);
+        assertTrue(m.isEnabled());
+    } 
+    
 }



Mime
View raw message