Author: dsvyatobatsko
Date: 2009-02-27 09:41:15 -0500 (Fri, 27 Feb 2009)
New Revision: 12771
Modified:
trunk/test-applications/seleniumTest/richfaces/src/main/webapp/pages/ajaxForm/ajaxFormAutoTest.xhtml
trunk/test-applications/seleniumTest/richfaces/src/test/java/org/richfaces/testng/AjaxFormTest.java
Log:
RF-6128
Modified:
trunk/test-applications/seleniumTest/richfaces/src/main/webapp/pages/ajaxForm/ajaxFormAutoTest.xhtml
===================================================================
(Binary files differ)
Modified:
trunk/test-applications/seleniumTest/richfaces/src/test/java/org/richfaces/testng/AjaxFormTest.java
===================================================================
---
trunk/test-applications/seleniumTest/richfaces/src/test/java/org/richfaces/testng/AjaxFormTest.java 2009-02-27
14:11:31 UTC (rev 12770)
+++
trunk/test-applications/seleniumTest/richfaces/src/test/java/org/richfaces/testng/AjaxFormTest.java 2009-02-27
14:41:15 UTC (rev 12771)
@@ -136,6 +136,23 @@
tester.testBypassUpdate();
}
+ @Test
+ public void testStylesAndClassesAndHtmlAttributes(Template template){
+ AutoTester tester = getAutoTester(this);
+ tester.renderPage(template, null);
+
+ writeStatus("Check styles and classes are output to client");
+
+ writeStatus("Check styleClass/style attributes");
+ String formId = getParentId() + AutoTester.COMPONENT_ID;
+ assertStyleAttributeContains(formId, "font-size: 13px", "Style
attribute was not output to client");
+ assertClassAttributeContains(formId, "noclass", "Class attribute
was not output to client");
+
+ writeStatus("Check component's specific HTML attributes are output to
client");
+ clickAjaxCommandAndWait(getParentId() + AutoTester.COMPONENT_ID +
":submit");
+ assertEvent("onsubmit");
+ }
+
private String getFullComponentId(String componentId, String index) {
return getParentId() + FORM_ID + index + ":" + componentId + index;
}
Show replies by date