Author: ppitonak(a)redhat.com
Date: 2011-09-19 09:31:29 -0400 (Mon, 19 Sep 2011)
New Revision: 22724
Modified:
modules/tests/metamer/trunk/ftest-source/src/main/java/org/richfaces/tests/metamer/ftest/richPickList/TestPickList.java
Log:
added 4 new tests for rich:pickList
issue tracking info updated
Modified:
modules/tests/metamer/trunk/ftest-source/src/main/java/org/richfaces/tests/metamer/ftest/richPickList/TestPickList.java
===================================================================
---
modules/tests/metamer/trunk/ftest-source/src/main/java/org/richfaces/tests/metamer/ftest/richPickList/TestPickList.java 2011-09-15
13:32:21 UTC (rev 22723)
+++
modules/tests/metamer/trunk/ftest-source/src/main/java/org/richfaces/tests/metamer/ftest/richPickList/TestPickList.java 2011-09-19
13:31:29 UTC (rev 22724)
@@ -55,7 +55,8 @@
private JQueryLocator a4jSubmit = pjq("input[id$=a4jButton]");
private JQueryLocator pickListTop = pjq("div.rf-pick[id$=pickList]");
- private JQueryLocator pickListSource = pjq("div.rf-pick-source
div.rf-pick-lst-dcrtn"); // this locator works for sourcemouseover event
+ private JQueryLocator pickListSource = pjq("div.rf-pick-source
div.rf-pick-lst-dcrtn"); // this locator works for
+
// sourcemouseover event
private JQueryLocator pickListTarget = pjq("div.rf-pick-target
div.rf-pick-lst-dcrtn");
private JQueryLocator output = pjq("span[id$=output]");
private JQueryLocator pickListMsgBox = pjq("span.rf-ntf-msg >
span[id$=msg:form:pickList] > span.rf-msg-det");
@@ -232,13 +233,11 @@
public void testHeaderClass() {
// move to columns layout test
/*
- String headerClass = "my-cool-header-class";
- attributes.setHeaderClass(headerClass);
-
- String found = selenium.getAttribute(pickListTop.getAttribute(classAttr));
- assertTrue(found != null);
- assertTrue(found.contains(headerClass));
- */
+ * String headerClass = "my-cool-header-class";
attributes.setHeaderClass(headerClass);
+ *
+ * String found = selenium.getAttribute(pickListTop.getAttribute(classAttr));
assertTrue(found != null);
+ * assertTrue(found.contains(headerClass));
+ */
}
@Test
@@ -316,13 +315,13 @@
}
@Test
- @IssueTracking("https://issues.jboss.org/browse/RFPL-1659")
+ @IssueTracking({ "https://issues.jboss.org/browse/RFPL-1659",
"https://issues.jboss.org/browse/RF-11322" })
public void testOnblur() {
testFireEvent(Event.BLUR, pickListTop);
}
@Test
- public void testOnchange() {
+ public void testOnchange() {
testFireEvent(Event.CHANGE, pickListTop, "change");
}
@@ -337,7 +336,7 @@
}
@Test
- @IssueTracking("https://issues.jboss.org/browse/RFPL-1659")
+ @IssueTracking({ "https://issues.jboss.org/browse/RFPL-1659",
"https://issues.jboss.org/browse/RF-11322" })
public void testOnfocus() {
testFireEvent(Event.FOCUS, pickListTop);
}
@@ -395,6 +394,12 @@
}
@Test
+ @IssueTracking("https://issues.jboss.org/browse/RF-11322")
+ public void testOnsourceblur() {
+ testFireEvent(Event.BLUR, pickListSource, "sourceblur");
+ }
+
+ @Test
public void testOnsourceclick() {
testFireEvent(Event.CLICK, pickListSource, "sourceclick");
}
@@ -405,19 +410,25 @@
}
@Test
- @IssueTracking("https://issues.jboss.org/browse/RFPL-1659")
+ @IssueTracking("https://issues.jboss.org/browse/RF-11322")
+ public void testOnsourcefocus() {
+ testFireEvent(Event.FOCUS, pickListSource, "sourcefocus");
+ }
+
+ @Test
+ @IssueTracking({ "https://issues.jboss.org/browse/RFPL-1659",
"https://issues.jboss.org/browse/RF-11322" })
public void testOnsourcekeydown() {
testFireEvent(Event.KEYDOWN, pickListSource, "sourcekeydown");
}
@Test
- @IssueTracking("https://issues.jboss.org/browse/RFPL-1659")
+ @IssueTracking({ "https://issues.jboss.org/browse/RFPL-1659",
"https://issues.jboss.org/browse/RF-11322" })
public void testOnsourcekeypress() {
testFireEvent(Event.KEYPRESS, pickListSource, "sourcekeypress");
}
@Test
- @IssueTracking("https://issues.jboss.org/browse/RFPL-1659")
+ @IssueTracking({ "https://issues.jboss.org/browse/RFPL-1659",
"https://issues.jboss.org/browse/RF-11322" })
public void testOnsourcekeyup() {
testFireEvent(Event.KEYUP, pickListSource, "sourcekeyup");
}
@@ -448,6 +459,12 @@
}
@Test
+ @IssueTracking("https://issues.jboss.org/browse/RF-11322")
+ public void testOntargetblur() {
+ testFireEvent(Event.BLUR, pickListTarget, "targetblur");
+ }
+
+ @Test
public void testOntargetclick() {
testFireEvent(Event.CLICK, pickListTarget, "targetclick");
}
@@ -458,19 +475,25 @@
}
@Test
- @IssueTracking("https://issues.jboss.org/browse/RFPL-1659")
+ @IssueTracking("https://issues.jboss.org/browse/RF-11322")
+ public void testOntargetfocus() {
+ testFireEvent(Event.FOCUS, pickListTarget, "targetfocus");
+ }
+
+ @Test
+ @IssueTracking({ "https://issues.jboss.org/browse/RFPL-1659",
"https://issues.jboss.org/browse/RF-11322" })
public void testOntargetkeydown() {
testFireEvent(Event.KEYDOWN, pickListTarget, "targetkeydown");
}
@Test
- @IssueTracking("https://issues.jboss.org/browse/RFPL-1659")
+ @IssueTracking({ "https://issues.jboss.org/browse/RFPL-1659",
"https://issues.jboss.org/browse/RF-11322" })
public void testOntargetkeypress() {
testFireEvent(Event.KEYPRESS, pickListTarget, "targetkeypress");
}
@Test
- @IssueTracking("https://issues.jboss.org/browse/RFPL-1659")
+ @IssueTracking({ "https://issues.jboss.org/browse/RFPL-1659",
"https://issues.jboss.org/browse/RF-11322" })
public void testOntargetkeyup() {
testFireEvent(Event.KEYUP, pickListTarget, "targetkeyup");
}