Author: F.antonov
Date: 2007-05-03 10:18:47 -0400 (Thu, 03 May 2007)
New Revision: 631
Modified:
trunk/richfaces/menu-components/src/test/java/org/richfaces/component/MenuGroupComponentTest.java
Log:
Test cases correction.
Modified:
trunk/richfaces/menu-components/src/test/java/org/richfaces/component/MenuGroupComponentTest.java
===================================================================
---
trunk/richfaces/menu-components/src/test/java/org/richfaces/component/MenuGroupComponentTest.java 2007-05-03
14:11:35 UTC (rev 630)
+++
trunk/richfaces/menu-components/src/test/java/org/richfaces/component/MenuGroupComponentTest.java 2007-05-03
14:18:47 UTC (rev 631)
@@ -56,7 +56,7 @@
private static Set javaScripts = new HashSet();
static {
- javaScripts.add("prototype.js");
+ javaScripts.add("PrototypeScript");
javaScripts.add("AjaxScript");
}
@@ -206,7 +206,7 @@
HtmlElement anchor = page.getHtmlElementById("ref"
+ menuGroup.getClientId(facesContext) + ":anchor");
assertNotNull(anchor);
- assertEquals("a", anchor.getNodeName());
+ assertEquals("span", anchor.getNodeName());
String classAttr = anchor.getAttributeValue("class");
assertTrue(classAttr.contains("rich-menu-item-label"));
@@ -244,7 +244,7 @@
assertNotNull(links);
HtmlElement link = (HtmlElement) links.get(0);
assertTrue(link.getAttributeValue("href").contains(
- "org/richfaces/renderkit/html/css/menucomponents.xcss"));
+ "menucomponents.xcss"));
}
/**
Show replies by date