Author: ppitonak(a)redhat.com
Date: 2011-11-28 11:39:35 -0500 (Mon, 28 Nov 2011)
New Revision: 23007
Modified:
modules/tests/metamer/trunk/ftest-source/src/main/java/org/richfaces/tests/metamer/ftest/richTree/TestTreeSimple.java
Log:
1 test for rich:tree refactored
Modified:
modules/tests/metamer/trunk/ftest-source/src/main/java/org/richfaces/tests/metamer/ftest/richTree/TestTreeSimple.java
===================================================================
---
modules/tests/metamer/trunk/ftest-source/src/main/java/org/richfaces/tests/metamer/ftest/richTree/TestTreeSimple.java 2011-11-25
18:45:42 UTC (rev 23006)
+++
modules/tests/metamer/trunk/ftest-source/src/main/java/org/richfaces/tests/metamer/ftest/richTree/TestTreeSimple.java 2011-11-28
16:39:35 UTC (rev 23007)
@@ -67,6 +67,7 @@
import org.richfaces.component.SwitchType;
import org.richfaces.tests.metamer.ftest.annotations.Inject;
import org.richfaces.tests.metamer.ftest.annotations.IssueTracking;
+import org.richfaces.tests.metamer.ftest.annotations.Templates;
import org.richfaces.tests.metamer.ftest.annotations.Use;
import org.testng.annotations.Test;
@@ -95,7 +96,7 @@
@Use(empty = true)
Event domEvent;
Event[] domEvents = { CLICK, DBLCLICK, KEYDOWN, KEYPRESS, KEYUP, MOUSEDOWN,
MOUSEMOVE, MOUSEOUT, MOUSEOVER, MOUSEUP };
-
+
TreeModel tree = new TreeModel(pjq("div.rf-tr[id$=richTree]"));
TreeNodeModel treeNode;
@@ -242,7 +243,7 @@
}
@Test
- @IssueTracking("https://issues.jboss.org/browse/RF-11319")
+ @Templates(exclude = "a4jRegion")
public void testSelectionClientSideEvents() {
String[] events = new String[] { "beforeselectionchange",
"begin", "beforedomupdate", "complete",
"selectionchange" };
@@ -251,6 +252,17 @@
testRequestEventsAfter(events);
}
+ @Test(groups = { "4.Future" })
+ @IssueTracking("https://issues.jboss.org/browse/RF-11319")
+ @Templates(value = "a4jRegion")
+ public void testSelectionClientSideEventsInRegion() {
+ String[] events = new String[] { "beforeselectionchange",
"begin", "beforedomupdate", "complete",
+ "selectionchange" };
+ testRequestEventsBefore(events);
+ tree.getNode(1).select();
+ testRequestEventsAfter(events);
+ }
+
@Test(groups = "4.Future")
@IssueTracking("https://issues.jboss.org/browse/RF-10265")
public void testToggleClientSideEvents() {
Show replies by date