| com.gargoylesoftware.htmlunit.WebTestCase com.gargoylesoftware.htmlunit.html.DisabledElementTest
DisabledElementTest | public class DisabledElementTest extends WebTestCase (Code) | | Tests the isDisabled() method on all of the elements that must implement the disabled
attribute: button , input , optgroup , option , select
and textarea .
version: $Revision: 2132 $ author: David D. Kilzer |
Constructor Summary | |
public | DisabledElementTest(String testName, String elementHtml) Creates an instance of the test class for testing one of the test methods. |
Method Summary | |
public static Test | suite() Generate a TestSuite for every HTML element that implements
DisabledElement . | public void | testBlankDisabledAttribute() Tests that the isDisabled() method returns true when the disabled
attribute exists and is blank. | public void | testNoDisabledAttribute() Tests that the isDisabled() method returns false when the disabled
attribute does not exist. | public void | testPopulatedDisabledAttribute() Tests that the isDisabled() method returns false when the disabled
attribute exists and is not blank. |
DisabledElementTest | public DisabledElementTest(String testName, String elementHtml)(Code) | | Creates an instance of the test class for testing one of the test methods.
Parameters: testName - The name of the test method to run Parameters: elementHtml - The html representing the element to test with attribute id='element1' |
suite | public static Test suite()(Code) | | Generate a TestSuite for every HTML element that implements
DisabledElement .
The test suite to run |
testBlankDisabledAttribute | public void testBlankDisabledAttribute() throws Exception(Code) | | Tests that the isDisabled() method returns true when the disabled
attribute exists and is blank.
throws: Exception - If the test fails |
testNoDisabledAttribute | public void testNoDisabledAttribute() throws Exception(Code) | | Tests that the isDisabled() method returns false when the disabled
attribute does not exist.
throws: Exception - If the test fails |
testPopulatedDisabledAttribute | public void testPopulatedDisabledAttribute() throws Exception(Code) | | Tests that the isDisabled() method returns false when the disabled
attribute exists and is not blank.
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)
|
|
|