harmony-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Alexey A. Ivanov (JIRA)" <j...@apache.org>
Subject [jira] Updated: (HARMONY-2058) [classlib][swing] tests fail: j.s.t.AbstractDocument_AbstractElementRTest and j.s.t.DefaultStyledDocumentRTest
Date Thu, 02 Nov 2006 15:16:18 GMT
     [ http://issues.apache.org/jira/browse/HARMONY-2058?page=all ]

Alexey A. Ivanov updated HARMONY-2058:
--------------------------------------

    Attachment: H2058-AbstractDocument.patch

The patch fixes the problem which is located in javax.swing.text.AbstractDocument.AbstractElement.getName().
The original implementation simply gets ElementName from attribute set. If this attribute
is not found in the attribute set of the current element, it will be searched in its parent
element and so on. Obviously name shouldn't be inherited. In this patch it is checked whether
name is defined in the element attribute set before getting it, thus avoiding look up in parent
elements.

> [classlib][swing] tests fail: j.s.t.AbstractDocument_AbstractElementRTest and j.s.t.DefaultStyledDocumentRTest
> --------------------------------------------------------------------------------------------------------------
>
>                 Key: HARMONY-2058
>                 URL: http://issues.apache.org/jira/browse/HARMONY-2058
>             Project: Harmony
>          Issue Type: Bug
>          Components: Classlib
>            Reporter: Alexey A. Ivanov
>         Attachments: H2058-AbstractDocument.patch
>
>
> These tests are in exclude list and still fail:
> javax.swing.text.AbstractDocument_AbstractElementRTest
> testGetNameParent(javax.swing.text.AbstractDocument_AbstractElementRTest)
> junit.framework.AssertionFailedError
> 	at junit.framework.Assert.fail(Assert.java:47)
> 	at junit.framework.Assert.assertTrue(Assert.java:20)
> 	at junit.framework.Assert.assertNull(Assert.java:233)
> 	at junit.framework.Assert.assertNull(Assert.java:226)
> 	at javax.swing.text.AbstractDocument_AbstractElementRTest.testGetNameParent(AbstractDocument_AbstractElementRTest.java:129)
>         <snip>
> javax.swing.text.DefaultStyledDocumentRTest
> testDeepTreeInsert01(javax.swing.text.DefaultStyledDocumentRTest)
> junit.framework.ComparisonFailure: expected:<paragraph> but was:<body>
> 	at junit.framework.Assert.assertEquals(Assert.java:81)
> 	at junit.framework.Assert.assertEquals(Assert.java:87)
> 	at javax.swing.text.DefaultStyledDocumentRTest.testDeepTreeInsert01(DefaultStyledDocumentRTest.java:20)
>         <snip>
> testHTMLInsert(javax.swing.text.DefaultStyledDocumentRTest)
> junit.framework.ComparisonFailure: expected:<content> but was:<body>
> 	at junit.framework.Assert.assertEquals(Assert.java:81)
> 	at junit.framework.Assert.assertEquals(Assert.java:87)
> 	at javax.swing.text.DefaultStyledDocumentRTest.testHTMLInsert(DefaultStyledDocumentRTest.java:285)
>         <snip>

-- 
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