Author: dmaliarevich
Date: 2008-10-21 04:28:03 -0400 (Tue, 21 Oct 2008)
New Revision: 11029
Added:
trunk/jsf/tests/org.jboss.tools.jsf.vpe.richfaces.test/resources/richFacesTest/WebContent/pages/components/fileUpload.xhtml
Modified:
trunk/jsf/tests/org.jboss.tools.jsf.vpe.richfaces.test/resources/richFacesTest/WebContent/pages/components/effect.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:effect and rich:fileUpload.
Modified:
trunk/jsf/tests/org.jboss.tools.jsf.vpe.richfaces.test/resources/richFacesTest/WebContent/pages/components/effect.xhtml
===================================================================
---
trunk/jsf/tests/org.jboss.tools.jsf.vpe.richfaces.test/resources/richFacesTest/WebContent/pages/components/effect.xhtml 2008-10-21
07:30:00 UTC (rev 11028)
+++
trunk/jsf/tests/org.jboss.tools.jsf.vpe.richfaces.test/resources/richFacesTest/WebContent/pages/components/effect.xhtml 2008-10-21
08:28:03 UTC (rev 11029)
@@ -9,13 +9,14 @@
<head>
</head>
<body>
- <!-- Effect -->
- <rich:panel id="fadebox" styleClass="box">
- <f:facet name="header">Fade Effect</f:facet>
- <rich:effect event="onclick" type="Fade" />
- <rich:effect event="onclick" for="fadebox"
type="Appear"
- params="delay:3.0,duration:0.5" />
- <h:outputText value="Click to Activate" />
- </rich:panel>
+<f:view>
+<div id="contentDiv">
+ ..... div content ......
+</div>
+<input type="button" onclick="hideDiv({duration:0.7})"
value="Hide" />
+<input type="button" onclick="showDiv()" value="Show"
/>
+<rich:effect id="effect1" name="hideDiv"
for="contentDiv" type="Fade" />
+<rich:effect id="effect2" name="showDiv"
for="contentDiv" type="Appear" />
+</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/fileUpload.xhtml
===================================================================
(Binary files differ)
Property changes on:
trunk/jsf/tests/org.jboss.tools.jsf.vpe.richfaces.test/resources/richFacesTest/WebContent/pages/components/fileUpload.xhtml
___________________________________________________________________
Name: svn:mime-type
+ application/xhtml+xml
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-21
07:30:00 UTC (rev 11028)
+++
trunk/jsf/tests/org.jboss.tools.jsf.vpe.richfaces.test/src/org/jboss/tools/jsf/vpe/richfaces/test/RichFacesComponentContentTest.java 2008-10-21
08:28:03 UTC (rev 11029)
@@ -152,11 +152,11 @@
}
public void testEffect() throws Throwable {
- assertTrue("it is necessary to add a body of the test ",
false);//$NON-NLS-1$
+ performInvisibleTagTest("components/effect.xhtml", "effect1");
//$NON-NLS-1$ //$NON-NLS-2$
}
public void testFileUpload() throws Throwable {
- assertTrue("it is necessary to add a body of the test ",
false);//$NON-NLS-1$
+ performContentTest("components/fileUpload.xhtml");//$NON-NLS-1$
}
public void testGmap() throws Throwable {