| |
|
| com.gargoylesoftware.htmlunit.WebTestCase com.gargoylesoftware.htmlunit.javascript.configuration.JavaScriptConfigurationTest
JavaScriptConfigurationTest | public JavaScriptConfigurationTest(String name)(Code) | | Create an instance
Parameters: name - The name of the test |
setUp | protected void setUp() throws Exception(Code) | | Reset the JavaScriptConfiguration file for each test to it's initial clean state.
throws: Exception - if the test fails |
tearDown | protected void tearDown() throws Exception(Code) | | Reset the JavaScriptConfiguration file for each test to it's initial clean state.
throws: Exception - if the test fails |
testConfigurationFile | public void testConfigurationFile() throws Exception(Code) | | Test that the data in the JavaScriptConfiguration file matches the classes in listed
properties and functions. The first step is to get the configuration using a special method which
ignores the browser and javascript constraints. This checks that there is a method for each item in
the configuration file and fails by throwing an exception.
The second step is to go through each class and determine if for each jsGet, jsSet, and jsFunction class,
there is an entry in the configuration.
throws: Exception - Exception on error |
testConfigurationFileAgainstSchema | public void testConfigurationFileAgainstSchema() throws Exception(Code) | | Test that the file JavaScriptConfiguration.xml is valid.
throws: Exception - If the test fails |
testConfigurationMapExpands | public void testConfigurationMapExpands() throws Exception(Code) | | Test if configuration map expands with each new instance of BrowserVersion used.
throws: Exception - If the test fails |
testForPropertyExist | public void testForPropertyExist() throws Exception(Code) | | Test for if the property exists for the configuration
throws: Exception - Exception on error |
testForPropertyNotExist | public void testForPropertyNotExist() throws Exception(Code) | | Test for if the property exists for the configuration
throws: Exception - Exception on error |
testForSettingJSObject | public void testForSettingJSObject() throws Exception(Code) | | Test that the JSObject is being set correctly
throws: Exception - on error |
testGetConditionalPropertyBrowser | public void testGetConditionalPropertyBrowser() throws Exception(Code) | | Test getting the configuration for the Netscape browser. The readyState property should not be
available in this case.
throws: Exception - - Exception on error |
testGetConditionalPropertyMaxBrowserVersion | public void testGetConditionalPropertyMaxBrowserVersion() throws Exception(Code) | | Test getting the configuration for the browser max version. The readyState property should not be
available in this case.
throws: Exception - - Exception on error |
testGetConditionalPropertyMaxJSVersion | public void testGetConditionalPropertyMaxJSVersion() throws Exception(Code) | | Test getting the configuration for the JavaScript max version. The readyState property should not be
available in this case.
throws: Exception - - Exception on error |
testGetConditionalPropertyMinBrowserVersion | public void testGetConditionalPropertyMinBrowserVersion() throws Exception(Code) | | Test getting the configuration for the Netscape browser. The readyState property should not be
available in this case.
throws: Exception - - Exception on error |
testGetInstance | public void testGetInstance() throws Exception(Code) | | Test getting the configuration for the full browser
throws: Exception - - Exception on error |
testInstanceForTestVersion | public void testInstanceForTestVersion() throws Exception(Code) | | Test getting the configuration for the Netscape browser. The readyState property should not be
available in this case.
throws: Exception - - Exception on error |
testLoadLocalConfiguration | public void testLoadLocalConfiguration()(Code) | | Test loading a configuration from the supplied stream
|
testLoadSystemConfigurationFile | public void testLoadSystemConfigurationFile()(Code) | | Test loading a configuration from the supplied stream
|
testParseFunction | public void testParseFunction() throws Exception(Code) | | Test parsing the configuration with a function in it.
throws: Exception - - Exception on error |
testParseFunctionForLimitedBrowser | public void testParseFunctionForLimitedBrowser() throws Exception(Code) | | Test parsing the configuration for a browser that does not support the function.
throws: Exception - - Exception on error |
testPropertyForNullBrowser | public void testPropertyForNullBrowser() throws Exception(Code) | | Test getting the configuration for the Netscape browser. The readyState property should not be
available in this case.
throws: Exception - - Exception on error |
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)
|
|
|
|