| com.gargoylesoftware.htmlunit.WebTestCase com.gargoylesoftware.htmlunit.html.HtmlCheckBoxInputTest
HtmlCheckBoxInputTest | public class HtmlCheckBoxInputTest extends WebTestCase (Code) | | Tests for
HtmlCheckBoxInput .
version: $Revision: 2132 $ author: Mike Bresnahan author: Marc Guillemot author: Ahmed Ashour |
HtmlCheckBoxInputTest | public HtmlCheckBoxInputTest(String name)(Code) | | Create an instance
Parameters: name - The name of the test |
testAsText | public void testAsText() throws Exception(Code) | | Verifies that a asText() returns "checked" or "unchecked" according to the state of the checkbox.
throws: Exception - if the test fails |
test_defaultState | public void test_defaultState() throws Exception(Code) | | Verifies that a HtmlCheckBox is unchecked by default.
The onClick tests make this assumption.
throws: Exception - if the test fails |
test_onClick | public void test_onClick() throws Exception(Code) | | Given a onclick handler that does not cause the form to submit, this test
verifies that HtmlCheckBix.click()
- sets the checkbox to the "checked" state
- returns the same page
throws: Exception - if the test fails |
test_onClickThatSubmitsForm | public void test_onClickThatSubmitsForm() throws Exception(Code) | | Given a onclick handler that causes the form to submit, this test verifies that HtmlCheckBix.click()
- sets the checkbox to the "checked" state
- returns the new page
throws: Exception - if the test fails |
Methods inherited from com.gargoylesoftware.htmlunit.WebTestCase | protected void assertEquals(URL expectedUrl, URL actualUrl)(Code)(Java Doc) protected void assertEquals(String message, URL expectedUrl, URL actualUrl)(Code)(Java Doc) protected void assertEquals(String expectedUrl, URL actualUrl)(Code)(Java Doc) protected void assertEquals(String[] expected, List actual)(Code)(Java Doc) protected void assertEquals(String message, String[] expected, List actual)(Code)(Java Doc) protected void assertEquals(String message, String expectedUrl, URL actualUrl)(Code)(Java Doc) public static void assertNull(Object object)(Code)(Java Doc) protected void createTestPageForRealBrowserIfNeeded(String content, String[] expectedAlerts) throws IOException(Code)(Java Doc) protected void createTestPageForRealBrowserIfNeeded(String content, List expectedAlerts) throws IOException(Code)(Java Doc) public static InputStream getFileAsStream(String fileName) throws FileNotFoundException(Code)(Java Doc) public static File getFileObject(String fileName) throws FileNotFoundException(Code)(Java Doc) final protected Log getLog()(Code)(Java Doc) final protected static MockWebConnection getMockConnection(HtmlPage page)(Code)(Java Doc) final protected static HtmlPage loadPage(String html) throws Exception(Code)(Java Doc) final protected static HtmlPage loadPage(BrowserVersion browserVersion, String html, List collectedAlerts) throws Exception(Code)(Java Doc) final protected static HtmlPage loadPage(String html, List collectedAlerts) throws Exception(Code)(Java Doc) final protected static HtmlPage loadPage(String html, List collectedAlerts, URL url) throws Exception(Code)(Java Doc) final protected static HtmlPage loadPage(BrowserVersion browserVersion, String html, List collectedAlerts, URL url) throws Exception(Code)(Java Doc) final protected static HtmlPage loadUrl(String url) throws Exception(Code)(Java Doc) protected boolean notYetImplemented()(Code)(Java Doc) protected void testHTMLFile(String fileName) throws Exception(Code)(Java Doc)
|
|
|