void CNsIFile::FileMoveTest(nsILocalFile *theTestFile, nsILocalFile *theFileOpDir, PRInt16 displayMode) { PRBool exists = PR_TRUE; QAOutput("Start File Move test.", displayMode); rv = theFileOpDir->InitWithNativePath(NS_LITERAL_CSTRING("c:\\Program Files\\")); if (NS_FAILED(rv)) QAOutput("The target dir wasn't found.", displayMode); rv = theTestFile->InitWithNativePath(NS_LITERAL_CSTRING("c:\\temp\\myFile2.txt")); if (NS_FAILED(rv)) QAOutput("The path wasn't found.", displayMode); rv = theTestFile->MoveToNative(theFileOpDir, NS_LITERAL_CSTRING("myFile2.txt")); RvTestResult(rv, "MoveToNative() test", displayMode); RvTestResultDlg(rv, "File MoveToNative() test ('myFile.txt')"); rv = theTestFile->InitWithNativePath(NS_LITERAL_CSTRING("c:\\Program Files\\myFile2.txt")); rv = theTestFile->Exists(&exists); if (!exists) QAOutput("File wasn't moved. MoveToNative() test Failed.", displayMode); else QAOutput("File was moved. MoveToNative() test Passed.", displayMode); }
NS_IMETHODIMP CBrowserImpl::OnDataAvailable(nsIRequest *request, nsISupports *ctxt, nsIInputStream *input, PRUint32 offset, PRUint32 count) { nsCString stringMsg; PRUint32 readLen; QAOutput("\n"); QAOutput("##### inside nsIStreamListener::OnDataAvailable(). #####"); RequestName(request, stringMsg, 1); readLen = count; // from prmem.h: PR_Malloc() char *buf = (char *)PR_Malloc(count); if (!input) QAOutput("We didn't get the nsIInputStream object.", 1); else { // consumer of input stream rv = input->Read(buf, count, &readLen); RvTestResult(rv, "nsIInputStream->Read() consumer", 1); } FormatAndPrintOutput("OnDataAvailable() offset = ", offset, 1); FormatAndPrintOutput("OnDataAvailable() count = ", count, 1); if (!ctxt) QAOutput("OnDataAvailable():We didn't get the nsISupports object.", 1); else QAOutput("OnDataAvailable():We got the nsISupports object.", 1); return NS_OK; }
NS_IMETHODIMP CBrowserImpl::GetDimensions(PRUint32 aFlags, PRInt32 *x, PRInt32 *y, PRInt32 *cx, PRInt32 *cy) { QAOutput("\n", 1); QAOutput("inside nsIEmbeddingSiteWindow::GetDimensions()", 1); FormatAndPrintOutput("GetDimensions() flags = ", aFlags, 1); FormatAndPrintOutput("GetDimensions() x1 coordinate = ", *x, 1); FormatAndPrintOutput("GetDimensions() y1 coordinate = ", *y, 1); FormatAndPrintOutput("GetDimensions() x2 coordinate = ", *cx, 1); FormatAndPrintOutput("GetDimensions() y2 coordinate = ", *cy, 1); if(! m_pBrowserFrameGlue) return NS_ERROR_FAILURE; if (aFlags & nsIEmbeddingSiteWindow::DIM_FLAGS_POSITION) { m_pBrowserFrameGlue->GetBrowserFramePosition(x, y); } if (aFlags & nsIEmbeddingSiteWindow::DIM_FLAGS_SIZE_INNER || aFlags & nsIEmbeddingSiteWindow::DIM_FLAGS_SIZE_OUTER) { m_pBrowserFrameGlue->GetBrowserFrameSize(cx, cy); } return NS_OK; }
void CTests::OnTestsIOServiceNewURI() { nsCOMPtr<nsIIOService> ioService(do_GetIOService(&rv)); if (!ioService) { QAOutput("We didn't get the IOService object.", 2); return; } if (myDialog.DoModal() == IDOK) { nsCAutoString theStr, retURI; theStr = myDialog.m_urlfield; rv = ioService->NewURI(theStr, nsnull, nsnull, getter_AddRefs(theURI)); RvTestResult(rv, "ioService->NewURI() test", 2); if (!theURI) QAOutput("We didn't get the nsIURI object for IOService test.", 2); else { retURI = GetTheURI(theURI, 1); FormatAndPrintOutput("The ioService->NewURI() output uri = ", retURI, 2); } } }
void CTests::OnTestsNSNewChannelAndAsyncOpen() { nsCOMPtr<nsIChannel> theChannel; nsCOMPtr<nsILoadGroup> theLoadGroup(do_CreateInstance(NS_LOADGROUP_CONTRACTID)); if (myDialog.DoModal() == IDOK) { nsCAutoString theStr; theStr = myDialog.m_urlfield; rv = NS_NewURI(getter_AddRefs(theURI), theStr); RvTestResult(rv, "NS_NewURI() test", 2); rv = NS_NewChannel(getter_AddRefs(theChannel), theURI, nsnull, nsnull); RvTestResult(rv, "NS_NewChannel() test", 2); if (!theChannel) { QAOutput("We didn't get the Channel for AsyncOpen(). Test failed.", 1); return; } QAOutput("AynchOpen() test:", 2); // this calls nsIStreamListener::OnDataAvailable() CnsIChannelTests *channelTests = new CnsIChannelTests(qaWebBrowser, qaBrowserImpl); channelTests->AsyncOpenTest(theChannel, 2);; } }
void CTests::OnTestsAddUriContentListenerByOpenUri() { nsCOMPtr<nsIURILoader> myLoader(do_GetService(NS_URI_LOADER_CONTRACTID,&rv)); RvTestResult(rv, "nsIURILoader() object test", 1); if (!myLoader) { QAOutput("Didn't get urILoader object. test failed", 2); return; } if (myDialog.DoModal() == IDOK) { nsCAutoString theStr; theStr = myDialog.m_urlfield; rv = NS_NewURI(getter_AddRefs(theURI), theStr); RvTestResult(rv, "For OpenURI(): NS_NewURI() test", 1); FormatAndPrintOutput("theStr = ", theStr, 1); GetTheURI(theURI, 1); rv = NS_NewChannel(getter_AddRefs(theChannel), theURI, nsnull, nsnull); RvTestResult(rv, "For OpenURI(): NS_NewChannel() test", 1); } else { QAOutput("Didn't get a url. test failed", 2); return; } rv = myLoader->OpenURI(theChannel, PR_TRUE, qaBrowserImpl); RvTestResult(rv, "nsIUriLoader->OpenURI() test", 2); }
void CTests::OnTestsCreateprofile() { CProfilesDlg myDialog; nsresult rv; if (myDialog.DoModal() == IDOK) { nsCOMPtr<nsIProfile> theProfServ(do_GetService(NS_PROFILE_CONTRACTID,&rv)); if (NS_FAILED(rv)) { QAOutput("Didn't get profile service. No profile tests performed.", 2); return; } QAOutput("Start Profile switch test.", 2); QAOutput("Retrieved profile service.", 2); rv = theProfServ->SetCurrentProfile(myDialog.m_SelectedProfile.get()); RvTestResult(rv, "SetCurrentProfile() (profile switching) test", 2); QAOutput("End Profile switch test.", 2); } else QAOutput("Profile switch test not executed.", 2); }
void CNsIDirectoryService::StartTests(UINT nMenuID) { QAOutput("------------------------------------------------",1); QAOutput("Start DirectoryService Test",1); // Calls all or indivdual test cases on the basis of the // option selected from menu. switch(nMenuID) { case ID_INTERFACES_NSIDIRECTORYSERVICE_RUNALLTESTS : Init(); RegisterProvider(); UnRegisterProvider(); break ; case ID_INTERFACES_NSIDIRECTORYSERVICE_INIT : Init(); break ; case ID_INTERFACES_NSIDIRECTORYSERVICE_REGISTERPROVIDER : RegisterProvider(); break ; case ID_INTERFACES_NSIDIRECTORYSERVICE_UNREGISTERPROVIDER : UnRegisterProvider(); break ; default : AfxMessageBox("Menu handler not added for this menu item"); break ; } }
void CTests::OnVerifybugs70228() { nsCOMPtr<nsIHelperAppLauncherDialog> myHALD(do_CreateInstance(NS_IHELPERAPPLAUNCHERDLG_CONTRACTID)); if (!myHALD) QAOutput("Object not created. It should be. It's a component!", 2); else QAOutput("Object is created. It's a component!", 2); }
void CNsIRequest::RunIndividualTests(UINT nMenuID, int reqTotal) { nsCOMPtr<nsIChannel> theChannel; nsCOMPtr<nsILoadGroup> theLoadGroup(do_CreateInstance(NS_LOADGROUP_CONTRACTID)); nsCOMPtr<nsIURI> theURI; if (!theLoadGroup) { QAOutput("We didn't get the Load Group. Test failed.", 2); return; } int i=0; QAOutput("Start selected nsIRequest test.", 2); for (i=0; i<reqTotal; i++) { // nsIRequest individual tests QAOutput("********** Individual nsIRequest test begins. **********"); theChannel = GetTheChannel(i, theLoadGroup); nsCOMPtr<nsIRequest> theRequest = do_QueryInterface(theChannel); switch(nMenuID) { case ID_INTERFACES_NSIREQUEST_GETNAME : break; case ID_INTERFACES_NSIREQUEST_ISPENDING : IsPendingReqTest(theRequest); break; case ID_INTERFACES_NSIREQUEST_GETSTATUS : GetStatusReqTest(theRequest); break; case ID_INTERFACES_NSIREQUEST_CANCEL : CancelReqTest(theRequest); break; case ID_INTERFACES_NSIREQUEST_SUSPEND : SuspendReqTest(theRequest); break; case ID_INTERFACES_NSIREQUEST_RESUME : ResumeReqTest(theRequest); break; case ID_INTERFACES_NSIREQUEST_GETLOADGROUP : GetLoadGroupTest(theRequest); break; case ID_INTERFACES_NSIREQUEST_SETLOADGROUP : SetLoadGroupTest(theRequest, theLoadGroup); break; case ID_INTERFACES_NSIREQUEST_GETLOADFLAGS : break; case ID_INTERFACES_NSIREQUEST_SETLOADFLAGS : break; } } // end for loop }
void CTests::OnTestsGlobalHistory() { // create instance of myHistory object. Call's XPCOM // service manager to pass the contract ID. PRBool theRetVal = PR_FALSE; nsCOMPtr<nsIGlobalHistory> myHistory(do_GetService(NS_GLOBALHISTORY_CONTRACTID)); if (!myHistory) { QAOutput("Couldn't find history object. No GH tests performed.", 2); return; } if (myDialog.DoModal() == IDOK) { QAOutput("Begin IsVisited() and AddPage() tests.", 2); FormatAndPrintOutput("The history url = ", myDialog.m_urlfield, 1); // see if url is already in the GH file (pre-AddPage() test) rv = myHistory->IsVisited(myDialog.m_urlfield, &theRetVal); RvTestResult(rv, "rv IsVisited() test", 1); FormatAndPrintOutput("The IsVisited() boolean return value = ", theRetVal, 1); if (theRetVal) QAOutput("URL has been visited. Won't execute AddPage().", 2); else { QAOutput("URL hasn't been visited. Will execute AddPage().", 2); // adds a url to the global history file rv = myHistory->AddPage(myDialog.m_urlfield); // prints addPage() results to output file if (NS_FAILED(rv)) { QAOutput("Invalid results for AddPage(). Url not added. Test failed.", 1); return; } else QAOutput("Valid results for AddPage(). Url added. Test passed.", 1); // checks if url was visited (post-AddPage() test) myHistory->IsVisited(myDialog.m_urlfield, &theRetVal); if (theRetVal) QAOutput("URL is visited; post-AddPage() test. IsVisited() test passed.", 1); else QAOutput("URL isn't visited; post-AddPage() test. IsVisited() test failed.", 1); } QAOutput("End IsVisited() and AddPage() tests.", 2); } else QAOutput("IsVisited() and AddPage() tests not executed.", 1); }
NS_IMETHODIMP CBrowserImpl::SetParentContentListener(nsIURIContentListener * aParentContentListener) { QAOutput("nsIURIContentListener->SetParentContentListener()",1); if (!aParentContentListener) QAOutput("aParentContentListener object is null",1); mParentContentListener = aParentContentListener; return NS_OK; }
NS_IMETHODIMP CBrowserImpl::SetLoadCookie(nsISupports * aLoadCookie) { QAOutput("nsIURIContentListener->SetLoadCookie()",1); if (!aLoadCookie) QAOutput("aLoadCookie object is null",1); mLoadCookie = aLoadCookie; return NS_OK; }
NS_IMETHODIMP CBrowserImpl::GetLoadCookie(nsISupports **aLoadCookie) { QAOutput("nsIURIContentListener->GetLoadCookie()",1); if (!aLoadCookie) QAOutput("aLoadCookie object is null",1); *aLoadCookie = mLoadCookie; NS_IF_ADDREF(*aLoadCookie); return NS_OK; }
nsIChannel * CNsIRequest::GetTheChannel(int i, nsILoadGroup *theLoadGroup) { nsCAutoString theSpec, retURI; nsCOMPtr<nsIURI> theURI; nsCOMPtr<nsIChannel> theChannel; theSpec = ReqTable[i].theUrl; FormatAndPrintOutput("the input uri = ", theSpec, 1); rv = NS_NewURI(getter_AddRefs(theURI), theSpec); if (!theURI) { QAOutput("We didn't get the URI. Test failed.", 1); return nsnull; } else { retURI = GetTheURI(theURI, 1); // simple string compare to see if input & output URLs match if (strcmp(ReqTable[i].theUrl, retURI.get()) == 0) QAOutput("The in/out URIs MATCH.", 1); else QAOutput("The in/out URIs don't MATCH.", 1); RvTestResult(rv, "NS_NewURI", 1); RvTestResultDlg(rv, "NS_NewURI", true); } rv = NS_NewChannel(getter_AddRefs(theChannel), theURI, nsnull, theLoadGroup); if (!theChannel) { QAOutput("We didn't get the Channel. Test failed.", 1); return nsnull; } else { RvTestResult(rv, "NS_NewChannel", 1); RvTestResultDlg(rv, "NS_NewChannel"); } nsCOMPtr<nsIStreamListener> listener(static_cast<nsIStreamListener*>(qaBrowserImpl)); nsCOMPtr<nsIWeakReference> thisListener(do_GetWeakReference(listener)); qaWebBrowser->AddWebBrowserListener(thisListener, NS_GET_IID(nsIStreamListener)); if (!listener) { QAOutput("We didn't get the listener for AsyncOpen(). Test failed.", 1); return nsnull; } // this calls nsIStreamListener::OnDataAvailable() rv = theChannel->AsyncOpen(listener, nsnull); RvTestResult(rv, "AsyncOpen()", 1); RvTestResultDlg(rv, "AsyncOpen()"); return theChannel; }
void CNsIFile::OnStartTests(UINT nMenuID) { // Calls all or indivdual test cases on the basis of the // option selected from menu. nsCOMPtr<nsILocalFile> theTestFile(do_CreateInstance(NS_LOCAL_FILE_CONTRACTID)); nsCOMPtr<nsILocalFile> theFileOpDir(do_CreateInstance(NS_LOCAL_FILE_CONTRACTID)); if (!theTestFile) { QAOutput("File object doesn't exist. No File tests performed.", 2); return; } if (!theFileOpDir) { QAOutput("File object doesn't exist. No File tests performed.", 2); return; } switch(nMenuID) { case ID_INTERFACES_NSIFILE_RUNALLTESTS : QAOutput("Begin nsIFile tests.", 1); RunAllTests(theTestFile,theFileOpDir); QAOutput("End nsIFile tests.", 1); break ; case ID_INTERFACES_NSIFILE_INITWITHPATH : InitWithPathTest(theTestFile, 2); break ; case ID_INTERFACES_NSIFILE_APPENDRELATICEPATH : AppendRelativePathTest(theTestFile, 2); break ; case ID_INTERFACES_NSIFILE_EXISTS : FileCreateTest(theTestFile, 2); break ; case ID_INTERFACES_NSIFILE_CREATE : FileExistsTest(theTestFile, 2); break ; case ID_INTERFACES_NSIFILE_COPYTO : FileCopyTest(theTestFile, theFileOpDir, 2); break ; case ID_INTERFACES_NSIFILE_MOVETO : FileMoveTest(theTestFile, theFileOpDir, 2); break ; } }
void CNsIRequest::RunAllTests(int reqTotal) { // note: nsIRequest tests are called: // 1) in BrowserImpl.cpp, nsIStreamListener::OnDataAvailable() // 2) as individual tests below nsCOMPtr<nsIChannel> theChannel; nsCOMPtr<nsILoadGroup> theLoadGroup(do_CreateInstance(NS_LOADGROUP_CONTRACTID)); if (!theLoadGroup) { QAOutput("We didn't get the Load Group. Test failed.", 2); return; } int i=0; QAOutput("Start nsIRequest tests.", 1); for (i=0; i<reqTotal; i++) { // nsIRequest individual tests QAOutput("********** Individual nsIRequest test begins. **********"); theChannel = GetTheChannel(i, theLoadGroup); nsCOMPtr<nsIRequest> theRequest = do_QueryInterface(theChannel); if (ReqTable[i].reqPend == TRUE) IsPendingReqTest(theRequest); if (ReqTable[i].reqStatus == TRUE) GetStatusReqTest(theRequest); if (ReqTable[i].reqSuspend == TRUE) SuspendReqTest(theRequest); if (ReqTable[i].reqResume == TRUE) ResumeReqTest(theRequest); if (ReqTable[i].reqCancel == TRUE) CancelReqTest(theRequest); if (ReqTable[i].reqSetLoadGroup == TRUE) SetLoadGroupTest(theRequest, theLoadGroup); if (ReqTable[i].reqGetLoadGroup == TRUE) GetLoadGroupTest(theRequest); QAOutput("- - - - - - - - - - - - - - - - - - - - -", 1); } // end for loop QAOutput("End nsIRequest tests.", 1); }
NS_IMETHODIMP CBrowserImpl::GetParentContentListener(nsIURIContentListener **aParentContentListener) { QAOutput("nsIURIContentListener->GetParentContentListener()",1); if (!aParentContentListener) QAOutput("aParentContentListener object is null",1); *aParentContentListener = mParentContentListener; NS_IF_ADDREF(*aParentContentListener); // QueryInterface(NS_GET_IID(nsIURIContentListener), (void **) aParentContentListener); return NS_OK; }
// Will get called in response to JavaScript window.close() // NS_IMETHODIMP CBrowserImpl::DestroyBrowserWindow() { if(! m_pBrowserFrameGlue) { QAOutput("inside nsIWebBrowserChrome::DestroyBrowserWindow(): Browser Window not destroyed.", 1); return NS_ERROR_FAILURE; } m_pBrowserFrameGlue->DestroyBrowserFrame(); QAOutput("nsIWebBrowserChrome::DestroyBrowserWindow(): Browser Window destroyed.", 1); return NS_OK; }
// Currently called from Init(). I'm not sure who else // calls this // NS_IMETHODIMP CBrowserImpl::SetWebBrowser(nsIWebBrowser* aWebBrowser) { QAOutput("inside nsIWebBrowserChrome::SetWebBrowser().", 1); NS_ENSURE_ARG_POINTER(aWebBrowser); if (!aWebBrowser) QAOutput("aWebBrowser is null", 1); mWebBrowser = aWebBrowser; return NS_OK; }
//Gets called when you mouseover links etc. in a web page // NS_IMETHODIMP CBrowserImpl::SetStatus(PRUint32 aType, const PRUnichar* aStatus) { QAOutput("\n", 1); QAOutput("inside nsIWebBrowserChrome::SetStatus().", 1); FormatAndPrintOutput("SetStatus() type = ", aType, 1); FormatAndPrintOutput("SetStatus() aStatus = ", *aStatus, 1); if(! m_pBrowserFrameGlue) return NS_ERROR_FAILURE; m_pBrowserFrameGlue->UpdateStatusBarText(aStatus); return NS_OK; }
void CNsIRequest::IsPendingReqTest(nsIRequest *request) { PRBool reqPending; nsresult rv; rv = request->IsPending(&reqPending); RvTestResult(rv, "nsIRequest::IsPending() rv test", 1); RvTestResultDlg(rv, "nsIRequest::IsPending() rv test()"); if (!reqPending) QAOutput("Pending request = false.", 1); else QAOutput("Pending request = true.", 1); }
void CnsIEditSession::TearEditorWinTest(PRInt16 displayMode) { editingSession = GetEditSessionObject(); domWindow = GetTheDOMWindow(qaWebBrowser); if (editingSession) { rv = editingSession->TearDownEditorOnWindow(domWindow); RvTestResult(rv, "TearDownEditorOnWindow() test", displayMode); if (displayMode == 1) RvTestResultDlg(rv, "TearDownEditorOnWindow() test"); if (!domWindow) QAOutput("Didn't get domWindow object for TearDownEditorOnWindow() test. Test failed.", displayMode); } else QAOutput("Didn't get object(s) for TearEditorWinTest() test. Test failed.", 1); }
void CnsIEditSession::InitTest(PRInt16 displayMode) { editingSession = GetEditSessionObject(); domWindow = GetTheDOMWindow(qaWebBrowser); if (editingSession) { rv = editingSession->Init(domWindow); RvTestResult(rv, "Init() test", displayMode); if (displayMode == 1) RvTestResultDlg(rv, "Init() test", true); if (!domWindow) QAOutput("Didn't get domWindow object for InitTest() test. Test failed.", displayMode); } else QAOutput("Didn't get editingSession object for InitTest() test. Test failed.", displayMode); }
void CnsIEditSession::MakeWinEditTest(PRBool afterUriLoad, PRInt16 displayMode) { editingSession = GetEditSessionObject(); domWindow = GetTheDOMWindow(qaWebBrowser); if (editingSession) { rv= editingSession->MakeWindowEditable(domWindow, "text", afterUriLoad); RvTestResult(rv, "MakeWindowEditable() test", displayMode); if (displayMode == 1) RvTestResultDlg(rv, "MakeWindowEditable() test"); if (!domWindow) QAOutput("Didn't get domWindow object for MakeWindowEditable() test. Test failed.", displayMode); } else QAOutput("Didn't get editingSession object for MakeWindowEditable() test. Test failed.", 1); }
void CNsIFile::FileExistsTest(nsILocalFile *theTestFile, PRInt16 displayMode) { PRBool exists = PR_TRUE; rv = theTestFile->InitWithNativePath(NS_LITERAL_CSTRING("c:\\temp\\")); rv = theTestFile->AppendRelativeNativePath(NS_LITERAL_CSTRING("myFile.txt")); rv = theTestFile->Exists(&exists); RvTestResult(rv, "File Exists() test ('myFile.txt')", displayMode); RvTestResultDlg(rv, "File Exists() test ('myFile.txt')"); if (!exists) QAOutput("Exists() test Failed. File (myFile.txt) doesn't exist.", displayMode); else QAOutput("Exists() test Passed. File (myFile.txt) exists.", displayMode); }
// Gets called in response to set the size of a window // Ex: In response to a JavaScript Window.Open() call of // the form // // window.open("http://www.mozilla.org", "theWin", "width=200, height=400"); // // First the CreateBrowserWindow() call will be made followed by a // call to this method to resize the window // NS_IMETHODIMP CBrowserImpl::SizeBrowserTo(PRInt32 aCX, PRInt32 aCY) { QAOutput("\n", 1); QAOutput("inside nsIWebBrowserChrome::SizeBrowserTo(): Browser sized.", 1); if(! m_pBrowserFrameGlue) return NS_ERROR_FAILURE; FormatAndPrintOutput("SizeBrowserTo() x coordinate = ", aCX, 1); FormatAndPrintOutput("SizeBrowserTo() y coordinate = ", aCY, 1); m_pBrowserFrameGlue->SetBrowserFrameSize(aCX, aCY); return NS_OK; }
NS_IMETHODIMP CBrowserImpl::GetSiteWindow(void** aSiteWindow) { QAOutput("inside nsIEmbeddingSiteWindow::GetSiteWindow()", 1); if (!aSiteWindow) { QAOutput("GetSiteWindow: Didn't get siteWindow."); return NS_ERROR_NULL_POINTER; } *aSiteWindow = 0; if (m_pBrowserFrameGlue) { HWND w = m_pBrowserFrameGlue->GetBrowserFrameNativeWnd(); *aSiteWindow = NS_REINTERPRET_CAST(void *, w); } return NS_OK; }
NS_IMETHODIMP CBrowserImpl::ExitModalEventLoop(nsresult aStatus) { QAOutput("inside nsIWebBrowserChrome::ExitModalEventLoop()", 1); RvTestResult(aStatus, "ExitModalEventLoop status test", 1); return NS_OK; }
void CnsIEditSession::WinIsEditTest(PRBool outIsEditable, PRInt16 displayMode) { editingSession = GetEditSessionObject(); domWindow = GetTheDOMWindow(qaWebBrowser); if (editingSession) { rv = editingSession->WindowIsEditable(domWindow, &outIsEditable); RvTestResult(rv, "WindowIsEditable() test", displayMode); if (displayMode == 1) RvTestResultDlg(rv, "WindowIsEditable() test"); if (!domWindow) QAOutput("Didn't get domWindow object for WindowIsEditable() test. Test failed.", displayMode); FormatAndPrintOutput("the outIsEditable boolean = ", outIsEditable, displayMode); } else QAOutput("Didn't get object(s) for WinIsEditTest() test. Test failed.", 1); }