Author: ppitonak(a)redhat.com
Date: 2011-03-31 08:50:47 -0400 (Thu, 31 Mar 2011)
New Revision: 22340
Added:
modules/tests/metamer/trunk/application/src/main/resources/org/richfaces/tests/metamer/bean/RichInputNumberSpinnerBean.properties
Modified:
modules/tests/metamer/trunk/application/src/main/webapp/components/richInputNumberSpinner/simple.xhtml
modules/tests/metamer/trunk/ftest-source/src/main/java/org/richfaces/tests/metamer/ftest/richInputNumberSpinner/TestRichSpinner.java
Log:
samples for spinner updated
added new tests for spinner
Added:
modules/tests/metamer/trunk/application/src/main/resources/org/richfaces/tests/metamer/bean/RichInputNumberSpinnerBean.properties
===================================================================
---
modules/tests/metamer/trunk/application/src/main/resources/org/richfaces/tests/metamer/bean/RichInputNumberSpinnerBean.properties
(rev 0)
+++
modules/tests/metamer/trunk/application/src/main/resources/org/richfaces/tests/metamer/bean/RichInputNumberSpinnerBean.properties 2011-03-31
12:50:47 UTC (rev 22340)
@@ -0,0 +1,3 @@
+attr.dir.ltr=ltr
+attr.dir.rtl=rtl
+attr.dir.null=
Modified:
modules/tests/metamer/trunk/application/src/main/webapp/components/richInputNumberSpinner/simple.xhtml
===================================================================
---
modules/tests/metamer/trunk/application/src/main/webapp/components/richInputNumberSpinner/simple.xhtml 2011-03-31
12:07:19 UTC (rev 22339)
+++
modules/tests/metamer/trunk/application/src/main/webapp/components/richInputNumberSpinner/simple.xhtml 2011-03-31
12:50:47 UTC (rev 22340)
@@ -44,8 +44,6 @@
<ui:define name="component">
<rich:inputNumberSpinner id="spinner"
-
valueChangeListener="#{richBean.valueChangeListener}"
-
accesskey="#{richInputNumberSpinnerBean.attributes['accesskey'].value}"
cycled="#{richInputNumberSpinnerBean.attributes['cycled'].value}"
dir="#{richInputNumberSpinnerBean.attributes['dir'].value}"
@@ -74,6 +72,9 @@
oninputmouseout="#{richInputNumberSpinnerBean.attributes['oninputmouseout'].value}"
oninputmouseover="#{richInputNumberSpinnerBean.attributes['oninputmouseover'].value}"
oninputmouseup="#{richInputNumberSpinnerBean.attributes['oninputmouseup'].value}"
+
onkeydown="#{richInputNumberSpinnerBean.attributes['onkeydown'].value}"
+
onkeypress="#{richInputNumberSpinnerBean.attributes['onkeypress'].value}"
+
onkeyup="#{richInputNumberSpinnerBean.attributes['onkeyup'].value}"
onmousedown="#{richInputNumberSpinnerBean.attributes['onmousedown'].value}"
onmousemove="#{richInputNumberSpinnerBean.attributes['onmousemove'].value}"
onmouseout="#{richInputNumberSpinnerBean.attributes['onmouseout'].value}"
@@ -81,14 +82,16 @@
onmouseup="#{richInputNumberSpinnerBean.attributes['onmouseup'].value}"
onselect="#{richInputNumberSpinnerBean.attributes['onselect'].value}"
onupclick="#{richInputNumberSpinnerBean.attributes['onupclick'].value}"
-
readonly="#{richInputNumberSpinnerBean.attributes['readonly'].value}"
rendered="#{richInputNumberSpinnerBean.attributes['rendered'].value}"
+
required="#{richInputNumberSpinnerBean.attributes['required'].value}"
+
requiredMessage="#{richInputNumberSpinnerBean.attributes['requiredMessage'].value}"
step="#{richInputNumberSpinnerBean.attributes['step'].value}"
style="#{richInputNumberSpinnerBean.attributes['style'].value}"
styleClass="#{richInputNumberSpinnerBean.attributes['styleClass'].value}"
tabindex="#{richInputNumberSpinnerBean.attributes['tabindex'].value}"
title="#{richInputNumberSpinnerBean.attributes['title'].value}"
value="#{richInputNumberSpinnerBean.attributes['value'].value}"
+
valueChangeListener="#{richBean.valueChangeListener}"
<a4j:ajax event="change" render="output" />
Modified:
modules/tests/metamer/trunk/ftest-source/src/main/java/org/richfaces/tests/metamer/ftest/richInputNumberSpinner/TestRichSpinner.java
===================================================================
---
modules/tests/metamer/trunk/ftest-source/src/main/java/org/richfaces/tests/metamer/ftest/richInputNumberSpinner/TestRichSpinner.java 2011-03-31
12:07:19 UTC (rev 22339)
+++
modules/tests/metamer/trunk/ftest-source/src/main/java/org/richfaces/tests/metamer/ftest/richInputNumberSpinner/TestRichSpinner.java 2011-03-31
12:50:47 UTC (rev 22340)
@@ -133,6 +133,11 @@
}
@Test
+ public void testDir() {
+ testDir(spinner);
+ }
+
+ @Test
public void testDisabled() {
JQueryLocator selectOption =
pjq("input[type=radio][name$=disabledInput][value=true]");
selenium.click(selectOption);
@@ -379,6 +384,21 @@
}
@Test
+ public void testOnkeydown() {
+ testFireEvent(Event.KEYDOWN, spinner);
+ }
+
+ @Test
+ public void testOnkeypress() {
+ testFireEvent(Event.KEYPRESS, spinner);
+ }
+
+ @Test
+ public void testOnkeyup() {
+ testFireEvent(Event.KEYUP, spinner);
+ }
+
+ @Test
public void testOnmousedown() {
testFireEvent(Event.MOUSEDOWN, spinner);
}