2002-08-30 12:29:25 +04:00
|
|
|
// nsICmdParams.cpp : implementation file
|
|
|
|
//
|
|
|
|
|
|
|
|
#include "stdafx.h"
|
|
|
|
#include "testembed.h"
|
|
|
|
#include "nsICmdParams.h"
|
|
|
|
#include "QaUtils.h"
|
|
|
|
#include "BrowserFrm.h"
|
|
|
|
#include "BrowserImpl.h"
|
|
|
|
#include "BrowserView.h"
|
|
|
|
#include "Tests.h"
|
|
|
|
#include "nsICommandMgr.h"
|
|
|
|
|
|
|
|
#ifdef _DEBUG
|
|
|
|
#define new DEBUG_NEW
|
|
|
|
#undef THIS_FILE
|
|
|
|
static char THIS_FILE[] = __FILE__;
|
|
|
|
#endif
|
|
|
|
|
|
|
|
/////////////////////////////////////////////////////////////////////////////
|
|
|
|
// nsICmdParams
|
|
|
|
|
2002-09-21 12:06:16 +04:00
|
|
|
// note: this table is temporary. will customize later.
|
|
|
|
// 1st column: command; 2nd column: DoCommand state, 3rd column: CmdParam state;
|
2002-09-24 02:29:24 +04:00
|
|
|
|
2002-09-21 12:06:16 +04:00
|
|
|
|
2002-08-30 12:29:25 +04:00
|
|
|
CnsICmdParams::CnsICmdParams(nsIWebBrowser *mWebBrowser)
|
|
|
|
{
|
|
|
|
qaWebBrowser = mWebBrowser;
|
|
|
|
}
|
|
|
|
|
|
|
|
CnsICmdParams::~CnsICmdParams()
|
|
|
|
{
|
|
|
|
}
|
|
|
|
|
|
|
|
nsICommandParams * CnsICmdParams::GetCommandParamObject()
|
|
|
|
{
|
|
|
|
nsCOMPtr<nsICommandParams> cmdParamsObj = do_CreateInstance(NS_COMMAND_PARAMS_CONTRACTID,&rv);
|
|
|
|
RvTestResult(rv, "GetCommandParamsObject() test", 1);
|
|
|
|
if (!cmdParamsObj) {
|
|
|
|
QAOutput("Didn't get nsICommandParams object.");
|
|
|
|
return nsnull;
|
|
|
|
}
|
|
|
|
nsICommandParams *retVal = cmdParamsObj;
|
|
|
|
NS_ADDREF(retVal);
|
|
|
|
return retVal;
|
|
|
|
}
|
|
|
|
|
2002-09-21 12:06:16 +04:00
|
|
|
void CnsICmdParams::GetValueTypeTest(const char *aCommand, const char *stateType, int displayMode)
|
2002-08-30 12:29:25 +04:00
|
|
|
{
|
|
|
|
PRInt16 retval;
|
|
|
|
|
|
|
|
cmdParamObj = GetCommandParamObject();
|
|
|
|
if (cmdParamObj) {
|
2002-09-21 12:06:16 +04:00
|
|
|
FormatAndPrintOutput("The input command name = ", aCommand, displayMode);
|
|
|
|
FormatAndPrintOutput("The input state type = ", stateType, displayMode);
|
2002-11-29 01:39:58 +03:00
|
|
|
cmdMgrObj = CnsICommandMgr::GetCommandMgrObject(qaWebBrowser, displayMode);
|
2002-09-05 06:50:27 +04:00
|
|
|
if (!cmdMgrObj) {
|
2002-09-21 12:06:16 +04:00
|
|
|
QAOutput("We didn't get nsICommandMgr object. Test fails.", displayMode);
|
2002-09-05 06:50:27 +04:00
|
|
|
return;
|
|
|
|
}
|
|
|
|
else {
|
2002-11-14 05:39:46 +03:00
|
|
|
rv = cmdMgrObj->GetCommandState(aCommand, nsnull, cmdParamObj);
|
2002-09-21 12:06:16 +04:00
|
|
|
RvTestResult(rv, "cmdMgrObj->GetCommandState test", displayMode);
|
2002-09-05 06:50:27 +04:00
|
|
|
}
|
2002-08-30 12:29:25 +04:00
|
|
|
rv = cmdParamObj->GetValueType(stateType, &retval);
|
2002-09-21 12:06:16 +04:00
|
|
|
RvTestResult(rv, "GetValueType test", displayMode);
|
|
|
|
FormatAndPrintOutput("GetValueType return int = ", retval, displayMode);
|
2002-08-30 12:29:25 +04:00
|
|
|
}
|
|
|
|
else
|
|
|
|
QAOutput("GetValueTypeTest(): We didn't get nsICommandParams object.", 1);
|
|
|
|
}
|
|
|
|
|
2002-09-21 12:06:16 +04:00
|
|
|
void CnsICmdParams::GetBooleanValueTest(const char *aCommand, const char *stateType, int displayMode)
|
2002-08-30 12:29:25 +04:00
|
|
|
{
|
|
|
|
PRBool retval;
|
|
|
|
|
|
|
|
cmdParamObj = GetCommandParamObject();
|
|
|
|
if (cmdParamObj) {
|
2002-09-21 12:06:16 +04:00
|
|
|
FormatAndPrintOutput("The input command name = ", aCommand, displayMode);
|
|
|
|
FormatAndPrintOutput("The input state type = ", stateType, displayMode);
|
2002-11-29 01:39:58 +03:00
|
|
|
cmdMgrObj = CnsICommandMgr::GetCommandMgrObject(qaWebBrowser, displayMode);
|
2002-09-05 06:50:27 +04:00
|
|
|
if (!cmdMgrObj) {
|
2002-09-21 12:06:16 +04:00
|
|
|
QAOutput("We didn't get nsICommandMgr object. Test fails.", displayMode);
|
2002-09-05 06:50:27 +04:00
|
|
|
return;
|
|
|
|
}
|
|
|
|
else
|
2002-11-14 05:39:46 +03:00
|
|
|
cmdMgrObj->GetCommandState(aCommand, nsnull, cmdParamObj);
|
2002-09-05 06:50:27 +04:00
|
|
|
|
2002-08-30 12:29:25 +04:00
|
|
|
rv = cmdParamObj->GetBooleanValue(stateType, &retval);
|
2002-09-21 12:06:16 +04:00
|
|
|
RvTestResult(rv, "GetBooleanValue test", displayMode);
|
|
|
|
FormatAndPrintOutput("GetBooleanValue() return boolean = ", retval, displayMode);
|
2002-08-30 12:29:25 +04:00
|
|
|
}
|
|
|
|
else
|
|
|
|
QAOutput("GetBooleanValueTest(): We didn't get nsICommandParams object.", 1);
|
|
|
|
}
|
|
|
|
|
2002-09-21 12:06:16 +04:00
|
|
|
void CnsICmdParams::GetLongValueTest(PRInt32 value, const char *stateType, int displayMode)
|
2002-08-30 12:29:25 +04:00
|
|
|
{
|
|
|
|
PRInt32 retval;
|
|
|
|
|
|
|
|
cmdParamObj = GetCommandParamObject();
|
2002-09-05 06:50:27 +04:00
|
|
|
if (cmdParamObj)
|
|
|
|
{
|
2002-09-21 12:06:16 +04:00
|
|
|
FormatAndPrintOutput("The input Set value = ", value, displayMode);
|
|
|
|
FormatAndPrintOutput("The input state type = ", stateType, displayMode);
|
2002-09-05 06:50:27 +04:00
|
|
|
cmdParamObj->SetLongValue(stateType, value);
|
2002-08-30 12:29:25 +04:00
|
|
|
rv = cmdParamObj->GetLongValue(stateType, &retval);
|
2002-09-21 12:06:16 +04:00
|
|
|
RvTestResult(rv, "GetLongValue test", displayMode);
|
|
|
|
FormatAndPrintOutput("GetLongValue() return long = ", retval, displayMode);
|
2002-08-30 12:29:25 +04:00
|
|
|
}
|
|
|
|
else
|
|
|
|
QAOutput("GetLongValueTest: We didn't get nsICommandParams object.", 1);
|
|
|
|
}
|
|
|
|
|
2002-09-21 12:06:16 +04:00
|
|
|
void CnsICmdParams::GetDoubleValueTest(double value, const char *stateType, int displayMode)
|
2002-08-30 12:29:25 +04:00
|
|
|
{
|
|
|
|
double retval;
|
|
|
|
|
|
|
|
cmdParamObj = GetCommandParamObject();
|
|
|
|
if (cmdParamObj) {
|
2002-09-21 12:06:16 +04:00
|
|
|
FormatAndPrintOutput("The input Set value = ", value, displayMode);
|
|
|
|
FormatAndPrintOutput("The input state type = ", stateType, displayMode);
|
2002-09-05 06:50:27 +04:00
|
|
|
cmdParamObj->SetDoubleValue(stateType, value);
|
2002-08-30 12:29:25 +04:00
|
|
|
rv = cmdParamObj->GetDoubleValue(stateType, &retval);
|
2002-09-21 12:06:16 +04:00
|
|
|
RvTestResult(rv, "GetDoubleValue test", displayMode);
|
2002-11-27 04:28:51 +03:00
|
|
|
FormatAndPrintOutput("GetDoubleValue() return double = ", retval, displayMode);
|
2002-08-30 12:29:25 +04:00
|
|
|
}
|
|
|
|
else
|
|
|
|
QAOutput("GetDoubleValueTest: We didn't get nsICommandParams object.", 1);
|
|
|
|
}
|
|
|
|
|
2002-09-21 12:06:16 +04:00
|
|
|
void CnsICmdParams::GetStringValueTest(char *stringVal, const char *stateType, int displayMode)
|
2002-08-30 12:29:25 +04:00
|
|
|
{
|
|
|
|
nsAutoString retval;
|
|
|
|
cmdParamObj = GetCommandParamObject();
|
|
|
|
if (cmdParamObj) {
|
2002-09-21 12:06:16 +04:00
|
|
|
FormatAndPrintOutput("The input string = ", stringVal, displayMode);
|
|
|
|
FormatAndPrintOutput("The input state type = ", stateType, displayMode);
|
2002-09-09 21:17:47 +04:00
|
|
|
|
2006-02-03 17:18:39 +03:00
|
|
|
rv = cmdParamObj->SetStringValue(stateType, NS_ConvertASCIItoUTF16(stringVal));
|
2002-08-30 12:29:25 +04:00
|
|
|
rv = cmdParamObj->GetStringValue(stateType, retval);
|
2002-09-21 12:06:16 +04:00
|
|
|
RvTestResult(rv, "GetStringValue test", displayMode);
|
|
|
|
// FormatAndPrintOutput("GetStringValue() return string = ", retval, displayMode);
|
2002-08-30 12:29:25 +04:00
|
|
|
}
|
|
|
|
else
|
|
|
|
QAOutput("GetStringValueTest: We didn't get nsICommandParams object.", 1);
|
|
|
|
}
|
|
|
|
|
2002-09-21 12:06:16 +04:00
|
|
|
void CnsICmdParams::GetCStringValueTest(const char *aCommand, const char *stateType, int displayMode)
|
2002-09-05 06:50:27 +04:00
|
|
|
{
|
|
|
|
cmdParamObj = GetCommandParamObject();
|
|
|
|
if (cmdParamObj) {
|
2002-09-21 12:06:16 +04:00
|
|
|
FormatAndPrintOutput("The input command name = ", aCommand, displayMode);
|
|
|
|
FormatAndPrintOutput("The input state type = ", stateType, displayMode);
|
2002-11-29 01:39:58 +03:00
|
|
|
cmdMgrObj = CnsICommandMgr::GetCommandMgrObject(qaWebBrowser, displayMode);
|
2002-09-05 06:50:27 +04:00
|
|
|
if (!cmdMgrObj) {
|
2002-09-21 12:06:16 +04:00
|
|
|
QAOutput("We didn't get nsICommandMgr object. Test fails.", displayMode);
|
2002-09-05 06:50:27 +04:00
|
|
|
return;
|
|
|
|
}
|
|
|
|
else
|
2002-11-14 05:39:46 +03:00
|
|
|
cmdMgrObj->GetCommandState(aCommand, nsnull, cmdParamObj);
|
2002-09-05 06:50:27 +04:00
|
|
|
char *tCstringValue = nsnull;
|
|
|
|
rv = cmdParamObj->GetCStringValue(stateType, &tCstringValue);
|
2002-09-21 12:06:16 +04:00
|
|
|
RvTestResult(rv, "GetCStringValue test", displayMode);
|
|
|
|
FormatAndPrintOutput("the CString value = ", tCstringValue, displayMode);
|
2002-09-05 06:50:27 +04:00
|
|
|
if (tCstringValue)
|
|
|
|
nsCRT::free(tCstringValue);
|
|
|
|
}
|
|
|
|
else
|
|
|
|
QAOutput("GetCStringValueTest: We didn't get nsICommandParams object.", 1);
|
|
|
|
}
|
|
|
|
|
2006-02-03 17:18:39 +03:00
|
|
|
// NS_ConvertASCIItoUTF16
|
2002-08-30 12:29:25 +04:00
|
|
|
|
2002-09-21 12:06:16 +04:00
|
|
|
void CnsICmdParams::SetBooleanValueTest(PRBool value, const char *stateType, int displayMode)
|
2002-08-30 12:29:25 +04:00
|
|
|
{
|
|
|
|
cmdParamObj = GetCommandParamObject();
|
|
|
|
if (cmdParamObj) {
|
2002-09-21 12:06:16 +04:00
|
|
|
FormatAndPrintOutput("The input state type = ", stateType, displayMode);
|
|
|
|
FormatAndPrintOutput("The input value = ", value, displayMode);
|
2002-08-30 12:29:25 +04:00
|
|
|
rv = cmdParamObj->SetBooleanValue(stateType, value);
|
2002-09-21 12:06:16 +04:00
|
|
|
RvTestResult(rv, "SetBooleanValue() test", displayMode);
|
2002-08-30 12:29:25 +04:00
|
|
|
}
|
|
|
|
else
|
|
|
|
QAOutput("SetBooleanValueTest(): We didn't get nsICommandParams object.", 1);
|
|
|
|
}
|
|
|
|
|
2002-09-21 12:06:16 +04:00
|
|
|
void CnsICmdParams::SetLongValueTest(PRInt32 value, const char *stateType, int displayMode)
|
2002-08-30 12:29:25 +04:00
|
|
|
{
|
|
|
|
cmdParamObj = GetCommandParamObject();
|
|
|
|
if (cmdParamObj) {
|
2002-09-21 12:06:16 +04:00
|
|
|
FormatAndPrintOutput("The input state type = ", stateType, displayMode);
|
|
|
|
FormatAndPrintOutput("The input value = ", value, displayMode);
|
2002-08-30 12:29:25 +04:00
|
|
|
rv = cmdParamObj->SetLongValue(stateType, value);
|
2002-09-21 12:06:16 +04:00
|
|
|
RvTestResult(rv, "SetLongValue() test", displayMode);
|
2002-08-30 12:29:25 +04:00
|
|
|
}
|
|
|
|
else
|
|
|
|
QAOutput("SetLongValueTest(): We didn't get nsICommandParams object.", 1);
|
|
|
|
}
|
|
|
|
|
2002-09-21 12:06:16 +04:00
|
|
|
void CnsICmdParams::SetDoubleValueTest(double value, const char *stateType, int displayMode)
|
2002-08-30 12:29:25 +04:00
|
|
|
{
|
|
|
|
cmdParamObj = GetCommandParamObject();
|
|
|
|
if (cmdParamObj) {
|
2002-09-21 12:06:16 +04:00
|
|
|
FormatAndPrintOutput("The input state type = ", stateType, displayMode);
|
|
|
|
FormatAndPrintOutput("The input value = ", value, displayMode);
|
2002-08-30 12:29:25 +04:00
|
|
|
rv = cmdParamObj->SetDoubleValue(stateType, value);
|
2002-09-21 12:06:16 +04:00
|
|
|
RvTestResult(rv, "SetDoubleValue() test", displayMode);
|
2002-08-30 12:29:25 +04:00
|
|
|
}
|
|
|
|
else
|
|
|
|
QAOutput("SetDoubleValueTest(): We didn't get nsICommandParams object.", 1);
|
|
|
|
}
|
|
|
|
|
2002-09-21 12:06:16 +04:00
|
|
|
void CnsICmdParams::SetStringValueTest(char *value, const char *stateType, int displayMode)
|
2002-08-30 12:29:25 +04:00
|
|
|
{
|
|
|
|
cmdParamObj = GetCommandParamObject();
|
|
|
|
if (cmdParamObj) {
|
2002-09-21 12:06:16 +04:00
|
|
|
FormatAndPrintOutput("The input state type = ", stateType, displayMode);
|
|
|
|
FormatAndPrintOutput("The input value = ", value, displayMode);
|
2006-02-03 17:18:39 +03:00
|
|
|
rv = cmdParamObj->SetStringValue(stateType, NS_ConvertASCIItoUTF16(value));
|
2002-09-21 12:06:16 +04:00
|
|
|
RvTestResult(rv, "SetStringValue() test", displayMode);
|
2002-08-30 12:29:25 +04:00
|
|
|
}
|
|
|
|
else
|
|
|
|
QAOutput("SetStringValueTest(): We didn't get nsICommandParams object.", 1);
|
|
|
|
}
|
|
|
|
|
2002-09-21 12:06:16 +04:00
|
|
|
void CnsICmdParams::SetCStringValueTest(char *value, const char *stateType, int displayMode)
|
2002-09-05 06:50:27 +04:00
|
|
|
{
|
|
|
|
cmdParamObj = GetCommandParamObject();
|
|
|
|
if (cmdParamObj) {
|
2002-09-21 12:06:16 +04:00
|
|
|
FormatAndPrintOutput("The input state type = ", stateType, displayMode);
|
|
|
|
FormatAndPrintOutput("The input value = ", value, displayMode);
|
2002-09-05 06:50:27 +04:00
|
|
|
rv = cmdParamObj->SetCStringValue(stateType, value);
|
2002-09-21 12:06:16 +04:00
|
|
|
RvTestResult(rv, "SetCStringValue() test", displayMode);
|
2002-09-05 06:50:27 +04:00
|
|
|
}
|
|
|
|
else
|
|
|
|
QAOutput("SetCStringValueTest(): We didn't get nsICommandParams object.", 1);
|
|
|
|
}
|
|
|
|
|
2002-08-30 12:29:25 +04:00
|
|
|
void CnsICmdParams::OnStartTests(UINT nMenuID)
|
|
|
|
{
|
|
|
|
switch(nMenuID)
|
|
|
|
{
|
|
|
|
case ID_INTERFACES_NSICOMMANDPARAMS_RUNALLTESTS :
|
|
|
|
RunAllTests();
|
|
|
|
break;
|
|
|
|
case ID_INTERFACES_NSICOMMANDPARAMS_GETVALUETYPE :
|
2002-09-21 12:06:16 +04:00
|
|
|
GetValueTypeTest( "cmd_bold", "state_all", 2);
|
2002-08-30 12:29:25 +04:00
|
|
|
break;
|
|
|
|
case ID_INTERFACES_NSICOMMANDPARAMS_GETBOOLEANVALUE :
|
2002-09-21 12:06:16 +04:00
|
|
|
GetBooleanValueTest("cmd_bold", "state_mixed", 2);
|
2002-08-30 12:29:25 +04:00
|
|
|
break;
|
|
|
|
case ID_INTERFACES_NSICOMMANDPARAMS_GETLONGVALUE :
|
2002-09-21 12:06:16 +04:00
|
|
|
GetLongValueTest(57000000, "state_attribute", 2);
|
2002-08-30 12:29:25 +04:00
|
|
|
break;
|
|
|
|
case ID_INTERFACES_NSICOMMANDPARAMS_GETDOUBLEVALUE :
|
2002-09-21 12:06:16 +04:00
|
|
|
GetDoubleValueTest(5.25, "state_attribute", 2);
|
2002-08-30 12:29:25 +04:00
|
|
|
break;
|
|
|
|
case ID_INTERFACES_NSICOMMANDPARAMS_GETSTRINGVALUE :
|
2002-09-21 12:06:16 +04:00
|
|
|
GetStringValueTest("MyString!!", "state_attribute", 2);
|
2002-09-05 06:50:27 +04:00
|
|
|
break;
|
|
|
|
case ID_INTERFACES_NSICOMMANDPARAMS_GETCSTRINGVALUE:
|
2002-09-21 12:06:16 +04:00
|
|
|
GetCStringValueTest("cmd_fontColor", "state_attribute", 2);
|
2002-08-30 12:29:25 +04:00
|
|
|
break;
|
|
|
|
case ID_INTERFACES_NSICOMMANDPARAMS_GETISUPPORTSVALUE :
|
|
|
|
QAOutput("Not implemented yet.", 2);
|
|
|
|
break;
|
|
|
|
case ID_INTERFACES_NSICOMMANDPARAMS_SETBOOLEANVALUE :
|
2002-09-21 12:06:16 +04:00
|
|
|
SetBooleanValueTest(PR_TRUE, "state_attribute", 2);
|
2002-08-30 12:29:25 +04:00
|
|
|
break;
|
|
|
|
case ID_INTERFACES_NSICOMMANDPARAMS_SETLONGVALUE :
|
2002-09-21 12:06:16 +04:00
|
|
|
SetLongValueTest(25000000, "state_attribute", 2);
|
2002-08-30 12:29:25 +04:00
|
|
|
break;
|
|
|
|
case ID_INTERFACES_NSICOMMANDPARAMS_SETDOUBLEVALUE :
|
2002-09-21 12:06:16 +04:00
|
|
|
SetDoubleValueTest(-3.05, "state_attribute", 2);
|
2002-08-30 12:29:25 +04:00
|
|
|
break;
|
|
|
|
case ID_INTERFACES_NSICOMMANDPARAMS_SETSTRINGVALUE :
|
2002-09-21 12:06:16 +04:00
|
|
|
SetStringValueTest("HELLO!", "state_attribute", 2);
|
2002-08-30 12:29:25 +04:00
|
|
|
break;
|
2002-09-05 06:50:27 +04:00
|
|
|
case ID_INTERFACES_NSICOMMANDPARAMS_SETCSTRINGVALUE:
|
2002-09-21 12:06:16 +04:00
|
|
|
SetCStringValueTest("#FF0000", "state_attribute", 2);
|
2002-09-05 06:50:27 +04:00
|
|
|
break;
|
2002-08-30 12:29:25 +04:00
|
|
|
case ID_INTERFACES_NSICOMMANDPARAMS_SETISUPPORTSVALUE :
|
|
|
|
QAOutput("Not implemented yet.", 2);
|
|
|
|
break;
|
|
|
|
case ID_INTERFACES_NSICOMMANDPARAMS_REMOVEVALUE :
|
|
|
|
QAOutput("Not implemented yet.", 2);
|
|
|
|
break;
|
|
|
|
case ID_INTERFACES_NSICOMMANDPARAMS_HASMOREELEMENTS :
|
|
|
|
QAOutput("Not implemented yet.", 2);
|
|
|
|
break;
|
|
|
|
case ID_INTERFACES_NSICOMMANDPARAMS_FIRST :
|
|
|
|
QAOutput("Not implemented yet.", 2);
|
|
|
|
break;
|
|
|
|
case ID_INTERFACES_NSICOMMANDPARAMS_GETNEXT :
|
|
|
|
QAOutput("Not implemented yet.", 2);
|
|
|
|
break;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
void CnsICmdParams::RunAllTests()
|
|
|
|
{
|
|
|
|
cmdParamObj = GetCommandParamObject();
|
|
|
|
if (cmdParamObj)
|
2002-09-21 12:06:16 +04:00
|
|
|
QAOutput("We got nsICommandParams object.", 1);
|
2002-08-30 12:29:25 +04:00
|
|
|
else
|
2002-09-21 12:06:16 +04:00
|
|
|
QAOutput("We didn't get nsICommandParams object.", 1);
|
|
|
|
|
|
|
|
PRInt16 i;
|
|
|
|
|
|
|
|
QAOutput("Run All nsICommandParam Set and Get tests. Check C:/Temp/TestOutput.txt for test results.", 2);
|
|
|
|
for (i=0; i < 50; i++)
|
|
|
|
{
|
|
|
|
FormatAndPrintOutput("loop cnt = ", i, 1);
|
2002-09-24 02:29:24 +04:00
|
|
|
SetBooleanValueTest(CommandTable[i].mBooleanValue, CommandTable[i].mCmdParamState, 1);
|
|
|
|
SetLongValueTest(CommandTable[i].mLongValue, CommandTable[i].mCmdParamState, 1);
|
|
|
|
SetDoubleValueTest(CommandTable[i].mDoubleValue, CommandTable[i].mCmdParamState, 1);
|
|
|
|
SetStringValueTest(CommandTable[i].mStringValue, CommandTable[i].mCmdParamState, 1);
|
|
|
|
SetCStringValueTest(CommandTable[i].mCStringValue, CommandTable[i].mCmdParamState, 1);
|
|
|
|
|
|
|
|
GetValueTypeTest(CommandTable[i].mCmdName, CommandTable[i].mCmdParamState, 1);
|
|
|
|
GetBooleanValueTest(CommandTable[i].mCmdName, CommandTable[i].mCmdParamState, 1);
|
|
|
|
GetLongValueTest(CommandTable[i].mLongValue, CommandTable[i].mCmdParamState, 1);
|
|
|
|
GetDoubleValueTest(CommandTable[i].mDoubleValue, CommandTable[i].mCmdParamState, 1);
|
|
|
|
GetStringValueTest(CommandTable[i].mStringValue, CommandTable[i].mCmdParamState, 1);
|
|
|
|
GetCStringValueTest(CommandTable[i].mCmdName, CommandTable[i].mCmdParamState, 1);
|
2002-09-21 12:06:16 +04:00
|
|
|
}
|
2002-08-30 12:29:25 +04:00
|
|
|
QAOutput("Other tests Not implemented yet.", 2);
|
|
|
|
}
|
|
|
|
|
|
|
|
/////////////////////////////////////////////////////////////////////////////
|
|
|
|
// nsICmdParams message handlers
|