Back to index

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

#include <Tests.h>

Collaboration diagram for BrowserInfo:
Collaboration graph
[legend]

List of all members.

Public Member Functions

void OutputString (const TCHAR *szMessage,...)
HRESULT GetWebBrowser (IWebBrowserApp **pWebBrowser)
HRESULT GetDocument (IHTMLDocument2 **pDocument)

Public Attributes

TestpTest
TestResult nResult
CBrowserCtlSiteInstancepControlSite
IUnknownpIUnknown
CLSID clsid
CBrowseDlgpBrowseDlg
CString szTestURL
CString szTestCGI

Detailed Description

Definition at line 45 of file Tests.h.


Member Function Documentation

HRESULT BrowserInfo::GetDocument ( IHTMLDocument2 **  pDocument)

Definition at line 83 of file Tests.cpp.

{
       CIPtr(IWebBrowserApp) cpWebBrowser;
       if (FAILED(GetWebBrowser(&cpWebBrowser)))
       {
              return E_FAIL;
       }

       CIPtr(IDispatch) cpDispDocument;
       cpWebBrowser->get_Document(&cpDispDocument);
       if (cpDispDocument == NULL)
       {
              return E_FAIL;
       }

       return cpDispDocument->QueryInterface(IID_IHTMLDocument2, (void **) pDocument);
}

Here is the call graph for this function:

Here is the caller graph for this function:

HRESULT BrowserInfo::GetWebBrowser ( IWebBrowserApp **  pWebBrowser)

Definition at line 73 of file Tests.cpp.

{
       if (pIUnknown == NULL)
       {
              return E_FAIL;
       }
       return pIUnknown->QueryInterface(IID_IWebBrowserApp, (void **) pWebBrowser);
}

Here is the call graph for this function:

Here is the caller graph for this function:

void BrowserInfo::OutputString ( const TCHAR szMessage,
  ... 
)

Definition at line 57 of file Tests.cpp.

{
       TCHAR szBuffer[256];

       va_list cArgs;
       va_start(cArgs, szMessage);
       _vstprintf(szBuffer, szMessage, cArgs);
       va_end(cArgs);

       CString szOutput;
       szOutput.Format(_T("  Test: %s"), szBuffer);

       pBrowseDlg->OutputString(szOutput);
}

Here is the call graph for this function:

Here is the caller graph for this function:


Member Data Documentation

Definition at line 52 of file Tests.h.

Definition at line 49 of file Tests.h.

Definition at line 53 of file Tests.h.

Definition at line 50 of file Tests.h.

Definition at line 51 of file Tests.h.

Definition at line 48 of file Tests.h.

Definition at line 55 of file Tests.h.

Definition at line 54 of file Tests.h.


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