harmony-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Alexander Simbirtsev (JIRA)" <j...@apache.org>
Subject [jira] Created: (HARMONY-2588) [classlib][swing] javax.swing.plaf.basic.BasicInternalFrameTitlePane.SizeAction.getKeys() returns empty array
Date Mon, 11 Dec 2006 11:14:21 GMT
[classlib][swing] javax.swing.plaf.basic.BasicInternalFrameTitlePane.SizeAction.getKeys() returns
empty array
-------------------------------------------------------------------------------------------------------------

                 Key: HARMONY-2588
                 URL: http://issues.apache.org/jira/browse/HARMONY-2588
             Project: Harmony
          Issue Type: Bug
          Components: Classlib
            Reporter: Alexander Simbirtsev


javax.swing.plaf.basic.BasicInternalFrameTitlePane.SizeAction.getKeys() 
returns empty array while RI returns valid result containing the key Action.Name.

Here's the code to reproduce:

import junit.framework.TestCase;
import javax.swing.plaf.metal.MetalInternalFrameTitlePane;
import javax.swing.plaf.basic.BasicInternalFrameTitlePane;
import javax.swing.JInternalFrame;
import javax.swing.Action;

public class Test extends TestCase {       
    public void testcase1() {
        String str = "test string";
        JInternalFrame jf = new JInternalFrame(str);
        MetalInternalFrameTitlePane jp = new MetalInternalFrameTitlePane(jf);
        BasicInternalFrameTitlePane.SizeAction m = jp.new SizeAction();
        assertEquals(1, m.getKeys().length);
        String key = (String)m.getKeys()[0];
        assertEquals(Action.NAME, key);
        assertEquals("Size", m.getValue(key));
   }
}

-- 
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators: http://issues.apache.org/jira/secure/Administrators.jspa
-
For more information on JIRA, see: http://www.atlassian.com/software/jira

        

Mime
View raw message