Author: A.Skokov
Date: 2007-05-03 10:27:28 -0400 (Thu, 03 May 2007)
New Revision: 633
Modified:
trunk/richfaces/toolBar/src/test/java/org/richfaces/component/ToolBarComponentTest.java
Log:
test fixed
Modified:
trunk/richfaces/toolBar/src/test/java/org/richfaces/component/ToolBarComponentTest.java
===================================================================
---
trunk/richfaces/toolBar/src/test/java/org/richfaces/component/ToolBarComponentTest.java 2007-05-03
14:24:30 UTC (rev 632)
+++
trunk/richfaces/toolBar/src/test/java/org/richfaces/component/ToolBarComponentTest.java 2007-05-03
14:27:28 UTC (rev 633)
@@ -145,16 +145,17 @@
public void testRenderStyle() throws Exception {
HtmlPage page = renderView();
Assert.assertNotNull(page);
+ System.out.println(page.asXml());
List links =
page.getDocumentElement().getHtmlElementsByTagName("link");
assertEquals(1, links.size());
HtmlElement link = (HtmlElement) links.get(0);
-
assertTrue(link.getAttributeValue("href").contains("org/richfaces/renderkit/html/css/toolBar.xcss"));
+
assertTrue(link.getAttributeValue("href").contains("css/toolBar.xcss"));
}
public void testRenderImages() throws Exception {
renderView();
InternetResourceBuilder builder = ResourceBuilderImpl.getInstance();
- InternetResource resource =
builder.getResource("org/richfaces/renderkit/html/css/toolBar.xcss");
+ InternetResource resource = builder.getResource("css/toolBar.xcss");
assertNotNull(resource);
String uri = "http:" + resource.getUri(facesContext, null);
Page page = webClient.getPage(uri);
Show replies by date