Back to index

lightning-sunbird  0.9+nobinonly
Public Member Functions | Public Attributes | Protected Member Functions
nsRegressionTester Class Reference

#include <nsRegressionTester.h>

Inheritance diagram for nsRegressionTester:
Inheritance graph
Collaboration diagram for nsRegressionTester:
Collaboration graph

List of all members.

Public Member Functions

nsRegressionTester ()
virtual ~nsRegressionTester ()
long dumpFrameModel (in nsIDOMWindow aWindowToDump, in nsILocalFile aFile, in unsigned long aFlagsMask)
long compareFrameModels (in nsILocalFile aBaseFile, in nsILocalFile aVerFile, in unsigned long aFlags)

Public Attributes

 Dumps the content of a window.
const long DUMP_RESULT_LOADING = 1
const long DUMP_RESULT_ERROR = 2
 Compares the contents of frame model files.
const short COMPARE_FLAGS_BRIEF = 1

Protected Member Functions

nsresult GetDocShellFromWindow (nsIDOMWindow *inWindow, nsIDocShell **outShell)

Detailed Description

Definition at line 55 of file nsRegressionTester.h.

Constructor & Destructor Documentation

Definition at line 73 of file nsRegressionTester.cpp.


Definition at line 77 of file nsRegressionTester.cpp.


Member Function Documentation

long nsILayoutRegressionTester::compareFrameModels ( in nsILocalFile  aBaseFile,
in nsILocalFile  aVerFile,
in unsigned long  aFlags 
) [inherited]
long nsILayoutRegressionTester::dumpFrameModel ( in nsIDOMWindow  aWindowToDump,
in nsILocalFile  aFile,
in unsigned long  aFlagsMask 
) [inherited]
nsresult nsRegressionTester::GetDocShellFromWindow ( nsIDOMWindow inWindow,
nsIDocShell **  outShell 
) [protected]

Definition at line 171 of file nsRegressionTester.cpp.

  nsCOMPtr<nsIScriptGlobalObject> scriptObj(do_QueryInterface(inWindow));
  if (!scriptObj) return NS_ERROR_FAILURE;

  *outShell = scriptObj->GetDocShell();

  return NS_OK;

Here is the call graph for this function:

Member Data Documentation

Definition at line 75 of file nsILayoutRegressionTester.idl.

Compares the contents of frame model files.

aBaseFilethe baseline file, opened with read permissions
aVerFilefile containing the results to verify, opened with read permissions
aFlagsflags specifying output verbosity
aResultresult of the comparison: zero if the files are same, non-zero if different

Definition at line 74 of file nsILayoutRegressionTester.idl.

Dumps the content of a window.

aWindowToDumpthe window to dump (may be an iframe etc)
aFilethe file to dump to. It will be created if necessary, otherwise truncated. If nil, write to stdout.
aFlagsMasksome flags that determine what to dump
aFlagsMasksome flags that determine what to dump
aResulta status value indicating whether the dump happened, whether the page was still loading, or whether some other error happened.

Definition at line 58 of file nsILayoutRegressionTester.idl.

Definition at line 59 of file nsILayoutRegressionTester.idl.

Definition at line 61 of file nsILayoutRegressionTester.idl.

Definition at line 63 of file nsILayoutRegressionTester.idl.

Definition at line 62 of file nsILayoutRegressionTester.idl.

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