Author: dsvyatobatsko
Date: 2008-10-15 10:38:24 -0400 (Wed, 15 Oct 2008)
New Revision: 10764
Modified:
trunk/test-applications/seleniumTest/richfaces/src/main/webapp/pages/simpleTogglePanel/simpleTogglePanelTest.xhtml
trunk/test-applications/seleniumTest/richfaces/src/test/java/org/richfaces/testng/SimpleTogglePanelTest.java
Log:
SimpleTogglePanel: test styles and classes are output to client
Modified:
trunk/test-applications/seleniumTest/richfaces/src/main/webapp/pages/simpleTogglePanel/simpleTogglePanelTest.xhtml
===================================================================
(Binary files differ)
Modified:
trunk/test-applications/seleniumTest/richfaces/src/test/java/org/richfaces/testng/SimpleTogglePanelTest.java
===================================================================
---
trunk/test-applications/seleniumTest/richfaces/src/test/java/org/richfaces/testng/SimpleTogglePanelTest.java 2008-10-15
12:51:15 UTC (rev 10763)
+++
trunk/test-applications/seleniumTest/richfaces/src/test/java/org/richfaces/testng/SimpleTogglePanelTest.java 2008-10-15
14:38:24 UTC (rev 10764)
@@ -129,6 +129,24 @@
tester.testRequestParameters(params);
}
+ @Test
+ public void testStyleAndClassesAreOutputToClient(Template template) {
+ renderPage(template);
+
+ writeStatus("Check style and classes are output to client");
+
+ String compDivId = getParentId() + "_form:panel1";
+
+ String headerDivId = compDivId + "_header";
+ String bodyDivId = compDivId + "_body";
+
+ assertStyleAttribute(compDivId, "font-size: 13px", "Style
attribute was not output to client");
+ assertClassNames(compDivId, new String[] { "noclass" }, "Class
attribute was not output to client", true);
+
+ assertClassNames(headerDivId, new String[] { "header-class" },
"headerClass attribute was not output to client", true);
+ assertClassNames(bodyDivId, new String[] { "body-class" },
"bodyClass attribute was not output to client", true);
+ }
+
@Override
public void sendAjax() {
clickAjaxCommandAndWait(getAutoTester(this).getClientId(AutoTester.COMPONENT_ID)
+ "_header");
Show replies by date