Author: dmaliarevich
Date: 2008-10-22 09:40:07 -0400 (Wed, 22 Oct 2008)
New Revision: 11073
Added:
trunk/jsf/tests/org.jboss.tools.jsf.vpe.richfaces.test/resources/richFacesTest/WebContent/pages/components/orderingList.xhtml.xml
trunk/jsf/tests/org.jboss.tools.jsf.vpe.richfaces.test/resources/richFacesTest/WebContent/pages/components/paint2D.xhtml.xml
Modified:
trunk/jsf/tests/org.jboss.tools.jsf.vpe.richfaces.test/resources/richFacesTest/WebContent/pages/components/modalPanel.xhtml
trunk/jsf/tests/org.jboss.tools.jsf.vpe.richfaces.test/resources/richFacesTest/WebContent/pages/components/orderingList.xhtml
trunk/jsf/tests/org.jboss.tools.jsf.vpe.richfaces.test/resources/richFacesTest/WebContent/pages/components/paint2D.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:modalPanel,
rich:orderingList, rich:paint2D.
Modified:
trunk/jsf/tests/org.jboss.tools.jsf.vpe.richfaces.test/resources/richFacesTest/WebContent/pages/components/modalPanel.xhtml
===================================================================
---
trunk/jsf/tests/org.jboss.tools.jsf.vpe.richfaces.test/resources/richFacesTest/WebContent/pages/components/modalPanel.xhtml 2008-10-22
13:04:59 UTC (rev 11072)
+++
trunk/jsf/tests/org.jboss.tools.jsf.vpe.richfaces.test/resources/richFacesTest/WebContent/pages/components/modalPanel.xhtml 2008-10-22
13:40:07 UTC (rev 11073)
@@ -9,8 +9,7 @@
<head>
</head>
<body>
-<!-- Modal Panel -->
-<rich:modalPanel id="mp" minHeight="200" minWidth="450"
height="200"
+<rich:modalPanel id="modalPanel" minHeight="200"
minWidth="450" height="200"
width="500" zindex="2000">
<f:facet name="header">
<h:outputText value="Modal Panel Title" />
Modified:
trunk/jsf/tests/org.jboss.tools.jsf.vpe.richfaces.test/resources/richFacesTest/WebContent/pages/components/orderingList.xhtml
===================================================================
(Binary files differ)
Added:
trunk/jsf/tests/org.jboss.tools.jsf.vpe.richfaces.test/resources/richFacesTest/WebContent/pages/components/orderingList.xhtml.xml
===================================================================
---
trunk/jsf/tests/org.jboss.tools.jsf.vpe.richfaces.test/resources/richFacesTest/WebContent/pages/components/orderingList.xhtml.xml
(rev 0)
+++
trunk/jsf/tests/org.jboss.tools.jsf.vpe.richfaces.test/resources/richFacesTest/WebContent/pages/components/orderingList.xhtml.xml 2008-10-22
13:40:07 UTC (rev 11073)
@@ -0,0 +1,111 @@
+<tests>
+ <test id="orderingList">
+ <TABLE WIDTH="300" HEIGHT="200"
CLASS="rich-ordering-list-body">
+ <TR>
+ <TD>
+ <DIV CLASS="rich-ordering-list-caption" STYLE="width: 350px;
height: 300px;">
+ </DIV>
+ <DIV STYLE="overflow: hidden; width: 100%;">
+ <TABLE>
+ <TR>
+ <TD>
+ <DIV STYLE=""
+ CLASS="rich-ordering-list-output rich-ordering-list-content">
+ <TABLE CELLSPACING="1" CLASS="rich-ordering-list-items"
+ ID="orderingList" LISTHEIGHT="300"
LISTWIDTH="350" STYLE="width: 100%;">
+ <THEAD>
+ <TR
+ CLASS="rich-ordering-list-header
rich-ordering-list-table-header">
+ <TD
+ BACKGROUND="/.*org.jboss.tools.jsf.vpe.richfaces/resources/orderingList/table_header_cell_bg.gif/"
+ CLASS="rich-ordering-list-table-header-cell"
SCOP="col">
+ <SPAN> Song Name</SPAN>
+ </TD>
+ <TD
+ BACKGROUND="/.*org.jboss.tools.jsf.vpe.richfaces/resources/orderingList/table_header_cell_bg.gif/"
+ CLASS="rich-ordering-list-table-header-cell"
SCOP="col">
+ <SPAN> Artist Name</SPAN>
+ </TD>
+ </TR>
+ </THEAD>
+ <TBODY>
+ <TR CLASS="rich-ordering-list-row">
+ <TD WIDTH="180" CLASS="dr-table-cell
rich-table-cell">
+ <SPAN> You must be evil</SPAN>
+ </TD>
+ <TD CLASS="dr-table-cell rich-table-cell">
+ <SPAN> Chris Rea</SPAN>
+ </TD>
+ </TR>
+ </TBODY>
+ </TABLE>
+ </DIV>
+ </TD>
+ <TD>
+ <DIV STYLE="overflow: scroll; width: 17px; height: 100%;">
+ </DIV>
+ <BR _MOZ_DIRTY="" TYPE="_moz"/>
+ </TD>
+ </TR>
+ <TR>
+ <TD>
+ <DIV STYLE="overflow: scroll; width: 100%; height: 17px;">
+ </DIV>
+ <BR _MOZ_DIRTY="" TYPE="_moz"/>
+ </TD>
+ </TR>
+ </TABLE>
+ </DIV>
+ </TD>
+ <TD ALIGN="center"
CLASS="rich-ordering-list-button-valign">
+ <DIV CLASS="rich-ordering-controls null
rich-ordering-list-button-layout">
+ <DIV CLASS="dr-buttons-border rich-ordering-control-top null">
+ <DIV CLASS="rich-ordering-list-button"
+ STYLE="/width: 100%; background-image:
url\(.*org.jboss.tools.jsf.vpe.richfaces/resources/orderingList/button_bg.gif\);/">
+ <A CLASS="rich-ordering-list-button-selection">
+ <DIV CLASS="rich-ordering-list-button-content">
+ <IMG WIDTH="15" HEIGHT="15"
+ SRC="/.*org.jboss.tools.jsf.vpe.richfaces/resources/orderingList/top.gif/"/>First
+ </DIV>
+ </A>
+ </DIV>
+ </DIV>
+ <DIV CLASS="dr-buttons-border rich-ordering-control-up null">
+ <DIV CLASS="rich-ordering-list-button"
+ STYLE="/width: 100%; background-image:
url\(.*org.jboss.tools.jsf.vpe.richfaces/resources/orderingList/button_bg.gif\);/">
+ <A CLASS="rich-ordering-list-button-selection">
+ <DIV CLASS="rich-ordering-list-button-content">
+ <IMG WIDTH="15" HEIGHT="15"
+ SRC="/.*org.jboss.tools.jsf.vpe.richfaces/resources/orderingList/up.gif/"/>Up
+ </DIV>
+ </A>
+ </DIV>
+ </DIV>
+ <DIV CLASS="dr-buttons-border rich-ordering-control-down null">
+ <DIV CLASS="rich-ordering-list-button"
+ STYLE="/width: 100%; background-image:
url\(.*org.jboss.tools.jsf.vpe.richfaces/resources/orderingList/button_bg.gif\);/">
+ <A CLASS="rich-ordering-list-button-selection">
+ <DIV CLASS="rich-ordering-list-button-content">
+ <IMG WIDTH="15" HEIGHT="15"
+ SRC="/.*org.jboss.tools.jsf.vpe.richfaces/resources/orderingList/down.gif/"/>Down
+ </DIV>
+ </A>
+ </DIV>
+ </DIV>
+ <DIV CLASS="dr-buttons-border rich-ordering-control-bottom null">
+ <DIV CLASS="rich-ordering-list-button"
+ STYLE="/width: 100%; background-image:
url\(.*org.jboss.tools.jsf.vpe.richfaces/resources/orderingList/button_bg.gif\);/">
+ <A CLASS="rich-ordering-list-button-selection">
+ <DIV CLASS="rich-ordering-list-button-content">
+ <IMG WIDTH="15" HEIGHT="15"
+ SRC="/.*org.jboss.tools.jsf.vpe.richfaces/resources/orderingList/bottom.gif/"/>Last
+ </DIV>
+ </A>
+ </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/orderingList.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/paint2D.xhtml
===================================================================
---
trunk/jsf/tests/org.jboss.tools.jsf.vpe.richfaces.test/resources/richFacesTest/WebContent/pages/components/paint2D.xhtml 2008-10-22
13:04:59 UTC (rev 11072)
+++
trunk/jsf/tests/org.jboss.tools.jsf.vpe.richfaces.test/resources/richFacesTest/WebContent/pages/components/paint2D.xhtml 2008-10-22
13:40:07 UTC (rev 11073)
@@ -10,9 +10,7 @@
</head>
<body>
-<!-- Paint 2D component -->
-<rich:paint2D id="painter" width="300" height="120"
data="#{paintData}"
+<rich:paint2D id="paint2D" width="300" height="120"
data="#{paintData}"
format="png" paint="#{paintBean.paint}" />
-<rich:spacer width="720" height="10" />
</body>
</html>
\ No newline at end of file
Added:
trunk/jsf/tests/org.jboss.tools.jsf.vpe.richfaces.test/resources/richFacesTest/WebContent/pages/components/paint2D.xhtml.xml
===================================================================
---
trunk/jsf/tests/org.jboss.tools.jsf.vpe.richfaces.test/resources/richFacesTest/WebContent/pages/components/paint2D.xhtml.xml
(rev 0)
+++
trunk/jsf/tests/org.jboss.tools.jsf.vpe.richfaces.test/resources/richFacesTest/WebContent/pages/components/paint2D.xhtml.xml 2008-10-22
13:40:07 UTC (rev 11073)
@@ -0,0 +1,7 @@
+<tests>
+ <test id="paint2D">
+ <IMG WIDTH="300" HEIGHT="120"
+ SRC="/.*org.jboss.tools.jsf.vpe.richfaces/resources/paint2D/paint2D.gif/"
+ ID="paint2D" DATA="#{paintData}" FORMAT="png"
PAINT="#{paintBean.paint}" />
+ </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/paint2D.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
13:04:59 UTC (rev 11072)
+++
trunk/jsf/tests/org.jboss.tools.jsf.vpe.richfaces.test/src/org/jboss/tools/jsf/vpe/richfaces/test/RichFacesComponentContentTest.java 2008-10-22
13:40:07 UTC (rev 11073)
@@ -208,15 +208,15 @@
}
public void testModalPanel() throws Throwable {
- assertTrue("it is necessary to add a body of the test ",
false);//$NON-NLS-1$
+ performInvisibleTagTest("components/modalPanel.xhtml",
"modalPanel"); //$NON-NLS-1$ //$NON-NLS-2$
}
public void testOrderingList() throws Throwable {
- assertTrue("it is necessary to add a body of the test ",
false);//$NON-NLS-1$
+ performContentTest("components/orderingList.xhtml");//$NON-NLS-1$
}
public void testPaint2D() throws Throwable {
- assertTrue("it is necessary to add a body of the test ",
false);//$NON-NLS-1$
+ performContentTest("components/paint2D.xhtml");//$NON-NLS-1$
}
public void testPanel() throws Throwable {