com.gargoylesoftware.htmlunit.libraries
Class Prototype161Test

java.lang.Object
  extended by com.gargoylesoftware.htmlunit.WebTestCase
      extended by com.gargoylesoftware.htmlunit.WebServerTestCase
          extended by com.gargoylesoftware.htmlunit.libraries.PrototypeTestBase
              extended by com.gargoylesoftware.htmlunit.libraries.Prototype161Test

public class Prototype161Test
extends PrototypeTestBase

Tests for compatibility with version 1.6.1 of Prototype JavaScript library.

Version:
$Revision: 7931 $
Author:
Ronald Brill

Field Summary
 
Fields inherited from class com.gargoylesoftware.htmlunit.WebTestCase
DEFAULT_WAIT_TIME, DEFAULT_WAIT_TIME_FACTOR, FLAG_ALL_BROWSERS, generateTest_browserVersion_, GEOLOCATION_IGNORE, JAVASCRIPT_MIME_TYPE, LINE_SEPARATOR, PORT, PORT2, PORT3, PROPERTY_GENERATE_TESTPAGES, SOCKS_PROXY_HOST, SOCKS_PROXY_PORT, SOCKS_PROXY_SKIP, URL_CROSS_ORIGIN, URL_CROSS_ORIGIN_BASE, URL_CROSS_ORIGIN2, URL_FIRST, URL_SECOND, URL_THIRD
 
Constructor Summary
Prototype161Test()
           
 
Method Summary
 void ajax()
           
 void array()
           
 void base()
           
 void clazz()
           
 void date()
           
 void dom()
          Note: testElementGetDimensions:, testElementGetStyle, testElementGetHeight, testElementScrollTo:, testPositionedOffset, testViewportOffset, testViewportDimensions, testViewportScrollOffsets and testElementGetWidth are expected to fail with HtmlUnit, as they need calculating width and height of all elements.
 void elementMixins()
          Depends on SimpleScriptableTest.parentProtoFeature().
 void enumerable()
           
 void event()
           
 void form()
           
 void function()
           
protected  String getVersion()
          Gets the prototype tested version.
 void hash()
           
 void number()
           
 void object()
           
 void periodicalExecuter()
           
 void position()
           
 void prototype()
           
 void range()
           
 void regexp()
           
 void selector()
           
 void string()
           
 void unitTests()
          Depends on javascript.regexp.HtmlUnitRegExpProxyTest.
 
Methods inherited from class com.gargoylesoftware.htmlunit.libraries.PrototypeTestBase
setUp, tearDown, test
 
Methods inherited from class com.gargoylesoftware.htmlunit.WebServerTestCase
createNewWebClient, createWebServer, createWebServer, getCollectedAlerts, getWebClient, isBasicAuthentication, loadPage, loadPage, loadPageWithAlerts, loadPageWithAlerts, loadPageWithAlerts, releaseResources, startWebServer, startWebServer, startWebServer, startWebServer, stopWebServer
 
Methods inherited from class com.gargoylesoftware.htmlunit.WebTestCase
assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertFalse, assertNull, assertTrue, assertTrue, clone, createTestPageForRealBrowserIfNeeded, createTestPageForRealBrowserIfNeeded, expandExpectedAlertsVariables, generateTestForWebDriver, getBrowserVersion, getDefaultUrl, getExpectedAlerts, getFileAsStream, getFileObject, getMockWebConnection, getModifiedContent, loadExpectation, setExpectedAlerts, setGenerateTest_notYetImplemented, setMockWebConnection
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

Prototype161Test

public Prototype161Test()
Method Detail

ajax

public void ajax()
          throws Exception
Throws:
Exception - if test fails For IE: 2 assertions pass whereas they shouldn't in testResponders

array

public void array()
           throws Exception
Throws:
Exception - if test fails

base

public void base()
          throws Exception
Throws:
Exception - if test fails

clazz

public void clazz()
           throws Exception
Throws:
Exception - if test fails

date

public void date()
          throws Exception
Throws:
Exception - if test fails

dom

public void dom()
         throws Exception
Note: testElementGetDimensions:, testElementGetStyle, testElementGetHeight, testElementScrollTo:, testPositionedOffset, testViewportOffset, testViewportDimensions, testViewportScrollOffsets and testElementGetWidth are expected to fail with HtmlUnit, as they need calculating width and height of all elements. Other tests succeed.

Throws:
Exception - if test fails

elementMixins

public void elementMixins()
                   throws Exception
Depends on SimpleScriptableTest.parentProtoFeature().

Throws:
Exception - if test fails

enumerable

public void enumerable()
                throws Exception
Throws:
Exception - if test fails

event

public void event()
           throws Exception
Throws:
Exception - if test fails

form

public void form()
          throws Exception
Throws:
Exception - if test fails

function

public void function()
              throws Exception
Throws:
Exception - if test fails

hash

public void hash()
          throws Exception
Throws:
Exception - if test fails

number

public void number()
            throws Exception
Throws:
Exception - if test fails

periodicalExecuter

public void periodicalExecuter()
                        throws Exception
Throws:
Exception - if test fails

position

public void position()
              throws Exception
Throws:
Exception - if test fails

prototype

public void prototype()
               throws Exception
Throws:
Exception - if test fails

range

public void range()
           throws Exception
Throws:
Exception - if test fails

regexp

public void regexp()
            throws Exception
Throws:
Exception - if test fails

selector

public void selector()
              throws Exception
Throws:
Exception - if test fails

string

public void string()
            throws Exception
Throws:
Exception - if test fails

object

public void object()
            throws Exception
Throws:
Exception - if test fails

unitTests

public void unitTests()
               throws Exception
Depends on javascript.regexp.HtmlUnitRegExpProxyTest. 1 expected failure is because the server port is other than 4711

Throws:
Exception - if test fails

getVersion

protected String getVersion()
Gets the prototype tested version.

Specified by:
getVersion in class PrototypeTestBase
Returns:
the version


Copyright © 2002-2013 Gargoyle Software Inc.. All Rights Reserved.