Author: konstantin.mishin
Date: 2009-03-19 13:14:59 -0400 (Thu, 19 Mar 2009)
New Revision: 13032
Modified:
trunk/test-applications/seleniumTest/richfaces/src/main/java/org/ajax4jsf/bean/RichPanelTestBean.java
trunk/test-applications/seleniumTest/richfaces/src/main/webapp/pages/simpleTogglePanel/simpleTogglePanelChildProcessingTest.xhtml
trunk/test-applications/seleniumTest/richfaces/src/main/webapp/pages/simpleTogglePanel/simpleTogglePanelTest.xhtml
trunk/test-applications/seleniumTest/richfaces/src/test/java/org/richfaces/testng/SimpleTogglePanelTest.java
Log:
RF-6523
Modified:
trunk/test-applications/seleniumTest/richfaces/src/main/java/org/ajax4jsf/bean/RichPanelTestBean.java
===================================================================
---
trunk/test-applications/seleniumTest/richfaces/src/main/java/org/ajax4jsf/bean/RichPanelTestBean.java 2009-03-19
16:10:12 UTC (rev 13031)
+++
trunk/test-applications/seleniumTest/richfaces/src/main/java/org/ajax4jsf/bean/RichPanelTestBean.java 2009-03-19
17:14:59 UTC (rev 13032)
@@ -55,6 +55,14 @@
private String selectedChild;
+ private String opened;
+
+ private String ajaxOpened;
+
+ private String clientOpened;
+
+ private String serverOpened;
+
public RichPanelTestBean() {
value = "";
value2 = 0;
@@ -62,6 +70,10 @@
content = "content";
immediate = false;
selectedChild = null;
+ opened = "false";
+ ajaxOpened = "false";
+ clientOpened = "false";
+ serverOpened = "false";
}
public void reset() {
@@ -253,18 +265,21 @@
cleanValues();
content = "";
switchType = "server";
+ opened = "false";
}
public void reset2Ajax() {
cleanValues();
content = "";
switchType = "ajax";
+ opened = "false";
}
public void reset2Client() {
cleanValues();
content = "";
switchType = "client";
+ opened = "false";
}
public void cleanValues() {
@@ -277,6 +292,9 @@
content = "content";
immediate = false;
selectedChild = null;
+ ajaxOpened = "false";
+ clientOpened = "false";
+ serverOpened = "false";
}
/**
@@ -347,4 +365,36 @@
return selectedChild;
}
+ public void setOpened(String opened) {
+ this.opened = opened;
+ }
+
+ public String getOpened() {
+ return opened;
+ }
+
+ public void setAjaxOpened(String ajaxOpened) {
+ this.ajaxOpened = ajaxOpened;
+ }
+
+ public String getAjaxOpened() {
+ return ajaxOpened;
+ }
+
+ public void setClientOpened(String clientOpened) {
+ this.clientOpened = clientOpened;
+ }
+
+ public String getClientOpened() {
+ return clientOpened;
+ }
+
+ public void setServerOpened(String serverOpened) {
+ this.serverOpened = serverOpened;
+ }
+
+ public String getServerOpened() {
+ return serverOpened;
+ }
+
}
Modified:
trunk/test-applications/seleniumTest/richfaces/src/main/webapp/pages/simpleTogglePanel/simpleTogglePanelChildProcessingTest.xhtml
===================================================================
(Binary files differ)
Modified:
trunk/test-applications/seleniumTest/richfaces/src/main/webapp/pages/simpleTogglePanel/simpleTogglePanelTest.xhtml
===================================================================
(Binary files differ)
Modified:
trunk/test-applications/seleniumTest/richfaces/src/test/java/org/richfaces/testng/SimpleTogglePanelTest.java
===================================================================
---
trunk/test-applications/seleniumTest/richfaces/src/test/java/org/richfaces/testng/SimpleTogglePanelTest.java 2009-03-19
16:10:12 UTC (rev 13031)
+++
trunk/test-applications/seleniumTest/richfaces/src/test/java/org/richfaces/testng/SimpleTogglePanelTest.java 2009-03-19
17:14:59 UTC (rev 13032)
@@ -322,7 +322,7 @@
clickCommandAndWait(fullSubmit);
AssertTextEquals(luckId, "0", "Panel is not server-aware! Invalid
child components must be processed");
- type(childId, "valid");
+ selenium.type(childId, "valid");
clickAjaxCommandAndWait(ajaxSubmit);
AssertTextEquals(luckId, "1", "Panel is not server-aware! Valid
child components must be processed");