harmony-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From apetre...@apache.org
Subject svn commit: r500984 - /harmony/enhanced/classlib/trunk/modules/swing/src/test/api/java/common/javax/swing/plaf/basic/BasicScrollBarUITest.java
Date Mon, 29 Jan 2007 09:51:05 GMT
Author: apetrenko
Date: Mon Jan 29 01:51:04 2007
New Revision: 500984

URL: http://svn.apache.org/viewvc?view=rev&rev=500984
Log:
Unit test for HARMONY-2854 "[classlib][swing] j.s.plaf.basic.BasicScrollBarUI.getTrackBounds()
returns not null on Harmony"

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

Modified: harmony/enhanced/classlib/trunk/modules/swing/src/test/api/java/common/javax/swing/plaf/basic/BasicScrollBarUITest.java
URL: http://svn.apache.org/viewvc/harmony/enhanced/classlib/trunk/modules/swing/src/test/api/java/common/javax/swing/plaf/basic/BasicScrollBarUITest.java?view=diff&rev=500984&r1=500983&r2=500984
==============================================================================
--- harmony/enhanced/classlib/trunk/modules/swing/src/test/api/java/common/javax/swing/plaf/basic/BasicScrollBarUITest.java
(original)
+++ harmony/enhanced/classlib/trunk/modules/swing/src/test/api/java/common/javax/swing/plaf/basic/BasicScrollBarUITest.java
Mon Jan 29 01:51:04 2007
@@ -55,6 +55,30 @@
         super.tearDown();
     }
 
+    /**
+     * Auxiliary class for testGetTrackThumbNewUI()
+     */
+    private static class BasicScrollBarUIForTest extends BasicScrollBarUI {
+        @Override
+        public Rectangle getTrackBounds() {
+            return super.getTrackBounds();
+        }
+
+        @Override
+        public Rectangle getThumbBounds() {
+            return super.getThumbBounds();
+        }
+    }
+
+    /**
+     * Regression test for HARMONY-2854
+     */
+    public void testGetTrackThumbNewUI() {
+        BasicScrollBarUIForTest sbr = new BasicScrollBarUIForTest();
+        assertNull(sbr.getTrackBounds());
+        assertNull(sbr.getThumbBounds());
+    }
+    
     public void testSetThumbBounds() throws Exception {
         Rectangle bounds = barUI.getThumbBounds();
         barUI.setThumbBounds(2, 3, 4, 5);



Mime
View raw message