Author: jjamrich
Date: 2011-06-22 17:18:13 -0400 (Wed, 22 Jun 2011)
New Revision: 22532
Modified:
modules/tests/metamer/trunk/ftest-source/src/main/java/org/richfaces/tests/metamer/ftest/richTabPanel/TestRichTabPanel.java
Log:
Fix tests for tab activation.
There was wrong condition for activeItem evaluation.
When active tab is tab5, then change active tab to tab4 which is
disabled, there tab1 get active instead of leave last (tab5) active
Modified:
modules/tests/metamer/trunk/ftest-source/src/main/java/org/richfaces/tests/metamer/ftest/richTabPanel/TestRichTabPanel.java
===================================================================
---
modules/tests/metamer/trunk/ftest-source/src/main/java/org/richfaces/tests/metamer/ftest/richTabPanel/TestRichTabPanel.java 2011-06-22
21:17:55 UTC (rev 22531)
+++
modules/tests/metamer/trunk/ftest-source/src/main/java/org/richfaces/tests/metamer/ftest/richTabPanel/TestRichTabPanel.java 2011-06-22
21:18:13 UTC (rev 22532)
@@ -125,12 +125,12 @@
selenium.type(pjq("input[type=text][id$=activeItemInput]"),
"tab4");
selenium.waitForPageToLoad();
- for (int i = 0; i < 5; i++) {
+ for (int i = 1; i < 5; i++) {
displayed = selenium.isDisplayed(activeHeaders[i]);
assertFalse(displayed, "Tab" + (i + 1) + "'s header should
not be active.");
}
- for (int i = 0; i < 5; i++) {
+ for (int i = 1; i < 5; i++) {
displayed = selenium.isDisplayed(items[i]);
assertFalse(displayed, "Tab" + (i + 1) + "'s content
should not be visible.");
}
Show replies by date