Update of /cvsroot/jwebunit/jWebUnit/test/net/sourceforge/jwebunit
In directory 
sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv8308/test/net/sourceforge/jwebunit

Modified Files:
        TableAssertionsTest.java 
Log Message:
bug 897022 fix : allow users to disable table compression

Index: TableAssertionsTest.java
===================================================================
RCS file: 
/cvsroot/jwebunit/jWebUnit/test/net/sourceforge/jwebunit/TableAssertionsTest.java,v
retrieving revision 1.5
retrieving revision 1.6
diff -C2 -d -r1.5 -r1.6
*** TableAssertionsTest.java    21 Nov 2002 23:58:01 -0000      1.5
--- TableAssertionsTest.java    16 Sep 2004 16:41:38 -0000      1.6
***************
*** 97,100 ****
--- 97,117 ----
                                                 {"unexpected", ""}}});
      }
+     
+     public void testTableWithSpacesWithCompressionOfEmptyCells() throws Throwable {
+         assertTablePresent("tree");
+         String[][] table = {{"root", "", ""},
+         {"child1", "child2", ""},
+         {"child1.1", "child2.1", "child2.2"}};
+         assertTableEquals("tree", table);
+     }
+     
+     public void testTableWithSpacesUnCompressed() throws Throwable {
+         assertTablePresent("tree");
+         String[][] table = {{"root", "", "", ""},
+         {"child1", "", "child2", ""},
+         {"child1.1", "", "child2.1", "child2.2"}};
+         setTableEmptyCellCompression(false);
+         assertTableEquals("tree", table);
+     }
  
      private void addTestPage() {
***************
*** 112,115 ****
--- 129,154 ----
                                    "</form>" +
                                    "<form name=\"form2\"></form>" +
+                                   "</table>" +
+                                   "<table id=\"tree\">" +
+                                   "<tbody>" +
+                                   "<tr>" +
+                                   "<td>root</td>" +
+                                   "<td>&nbsp;</td>" +
+                                   "<td>&nbsp;</td>" +
+                                   "<td>&nbsp;</td>" +
+                                   "</tr>" +
+                                   "<tr>" +
+                                   "<td>child1</td>" +
+                                   "<td>&nbsp;</td>" +
+                                   "<td>child2</td>" +
+                                   "<td>&nbsp;</td>" +
+                                   "</tr>" +
+                                   "<tr>" +
+                                   "<td>child1.1</td>" +
+                                   "<td>&nbsp;</td>" +
+                                   "<td>child2.1</td>" +
+                                   "<td>child2.2</td>" +
+                                   "</tr>" +
+                                   "</tbody>" +
                                    "</table>");
          defineWebPage("noFormPage", "");



-------------------------------------------------------
This SF.Net email is sponsored by: YOU BE THE JUDGE. Be one of 170
Project Admins to receive an Apple iPod Mini FREE for your judgement on
who ports your project to Linux PPC the best. Sponsored by IBM.
Deadline: Sept. 24. Go here: http://sf.net/ppc_contest.php
_______________________________________________
Jwebunit-development mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/jwebunit-development

Reply via email to