click-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From sa...@apache.org
Subject svn commit: r965031 - /click/trunk/click/extras/test/org/apache/click/extras/control/PickListTest.java
Date Sat, 17 Jul 2010 08:43:33 GMT
Author: sabob
Date: Sat Jul 17 08:43:33 2010
New Revision: 965031

URL: http://svn.apache.org/viewvc?rev=965031&view=rev
Log:
added tests to prepare for CLK-712

Modified:
    click/trunk/click/extras/test/org/apache/click/extras/control/PickListTest.java

Modified: click/trunk/click/extras/test/org/apache/click/extras/control/PickListTest.java
URL: http://svn.apache.org/viewvc/click/trunk/click/extras/test/org/apache/click/extras/control/PickListTest.java?rev=965031&r1=965030&r2=965031&view=diff
==============================================================================
--- click/trunk/click/extras/test/org/apache/click/extras/control/PickListTest.java (original)
+++ click/trunk/click/extras/test/org/apache/click/extras/control/PickListTest.java Sat Jul
17 08:43:33 2010
@@ -51,18 +51,21 @@ public class PickListTest extends TestCa
         PickList pickList = new PickList("pickList");
 
         pickList.addStyleClass("white");
+        pickList.setAttribute("title", "test");
 
         String pickListStr = pickList.toString();
 
-        // Perform checks within the first 60 characters
-        pickListStr = pickListStr.substring(0, 60);
+        // Perform checks within the first 100 characters
+        pickListStr = pickListStr.substring(0, 100);
 
         // Check that class attribute was rendered
         assertEquals(1, StringUtils.countMatches(pickListStr, "class=\"white picklist\""));
 
+        // Check that the title attribute was rendered
+        assertEquals(1, StringUtils.countMatches(pickListStr, "title=\"test\""));
+
         // Check that class attribute was rendered once
         assertEquals(1, StringUtils.countMatches(pickListStr, "class="));
-
         container.stop();
     }
 }



Mime
View raw message