Author: dmaliarevich
Date: 2008-10-22 05:25:33 -0400 (Wed, 22 Oct 2008)
New Revision: 11068
Added:
trunk/jsf/tests/org.jboss.tools.jsf.vpe.richfaces.test/resources/richFacesTest/WebContent/pages/components/listShuttle.xhtml.xml
trunk/jsf/tests/org.jboss.tools.jsf.vpe.richfaces.test/resources/richFacesTest/WebContent/pages/components/message.xhtml.xml
trunk/jsf/tests/org.jboss.tools.jsf.vpe.richfaces.test/resources/richFacesTest/WebContent/pages/components/messages.xhtml.xml
Modified:
trunk/jsf/tests/org.jboss.tools.jsf.vpe.richfaces.test/resources/richFacesTest/WebContent/pages/components/listShuttle.xhtml
trunk/jsf/tests/org.jboss.tools.jsf.vpe.richfaces.test/resources/richFacesTest/WebContent/pages/components/message.xhtml
trunk/jsf/tests/org.jboss.tools.jsf.vpe.richfaces.test/resources/richFacesTest/WebContent/pages/components/messages.xhtml
trunk/jsf/tests/org.jboss.tools.jsf.vpe.richfaces.test/src/org/jboss/tools/jsf/vpe/richfaces/test/RichFacesComponentContentTest.java
Log:
https://jira.jboss.org/jira/browse/JBIDE-2810, tests for rich:message, rich:messages,
rich:listShuttle.
Modified:
trunk/jsf/tests/org.jboss.tools.jsf.vpe.richfaces.test/resources/richFacesTest/WebContent/pages/components/listShuttle.xhtml
===================================================================
---
trunk/jsf/tests/org.jboss.tools.jsf.vpe.richfaces.test/resources/richFacesTest/WebContent/pages/components/listShuttle.xhtml 2008-10-22
09:11:47 UTC (rev 11067)
+++
trunk/jsf/tests/org.jboss.tools.jsf.vpe.richfaces.test/resources/richFacesTest/WebContent/pages/components/listShuttle.xhtml 2008-10-22
09:25:33 UTC (rev 11068)
@@ -10,16 +10,25 @@
</head>
<body>
-<rich:listShuttle sourceValue="#{person.source}"
- targetValue="#{person.target}" var="items"
targetListWidth="200"
- sourceCaptionLabel="source label" targetCaptionLabel="target label"
- orderControlsVerticalAlign="top">
+<f:view>
- <rich:column>
- <h:outputText value="#{items}"></h:outputText>
- </rich:column>
+ <rich:listShuttle id="listShuttle"
sourceValue="#{person.source}"
+ targetValue="#{person.target}" var="items"
targetListWidth="200"
+ sourceCaptionLabel="source label" targetCaptionLabel="target
label">
+ <rich:column>
+ <f:facet name="header">
+ <h:outputText value="Song Name" />
+ </f:facet>
+ <h:outputText value="You must be evil"></h:outputText>
+ </rich:column>
+ <rich:column>
+ <f:facet name="header">
+ <h:outputText value="Artist Name" />
+ </f:facet>
+ <h:outputText value="Chris Rea"></h:outputText>
+ </rich:column>
+ </rich:listShuttle>
-</rich:listShuttle>
-
+/<f:view>
</body>
</html>
Added:
trunk/jsf/tests/org.jboss.tools.jsf.vpe.richfaces.test/resources/richFacesTest/WebContent/pages/components/listShuttle.xhtml.xml
===================================================================
---
trunk/jsf/tests/org.jboss.tools.jsf.vpe.richfaces.test/resources/richFacesTest/WebContent/pages/components/listShuttle.xhtml.xml
(rev 0)
+++
trunk/jsf/tests/org.jboss.tools.jsf.vpe.richfaces.test/resources/richFacesTest/WebContent/pages/components/listShuttle.xhtml.xml 2008-10-22
09:25:33 UTC (rev 11068)
@@ -0,0 +1,200 @@
+<tests>
+ <test id="listShuttle">
+ <TABLE CLASS="rich-list-shuttle" STYLE="">
+ <TR>
+ <TD COLSPAN="2" CLASS="rich-shuttle-source-caption"> source
label</TD>
+ <TD COLSPAN="2" CLASS="rich-shuttle-target-caption"> target
label</TD>
+ </TR>
+ <TR>
+ <TD>
+ <DIV CLASS="rich-shuttle-list-content" STYLE="width: 140px;
height: 140px;">
+ <TABLE WIDTH="100%" CELLSPACING="0"
CELLPADDING="0">
+ <TR CLASS="">
+ <TH
+ BACKGROUND="/.*org.jboss.tools.jsf.vpe.richfaces/resources/shuttle/header.gif/"
+ CLASS="rich-shuttle-header-tab-cell">
+ <DIV>
+ <SPAN> Song Name</SPAN>
+ </DIV>
+ </TH>
+ <TH
+ BACKGROUND="/.*org.jboss.tools.jsf.vpe.richfaces/resources/shuttle/header.gif/"
+ CLASS="rich-shuttle-header-tab-cell">
+ <DIV>
+ <SPAN> Artist Name</SPAN>
+ </DIV>
+ </TH>
+ </TR>
+ <TR STYLE="vertical-align: top;" CLASS="rich-shuttle-source-row
null">
+ <TD>
+ <TABLE>
+ <TR>
+ <TD CLASS="dr-table-cell rich-table-cell">
+ <SPAN> You must be evil</SPAN>
+ </TD>
+ </TR>
+ </TABLE>
+ </TD>
+ <TD>
+ <TABLE>
+ <TR>
+ <TD CLASS="dr-table-cell rich-table-cell">
+ <SPAN> Chris Rea</SPAN>
+ </TD>
+ </TR>
+ </TABLE>
+ </TD>
+ </TR>
+ </TABLE>
+ </DIV>
+ </TD>
+ <TD STYLE="vertical-align: middle;">
+ <DIV CLASS="rich-shuttle-controls">
+ <DIV CLASS="rich-shuttle-control">
+ <DIV
+ STYLE="/background-image:
url\(.*org.jboss.tools.jsf.vpe.richfaces/resources/shuttle/button.gif\);/"
+ CLASS="rich-shuttle-meta-button">
+ <DIV CLASS="rich-shuttle-button rich-shuttle-copyAll">
+ <DIV CLASS="rich-shuttle-button-content">
+ <IMG WIDTH="15" HEIGHT="15"
+ SRC="/.*org.jboss.tools.jsf.vpe.richfaces/resources/shuttle/arrow_copy_all.gif/"/>
Copy all
+ </DIV>
+ </DIV>
+ </DIV>
+ </DIV>
+ <DIV CLASS="rich-shuttle-control">
+ <DIV
+ STYLE="/background-image:
url\(.*org.jboss.tools.jsf.vpe.richfaces/resources/shuttle/button.gif\);/"
+ CLASS="rich-shuttle-meta-button">
+ <DIV CLASS="rich-shuttle-button rich-shuttle-copy">
+ <DIV CLASS="rich-shuttle-button-content">
+ <IMG WIDTH="15" HEIGHT="15"
+ SRC="/.*org.jboss.tools.jsf.vpe.richfaces/resources/shuttle/arrow_copy.gif/"/>
Copy
+ </DIV>
+ </DIV>
+ </DIV>
+ </DIV>
+ <DIV CLASS="rich-shuttle-control">
+ <DIV
+ STYLE="/background-image:
url\(.*org.jboss.tools.jsf.vpe.richfaces/resources/shuttle/button.gif\);/"
+ CLASS="rich-shuttle-meta-button">
+ <DIV CLASS="rich-shuttle-button rich-shuttle-remove">
+ <DIV CLASS="rich-shuttle-button-content">
+ <IMG WIDTH="15" HEIGHT="15"
+ SRC="/.*org.jboss.tools.jsf.vpe.richfaces/resources/shuttle/arrow_remove.gif/"/>
Remove
+ </DIV>
+ </DIV>
+ </DIV>
+ </DIV>
+ <DIV CLASS="rich-shuttle-control">
+ <DIV
+ STYLE="/background-image:
url\(.*org.jboss.tools.jsf.vpe.richfaces/resources/shuttle/button.gif\);/"
+ CLASS="rich-shuttle-meta-button">
+ <DIV CLASS="rich-shuttle-button rich-shuttle-removeAll">
+ <DIV CLASS="rich-shuttle-button-content">
+ <IMG WIDTH="15" HEIGHT="15"
+ SRC="/.*org.jboss.tools.jsf.vpe.richfaces/resources/shuttle/arrow_remove_all.gif/"/>
Remove All
+ </DIV>
+ </DIV>
+ </DIV>
+ </DIV>
+ </DIV>
+ </TD>
+ <TD>
+ <DIV CLASS="rich-shuttle-list-content" STYLE="height:
140px;">
+ <TABLE WIDTH="100%" CELLSPACING="0"
CELLPADDING="0">
+ <TR CLASS="">
+ <TH
+ BACKGROUND="/.*org.jboss.tools.jsf.vpe.richfaces/resources/shuttle/header.gif/"
+ CLASS="rich-shuttle-header-tab-cell">
+ <DIV>
+ <SPAN> Song Name</SPAN>
+ </DIV>
+ </TH>
+ <TH
+ BACKGROUND="/.*org.jboss.tools.jsf.vpe.richfaces/resources/shuttle/header.gif/"
+ CLASS="rich-shuttle-header-tab-cell">
+ <DIV>
+ <SPAN> Artist Name</SPAN>
+ </DIV>
+ </TH>
+ </TR>
+ <TR STYLE="vertical-align: top;" CLASS="rich-shuttle-target-row
null">
+ <TD>
+ <TABLE>
+ <TR>
+ <TD CLASS="dr-table-cell rich-table-cell">
+ <SPAN> You must be evil</SPAN>
+ </TD>
+ </TR>
+ </TABLE>
+ </TD>
+ <TD>
+ <TABLE>
+ <TR>
+ <TD CLASS="dr-table-cell rich-table-cell">
+ <SPAN> Chris Rea</SPAN>
+ </TD>
+ </TR>
+ </TABLE>
+ </TD>
+ </TR>
+ </TABLE>
+ </DIV>
+ </TD>
+ <TD STYLE="vertical-align: middle;">
+ <DIV CLASS="rich-shuttle-controls">
+ <DIV CLASS="rich-shuttle-control">
+ <DIV
+ STYLE="/background-image:
url\(.*org.jboss.tools.jsf.vpe.richfaces/resources/shuttle/button.gif\);/"
+ CLASS="rich-shuttle-meta-button">
+ <DIV CLASS="rich-shuttle-button rich-shuttle-top">
+ <DIV CLASS="rich-shuttle-button-content">
+ <IMG WIDTH="15" HEIGHT="15"
+ SRC="/.*org.jboss.tools.jsf.vpe.richfaces/resources/shuttle/arrow_first.gif/"/>
First
+ </DIV>
+ </DIV>
+ </DIV>
+ </DIV>
+ <DIV CLASS="rich-shuttle-control">
+ <DIV
+ STYLE="/background-image:
url\(.*org.jboss.tools.jsf.vpe.richfaces/resources/shuttle/button.gif\);/"
+ CLASS="rich-shuttle-meta-button">
+ <DIV CLASS="rich-shuttle-button rich-shuttle-up">
+ <DIV CLASS="rich-shuttle-button-content">
+ <IMG WIDTH="15" HEIGHT="15"
+ SRC="/.*org.jboss.tools.jsf.vpe.richfaces/resources/shuttle/arrow_up.gif/"/>
Up
+ </DIV>
+ </DIV>
+ </DIV>
+ </DIV>
+ <DIV CLASS="rich-shuttle-control">
+ <DIV
+ STYLE="/background-image:
url\(.*org.jboss.tools.jsf.vpe.richfaces/resources/shuttle/button.gif\);/"
+ CLASS="rich-shuttle-meta-button">
+ <DIV CLASS="rich-shuttle-button rich-shuttle-down">
+ <DIV CLASS="rich-shuttle-button-content">
+ <IMG WIDTH="15" HEIGHT="15"
+ SRC="/.*org.jboss.tools.jsf.vpe.richfaces/resources/shuttle/arrow_down.gif/"/>
Down
+ </DIV>
+ </DIV>
+ </DIV>
+ </DIV>
+ <DIV CLASS="rich-shuttle-control">
+ <DIV
+ STYLE="/background-image:
url\(.*org.jboss.tools.jsf.vpe.richfaces/resources/shuttle/button.gif\);/"
+ CLASS="rich-shuttle-meta-button">
+ <DIV CLASS="rich-shuttle-button rich-shuttle-bottom">
+ <DIV CLASS="rich-shuttle-button-content">
+ <IMG WIDTH="15" HEIGHT="15"
+ SRC="/.*org.jboss.tools.jsf.vpe.richfaces/resources/shuttle/arrow_last.gif/"/>
Last
+ </DIV>
+ </DIV>
+ </DIV>
+ </DIV>
+ </DIV>
+ </TD>
+ </TR>
+ </TABLE>
+ </test>
+</tests>
\ No newline at end of file
Property changes on:
trunk/jsf/tests/org.jboss.tools.jsf.vpe.richfaces.test/resources/richFacesTest/WebContent/pages/components/listShuttle.xhtml.xml
___________________________________________________________________
Name: svn:mime-type
+ text/xml
Name: svn:eol-style
+ native
Modified:
trunk/jsf/tests/org.jboss.tools.jsf.vpe.richfaces.test/resources/richFacesTest/WebContent/pages/components/message.xhtml
===================================================================
---
trunk/jsf/tests/org.jboss.tools.jsf.vpe.richfaces.test/resources/richFacesTest/WebContent/pages/components/message.xhtml 2008-10-22
09:11:47 UTC (rev 11067)
+++
trunk/jsf/tests/org.jboss.tools.jsf.vpe.richfaces.test/resources/richFacesTest/WebContent/pages/components/message.xhtml 2008-10-22
09:25:33 UTC (rev 11068)
@@ -9,8 +9,9 @@
<head>
</head>
<body>
- <!-- Message -->
- <rich:message>
- </rich:message>
+ <f:view>
+ <rich:message id="message">
+ </rich:message>
+</f:view>
</body>
</html>
\ No newline at end of file
Added:
trunk/jsf/tests/org.jboss.tools.jsf.vpe.richfaces.test/resources/richFacesTest/WebContent/pages/components/message.xhtml.xml
===================================================================
---
trunk/jsf/tests/org.jboss.tools.jsf.vpe.richfaces.test/resources/richFacesTest/WebContent/pages/components/message.xhtml.xml
(rev 0)
+++
trunk/jsf/tests/org.jboss.tools.jsf.vpe.richfaces.test/resources/richFacesTest/WebContent/pages/components/message.xhtml.xml 2008-10-22
09:25:33 UTC (rev 11068)
@@ -0,0 +1,5 @@
+<tests>
+ <test id="message">
+ <SPAN> Validation message</SPAN>
+ </test>
+</tests>
\ No newline at end of file
Property changes on:
trunk/jsf/tests/org.jboss.tools.jsf.vpe.richfaces.test/resources/richFacesTest/WebContent/pages/components/message.xhtml.xml
___________________________________________________________________
Name: svn:mime-type
+ text/xml
Name: svn:eol-style
+ native
Modified:
trunk/jsf/tests/org.jboss.tools.jsf.vpe.richfaces.test/resources/richFacesTest/WebContent/pages/components/messages.xhtml
===================================================================
---
trunk/jsf/tests/org.jboss.tools.jsf.vpe.richfaces.test/resources/richFacesTest/WebContent/pages/components/messages.xhtml 2008-10-22
09:11:47 UTC (rev 11067)
+++
trunk/jsf/tests/org.jboss.tools.jsf.vpe.richfaces.test/resources/richFacesTest/WebContent/pages/components/messages.xhtml 2008-10-22
09:25:33 UTC (rev 11068)
@@ -9,8 +9,9 @@
<head>
</head>
<body>
- <!-- Messages -->
- <rich:messages>
- </rich:messages>
+<f:view>
+ <rich:messages id="messages">
+ </rich:messages>
+</f:view>
</body>
</html>
\ No newline at end of file
Added:
trunk/jsf/tests/org.jboss.tools.jsf.vpe.richfaces.test/resources/richFacesTest/WebContent/pages/components/messages.xhtml.xml
===================================================================
---
trunk/jsf/tests/org.jboss.tools.jsf.vpe.richfaces.test/resources/richFacesTest/WebContent/pages/components/messages.xhtml.xml
(rev 0)
+++
trunk/jsf/tests/org.jboss.tools.jsf.vpe.richfaces.test/resources/richFacesTest/WebContent/pages/components/messages.xhtml.xml 2008-10-22
09:25:33 UTC (rev 11068)
@@ -0,0 +1,38 @@
+<tests>
+ <test id="messages">
+ <TABLE>
+ <TR>
+ <TD>
+ <BR _MOZ_DIRTY="" TYPE="_moz"/>
+ </TD>
+ <TD>
+ <BR _MOZ_DIRTY="" TYPE="_moz"/>
+ </TD>
+ </TR>
+ <TR>
+ <TD>
+ <BR _MOZ_DIRTY="" TYPE="_moz"/>
+ </TD>
+ <TD> Error message</TD>
+ </TR>
+ <TR>
+ <TD>
+ <BR _MOZ_DIRTY="" TYPE="_moz"/>
+ </TD>
+ <TD> Fatal message</TD>
+ </TR>
+ <TR>
+ <TD>
+ <BR _MOZ_DIRTY="" TYPE="_moz"/>
+ </TD>
+ <TD> Info message</TD>
+ </TR>
+ <TR>
+ <TD>
+ <BR _MOZ_DIRTY="" TYPE="_moz"/>
+ </TD>
+ <TD> Warning message</TD>
+ </TR>
+ </TABLE>
+ </test>
+</tests>
\ No newline at end of file
Property changes on:
trunk/jsf/tests/org.jboss.tools.jsf.vpe.richfaces.test/resources/richFacesTest/WebContent/pages/components/messages.xhtml.xml
___________________________________________________________________
Name: svn:mime-type
+ text/xml
Name: svn:eol-style
+ native
Modified:
trunk/jsf/tests/org.jboss.tools.jsf.vpe.richfaces.test/src/org/jboss/tools/jsf/vpe/richfaces/test/RichFacesComponentContentTest.java
===================================================================
---
trunk/jsf/tests/org.jboss.tools.jsf.vpe.richfaces.test/src/org/jboss/tools/jsf/vpe/richfaces/test/RichFacesComponentContentTest.java 2008-10-22
09:11:47 UTC (rev 11067)
+++
trunk/jsf/tests/org.jboss.tools.jsf.vpe.richfaces.test/src/org/jboss/tools/jsf/vpe/richfaces/test/RichFacesComponentContentTest.java 2008-10-22
09:25:33 UTC (rev 11068)
@@ -196,15 +196,15 @@
}
public void testListShuttle() throws Throwable {
- assertTrue("it is necessary to add a body of the test ",
false);//$NON-NLS-1$
+ performContentTest("components/listShuttle.xhtml");//$NON-NLS-1$
}
public void testMessage() throws Throwable {
- assertTrue("it is necessary to add a body of the test ",
false);//$NON-NLS-1$
+ performContentTest("components/message.xhtml");//$NON-NLS-1$
}
public void testMessages() throws Throwable {
- assertTrue("it is necessary to add a body of the test ",
false);//$NON-NLS-1$
+ performContentTest("components/messages.xhtml");//$NON-NLS-1$
}
public void testModalPanel() throws Throwable {