webkit  2cdf99a9e3038c7e01b3c37e8ad903ecbe5eecf1
https://github.com/WebKit/webkit
All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Modules Pages
Public Member Functions | Static Public Member Functions | List of all members
com.netscape.javascript.qa.drivers.RefDrv Class Reference
Inheritance diagram for com.netscape.javascript.qa.drivers.RefDrv:
com.netscape.javascript.qa.drivers.TestDriver

Public Member Functions

 RefDrv (String[] args)
 
boolean processOptions ()
 
synchronized void executeSuite (TestSuite suite)
 
- Public Member Functions inherited from com.netscape.javascript.qa.drivers.TestDriver
 TestDriver (String[] args)
 
void run ()
 
void start ()
 
void stop ()
 
void closeLogs ()
 
void writeLogHeaders (File output)
 
Vector getSuites (String[] files)
 
void getCases (TestSuite suite)
 
synchronized void executeSuite (TestSuite suite)
 
void writeTinderboxHeader (String executable)
 
void writeTinderboxSuiteName (TestSuite suite)
 
void writeTinderboxSuiteResult (TestSuite suite)
 
String getSuffix ()
 
void setSuffix (String s)
 
boolean sleep (int ms)
 
boolean processOptions ()
 

Static Public Member Functions

static void main (String[] args)
 
- Static Public Member Functions inherited from com.netscape.javascript.qa.drivers.TestDriver
static String [] getSystemInformation ()
 
static TestLog getLog (File output, String filename)
 
static void openLogFiles (File output)
 
static String stripDoubleSlashes (String string)
 
static void enablePrivileges ()
 
static void writeSuiteResult (TestSuite suite, File output)
 
static void writeSuiteSummary (TestSuite suite, File output)
 
static void writeFileResult (TestFile file, TestSuite suite, File output)
 
static String readFile (String filePath)
 
static void writeCaseResults (TestFile file, TestSuite suite, File output)
 
static void writeCaseResults (TestFile file, String classname, File output)
 
static void writeDateToLogs (String separator, File output)
 
static void p (String s)
 
static void debug (String s)
 
static String getCurrentDate (String separator)
 
static String getCurrentTime ()
 
static void main (String[] args)
 

Additional Inherited Members

- Static Public Attributes inherited from com.netscape.javascript.qa.drivers.TestDriver
static boolean TINDERBOX = false
 
static final boolean DEBUG = true
 
static final boolean TCMS = false
 
static final String SUMMARY_LOG_NAME = "summ.html"
 
static final String CASE_LOG_NAME = "case.html"
 
static final String FILE_LOG_NAME = "file.html"
 
static final String SUITE_LOG_NAME = "suite.html"
 
static final String DEBUG_LOG_NAME = "debug.html"
 
static final String TERMINATOR = "<BR>\n"
 

Detailed Description

TestDriver for running the JavaScript conformance tests against the JavaScript engine implemenation in C, A.K.A. js/ref, Monkey.

For each test program, RefDrv creates a RefEnv. RefEnv in turn calls the JavaScript shell executable (jsshell.exe), passing the helper file and the test file as arguments.

RefEnv reads the output of the jsshell process. You must use the jsref.js helper file, which formats the printed output of each test in a way that RefEnv can parse.

RefEnv expects the following command line options:

 -c  1 or 0; whether or not to use code coverage
 -e  Full path to jsshell.exe
 -d  Path to the directory where the tests are installed
 -h  Path to the helper file (jsref.js)
 -s  List of suites to execute (optional)
 -o  Directory in which log files should be written (optional)
 -t  
 

For example, the following command line will run the tests in c: and c: against the jsshell executable found in c:

 java -classpath CLASSPATH% com.netscape.javascript.qa.drivers.RefDrv 
 -d c:\ -h c:.js 
 -e c:.exe  -s Math Number
 
See also
com.netscape.javascript.qa.drivers.TestDriver
com.netscape.javascript.qa.drivers.RhinoDrv
Author
chris.nosp@m.tine.nosp@m.@nets.nosp@m.cape.nosp@m..com
Nick Lerissa

Constructor & Destructor Documentation

◆ RefDrv()

com.netscape.javascript.qa.drivers.RefDrv.RefDrv ( String []  args)
inline

Create a new RefDrv.

Parameters
argsthe arguments passed to the main method.

Member Function Documentation

◆ executeSuite()

synchronized void com.netscape.javascript.qa.drivers.RefDrv.executeSuite ( TestSuite  suite)
inline

For each TestFile in each TestSuite, create a new RefEnv, run the test, parse its results, and close the RefEnv.

◆ main()

static void com.netscape.javascript.qa.drivers.RefDrv.main ( String []  args)
inlinestatic

RefDrv expects the following options:

-e full path to the JavaScript executable
-d directory in which tests are installed
-h path to helper functions file (jsref.js)
-o directory in which log files will be written
-s list of Suites that should be executed

◆ processOptions()

boolean com.netscape.javascript.qa.drivers.RefDrv.processOptions ( )
inline

Process command line options.

See also
com.netscape.javascript.qa.drivers.RhinoDrv::processOptions

The documentation for this class was generated from the following file: