Author: dsvyatobatsko
Date: 2008-10-02 08:29:07 -0400 (Thu, 02 Oct 2008)
New Revision: 10649
Modified:
trunk/test-applications/seleniumTest/richfaces/src/main/webapp/pages/ajaxStatus/ajaxStatusTest.xhtml
trunk/test-applications/seleniumTest/richfaces/src/test/java/org/richfaces/testng/AjaxStatusTest.java
Log:
AjaxStatus: test proper style and style classes are applied to "start" and
"stop" states
Modified:
trunk/test-applications/seleniumTest/richfaces/src/main/webapp/pages/ajaxStatus/ajaxStatusTest.xhtml
===================================================================
(Binary files differ)
Modified:
trunk/test-applications/seleniumTest/richfaces/src/test/java/org/richfaces/testng/AjaxStatusTest.java
===================================================================
---
trunk/test-applications/seleniumTest/richfaces/src/test/java/org/richfaces/testng/AjaxStatusTest.java 2008-10-02
12:21:46 UTC (rev 10648)
+++
trunk/test-applications/seleniumTest/richfaces/src/test/java/org/richfaces/testng/AjaxStatusTest.java 2008-10-02
12:29:07 UTC (rev 10649)
@@ -99,6 +99,23 @@
AssertNotPresent(getParentId() + "_form:" + STATUS_3_ID);
}
+ @Test
+ public void testProperStylesAreAppliedToStartAndStopStates(Template template) {
+ renderPage(template);
+
+ writeStatus("Check proper style and style classes are applied to
'start' and 'stop' states");
+
+ String statusElemId = getParentId() + "_form:" + STATUS_1_ID;
+ String startFacetId = statusElemId + ".start";
+ String stopFacetId = statusElemId + ".stop";
+
+ assertStyleAttribute(startFacetId, "color: red");
+ assertClassNames(startFacetId, new String[] {"start-class"},
"Class attribute was not output to client for start facet", true);
+
+ assertStyleAttribute(stopFacetId, "color: green");
+ assertClassNames(stopFacetId, new String[] {"stop-class"}, "Class
attribute was not output to client for stop facet", true);
+ }
+
public String getTestUrl() {
return "pages/ajaxStatus/ajaxStatusTest.xhtml";
}
Show replies by date