| |
|
| com.gargoylesoftware.htmlunit.WebTestCase com.gargoylesoftware.htmlunit.javascript.JavaScriptEngineTest
JavaScriptEngineTest | public class JavaScriptEngineTest extends WebTestCase (Code) | | Tests for the
JavaScriptEngine .
version: $Revision: 2132 $ author: Mike Bowler author: Noboru Sinohara author: Darrell DeBoer author: Ben Curren author: Marc Guillemot author: Chris Erskine author: David K. Taylor author: Ahmed Ashour |
JavaScriptEngineTest | public JavaScriptEngineTest(String name)(Code) | | Create an instance
Parameters: name - The name of the test |
testActiveXObjectNoMap | public void testActiveXObjectNoMap() throws Exception(Code) | | ActiveX related exceptions that do not require a map
throws: Exception - If the test fails |
testActiveXObjectWithMap | public void testActiveXObjectWithMap() throws Exception(Code) | | Test that Java objects placed in the active x map can be instantiated and used within
javascript using the IE specific ActiveXObject constructor.
throws: Exception - If the test fails |
testCommentNoDoubleSlashFF | public void testCommentNoDoubleSlashFF() throws Exception(Code) | | throws: Exception - If the test fails |
testCommentNoDoubleSlashIE | public void testCommentNoDoubleSlashIE() throws Exception(Code) | | throws: Exception - If the test fails |
testCompiledScriptCached | public void testCompiledScriptCached() throws Exception(Code) | | Test that compiled script are cached.
throws: Exception - if the test fails |
testECMAReservedKeywords | public void testECMAReservedKeywords() throws Exception(Code) | | Test ECMA reserved keywords... that are accepted by "normal" browsers
throws: Exception - if the test fails |
testEventHandlerWithComment | public void testEventHandlerWithComment() throws Exception(Code) | | throws: Exception - if the test fails |
testExternalScriptEncoding | public void testExternalScriptEncoding() throws Exception(Code) | | throws: Exception - if the test fails |
testExternalScriptWithNewLineBeforeClosingScriptTag | public void testExternalScriptWithNewLineBeforeClosingScriptTag() throws Exception(Code) | | Regression test for https://sourceforge.net/tracker/?func=detail&atid=448266&aid=1552746&group_id=47038
throws: Exception - if the test fails |
testFunctionDefinedInExternalFile_CalledFromInlineScript | public void testFunctionDefinedInExternalFile_CalledFromInlineScript() throws Exception(Code) | | throws: Exception - if the test fails |
testFunctionDefinedInSameFile | public void testFunctionDefinedInSameFile() throws Exception(Code) | | Test case for bug 707134. Currently I am unable to reproduce the problem.
throws: Exception - if the test fails |
testJavaScriptEngineCallsForVariableAccess | public void testJavaScriptEngineCallsForVariableAccess() throws Exception(Code) | | Test that the javascript engine gets called correctly for variable access.
throws: Exception - If the test fails |
testJavaScriptWrappedInHtmlComments | public void testJavaScriptWrappedInHtmlComments() throws Exception(Code) | | throws: Exception - if the test fails |
testJavaScriptWrappedInHtmlComments2 | public void testJavaScriptWrappedInHtmlComments2() throws Exception(Code) | | throws: Exception - if the test fails |
testJavaScriptWrappedInHtmlComments_allOnOneLine | public void testJavaScriptWrappedInHtmlComments_allOnOneLine() throws Exception(Code) | | throws: Exception - If the test fails. |
testJavaScriptWrappedInHtmlComments_commentNotClosed | public void testJavaScriptWrappedInHtmlComments_commentNotClosed() throws Exception(Code) | | Regression test for bug 1714762
throws: Exception - if the test fails |
testJavaScriptWrappedInHtmlComments_commentOnOpeningLine | public void testJavaScriptWrappedInHtmlComments_commentOnOpeningLine() throws Exception(Code) | | throws: Exception - if the test fails |
testOnloadJavascriptFunction | public void testOnloadJavascriptFunction() throws Exception(Code) | | Regression test for bug
https://sourceforge.net/tracker/?func=detail&atid=448266&aid=1609944&group_id=47038
throws: Exception - if the test fails |
testPrototypeScope | public void testPrototypeScope() throws Exception(Code) | | Test that prototype changes are made in the right scope.
Problem reported by Bruce Faulnker in the dev mailing list.
This is due to a Rhino bug:
https://bugzilla.mozilla.org/show_bug.cgi?id=374918
throws: Exception - If something goes wrong. |
testReferencingVariablesFromOneScriptToAnother_Regression | public void testReferencingVariablesFromOneScriptToAnother_Regression() throws Exception(Code) | | throws: Exception - if the test fails |
testScopeInInactivePage | public void testScopeInInactivePage() throws Exception(Code) | | If a reference has been hold on a page and the page is not
anymore the one contained in "its" window, javascript execution should
work... a bit
throws: Exception - if the test fails |
testScopeOfNestedNewFunction | public void testScopeOfNestedNewFunction() throws Exception(Code) | | throws: Exception - if the test fails |
testScopeOfNewFunction | public void testScopeOfNewFunction() throws Exception(Code) | | Checks that a dynamically compiled function works in the scope of its birth
throws: Exception - if the test fails |
testScopeOfNewFunctionCalledFormOtherWindow | public void testScopeOfNewFunctionCalledFormOtherWindow() throws Exception(Code) | | Checks that a dynamically compiled function works in the scope of its birth
and not the other window
throws: Exception - if the test fails |
testScriptErrorContainsPageUrl | public void testScriptErrorContainsPageUrl() throws Exception(Code) | | Test that the url of the page containing the script is contained in the exception's message
throws: Exception - if the test fails |
testScriptErrorIsolated | public void testScriptErrorIsolated() throws Exception(Code) | | Check that wrong javascript just causes its context to fail but not the whole page.
throws: Exception - If something goes wrong. |
testScriptTags_AllLocalContent | public void testScriptTags_AllLocalContent() throws Exception(Code) | | Test that code in script tags is executed on page load. Try different combinations
of the script tag except for the case where a remote javascript page is loaded. That
one will be tested separately.
throws: Exception - If something goes wrong. |
testSetInputValue | public void testSetInputValue() throws Exception(Code) | | Try to set the value of a text input field.
throws: Exception - if the test fails |
testSetJavascriptEnabled_false | public void testSetJavascriptEnabled_false() throws Exception(Code) | | throws: Exception - if the test fails |
testSetValuesThatAreNotStrings | public void testSetValuesThatAreNotStrings() throws Exception(Code) | | Set value on input expects a string. If you pass in a value that isn't a string
this used to blow up.
throws: Exception - if the test fails |
testThisDotInOnClick | public void testThisDotInOnClick() throws Exception(Code) | | When using the syntax this.something in an onclick handler, "this" must represent
the object being clicked, not the window. Regression test.
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)
|
|
|
|