[richfaces-svn-commits] JBoss Rich Faces SVN: r1347 - trunk/sandbox/scrollable-grid/src/test/java/org/richfaces/renderkit/html.

richfaces-svn-commits at lists.jboss.org richfaces-svn-commits at lists.jboss.org
Wed Jun 27 12:14:30 EDT 2007


Author: abelevich
Date: 2007-06-27 12:14:30 -0400 (Wed, 27 Jun 2007)
New Revision: 1347

Modified:
   trunk/sandbox/scrollable-grid/src/test/java/org/richfaces/renderkit/html/ScrollableGridRendererTest.java
Log:
test inputs

Modified: trunk/sandbox/scrollable-grid/src/test/java/org/richfaces/renderkit/html/ScrollableGridRendererTest.java
===================================================================
--- trunk/sandbox/scrollable-grid/src/test/java/org/richfaces/renderkit/html/ScrollableGridRendererTest.java	2007-06-27 16:00:50 UTC (rev 1346)
+++ trunk/sandbox/scrollable-grid/src/test/java/org/richfaces/renderkit/html/ScrollableGridRendererTest.java	2007-06-27 16:14:30 UTC (rev 1347)
@@ -121,16 +121,33 @@
 		
 		String classAttr = div.getAttributeValue("class");
 	    assertTrue(classAttr.contains("ClientUI_Grid"));
-	    
 	    Iterator childIter= div.getChildElementsIterator();
 		
+	    String id = grid.getId();
+		
+	    HtmlElement input = page.getHtmlElementById(id+"_hc");
+	    assertNotNull(input);
+	    input = null;
+	    input = page.getHtmlElementById(id + "_state_input");
+	    assertNotNull(input);
+	    input = null;
+	    input = page.getHtmlElementById(id + "_options_input");
+	    assertNotNull(input);
+	    input = null;
+	    input = page.getHtmlElementById(id + "_rows_input");
+	    assertNotNull(input);
+	    input = null;
+	    input = page.getHtmlElementById(id + "_submit_input");
+	    assertNotNull(input);
+	    input = null;
+	    
 		for (; childIter.hasNext();) {
 			
 			HtmlElement elem = (HtmlElement) childIter.next();
 			assertNotNull(elem);
 			
 			boolean res = (elem.getNodeName().equals("div") || elem.getNodeName().equals("input"));
-			assertEquals(true, res);
+			assertTrue(res);
 			
 			if(elem.getNodeName().equals("div")){
 			
@@ -159,7 +176,7 @@
 						assertTrue(elemClassAttr.contains("ClientUI_TmplBox ClientUI_NormalBox"));
 					}
 					
-					String id = grid.getId();
+				
 					for (int i = 0; i < columns; i++) {
 						
 						HtmlElement hcell = page.getHtmlElementById(id + ":hc_" + i);




More information about the richfaces-svn-commits mailing list