| com.gargoylesoftware.htmlunit.WebTestCase com.gargoylesoftware.htmlunit.ScriptExceptionTest
ScriptExceptionTest | final public class ScriptExceptionTest extends WebTestCase (Code) | | Tests for
ScriptException .
version: $Revision: 2132 $ author: Marc Guillemot author: Ahmed Ashour |
ScriptExceptionTest | public ScriptExceptionTest(String name)(Code) | | Create an instance.
Parameters: name - The name of the test. |
testGetPage | public void testGetPage() throws Exception(Code) | | Test access to the page where the exception occurred from the exception
throws: Exception - if the test fails |
testScriptStackTrace | public void testScriptStackTrace() throws Exception(Code) | | Test the JavaScript stacktrace.
Note: this test will fail when the information (line, col, source name) provided to execute
scripts is improved. In this case this unit test should be adapted IF the provided information
in the script stack trace gets better and provides more useful information to understand the
cause of a problem.
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)
|
|
|