harmony-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From a...@apache.org
Subject svn commit: r518985 - in /harmony/enhanced/classlib/trunk/modules/awt/src: main/java/common/java/awt/Canvas.java test/api/java/common/java/awt/CanvasRTest.java
Date Fri, 16 Mar 2007 14:32:25 GMT
Author: ayza
Date: Fri Mar 16 07:32:24 2007
New Revision: 518985

URL: http://svn.apache.org/viewvc?view=rev&rev=518985
Log:
Applying patch from HARMONY-1717 ([classlib][awt]Junit AWTRunner does not display progress
bar)

Modified:
    harmony/enhanced/classlib/trunk/modules/awt/src/main/java/common/java/awt/Canvas.java
    harmony/enhanced/classlib/trunk/modules/awt/src/test/api/java/common/java/awt/CanvasRTest.java

Modified: harmony/enhanced/classlib/trunk/modules/awt/src/main/java/common/java/awt/Canvas.java
URL: http://svn.apache.org/viewvc/harmony/enhanced/classlib/trunk/modules/awt/src/main/java/common/java/awt/Canvas.java?view=diff&rev=518985&r1=518984&r2=518985
==============================================================================
--- harmony/enhanced/classlib/trunk/modules/awt/src/main/java/common/java/awt/Canvas.java
(original)
+++ harmony/enhanced/classlib/trunk/modules/awt/src/main/java/common/java/awt/Canvas.java
Fri Mar 16 07:32:24 2007
@@ -124,6 +124,11 @@
             toolkit.unlockAWT();
         }
     }
+    
+    @Override
+    Dimension getDefaultMinimumSize() {
+        return new Dimension(w, h);
+    }
 
     @Override
     ComponentBehavior createBehavior() {        

Modified: harmony/enhanced/classlib/trunk/modules/awt/src/test/api/java/common/java/awt/CanvasRTest.java
URL: http://svn.apache.org/viewvc/harmony/enhanced/classlib/trunk/modules/awt/src/test/api/java/common/java/awt/CanvasRTest.java?view=diff&rev=518985&r1=518984&r2=518985
==============================================================================
--- harmony/enhanced/classlib/trunk/modules/awt/src/test/api/java/common/java/awt/CanvasRTest.java
(original)
+++ harmony/enhanced/classlib/trunk/modules/awt/src/test/api/java/common/java/awt/CanvasRTest.java
Fri Mar 16 07:32:24 2007
@@ -31,4 +31,22 @@
         assertNull(c.getName());
 
     }
+    
+    public void testGetMinimumSize() {
+        // Regression for HARMONY-1717
+        final Frame f = new Frame();
+        final Panel p = new Panel(new GridBagLayout());
+        final Component c = new Canvas();
+
+        try {
+            f.setSize(100, 100);
+            c.setSize(10, 10);
+            p.add(c);
+            f.add(p);
+            f.setVisible(true);
+            assertEquals(new Dimension(10, 10), c.getMinimumSize());
+        } finally {
+            f.dispose();
+        }
+    }
 }



Mime
View raw message