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 Varlamov (JIRA)" <ji...@apache.org> on 2007/05/25 08:42:16 UTC
[jira] Created: (HARMONY-3969) [classlib][swing]
javax.swing.text.html.HTMLEditorKitTest fails
[classlib][swing] javax.swing.text.html.HTMLEditorKitTest fails
---------------------------------------------------------------
Key: HARMONY-3969
URL: https://issues.apache.org/jira/browse/HARMONY-3969
Project: Harmony
Issue Type: Bug
Components: Classlib
Environment: Windows XP, Windows 2003
Reporter: Alexey Varlamov
Attachments: TEST-javax.swing.text.html.HTMLEditorKitTest.xml
The javax.swing.text.html.HTMLEditorKitTest stably fails on all Windows machines: laptop, servers.
There are 6 errors + 1 failure, see the attached report.
--
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.
[jira] Updated: (HARMONY-3969) [classlib][swing]
javax.swing.text.html.HTMLEditorKitTest fails
Posted by "Alexey Varlamov (JIRA)" <ji...@apache.org>.
[ https://issues.apache.org/jira/browse/HARMONY-3969?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Alexey Varlamov updated HARMONY-3969:
-------------------------------------
Attachment: TEST-javax.swing.text.html.HTMLEditorKitTest.xml
> [classlib][swing] javax.swing.text.html.HTMLEditorKitTest fails
> ---------------------------------------------------------------
>
> Key: HARMONY-3969
> URL: https://issues.apache.org/jira/browse/HARMONY-3969
> Project: Harmony
> Issue Type: Bug
> Components: Classlib
> Environment: Windows XP, Windows 2003
> Reporter: Alexey Varlamov
> Attachments: TEST-javax.swing.text.html.HTMLEditorKitTest.xml
>
>
> The javax.swing.text.html.HTMLEditorKitTest stably fails on all Windows machines: laptop, servers.
> There are 6 errors + 1 failure, see the attached report.
--
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.
[jira] Commented: (HARMONY-3969) [classlib][swing]
javax.swing.text.html.HTMLEditorKitTest fails
Posted by "Andrey Pavlenko (JIRA)" <ji...@apache.org>.
[ https://issues.apache.org/jira/browse/HARMONY-3969?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel#action_12503070 ]
Andrey Pavlenko commented on HARMONY-3969:
------------------------------------------
The patch attached to HARMONY-4008 fixes the failure and errors, but after applying this patch new 3 failures appear:
1). junit.framework.ComparisonFailure: expected:<http://a.com> but was:<null>
at junit.framework.Assert.assertEquals(Assert.java:81)
at junit.framework.Assert.assertEquals(Assert.java:87)
at javax.swing.text.html.HTMLEditorKitTest.testNextLinkAction(HTMLEditorKitTest.java:145)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
at java.lang.reflect.Method.invoke(Method.java:585)
at junit.framework.TestCase.runTest(TestCase.java:164)
at junit.framework.TestCase.runBare(TestCase.java:130)
at javax.swing.BasicSwingTestCase.runBareSuper(BasicSwingTestCase.java:117)
at javax.swing.SwingTestCase$1.run(SwingTestCase.java:45)
at java.awt.event.InvocationEvent.runAndNotify(InvocationEvent.java:92)
at java.awt.event.InvocationEvent.dispatch(InvocationEvent.java:81)
at java.awt.EventQueueCore.dispatchEventImpl(EventQueueCore.java:138)
at java.awt.EventQueue.dispatchEvent(EventQueue.java:144)
at java.awt.EventDispatchThread.runModalLoop(EventDispatchThread.java:74)
at java.awt.EventDispatchThread.run(EventDispatchThread.java:48)
2). junit.framework.ComparisonFailure: expected:<http://[a].com> but was:<http://[b].com>
at junit.framework.Assert.assertEquals(Assert.java:81)
at junit.framework.Assert.assertEquals(Assert.java:87)
at javax.swing.text.html.HTMLEditorKitTest.testPreviousLinkAction(HTMLEditorKitTest.java:169)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
at java.lang.reflect.Method.invoke(Method.java:585)
at junit.framework.TestCase.runTest(TestCase.java:164)
at junit.framework.TestCase.runBare(TestCase.java:130)
at javax.swing.BasicSwingTestCase.runBareSuper(BasicSwingTestCase.java:117)
at javax.swing.SwingTestCase$1.run(SwingTestCase.java:45)
at java.awt.event.InvocationEvent.runAndNotify(InvocationEvent.java:92)
at java.awt.event.InvocationEvent.dispatch(InvocationEvent.java:81)
at java.awt.EventQueueCore.dispatchEventImpl(EventQueueCore.java:138)
at java.awt.EventQueue.dispatchEvent(EventQueue.java:144)
at java.awt.EventDispatchThread.runModalLoop(EventDispatchThread.java:74)
at java.awt.EventDispatchThread.run(EventDispatchThread.java:48)
3). junit.framework.AssertionFailedError: expected:<hr> but was:<content>
at junit.framework.Assert.fail(Assert.java:47)
at junit.framework.Assert.failNotEquals(Assert.java:280)
at junit.framework.Assert.assertEquals(Assert.java:64)
at junit.framework.Assert.assertEquals(Assert.java:71)
at javax.swing.text.html.HTMLEditorKitTest.testInsertHRAction(HTMLEditorKitTest.java:215)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
at java.lang.reflect.Method.invoke(Method.java:585)
at junit.framework.TestCase.runTest(TestCase.java:164)
at junit.framework.TestCase.runBare(TestCase.java:130)
at javax.swing.BasicSwingTestCase.runBareSuper(BasicSwingTestCase.java:117)
at javax.swing.SwingTestCase$1.run(SwingTestCase.java:45)
at java.awt.event.InvocationEvent.runAndNotify(InvocationEvent.java:92)
at java.awt.event.InvocationEvent.dispatch(InvocationEvent.java:81)
at java.awt.EventQueueCore.dispatchEventImpl(EventQueueCore.java:138)
at java.awt.EventQueue.dispatchEvent(EventQueue.java:144)
at java.awt.EventDispatchThread.runModalLoop(EventDispatchThread.java:74)
at java.awt.EventDispatchThread.run(EventDispatchThread.java:48)
It looks like there's some issue with JEditorPane.get/setCaretPosition(). If I replace pane.getCaretPosition() with expected caret position all of the tests successfully pass.
> [classlib][swing] javax.swing.text.html.HTMLEditorKitTest fails
> ---------------------------------------------------------------
>
> Key: HARMONY-3969
> URL: https://issues.apache.org/jira/browse/HARMONY-3969
> Project: Harmony
> Issue Type: Bug
> Components: Classlib
> Environment: Windows XP, Windows 2003
> Reporter: Alexey Varlamov
> Attachments: TEST-javax.swing.text.html.HTMLEditorKitTest.xml
>
>
> The javax.swing.text.html.HTMLEditorKitTest stably fails on all Windows machines: laptop, servers.
> There are 6 errors + 1 failure, see the attached report.
--
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.