| com.gargoylesoftware.htmlunit.WebTestCase com.gargoylesoftware.htmlunit.html.HtmlAnchorTest
HtmlAnchorTest | public class HtmlAnchorTest extends WebTestCase (Code) | | Unit tests for
HtmlAnchor .
version: $Revision: 2132 $ author: Mike Bowler author: Marc Guillemot author: Stefan Anzinger author: Ahmed Ashour |
HtmlAnchorTest | public HtmlAnchorTest(String name)(Code) | | Create an instance
Parameters: name - Name of the test |
testClick_javascriptUrl | public void testClick_javascriptUrl() throws Exception(Code) | | throws: Exception - if the test fails |
testClick_javascriptUrl_InvalidReturn_RegressionTest | public void testClick_javascriptUrl_InvalidReturn_RegressionTest() throws Exception(Code) | | throws: Exception - if the test fails |
testClick_javascriptUrl_javascriptDisabled | public void testClick_javascriptUrl_javascriptDisabled() throws Exception(Code) | | throws: Exception - if the test fails |
testClick_javascriptUrl_targetPageWithIframe | public void testClick_javascriptUrl_targetPageWithIframe() throws Exception(Code) | | throws: Exception - if the test fails |
testClick_onClickHandler | public void testClick_onClickHandler() throws Exception(Code) | | throws: Exception - if the test fails |
testClick_onClickHandler_javascriptDisabled | public void testClick_onClickHandler_javascriptDisabled() throws Exception(Code) | | throws: Exception - if the test fails |
testClick_onClickHandler_returnFalse | public void testClick_onClickHandler_returnFalse() throws Exception(Code) | | throws: Exception - if the test fails |
testClick_refererHeader | public void testClick_refererHeader() throws Exception(Code) | | Test the 'Referer' HTTP header
throws: Exception - on test failure |
testCorrectLinkTargetWhenOnclickOpensWindow | public void testCorrectLinkTargetWhenOnclickOpensWindow() throws Exception(Code) | | https://sourceforge.net/tracker/index.php?func=detail&aid=1587110&group_id=47038&atid=448266
Links with an href and a non-false returning onclick that opens a new window should still
open the href in the first window.
throws: Exception - on test failure |
testHrefTrimmed | public void testHrefTrimmed() throws Exception(Code) | | Verifies that anchor href attributes are trimmed of whitespace (bug 1658064),
just like they are in IE and Firefox.
throws: Exception - If an error occurs. |
testOpenLinkInNewWindow | public void testOpenLinkInNewWindow() throws Exception(Code) | | Test for new openLinkInNewWindow() method
throws: Exception - on test failure |
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)
|
|
|