用于EagleEye3.0 规则集漏报和误报测试的示例项目,项目收集于github和gitee
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
 
 
 
 

81 lines
2.5 KiB

var temp_str ='<img src="file://C:\\LDRA_Toolsuite\\images/';
var base_str ='<a href="file://C:\\LDRA_Toolsuite\\';
function TBLaunchit(eParam, eOtherParam)
{
var RunLine;
RunLine= '"' + 'C:\\LDRA_Toolsuite\\TBbrowse.exe' + '"| '
+ '"' + eParam + '"' + ' -Start=' + eOtherParam + ' ';
LDRATBLaunch.ExecuteIt(RunLine);
}
function TBBrowseit_2(eParam, eOtherParam, sourceName)
{
var RunLine;
if (sourceName != undefined)
{
tbbrowseSrc = ' -SourceModule=' + sourceName + '';
}
RunLine= '"' + 'C:\\LDRA_Toolsuite\\tbbrowse.exe' + '"| '
+ '"' + eParam + '"' + ' -Start=' + eOtherParam + ' -End=' + eOtherParam + ' -Language=2' + tbbrowseGlh + tbbrowseSrc + tbbrowseXrefSet +'';
LDRATBLaunch.ExecuteIt(RunLine);
}
function TBBrowseit_h_2(eParam, eOtherParam, h_start_end, sourceName)
{
var RunLine;
if (sourceName != undefined)
{
tbbrowseSrc = ' -SourceModule=' + sourceName + '';
}
RunLine= '"' + 'C:\\LDRA_Toolsuite\\tbbrowse.exe' + '"| '
+ '"' + eParam + '"' + ' -Start=' + eOtherParam + ' -End=' + eOtherParam + ' -Language=2' + tbbrowseGlh + tbbrowseSrc + tbbrowseXrefSet +' -IncludeLines=' + h_start_end + '';
LDRATBLaunch.ExecuteIt(RunLine);
}
function TBBrowseit_6(eParam, eOtherParam, sourceName)
{
var RunLine;
if (sourceName != undefined)
{
tbbrowseSrc = ' -SourceModule=' + sourceName + '';
}
RunLine= '"' + 'C:\\LDRA_Toolsuite\\tbbrowse.exe' + '"| '
+ '"' + eParam + '"' + ' -Start=' + eOtherParam + ' -End=' + eOtherParam + ' -Language=6' + tbbrowseGlh + tbbrowseSrc + tbbrowseXrefSet +'';
LDRATBLaunch.ExecuteIt(RunLine);
}
function TBBrowseit_h_6(eParam, eOtherParam, h_start_end, sourceName)
{
var RunLine;
if (sourceName != undefined)
{
tbbrowseSrc = ' -SourceModule=' + sourceName + '';
}
RunLine= '"' + 'C:\\LDRA_Toolsuite\\tbbrowse.exe' + '"| '
+ '"' + eParam + '"' + ' -Start=' + eOtherParam + ' -End=' + eOtherParam + ' -Language=6' + tbbrowseGlh + tbbrowseSrc + tbbrowseXrefSet +' -IncludeLines=' + h_start_end + '';
LDRATBLaunch.ExecuteIt(RunLine);
}
function TBBrowseit_var_para (eParam, eOtherParam, eOtherParam2)
{
var RunLine;
RunLine= '"' + 'C:\\LDRA_Toolsuite\\tbbrowse.exe' + '"| '
+ '"' + eParam + '"' + " -" + eOtherParam + '=' + '"' + eOtherParam2 + '"' + '' ;
LDRATBLaunch.ExecuteIt(RunLine);
}
var ie_ver = getIE_ver();
function getIE_ver()
{
var ret = -1;
if (navigator.appName == 'Microsoft Internet Explorer')
{
var ua = navigator.userAgent;
var re = new RegExp("MSIE ([0-9]{1,}[.0-9]{0,})");
if (re.exec(ua) != null)
{
ret = parseFloat( RegExp.$1 );
}
}
return ret;
}