| com.gargoylesoftware.htmlunit.WebTestCase com.gargoylesoftware.htmlunit.html.HtmlSelectTest
HtmlSelectTest | public class HtmlSelectTest extends WebTestCase (Code) | | Tests for
HtmlSelect .
version: $Revision: 2132 $ author: Mike Bowler author: Mike Williams author: Marc Guillemot author: Ahmed Ashour |
HtmlSelectTest | public HtmlSelectTest(String name)(Code) | | Create an instance
Parameters: name - Name of the test |
testAsTextWhenNothingSelected | public void testAsTextWhenNothingSelected() throws Exception(Code) | | Test that asText() returns a blank string if nothing is selected.
exception: Exception - If the test fails |
testAsTextWithMultipleSelect | public void testAsTextWithMultipleSelect() throws Exception(Code) | | Verifies that asText() returns all options when multiple options are selectable, instead of just
the selected ones.
throws: Exception - If an error occurs. |
testRemoveOptionsFromSelect | public void testRemoveOptionsFromSelect() throws Exception(Code) | | throws: Exception - if the test fails |
testSelect | public void testSelect() throws Exception(Code) | | Test the good path of submitting a select
exception: Exception - If the test fails |
testSelect_ChangeSelectedOption_MultipleSelect | public void testSelect_ChangeSelectedOption_MultipleSelect() throws Exception(Code) | | Test changing the selected option
exception: Exception - If the test fails |
testSelect_ChangeSelectedOption_SingleSelect | public void testSelect_ChangeSelectedOption_SingleSelect() throws Exception(Code) | | Test changing the selected option
exception: Exception - If the test fails |
testSelect_MultipleSelectMultipleSelected | public void testSelect_MultipleSelectMultipleSelected() throws Exception(Code) | | Test multiple selected options on multiple select lists
exception: Exception - If the test fails |
testSelect_MultipleSelectNoneSelected | public void testSelect_MultipleSelectNoneSelected() throws Exception(Code) | | Test submitting the select with no options selected
exception: Exception - If the test fails |
testSelect_OptionMultiple_NoValueOnAttribute | public void testSelect_OptionMultiple_NoValueOnAttribute() throws Exception(Code) | | throws: Exception - if the test fails |
testSelect_SetSelected_OnChangeHandler | public void testSelect_SetSelected_OnChangeHandler() throws Exception(Code) | | throws: Exception - if the test fails |
testSelect_SingleSelectMultipleSelected | public void testSelect_SingleSelectMultipleSelected() throws Exception(Code) | | Test multiple selected options on single select lists. This is erroneous HTML, but
browsers simply use the last option.
exception: Exception - If the test fails |
testSelect_SingleSelectNoneSelected | public void testSelect_SingleSelectNoneSelected() throws Exception(Code) | | Test no selected options on single select lists. This is erroneous HTML, but
browsers simply assume the first one to be selected
exception: Exception - If the test fails |
testSelect_SingleSelectNoneSelectedButSizeGreaterThanOne | public void testSelect_SingleSelectNoneSelectedButSizeGreaterThanOne() throws Exception(Code) | | Test no selected options on single select lists with a size > 1
exception: Exception - If the test fails |
testSetSelectedAttributeReturnedPage | public void testSetSelectedAttributeReturnedPage() throws Exception(Code) | | Test that setSelectedAttribute returns the right page.
exception: Exception - If the test fails |
testSetSelected_IllegalValue | public void testSetSelected_IllegalValue() throws Exception(Code) | | Test changing the selected option
exception: Exception - If the test fails |
testSetSelectionOnOptionWithNoName | public void testSetSelectionOnOptionWithNoName() throws Exception(Code) | | 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)
|
|
|