var _resultXML;
var Tests;
var caps;
-var mandatorylist = new Array(
- "usbHost",
- "screenSizeNormal",
- "inputKeyboard",
- "multiTouchCount");
//var accMarks = {}; //Re-enter popup
var noSupport = {};
var resultFile = "tct-behavior-tests_" + getCurrentTime() + ".result.xml";
$("#mylist > li :last").attr('data-theme', 'r');
}
if (noSupport[$(this).attr("id")]) {
+ $("#mylist > li :last").find("a").attr('href', '');
$("#mylist > li :last").attr('data-theme', 'a');
+ $("#mylist > li :last").find("a").append("<span class='ui-li-count' style='color:black;'>" +
+ "UNSUPPORTED" + "</span>");
}
}
);
function() {
var testAppname = $(this).attr("id");
var isCappresent = true;
- var isCapmandatory = false;
$(this).find("capability").each(function(){
isCappresent = isCapPresent($(this).attr("name"));
- isCapmandatory = isCapMandatory($(this).attr("name"));
if (isCappresent === false)
return false;
});
if(isCappresent === false){
noSupport[testAppname] = true;
- if (isCapmandatory === true)
- $(this).attr("result", "FAIL");
- else
- $(this).attr("result", "PASS");
}
- else
- $(this).attr("result", "non-executed");
+ $(this).attr("result", "N/A");
}
);
}
);
var testAppname = $(this).attr("id");
var isCappresent = true;
- var isCapmandatory = false;
$(this).find("capability").each(function(){
isCappresent = isCapPresent($(this).attr("name"));
- isCapmandatory = isCapMandatory($(this).attr("name"));
if (isCappresent === false)
return false;
});
return false;
}
-function isCapMandatory(name) {
- for (var i = 0; i < mandatorylist.length; i++) {
- if (mandatorylist[i] === name)
- return true;
- };
- return false;
-}
-
-function isCapSupport(name) {
- var isPresent = isCapPresent(name);
- var isMandatory = isCapMandatory(name);
- if ((isPresent == false) && (isMandatory == true))
- return false;
- return true;
-}
-
window.addEventListener('load', initTests, false);