click-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From sa...@apache.org
Subject svn commit: r959242 - /click/trunk/click/framework/test/org/apache/click/control/TableTest.java
Date Wed, 30 Jun 2010 09:23:06 GMT
Author: sabob
Date: Wed Jun 30 09:23:06 2010
New Revision: 959242

URL: http://svn.apache.org/viewvc?rev=959242&view=rev
Log:
Reverting headers for now.

Modified:
    click/trunk/click/framework/test/org/apache/click/control/TableTest.java

Modified: click/trunk/click/framework/test/org/apache/click/control/TableTest.java
URL: http://svn.apache.org/viewvc/click/trunk/click/framework/test/org/apache/click/control/TableTest.java?rev=959242&r1=959241&r2=959242&view=diff
==============================================================================
--- click/trunk/click/framework/test/org/apache/click/control/TableTest.java (original)
+++ click/trunk/click/framework/test/org/apache/click/control/TableTest.java Wed Jun 30 09:23:06
2010
@@ -64,9 +64,9 @@ public class TableTest extends TestCase 
         column.setSortable(false);
         table.addColumn(column);
 
-        String header = "<thead>\n<tr>\n<th id=\"Foos-Name\">Name</th></tr></thead>\n";
-        String row1 = "<tr class=\"odd\">\n<td id=\"Foos-Name_0\" headers=\"Foos-Name\">foo1</td></tr>\n";
-        String row2 = "<tr class=\"even\">\n<td id=\"Foos-Name_1\" headers=\"Foos-Name\">foo2</td></tr>";
+        String header = "<thead>\n<tr>\n<th>Name</th></tr></thead>\n";
+        String row1 = "<tr class=\"odd\">\n<td id=\"Foos-Name_0\">foo1</td></tr>\n";
+        String row2 = "<tr class=\"even\">\n<td id=\"Foos-Name_1\">foo2</td></tr>";
         String body = "<tbody>\n" + row1 + row2 + "</tbody>";
         assertEquals("<table id=\"Foos\">\n" + header + body + "</table>\n",
table.toString());
     }
@@ -144,29 +144,7 @@ public class TableTest extends TestCase 
             return name;
         }
     }
-    
-    /**
-     * Test CLK-673 headers attribute
-     */
-    public void testHeaders() {
-        MockContext.initContext();
-
-        List<Foo> foos = new ArrayList<Foo>();
-        foos.add(new Foo("foo1"));
-        foos.add(new Foo("foo2"));
 
-        Table table = new Table("table");
-        table.setRenderId(true);
-        table.setRowList(foos);
-        Column column = new Column("name");
-        table.addColumn(column);
-
-        System.out.println(table.toString());
-        assertTrue(table.toString().contains("<th id=\"table-name\">"));
-        assertTrue(table.toString().contains("<td id=\"table-name_1\" headers=\"table-name\">"));
-    }
-    
-    
     /**
      * Test CLK-673 caption
      */



Mime
View raw message