Author: dsvyatobatsko
Date: 2009-02-13 12:05:16 -0500 (Fri, 13 Feb 2009)
New Revision: 12663
Modified:
trunk/test-applications/seleniumTest/richfaces/src/test/java/org/richfaces/testng/DataFilterSliderTest.java
Log:
https://jira.jboss.org/jira/browse/RF-5985
Modified:
trunk/test-applications/seleniumTest/richfaces/src/test/java/org/richfaces/testng/DataFilterSliderTest.java
===================================================================
---
trunk/test-applications/seleniumTest/richfaces/src/test/java/org/richfaces/testng/DataFilterSliderTest.java 2009-02-13
16:34:57 UTC (rev 12662)
+++
trunk/test-applications/seleniumTest/richfaces/src/test/java/org/richfaces/testng/DataFilterSliderTest.java 2009-02-13
17:05:16 UTC (rev 12663)
@@ -147,6 +147,31 @@
}
@Test
+ public void testStartEndRangeAttributes(Template template) {
+ renderPage(template, RESET_METHOD);
+
+ String parentId = getParentId() + FORM_ID;
+ String tableId = parentId + TABLE;
+ String inputId = parentId + DATA_FLT_SLIDER_INPUT;
+ String submittedValueId = parentId + "submittedValue";
+
+ writeStatus("Check 'startRange' and 'endRange'
attributes.");
+
+ writeStatus("disposition: startRange [0] endRange[40]");
+ writeStatus("Any value is out of this range will be adjusted by component:
< 0 -> 0 and > 40 -> 40. Check it!");
+
+ selenium.type(inputId, "45");
+ waitForAjaxCompletion();
+ AssertTextEquals(submittedValueId, "40");
+ assertRowsCount(PLANETS_ALL, tableId);
+
+ selenium.type(inputId, "-5");
+ waitForAjaxCompletion();
+ AssertTextEquals(submittedValueId, "0");
+ assertRowsCount(PLANETS_SMALLER_0, tableId);
+ }
+
+ @Test
public void testRenderedAttribute(Template template) {
AutoTester tester = getAutoTester(this);
tester.renderPage(template, RESET_METHOD);