[jbosstools-issues] [JBoss JIRA] Commented: (JBIDE-4345) 3 tests fail in HtmlAllTests (testJBIDE3280, testPre, testXmp)

Yahor Radtsevich (JIRA) jira-events at lists.jboss.org
Thu May 21 09:58:57 EDT 2009


    [ https://jira.jboss.org/jira/browse/JBIDE-4345?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12468672#action_12468672 ] 

Yahor Radtsevich commented on JBIDE-4345:
-----------------------------------------

> "The tests testPre are testXmp are fixed. They do not fail any more. "
> what were the reason for the failure ?
Behavior of the XULRunner in Eclipse 3.5M6 and 3.5M7 is slightly differ. It affects the internal representation of some tags, but does not affect the view.
For instance, the internal representation of line breaks inside <pre> tags are <BR/> tags in Eclipse 3.5M6 and plain '\n' in Eclipse 3.5M7 .

I do not know yet why the behavior is changed. Probably the answer to this question is the key to resolve most JUnit fails in the VPE.

> 3 tests fail in HtmlAllTests (testJBIDE3280, testPre, testXmp)
> --------------------------------------------------------------
>
>                 Key: JBIDE-4345
>                 URL: https://jira.jboss.org/jira/browse/JBIDE-4345
>             Project: Tools (JBoss Tools)
>          Issue Type: Task
>          Components: Visual Page Editor core
>            Reporter: Max Rydahl Andersen
>            Assignee: Yahor Radtsevich
>            Priority: Blocker
>             Fix For: 3.1.0.M1
>
>
> http://hudson.jboss.org/hudson/view/JBossTools/job/jbosstools-nightly-3.1.0.Alpha1/181/testReport/(root)/HtmlAllTests/testJBIDE3280/
> 1. HtmlAllTests.testJBIDE3280
>    Failing for the past 9 builds (Since #173 ) 
>    Took 11 sec.
>    Error Message
>    Stacktrace
>    java.lang.NullPointerException
> 	at org.jboss.tools.vpe.html.test.jbide.JBIDE3280Test.testJBIDE3280(JBIDE3280Test.java:66)
> 	at junit.extensions.TestDecorator.basicRun(TestDecorator.java:24)
> 	at junit.extensions.TestSetup$1.protect(TestSetup.java:21)
> 	at junit.extensions.TestSetup.run(TestSetup.java:25)
>    I tried to run it but i'm getting a IllegalArgument in setup:
>    java.lang.IllegalArgumentException
> 	at org.eclipse.ui.part.FileEditorInput.<init>(FileEditorInput.java:92)
> 	at org.jboss.tools.vpe.html.test.jbide.JBIDE3280Test.testJBIDE3280(JBIDE3280Test.java:49)
>    How do you run this test standalone ?
> 2. Tests HtmlComponentContentTest.testPre and HtmlComponentContentTest.testXmp fail with the following error message:
>    name of tag is "#text"but must be "BR"
>    Stacktrace
>    junit.framework.AssertionFailedError: name of tag is "#text"but must be "BR"
>    at org.jboss.tools.vpe.ui.test.ComponentContentTest.compareElements(ComponentContentTest.java:136) 

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

        



More information about the jbosstools-issues mailing list