han
14 years agoContributor
Bug: Optional parameters in Log.
There seems to be a bug in the Log. functions
The "Optional" Parameters isn't optional!
The "Optional" Parameters isn't optional!
function WarningExample()
{
// Specifies a short description of a warning
var Str = "One instance of the application has already been launched.";
// Specifies extended text for the warning
var ExtStr = "One instance of NOTEPAD.EXE has already been launched on the machine.";
// Specifies a priority for the warning
var Prior = pmHigher;
//...
// Specifies the path to an image
var sImgPath = "C:\\Work\\MyImj.jpg";
// Posts the warning message to the test log
Log.Warning(Str, ExtStr, Prior, , sImgPath);
}
