harmony-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From a...@apache.org
Subject svn commit: r504125 - in /harmony/enhanced/classlib/trunk/modules/swing/src: main/java/common/javax/swing/JEditorPane.java test/api/java/common/javax/swing/JEditorPaneTest.java
Date Tue, 06 Feb 2007 13:16:30 GMT
Author: ayza
Date: Tue Feb  6 05:16:29 2007
New Revision: 504125

URL: http://svn.apache.org/viewvc?view=rev&rev=504125
Log:
Committing patch from HARMONY-2573 ([classlib][swing] javax.swing.JEditorPane.isFocusCycleRoot()
returns false while RI returns true)

Modified:
    harmony/enhanced/classlib/trunk/modules/swing/src/main/java/common/javax/swing/JEditorPane.java
    harmony/enhanced/classlib/trunk/modules/swing/src/test/api/java/common/javax/swing/JEditorPaneTest.java

Modified: harmony/enhanced/classlib/trunk/modules/swing/src/main/java/common/javax/swing/JEditorPane.java
URL: http://svn.apache.org/viewvc/harmony/enhanced/classlib/trunk/modules/swing/src/main/java/common/javax/swing/JEditorPane.java?view=diff&rev=504125&r1=504124&r2=504125
==============================================================================
--- harmony/enhanced/classlib/trunk/modules/swing/src/main/java/common/javax/swing/JEditorPane.java
(original)
+++ harmony/enhanced/classlib/trunk/modules/swing/src/main/java/common/javax/swing/JEditorPane.java
Tue Feb  6 05:16:29 2007
@@ -276,6 +276,7 @@
     }
 
     public JEditorPane() {
+        setFocusCycleRoot(true);
     }
 
     public JEditorPane(final String page) throws IOException {

Modified: harmony/enhanced/classlib/trunk/modules/swing/src/test/api/java/common/javax/swing/JEditorPaneTest.java
URL: http://svn.apache.org/viewvc/harmony/enhanced/classlib/trunk/modules/swing/src/test/api/java/common/javax/swing/JEditorPaneTest.java?view=diff&rev=504125&r1=504124&r2=504125
==============================================================================
--- harmony/enhanced/classlib/trunk/modules/swing/src/test/api/java/common/javax/swing/JEditorPaneTest.java
(original)
+++ harmony/enhanced/classlib/trunk/modules/swing/src/test/api/java/common/javax/swing/JEditorPaneTest.java
Tue Feb  6 05:16:29 2007
@@ -846,4 +846,9 @@
             // PASSED            
         }  
     }
-}
\ No newline at end of file
+
+    public void testIsFocusCycleRoot() throws Exception {
+        // Regression test for HARMONY-2573
+        assertTrue(new JEditorPane().isFocusCycleRoot());
+    }
+}



Mime
View raw message