Author: dsvyatobatsko
Date: 2009-02-06 10:26:43 -0500 (Fri, 06 Feb 2009)
New Revision: 12595
Modified:
trunk/test-applications/seleniumTest/richfaces/src/main/webapp/pages/panelMenuGroup/panelMenuGroupAutoTest.xhtml
trunk/test-applications/seleniumTest/richfaces/src/test/java/org/richfaces/testng/PanelMenuGroupTest.java
Log:
https://jira.jboss.org/jira/browse/RF-5895
Modified:
trunk/test-applications/seleniumTest/richfaces/src/main/webapp/pages/panelMenuGroup/panelMenuGroupAutoTest.xhtml
===================================================================
(Binary files differ)
Modified:
trunk/test-applications/seleniumTest/richfaces/src/test/java/org/richfaces/testng/PanelMenuGroupTest.java
===================================================================
---
trunk/test-applications/seleniumTest/richfaces/src/test/java/org/richfaces/testng/PanelMenuGroupTest.java 2009-02-06
15:23:32 UTC (rev 12594)
+++
trunk/test-applications/seleniumTest/richfaces/src/test/java/org/richfaces/testng/PanelMenuGroupTest.java 2009-02-06
15:26:43 UTC (rev 12595)
@@ -151,6 +151,22 @@
AssertPresentAndVisible(sRequiredId, "Server group would have been
expanded");
}
+ @Test
+ public void
testComponentIsOutputToClientAndTopLevelAndNotHaveDifferentStyling(Template template) {
+ AutoTester tester = getAutoTester(this);
+ tester.renderPage(template, null);
+ writeStatus("Check component is output to client; top-level and not groups
have different styling");
+
+ String componentId = tester.getClientId("componentId");
+ AssertPresentAndVisible(componentId, "Component is not output to a
client");
+ String subComponentId = tester.getClientId("subComponentId");
+
+ String styleGroup = selenium.getAttribute("//*[@id='icon" +
componentId + "']/@style");
+ String styleSubGroup = selenium.getAttribute("//*[@id='icon" +
subComponentId + "']/@style");
+
+ //Assert.assertFalse(styleGroup == null ? styleSubGroup == null :
styleGroup.equals(styleSubGroup), "Expected [" + styleGroup + "] <>
[" + styleSubGroup + "]");
+ }
+
@Override
public void sendAjax() {
clickAjaxCommandAndWait("icon" +
getAutoTester(this).getClientId(AutoTester.COMPONENT_ID));