Author: dmaliarevich
Date: 2008-10-23 05:24:48 -0400 (Thu, 23 Oct 2008)
New Revision: 11096
Added:
trunk/jsf/tests/org.jboss.tools.jsf.vpe.richfaces.test/resources/richFacesTest/WebContent/pages/components/pickList.xhtml
trunk/jsf/tests/org.jboss.tools.jsf.vpe.richfaces.test/resources/richFacesTest/WebContent/pages/components/pickList.xhtml.xml
trunk/jsf/tests/org.jboss.tools.jsf.vpe.richfaces.test/resources/richFacesTest/WebContent/pages/components/progressBar.xhtml
trunk/jsf/tests/org.jboss.tools.jsf.vpe.richfaces.test/resources/richFacesTest/WebContent/pages/components/progressBar.xhtml.xml
trunk/jsf/tests/org.jboss.tools.jsf.vpe.richfaces.test/resources/richFacesTest/WebContent/pages/components/scrollableDataTable.xhtml.xml
Modified:
trunk/jsf/tests/org.jboss.tools.jsf.vpe.richfaces.test/resources/richFacesTest/WebContent/pages/components/scrollableDataTable.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:pickList, rich:progressBar,
rich:scrollableDataTable.
Added:
trunk/jsf/tests/org.jboss.tools.jsf.vpe.richfaces.test/resources/richFacesTest/WebContent/pages/components/pickList.xhtml
===================================================================
(Binary files differ)
Property changes on:
trunk/jsf/tests/org.jboss.tools.jsf.vpe.richfaces.test/resources/richFacesTest/WebContent/pages/components/pickList.xhtml
___________________________________________________________________
Name: svn:mime-type
+ application/xhtml+xml
Added:
trunk/jsf/tests/org.jboss.tools.jsf.vpe.richfaces.test/resources/richFacesTest/WebContent/pages/components/pickList.xhtml.xml
===================================================================
---
trunk/jsf/tests/org.jboss.tools.jsf.vpe.richfaces.test/resources/richFacesTest/WebContent/pages/components/pickList.xhtml.xml
(rev 0)
+++
trunk/jsf/tests/org.jboss.tools.jsf.vpe.richfaces.test/resources/richFacesTest/WebContent/pages/components/pickList.xhtml.xml 2008-10-23
09:24:48 UTC (rev 11096)
@@ -0,0 +1,89 @@
+<tests>
+ <test id="pickList">
+ <TABLE CLASS="rich-list-picklist" STYLE="">
+ <TBODY>
+ <TR>
+ <TD>
+ <DIV CLASS="rich-picklist-source-items" STYLE="width: 140px;
height: 140px;">
+ <TABLE WIDTH="100%" CELLSPACING="0"
CELLPADDING="0"
+ CLASS="rich-picklist-body">
+ <TR>
+ <TD STYLE="border: 0px none ; padding: 0px;">
+ <DIV CLASS="rich-picklist-list">
+ <DIV CLASS="rich-picklist-list-content" STYLE="width: 140px;
height: 140px;">
+ <TABLE CELLPADDING="0"
CLASS="rich-picklist-internal-tab">
+ <TBODY>
+ <OPTION> Option 1 </OPTION>
+ <OPTION> Option 2 </OPTION>
+ <OPTION> Option 3 </OPTION>
+ </TBODY>
+ </TABLE>
+ </DIV>
+ </DIV>
+ </TD>
+ </TR>
+ </TABLE>
+ </DIV>
+ </TD>
+ <TD STYLE="vertical-align: middle;">
+ <DIV CLASS="rich-picklist-controls">
+ <DIV CLASS="rich-picklist-control-button-class">
+ <DIV
+ STYLE="background-image:
url(file:///D:/Projects/jboss_trunk/jsf/plugins/org.jboss.tools.jsf.vpe.richfaces/resources/pickList/button.gif);"
+ CLASS="rich-list-picklist-button">
+ <DIV CLASS="rich-list-picklist-button-content">
+ <IMG WIDTH="15" HEIGHT="15"
+ SRC="/.*org.jboss.tools.jsf.vpe.richfaces/resources/pickList/arrow_remove.gif/"/>
Remove
+ </DIV>
+ </DIV>
+ </DIV>
+ <DIV CLASS="rich-picklist-control-button-class">
+ <DIV
+ STYLE="background-image:
url(file:///D:/Projects/jboss_trunk/jsf/plugins/org.jboss.tools.jsf.vpe.richfaces/resources/pickList/button.gif);"
+ CLASS="rich-list-picklist-button">
+ <DIV CLASS="rich-list-picklist-button-content">
+ <IMG WIDTH="15" HEIGHT="15"
+ SRC="/.*org.jboss.tools.jsf.vpe.richfaces/resources/pickList/arrow_copy_all.gif/"/>
Copy all
+ </DIV>
+ </DIV>
+ </DIV>
+ <DIV CLASS="rich-picklist-control-button-class">
+ <DIV
+ STYLE="background-image:
url(file:///D:/Projects/jboss_trunk/jsf/plugins/org.jboss.tools.jsf.vpe.richfaces/resources/pickList/button.gif);"
+ CLASS="rich-list-picklist-button">
+ <DIV CLASS="rich-list-picklist-button-content">
+ <IMG WIDTH="15" HEIGHT="15"
+ SRC="/.*org.jboss.tools.jsf.vpe.richfaces/resources/pickList/arrow_copy.gif/"/>
Copy
+ </DIV>
+ </DIV>
+ </DIV>
+ <DIV CLASS="rich-picklist-control-button-class">
+ <DIV
+ STYLE="/background-image:
url\(.*org.jboss.tools.jsf.vpe.richfaces/resources/pickList/button.gif\);/"
+ CLASS="rich-list-picklist-button">
+ <DIV CLASS="rich-list-picklist-button-content">
+ <IMG WIDTH="15" HEIGHT="15"
+ SRC="/.*org.jboss.tools.jsf.vpe.richfaces/resources/pickList/arrow_remove_all.gif/"/>
Remove All
+ </DIV>
+ </DIV>
+ </DIV>
+ </DIV>
+ </TD>
+ <TD>
+ <DIV CLASS="rich-picklist-target-items" STYLE="width: 140px;
height: 140px;">
+ <TABLE WIDTH="100%" CELLSPACING="0"
CELLPADDING="0"
+ CLASS="rich-picklist-body">
+ <TR>
+ <TD STYLE="border: 0px none ; padding: 0px;">
+ <BR _MOZ_DIRTY="" TYPE="_moz"/>
+ </TD>
+ </TR>
+ </TABLE>
+ </DIV>
+ <BR _MOZ_DIRTY="" TYPE="_moz"/>
+ </TD>
+ </TR>
+ </TBODY>
+ </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/pickList.xhtml.xml
___________________________________________________________________
Name: svn:mime-type
+ text/xml
Name: svn:eol-style
+ native
Added:
trunk/jsf/tests/org.jboss.tools.jsf.vpe.richfaces.test/resources/richFacesTest/WebContent/pages/components/progressBar.xhtml
===================================================================
(Binary files differ)
Property changes on:
trunk/jsf/tests/org.jboss.tools.jsf.vpe.richfaces.test/resources/richFacesTest/WebContent/pages/components/progressBar.xhtml
___________________________________________________________________
Name: svn:mime-type
+ application/xhtml+xml
Added:
trunk/jsf/tests/org.jboss.tools.jsf.vpe.richfaces.test/resources/richFacesTest/WebContent/pages/components/progressBar.xhtml.xml
===================================================================
---
trunk/jsf/tests/org.jboss.tools.jsf.vpe.richfaces.test/resources/richFacesTest/WebContent/pages/components/progressBar.xhtml.xml
(rev 0)
+++
trunk/jsf/tests/org.jboss.tools.jsf.vpe.richfaces.test/resources/richFacesTest/WebContent/pages/components/progressBar.xhtml.xml 2008-10-23
09:24:48 UTC (rev 11096)
@@ -0,0 +1,20 @@
+<tests>
+ <test id="progressBar">
+ <DIV
+ CLASS="rich-progress-bar-block rich-progress-bar-width
rich-progress-bar-shell"
+ STYLE="height: 13px; text-align: left;">
+ <DIV CLASS="rich-progress-bar-height rich-progress-bar-uploaded null"
+ STYLE="height: 13px; width: 60%;">
+ <DIV
+ STYLE="height: 13px; font-weight: bold; position: relative; text-align:
center;"> #{progressBarBean.currentValue} %
+ </DIV>
+ </DIV>
+ <DIV><BR STYLE="-moz-user-modify: read-write;"/>
+
+ </DIV>
+ <DIV><BR STYLE="-moz-user-modify: read-write;"/>
+
+ </DIV>
+ </DIV>
+ </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/progressBar.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/scrollableDataTable.xhtml
===================================================================
---
trunk/jsf/tests/org.jboss.tools.jsf.vpe.richfaces.test/resources/richFacesTest/WebContent/pages/components/scrollableDataTable.xhtml 2008-10-23
08:21:25 UTC (rev 11095)
+++
trunk/jsf/tests/org.jboss.tools.jsf.vpe.richfaces.test/resources/richFacesTest/WebContent/pages/components/scrollableDataTable.xhtml 2008-10-23
09:24:48 UTC (rev 11096)
@@ -1,31 +1,61 @@
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"
"http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html
xmlns="http://www.w3.org/1999/xhtml"
-
xmlns:ui="http://java.sun.com/jsf/facelets"
-
xmlns:h="http://java.sun.com/jsf/html"
-
xmlns:f="http://java.sun.com/jsf/core"
-
xmlns:a4j="http://richfaces.org/a4j"
-
xmlns:rich="http://richfaces.org/rich">
+
xmlns:ui="http://java.sun.com/jsf/facelets"
+
xmlns:h="http://java.sun.com/jsf/html"
+
xmlns:f="http://java.sun.com/jsf/core"
+
xmlns:a4j="http://richfaces.org/a4j"
+
xmlns:rich="http://richfaces.org/rich">
<head>
</head>
<body>
-<!-- Scrollable Data Table component -->
- <rich:scrollableDataTable rowKeyVar="rkv" frozenColCount="1"
- height="150px" width="700px" rows="5"
columnClasses="col"
- sortMode="single">
- <rich:column>
- <f:facet name="header">
- <h:outputText styleClass="headerText" value="Car" />
- </f:facet>
- <h:outputText value="Car1" />
- </rich:column>
- <rich:column>
- <f:facet name="header">
- <h:outputText styleClass="headerText" value="Model" />
- </f:facet>
- <h:outputText value="Model1" />
- </rich:column>
- </rich:scrollableDataTable>
+<f:view>
+<rich:scrollableDataTable id="scrollableDataTable" rowKeyVar="rkv"
frozenColCount="1"
+ height="400px" width="700px" id="carList"
rows="40"
+ columnClasses="col" value="#{dataTableScrollerBean.allCars}"
+ var="category" sortMode="single"
+ binding="#{dataTableScrollerBean.table}"
+ sortOrder="#{dataTableScrollerBean.order}"
+ selection="#{dataTableScrollerBean.selection}">
+
+ <rich:column id="make">
+ <f:facet name="header">
+ <h:outputText styleClass="headerText" value="Make"
/>
+ </f:facet>
+ <h:outputText value="#{category.make}" />
+ </rich:column>
+ <rich:column id="model">
+ <f:facet name="header">
+ <h:outputText styleClass="headerText"
value="Model" />
+ </f:facet>
+ <h:outputText value="#{category.model}" />
+ </rich:column>
+ <rich:column id="price">
+ <f:facet name="header">
+ <h:outputText styleClass="headerText"
value="Price" />
+ </f:facet>
+ <h:outputText value="#{category.price}" />
+ </rich:column>
+ <rich:column id="mileage">
+ <f:facet name="header">
+ <h:outputText styleClass="headerText"
value="Mileage" />
+ </f:facet>
+ <h:outputText value="#{category.mileage}" />
+ </rich:column>
+ <rich:column width="200px" id="vin">
+ <f:facet name="header">
+ <h:outputText styleClass="headerText" value="VIN"
/>
+ </f:facet>
+ <h:outputText value="#{category.vin}" />
+ </rich:column>
+ <rich:column id="stock">
+ <f:facet name="header">
+ <h:outputText styleClass="headerText"
value="Stock" />
+ </f:facet>
+ <h:outputText value="#{category.stock}" />
+ </rich:column>
+ </rich:scrollableDataTable>
+</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/scrollableDataTable.xhtml.xml
===================================================================
---
trunk/jsf/tests/org.jboss.tools.jsf.vpe.richfaces.test/resources/richFacesTest/WebContent/pages/components/scrollableDataTable.xhtml.xml
(rev 0)
+++
trunk/jsf/tests/org.jboss.tools.jsf.vpe.richfaces.test/resources/richFacesTest/WebContent/pages/components/scrollableDataTable.xhtml.xml 2008-10-23
09:24:48 UTC (rev 11096)
@@ -0,0 +1,160 @@
+<tests>
+ <test id="scrollableDataTable">
+ <TABLE>
+ <TR>
+ <TD>
+ <DIV CLASS="dr-table-hidden" STYLE="width: 700px; height:
400px;">
+ <TABLE WIDTH="700" ROWKEYVAR="rkv"
FROZENCOLCOUNT="1" ID="carList"
+ ROWS="40" COLUMNCLASSES="col"
VALUE="#{dataTableScrollerBean.allCars}"
+ VAR="category" SORTMODE="single"
BINDING="#{dataTableScrollerBean.table}"
+ SORTORDER="#{dataTableScrollerBean.order}"
SELECTION="#{dataTableScrollerBean.selection}"
+ CLASS="dr-table rich-table">
+ <COLGROUP SPAN="6">
+ </COLGROUP>
+ <THEAD>
+ <TR CLASS="dr-table-subheader rich-table-subheader">
+ <TD CLASS="dr-table-subheadercell rich-table-subheadercell"
+ SCOP="col">
+ <SPAN CLASS="headerText"> Make </SPAN>
+ </TD>
+ <TD CLASS="dr-table-subheadercell rich-table-subheadercell"
+ SCOP="col">
+ <SPAN CLASS="headerText"> Model </SPAN>
+ </TD>
+ <TD CLASS="dr-table-subheadercell rich-table-subheadercell"
+ SCOP="col">
+ <SPAN CLASS="headerText"> Price </SPAN>
+ </TD>
+ <TD CLASS="dr-table-subheadercell rich-table-subheadercell"
+ SCOP="col">
+ <SPAN CLASS="headerText"> Mileage </SPAN>
+ </TD>
+ <TD CLASS="dr-table-subheadercell rich-table-subheadercell"
+ SCOP="col">
+ <SPAN CLASS="headerText"> VIN </SPAN>
+ </TD>
+ <TD CLASS="dr-table-subheadercell rich-table-subheadercell"
+ SCOP="col">
+ <SPAN CLASS="headerText"> Stock </SPAN>
+ </TD>
+ </TR>
+ </THEAD>
+ <TBODY>
+ <TR CLASS="dr-table-firstrow rich-table-firstrow">
+ <TD CLASS="dr-table-cell rich-table-cell" ID="make">
+ <SPAN> #{category.make} </SPAN>
+ </TD>
+ <TD CLASS="dr-table-cell rich-table-cell" ID="model">
+ <SPAN> #{category.model} </SPAN>
+ </TD>
+ <TD CLASS="dr-table-cell rich-table-cell" ID="price">
+ <SPAN> #{category.price} </SPAN>
+ </TD>
+ <TD CLASS="dr-table-cell rich-table-cell"
ID="mileage">
+ <SPAN> #{category.mileage} </SPAN>
+ </TD>
+ <TD WIDTH="200" CLASS="dr-table-cell rich-table-cell"
ID="vin">
+ <SPAN> #{category.vin} </SPAN>
+ </TD>
+ <TD CLASS="dr-table-cell rich-table-cell" ID="stock">
+ <SPAN> #{category.stock} </SPAN>
+ </TD>
+ </TR>
+ <TR CLASS="dr-table-firstrow rich-table-firstrow">
+ <TD CLASS="dr-table-cell rich-table-cell" ID="make">
+ <SPAN> #{category.make} </SPAN>
+ </TD>
+ <TD CLASS="dr-table-cell rich-table-cell" ID="model">
+ <SPAN> #{category.model} </SPAN>
+ </TD>
+ <TD CLASS="dr-table-cell rich-table-cell" ID="price">
+ <SPAN> #{category.price} </SPAN>
+ </TD>
+ <TD CLASS="dr-table-cell rich-table-cell"
ID="mileage">
+ <SPAN> #{category.mileage} </SPAN>
+ </TD>
+ <TD WIDTH="200" CLASS="dr-table-cell rich-table-cell"
ID="vin">
+ <SPAN> #{category.vin} </SPAN>
+ </TD>
+ <TD CLASS="dr-table-cell rich-table-cell" ID="stock">
+ <SPAN> #{category.stock} </SPAN>
+ </TD>
+ </TR>
+ <TR CLASS="dr-table-firstrow rich-table-firstrow">
+ <TD CLASS="dr-table-cell rich-table-cell" ID="make">
+ <SPAN> #{category.make} </SPAN>
+ </TD>
+ <TD CLASS="dr-table-cell rich-table-cell" ID="model">
+ <SPAN> #{category.model} </SPAN>
+ </TD>
+ <TD CLASS="dr-table-cell rich-table-cell" ID="price">
+ <SPAN> #{category.price} </SPAN>
+ </TD>
+ <TD CLASS="dr-table-cell rich-table-cell"
ID="mileage">
+ <SPAN> #{category.mileage} </SPAN>
+ </TD>
+ <TD WIDTH="200" CLASS="dr-table-cell rich-table-cell"
ID="vin">
+ <SPAN> #{category.vin} </SPAN>
+ </TD>
+ <TD CLASS="dr-table-cell rich-table-cell" ID="stock">
+ <SPAN> #{category.stock} </SPAN>
+ </TD>
+ </TR>
+ <TR CLASS="dr-table-firstrow rich-table-firstrow">
+ <TD CLASS="dr-table-cell rich-table-cell" ID="make">
+ <SPAN> #{category.make} </SPAN>
+ </TD>
+ <TD CLASS="dr-table-cell rich-table-cell" ID="model">
+ <SPAN> #{category.model} </SPAN>
+ </TD>
+ <TD CLASS="dr-table-cell rich-table-cell" ID="price">
+ <SPAN> #{category.price} </SPAN>
+ </TD>
+ <TD CLASS="dr-table-cell rich-table-cell"
ID="mileage">
+ <SPAN> #{category.mileage} </SPAN>
+ </TD>
+ <TD WIDTH="200" CLASS="dr-table-cell rich-table-cell"
ID="vin">
+ <SPAN> #{category.vin} </SPAN>
+ </TD>
+ <TD CLASS="dr-table-cell rich-table-cell" ID="stock">
+ <SPAN> #{category.stock} </SPAN>
+ </TD>
+ </TR>
+ <TR CLASS="dr-table-firstrow rich-table-firstrow">
+ <TD CLASS="dr-table-cell rich-table-cell" ID="make">
+ <SPAN> #{category.make} </SPAN>
+ </TD>
+ <TD CLASS="dr-table-cell rich-table-cell" ID="model">
+ <SPAN> #{category.model} </SPAN>
+ </TD>
+ <TD CLASS="dr-table-cell rich-table-cell" ID="price">
+ <SPAN> #{category.price} </SPAN>
+ </TD>
+ <TD CLASS="dr-table-cell rich-table-cell"
ID="mileage">
+ <SPAN> #{category.mileage} </SPAN>
+ </TD>
+ <TD WIDTH="200" CLASS="dr-table-cell rich-table-cell"
ID="vin">
+ <SPAN> #{category.vin} </SPAN>
+ </TD>
+ <TD CLASS="dr-table-cell rich-table-cell" ID="stock">
+ <SPAN> #{category.stock} </SPAN>
+ </TD>
+ </TR>
+ </TBODY>
+ </TABLE>
+ </DIV>
+ </TD>
+ <TD>
+ <DIV STYLE="overflow: scroll; width: 17px; height: 100%;">
+ </DIV>
+ </TD>
+ </TR>
+ <TR>
+ <TD>
+ <DIV STYLE="overflow: scroll; width: 100%; height: 17px;">
+ </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/scrollableDataTable.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-23
08:21:25 UTC (rev 11095)
+++
trunk/jsf/tests/org.jboss.tools.jsf.vpe.richfaces.test/src/org/jboss/tools/jsf/vpe/richfaces/test/RichFacesComponentContentTest.java 2008-10-23
09:24:48 UTC (rev 11096)
@@ -244,15 +244,15 @@
}
public void testPickList() throws Throwable {
- assertTrue("it is necessary to add a body of the test ",
false);//$NON-NLS-1$
+ performContentTest("components/pickList.xhtml");//$NON-NLS-1$
}
public void testProgressBar() throws Throwable {
- assertTrue("it is necessary to add a body of the test ",
false);//$NON-NLS-1$
+ performContentTest("components/progressBar.xhtml");//$NON-NLS-1$
}
public void testScrollableDataTable() throws Throwable {
- assertTrue("it is necessary to add a body of the test ",
false);//$NON-NLS-1$
+ performContentTest("components/scrollableDataTable.xhtml");//$NON-NLS-1$
}
public void testSeparator() throws Throwable {