@@ -1761,11 +1761,10 @@ public void asTextInsideSpan() throws Exception {
17611761 }
17621762
17631763 /**
1764- * Tests getTableCell(int,int).
17651764 * @exception Exception If the test fails
17661765 */
17671766 @ Test
1768- public void getCellAt () throws Exception {
1767+ public void tableCell () throws Exception {
17691768 final String htmlContent = DOCTYPE_HTML
17701769 + "<html>"
17711770 + "<body>\n "
@@ -1784,7 +1783,6 @@ public void getCellAt() throws Exception {
17841783 final HtmlTable table = page .getHtmlElementById ("table1" );
17851784
17861785 final HtmlTableCell cell1 = table .getCellAt (0 , 0 );
1787- // assertEquals("cell1 contents", "cell1acell1b", cell1.asNormalizedText());
17881786 assertEquals ("cell1 contents" , "cell1a\n cell1b" , cell1 .asNormalizedText ());
17891787
17901788 final HtmlTableCell cell2 = table .getCellAt (0 , 1 );
@@ -1800,11 +1798,10 @@ public void getCellAt() throws Exception {
18001798 }
18011799
18021800 /**
1803- * Tests getTableCell(int,int).
18041801 * @exception Exception If the test fails
18051802 */
18061803 @ Test
1807- public void getCellAtWithBreaks () throws Exception {
1804+ public void tableCellWithLineBreaks () throws Exception {
18081805 final String htmlContent = DOCTYPE_HTML
18091806 + "<html>"
18101807 + "<body>\n "
@@ -1823,7 +1820,6 @@ public void getCellAtWithBreaks() throws Exception {
18231820 final HtmlTable table = page .getHtmlElementById ("table1" );
18241821
18251822 final HtmlTableCell cell1 = table .getCellAt (0 , 0 );
1826- // assertEquals("cell1 contents", "cell1a\ncell1b", cell1.asNormalizedText());
18271823 assertEquals ("cell1 contents" , "cell1a\n \n cell1b" , cell1 .asNormalizedText ());
18281824
18291825 final HtmlTableCell cell2 = table .getCellAt (0 , 1 );
0 commit comments