| com.gargoylesoftware.htmlunit.WebTestCase com.gargoylesoftware.htmlunit.html.HtmlScriptTest
HtmlScriptTest | public class HtmlScriptTest extends WebTestCase (Code) | | Tests for
HtmlScript .
version: $Revision: 2132 $ author: Marc Guillemot author: Daniel Gredler |
HtmlScriptTest | public HtmlScriptTest(String name)(Code) | | Creates an instance.
Parameters: name - The name of the test. |
testChangingLocationSkipsFurtherScriptsOnPage | public void testChangingLocationSkipsFurtherScriptsOnPage() throws Exception(Code) | | Verifies that if a script element executes "window.location.href=someotherpage", then subsequent
script tags, and any onload handler for the original page do not run.
throws: Exception - If the test fails |
testInvalidJQuerySrcAttribute | public void testInvalidJQuerySrcAttribute() throws Exception(Code) | | Verifies that the weird script src attribute used by the jQuery JavaScript library is
ignored silently (bug 1695279).
throws: Exception - If the test fails. |
testScriptIsNotRunWhenCloned | public void testScriptIsNotRunWhenCloned() throws Exception(Code) | | Verifies that a script element is not run when it is cloned.
See bug 1707788.
throws: Exception - If an error occurs. |
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)
|
|
|