You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@harmony.apache.org by "Alexey A. Ivanov (JIRA)" <ji...@apache.org> on 2006/11/02 14:57:19 UTC
[jira] Created: (HARMONY-2058) [classlib][swing] tests fail:
j.s.t.AbstractDocument_AbstractElementRTest and
j.s.t.DefaultStyledDocumentRTest
[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
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
[jira] Updated: (HARMONY-2058) [classlib][swing] tests fail:
j.s.t.AbstractDocument_AbstractElementRTest and
j.s.t.DefaultStyledDocumentRTest
Posted by "Alexey A. Ivanov (JIRA)" <ji...@apache.org>.
[ http://issues.apache.org/jira/browse/HARMONY-2058?page=all ]
Alexey A. Ivanov updated HARMONY-2058:
--------------------------------------
Attachment: H2058-tests-unexclude.patch
Un-excludes the tests mentioned from the exclude list.
> [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, H2058-tests-unexclude.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
[jira] Updated: (HARMONY-2058) [classlib][swing] tests fail:
j.s.t.AbstractDocument_AbstractElementRTest and
j.s.t.DefaultStyledDocumentRTest
Posted by "Alexey A. Ivanov (JIRA)" <ji...@apache.org>.
[ http://issues.apache.org/jira/browse/HARMONY-2058?page=all ]
Alexey A. Ivanov updated HARMONY-2058:
--------------------------------------
Patch Info: [Patch Available]
> [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, H2058-tests-unexclude.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
[jira] Resolved: (HARMONY-2058) [classlib][swing] tests fail:
j.s.t.AbstractDocument_AbstractElementRTest and
j.s.t.DefaultStyledDocumentRTest
Posted by "Alexey Petrenko (JIRA)" <ji...@apache.org>.
[ http://issues.apache.org/jira/browse/HARMONY-2058?page=all ]
Alexey Petrenko resolved HARMONY-2058.
--------------------------------------
Resolution: Fixed
The patch has been applied.
Alexey, please verify.
> [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
> Assigned To: Alexey Petrenko
> Attachments: H2058-AbstractDocument.patch, H2058-tests-unexclude.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
[jira] Assigned: (HARMONY-2058) [classlib][swing] tests fail:
j.s.t.AbstractDocument_AbstractElementRTest and
j.s.t.DefaultStyledDocumentRTest
Posted by "Alexey Petrenko (JIRA)" <ji...@apache.org>.
[ http://issues.apache.org/jira/browse/HARMONY-2058?page=all ]
Alexey Petrenko reassigned HARMONY-2058:
----------------------------------------
Assignee: Alexey Petrenko
> [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
> Assigned To: Alexey Petrenko
> Attachments: H2058-AbstractDocument.patch, H2058-tests-unexclude.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
[jira] Closed: (HARMONY-2058) [classlib][swing] tests fail:
j.s.t.AbstractDocument_AbstractElementRTest and
j.s.t.DefaultStyledDocumentRTest
Posted by "Alexey Petrenko (JIRA)" <ji...@apache.org>.
[ http://issues.apache.org/jira/browse/HARMONY-2058?page=all ]
Alexey Petrenko closed HARMONY-2058.
------------------------------------
> [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
> Assigned To: Alexey Petrenko
> Attachments: H2058-AbstractDocument.patch, H2058-tests-unexclude.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
[jira] Commented: (HARMONY-2058) [classlib][swing] tests fail:
j.s.t.AbstractDocument_AbstractElementRTest and
j.s.t.DefaultStyledDocumentRTest
Posted by "Alexey A. Ivanov (JIRA)" <ji...@apache.org>.
[ http://issues.apache.org/jira/browse/HARMONY-2058?page=comments#action_12448099 ]
Alexey A. Ivanov commented on HARMONY-2058:
-------------------------------------------
Everything's fine. Thank you.
> [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
> Assigned To: Alexey Petrenko
> Attachments: H2058-AbstractDocument.patch, H2058-tests-unexclude.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
[jira] Updated: (HARMONY-2058) [classlib][swing] tests fail:
j.s.t.AbstractDocument_AbstractElementRTest and
j.s.t.DefaultStyledDocumentRTest
Posted by "Alexey A. Ivanov (JIRA)" <ji...@apache.org>.
[ 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