Author: dsvyatobatsko
Date: 2009-01-28 12:46:21 -0500 (Wed, 28 Jan 2009)
New Revision: 12473
Modified:
trunk/test-applications/seleniumTest/richfaces/src/test/java/org/richfaces/testng/InputNumberSpinnerTest.java
Log:
the same
Modified:
trunk/test-applications/seleniumTest/richfaces/src/test/java/org/richfaces/testng/InputNumberSpinnerTest.java
===================================================================
---
trunk/test-applications/seleniumTest/richfaces/src/test/java/org/richfaces/testng/InputNumberSpinnerTest.java 2009-01-28
17:32:26 UTC (rev 12472)
+++
trunk/test-applications/seleniumTest/richfaces/src/test/java/org/richfaces/testng/InputNumberSpinnerTest.java 2009-01-28
17:46:21 UTC (rev 12473)
@@ -127,9 +127,7 @@
writeStatus("Otherwise not, only via buttons");
enableManualInput(false);
Assert.assertEquals(getSpinnerValue(), "20");
-// selenium.type("name=" + spinnerId, "30");
-// Assert.assertEquals(getSpinnerValue(), "20");
-
+ Assert.assertFalse(selenium.isEditable("name=" + spinnerId),
"Spinner has to be read only");
writeStatus("Via buttons? you are welcome:");
clickUp();
Assert.assertEquals(getSpinnerValue(), "30");
@@ -158,8 +156,7 @@
clickUp();
Assert.assertEquals(getSpinnerValue(), "20");
writeStatus("Nor by hand");
-// selenium.type("name=" + spinnerId, "30");
-// Assert.assertEquals(getSpinnerValue(), "20");
+ Assert.assertFalse(selenium.isEditable("name=" + spinnerId),
"Spinner has to be read only");
}
private void clickUp() {
Show replies by date