Author: andrei_exadel
Date: 2008-12-01 07:19:16 -0500 (Mon, 01 Dec 2008)
New Revision: 11452
Modified:
trunk/test-applications/seleniumTest/richfaces/src/main/java/org/ajax4jsf/bean/DnDBean.java
trunk/test-applications/seleniumTest/richfaces/src/main/webapp/pages/dnd/dndTest.xhtml
trunk/test-applications/seleniumTest/richfaces/src/test/java/org/richfaces/testng/DnDTest.java
Log:
RF-5134
Modified:
trunk/test-applications/seleniumTest/richfaces/src/main/java/org/ajax4jsf/bean/DnDBean.java
===================================================================
---
trunk/test-applications/seleniumTest/richfaces/src/main/java/org/ajax4jsf/bean/DnDBean.java 2008-12-01
08:33:33 UTC (rev 11451)
+++
trunk/test-applications/seleniumTest/richfaces/src/main/java/org/ajax4jsf/bean/DnDBean.java 2008-12-01
12:19:16 UTC (rev 11452)
@@ -33,6 +33,8 @@
private Object dropValue;
private Object dragValue;
+
+ private Boolean rendered;
public DnDBean() {
initList();
@@ -75,9 +77,15 @@
status = "";
dropValue = null;
dragValue = null;
+ rendered = true;
initList();
return null;
}
+
+ public String testRendered() {
+ rendered = false;
+ return null;
+ }
private void initList() {
frameworks = new ArrayList<Framework>();
@@ -189,5 +197,15 @@
public void setDragValue(Object dragValue) {
this.dragValue = dragValue;
}
+
+
+ public Boolean getRendered() {
+ return rendered;
+ }
+
+
+ public void setRendered(Boolean rendered) {
+ this.rendered = rendered;
+ }
}
Modified:
trunk/test-applications/seleniumTest/richfaces/src/main/webapp/pages/dnd/dndTest.xhtml
===================================================================
(Binary files differ)
Modified:
trunk/test-applications/seleniumTest/richfaces/src/test/java/org/richfaces/testng/DnDTest.java
===================================================================
---
trunk/test-applications/seleniumTest/richfaces/src/test/java/org/richfaces/testng/DnDTest.java 2008-12-01
08:33:33 UTC (rev 11451)
+++
trunk/test-applications/seleniumTest/richfaces/src/test/java/org/richfaces/testng/DnDTest.java 2008-12-01
12:19:16 UTC (rev 11452)
@@ -1,6 +1,7 @@
package org.richfaces.testng;
import java.util.ArrayList;
+import java.util.Collections;
import java.util.HashMap;
import java.util.List;
import java.util.Map;
@@ -51,8 +52,25 @@
protected String getFirefoxTemplate() {
return "c:/FFProfile";
}
+
+ @Test
+ public void testRendered(Template template) {
+ renderPage(template, RESET_METHOD);
+ initIds(getParentId());
+
+ String controlsId = getParentId() + "_controls:testRendered";
+ clickCommandAndWait(controlsId);
+
+ _DragAndDrop(0, phpDropZoneId);
+ AssertTextEquals(phpDropZoneId + "_body", "", "Drop zone
text should be empty");
+ assertDropValue("");
+
+ assertListeners();
+ assertEvents(Collections.EMPTY_LIST);
+ }
+
- @Test
+ //@Test
public void testDragValue(Template template) {
renderPage(template, RESET_METHOD);
initIds(getParentId());
@@ -68,7 +86,7 @@
}
- @Test
+ //@Test
public void testDropValue(Template template) {
renderPage(template, RESET_METHOD);
initIds(getParentId());
@@ -86,7 +104,7 @@
testDropData();
}
- @Test
+ //@Test
public void testListeners(Template template) {
renderPage(template, RESET_METHOD);
initIds(getParentId());
@@ -102,7 +120,7 @@
}
- @Test
+ //@Test
public void testEvents(Template template) {
renderPage(template, RESET_METHOD);
initIds(getParentId());
@@ -119,7 +137,7 @@
assertEvents(eventsExpected);
}
- @Test
+ //@Test
public void testListenersIfTypeNotAccepted(Template template) {
renderPage(template, RESET_METHOD);
initIds(getParentId());
@@ -139,7 +157,7 @@
assertListeners();
}
- @Test
+ //@Test
public void testEventsIfTypeNotAccepted(Template template) {
renderPage(template, RESET_METHOD);
initIds(getParentId());
@@ -155,7 +173,7 @@
assertEvents(eventsExpected);
}
- @Test
+ // @Test
public void testNestedParameters(Template template) {
AutoTester tester = getAutoTester(this);
tester.renderPage(template, RESET_METHOD);
@@ -163,7 +181,7 @@
tester.testRequestParameters(parameters);
}
- @Test
+ //@Test
public void testByPassUpdate(Template template) {
AutoTester tester = getAutoTester(this);
tester.renderPage(template, RESET_METHOD);
@@ -171,7 +189,7 @@
tester.testBypassUpdate();
}
- @Test
+ //@Test
public void testReRender(Template template) {
AutoTester tester = getAutoTester(this);
tester.renderPage(template, RESET_METHOD);
@@ -179,7 +197,7 @@
tester.testReRender();
}
- @Test
+ //@Test
public void testLimit2List(Template template) {
AutoTester tester = getAutoTester(this);
tester.renderPage(template, RESET_METHOD);