com.gargoylesoftware.htmlunit.html
Class HtmlTableTest

java.lang.Object
  extended by com.gargoylesoftware.htmlunit.WebTestCase
      extended by com.gargoylesoftware.htmlunit.SimpleWebTestCase
          extended by com.gargoylesoftware.htmlunit.html.HtmlTableTest

public class HtmlTableTest
extends SimpleWebTestCase

Tests for HtmlTable.

Version:
$Revision: 7931 $
Author:
Mike Bowler, Ahmed Ashour, Marc Guillemot, Ronald Brill

Field Summary
 
Fields inherited from class com.gargoylesoftware.htmlunit.WebTestCase
DEFAULT_WAIT_TIME, DEFAULT_WAIT_TIME_FACTOR, FLAG_ALL_BROWSERS, generateTest_browserVersion_, GEOLOCATION_IGNORE, JAVASCRIPT_MIME_TYPE, LINE_SEPARATOR, PORT, PORT2, PORT3, PROPERTY_GENERATE_TESTPAGES, SOCKS_PROXY_HOST, SOCKS_PROXY_PORT, SOCKS_PROXY_SKIP, URL_CROSS_ORIGIN, URL_CROSS_ORIGIN_BASE, URL_CROSS_ORIGIN2, URL_FIRST, URL_SECOND, URL_THIRD
 
Constructor Summary
HtmlTableTest()
           
 
Method Summary
 void asText()
           
 void asXml_emptyTable()
           
 void getCaptionText()
           
 void getCellAt()
          Tests getTableCell(int,int).
 void getCellAtColspan()
          Tests getCellAt(int,int) with colspan.
 void getCellAtComplex()
          Tests getCellAt(int,int).
 void getTableCell_NotFound()
          Tests getTableCell(int,int) for a cell that doesn't exist.
 void getTableRows_WithHeadBodyFoot()
           
 void getTableRows()
           
 void insertionOfTbodyTags()
          The common browsers will automatically insert tbody tags around the table rows if one wasn't specified.
 void jsInTable()
          Regression test for bug 1210751: JavaScript inside <table> run twice.
 void rowGroupings_AllDefined()
           
 void rowGroupings_NoneDefined()
          Check to ensure that the proper numbers of tags show up.
 void simpleScriptable()
           
 
Methods inherited from class com.gargoylesoftware.htmlunit.SimpleWebTestCase
createNewWebClient, getJavaScriptThreads, getMockConnection, getWebClient, getWebClientWithMockWebConnection, loadPage, loadPage, loadPage, loadPage, loadPage, loadPage, loadPage, loadPageWithAlerts, loadPageWithAlerts, loadUrl, readJSThreadsBeforeTest, releaseResources, testHTMLFile
 
Methods inherited from class com.gargoylesoftware.htmlunit.WebTestCase
assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertFalse, assertNull, assertTrue, assertTrue, clone, createTestPageForRealBrowserIfNeeded, createTestPageForRealBrowserIfNeeded, expandExpectedAlertsVariables, generateTestForWebDriver, getBrowserVersion, getDefaultUrl, getExpectedAlerts, getFileAsStream, getFileObject, getMockWebConnection, getModifiedContent, loadExpectation, setExpectedAlerts, setGenerateTest_notYetImplemented, setMockWebConnection
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

HtmlTableTest

public HtmlTableTest()
Method Detail

getCellAt

public void getCellAt()
               throws Exception
Tests getTableCell(int,int).

Throws:
Exception - If the test fails

getCellAtColspan

public void getCellAtColspan()
                      throws Exception
Tests getCellAt(int,int) with colspan.

Throws:
Exception - If the test fails

getCellAtComplex

public void getCellAtComplex()
                      throws Exception
Tests getCellAt(int,int).

Throws:
Exception - If the test fails

getTableCell_NotFound

public void getTableCell_NotFound()
                           throws Exception
Tests getTableCell(int,int) for a cell that doesn't exist.

Throws:
Exception - If the test fails

getTableRows

public void getTableRows()
                  throws Exception
Throws:
Exception - if the test fails

getTableRows_WithHeadBodyFoot

public void getTableRows_WithHeadBodyFoot()
                                   throws Exception
Throws:
Exception - if the test fails

rowGroupings_AllDefined

public void rowGroupings_AllDefined()
                             throws Exception
Throws:
Exception - if the test fails

rowGroupings_NoneDefined

public void rowGroupings_NoneDefined()
                              throws Exception
Check to ensure that the proper numbers of tags show up. Note that an extra tbody will be inserted to be in compliance with the common browsers.

Throws:
Exception - if the test fails

getCaptionText

public void getCaptionText()
                    throws Exception
Throws:
Exception - if the test fails

insertionOfTbodyTags

public void insertionOfTbodyTags()
                          throws Exception
The common browsers will automatically insert tbody tags around the table rows if one wasn't specified. Ensure that we do this too. Also ensure that extra ones aren't inserted if a tbody was already there.

Throws:
Exception - if the test fails

jsInTable

public void jsInTable()
               throws Exception
Regression test for bug 1210751: JavaScript inside <table> run twice.

Throws:
Exception - if the test fails

simpleScriptable

public void simpleScriptable()
                      throws Exception
Throws:
Exception - if the test fails

asText

public void asText()
            throws Exception
Throws:
Exception - if the test fails

asXml_emptyTable

public void asXml_emptyTable()
                      throws Exception
Throws:
Exception - if the test fails


Copyright © 2002-2013 Gargoyle Software Inc.. All Rights Reserved.