filter: alpha(opacity=60);
z-index:50;
}
+
+.wgtButton {
+ height:40px;
+ line-height:20px;
+}
+
+.hideButton {
+ display:none;
+}
+
+.fontSize {
+ font-size:85%
+}
\ No newline at end of file
// if (!qstr || qstr.indexOf("reenter") < 0)
// $("[href='#popup_info']").click();
});
+
+function checkInstalledPkg(pkgId) {
+ var packageInfo = null;
+ try {
+ if(pkgId && (typeof(tizen) != 'undefined')) {
+ packageInfo = tizen.package.getPackageInfo(pkgId);
+ }
+ } catch (e) {}
+
+ return packageInfo === null ? false : true;
+}
<meta charset="utf-8" />
<meta name="viewport" content="initial-scale=1.0, maximum-scale=1.0, width=device-width">
<link rel="stylesheet" type="text/css" href="../../css/jquery.mobile.css" />
+ <link rel="stylesheet" type="text/css" href="../../css/main.css" />
<link rel="stylesheet" type="text/css" href="css/style.css" />
<script src="../../js/thirdparty/jquery.js"></script>
<script src="../../js/thirdparty/jquery.mobile.js"></script>
<label for="direction-2">To-Left</label>
</fieldset>
<label for="slider-1">Size</label>
- <input type="range" name="slider-1" id="slider-1" data-highlight="true" min="1" max="5" value="3" data-show-value="true" style="display:none">
+ <input type="range" name="slider-1" id="slider-1" data-highlight="true" min="1" max="5" value="3" data-show-value="true" class="hideButton">
<label for="speed-1">Speed</label>
- <input type="range" name="speed-1" id="speed-1" data-highlight="true" min="1" max="10" value="5" data-show-value="true" style="display:none">
+ <input type="range" name="speed-1" id="speed-1" data-highlight="true" min="1" max="10" value="5" data-show-value="true" class="hideButton">
</div>
</div>
<div data-role="footer" data-position="fixed">
</div>
<div data-role="popup" id="popup_info">
- <font style="font-size:85%">
+ <font class="fontSize">
<p>Test Purpose: </p>
<p>Verifies the 3D cube is drawn with red, yellow, blue, green and light blue colors, rotate smoothly and correctly. And tests the functionality of play and pause, rotate direction left or right, size of the cube from 1 to 5, rotate speed from 1 to 10 levels.</p>
<p>Expected Result: </p>
- <p>This test PASS only if all the check points function well during rotation.</p>
+ <p>Test passes if all the check points function well during rotation.</p>
</font>
</div>
</body>
<meta charset="utf-8" />
<meta name="viewport" content="initial-scale=1.0, maximum-scale=1.0, width=device-width">
<link rel="stylesheet" type="text/css" href="../../css/jquery.mobile.css" />
+ <link rel="stylesheet" type="text/css" href="../../css/main.css" />
<script src="../../js/thirdparty/jquery.js"></script>
<script src="../../js/thirdparty/jquery.mobile.js"></script>
<script src="../../js/tests.js"></script>
<div data-role="footer" data-position="fixed">
</div>
<div data-role="popup" id="popup_info">
- <font style="font-size:85%">
+ <font class="fontSize">
<p>Test Purpose: </p>
<p>Verifies the functionality of Accelerometer. And detects the device moving direction is x axis or y axis or z axis.</p>
<p>Expected Result: </p>
- <p>This test PASS only if the detected direction reflects the actual device moving direction.</p>
+ <p>Test passes if the detected direction reflects the actual device moving direction.</p>
</font>
</div>
</body>
-->
<html>
<head>
-<meta charset="utf-8" />
-<meta name="viewport" content="initial-scale=1.0, maximum-scale=1.0, width=device-width" />
-<link rel="stylesheet" type="text/css" href="../../css/jquery.mobile.css" />
-<script src="../../js/thirdparty/jquery.js"></script>
-<script src="../../js/thirdparty/jquery.mobile.js"></script>
-<script src="../../js/tests.js"></script>
-<script src="js/main.js"></script>
+ <meta charset="utf-8" />
+ <meta name="viewport" content="initial-scale=1.0, maximum-scale=1.0, width=device-width" />
+ <link rel="stylesheet" type="text/css" href="../../css/jquery.mobile.css" />
+ <link rel="stylesheet" type="text/css" href="../../css/main.css" />
+ <script src="../../js/thirdparty/jquery.js"></script>
+ <script src="../../js/thirdparty/jquery.mobile.js"></script>
+ <script src="../../js/tests.js"></script>
+ <script src="js/main.js"></script>
</head>
<body>
<div data-role="page" id="main">
<ul data-role="listview">
<li data-role="list-divider">Test the custom feature</li>
<li>
- <div data-role="button" id="install1" style="height:40px; line-height:20px;">Install</div>
+ <div data-role="button" id="install1" class="wgtButton">Install</div>
</li>
<li>
- <div data-role="button" id="launch1" style="height:40px; line-height:20px;">Launch</div>
+ <div data-role="button" id="launch1" class="wgtButton">Launch</div>
</li>
<li data-role="list-divider">Test the regular feature</li>
<li>
- <div data-role="button" id="install2" style="height:40px; line-height:20px;">Install</div>
+ <div data-role="button" id="install2" class="wgtButton">Install</div>
</li>
<li>
- <div data-role="button" id="launch2" style="height:40px; line-height:20px;">Launch</div>
+ <div data-role="button" id="launch2" class="wgtButton">Launch</div>
</li>
<li data-role="list-divider">Packages Uninstall</li>
<li>
- <div data-role="button" id="uninstall" style="height:40px; line-height:20px;">Uninstall</div>
+ <div data-role="button" id="uninstall" class="wgtButton">Uninstall</div>
</li>
</ul>
</div>
<div data-role="footer" data-position="fixed" data-tap-toggle="false">
</div>
<div data-role="popup" id="popup_info" data-theme="a">
- <font style="font-size:85%">
+ <font class="fontSize">
<p>Test Purpose: </p>
<p>Verifies the functionality of launching the Application which control by user instead of system. Tests the two test Applications could be launched by App ID or customized AppControl's "operation" attribute by user.</p>
<p>Test Step: </p>
$("#install1").bind("vclick", function() {
install(installUrl1, "install1");
- $("#launch1").removeClass("ui-disabled");
});
$("#install2").bind("vclick", function() {
install(installUrl2, "install2");
- $("#launch2").removeClass("ui-disabled");
});
$("#launch1").bind("vclick", function() {
launch("app-control1");
- $("#install2").removeClass("ui-disabled");
+ if(checkInstalledPkg("apcontrol2")) {
+ $("#install2").addClass("ui-disabled");
+ $("#launch2").removeClass("ui-disabled");
+ } else {
+ $("#install2").removeClass("ui-disabled");
+ }
});
$("#launch2").bind("vclick", function() {
launch("app-control2");
$("#uninstall").removeClass("ui-disabled");
- EnablePassButton();
});
$("#uninstall").bind("vclick", function() {
- uninstall();
+ ["apcontrol1", "apcontrol2"].forEach(function(package_id) {
+ uninstall(package_id);
+ });
});
try {
tizen.package.setPackageInfoEventListener(packageEventCallback);
$("#launch2").addClass("ui-disabled");
$("#install2").addClass("ui-disabled");
$("#uninstall").addClass("ui-disabled");
+
+ if(checkInstalledPkg("apcontrol1")) {
+ $("#install1").addClass("ui-disabled");
+ $("#launch1").removeClass("ui-disabled");
+ }
});
var packageEventCallback = {
- oninstalled: function(packageInfo) {
- alert("The package " + packageInfo.name + " is installed");
- },
- onupdated: function(packageInfo) {
- alert("The package " + packageInfo.name + " is updated");
- },
- onuninstalled: function(packageId) {
- alert("The package " + packageId + " is uninstalled");
- }
+ oninstalled: function(packageInfo) {
+ alert("The package " + packageInfo.name + " is installed");
+ },
+ onupdated: function(packageInfo) {
+ alert("The package " + packageInfo.name + " is updated");
+ },
+ onuninstalled: function(packageId) {
+ alert("The package " + packageId + " is uninstalled");
+ }
};
function fileURI() {
}
tizen.filesystem.resolve(
- 'documents',
- function(dir){
- documentsDir = dir;
- dir.listFiles(onsuccess, onerror);
- }, function(e) {
- alert("Error" + e.message);
- }, "r"
+ 'documents',
+ function(dir){
+ documentsDir = dir;
+ dir.listFiles(onsuccess, onerror);
+ }, function(e) {
+ alert("Error" + e.message);
+ }, "r"
);
}
-function checkInstalledPkg(pkgId) {
- var packageInfo = null;
- try {
- if(pkgId) {
- packageInfo = tizen.package.getPackageInfo(pkgId);
- }
- } catch (e) {}
-
- return packageInfo === null ? false : true;
-}
-
-function message(pkg) {
- alert("The " + pkg + " is already installed");
-}
-
function install(url, type) {
+
var onInstallationSuccess = {
- onprogress: function(packageId, percentage)
- {
- console.log("On installation(" + packageId + "): progress(" + percentage + ")");
- if(type == "install1")
- $("#install1").html('<div data-role="button" id="install1" style="height:40px; line-height:40px;">Installing... ' + percentage + "%" + '</div>');
- if(type == "install2")
- $("#install2").html('<div data-role="button" id="install2" style="height:40px; line-height:40px;">Installing... ' + percentage + "%" + '</div>');
- },
- oncomplete: function(packageId)
- {
- console.log("Installation(" + packageId + ") Complete");
- if(type == "install1")
- $("#install1").html('<div data-role="button" id="install1" style="height:40px; line-height:40px;">Install</div>');
- if(type == "install2")
- $("#install2").html('<div data-role="button" id="install2" style="height:40px; line-height:40px;">Install</div>');
+ onprogress: function(packageId, percentage)
+ {
+ console.log("On installation(" + packageId + "): progress(" + percentage + ")");
+ if(type == "install1") {
+ $("#install1").html('<div data-role="button" id="install1" style="height:40px; line-height:40px;">Installing... ' + percentage + "%" + '</div>');
+ }
+ if(type == "install2") {
+ $("#install2").html('<div data-role="button" id="install2" style="height:40px; line-height:40px;">Installing... ' + percentage + "%" + '</div>');
}
+ },
+ oncomplete: function(packageId)
+ {
+ console.log("Installation(" + packageId + ") Complete");
+ if(type == "install1") {
+ $("#install1").addClass("ui-disabled");
+ $("#launch1").removeClass("ui-disabled");
+ $("#install1").html('<div data-role="button" id="install1" style="height:40px; line-height:40px;">Install</div>');
+ }
+ if(type == "install2") {
+ $("#install2").addClass("ui-disabled");
+ $("#launch2").removeClass("ui-disabled");
+ $("#install2").html('<div data-role="button" id="install2" style="height:40px; line-height:40px;">Install</div>');
+ }
+ }
}
var onError = function (err) {
- alert("Error occured on installation : " + err.message);
+ console.log("Error occured on installation : " + err.message);
}
try {
- if(type == "install1" && checkInstalledPkg("apcontrol1")) {
- message("CustomPackage");
- } else if(type == "install2" && checkInstalledPkg("apcontrol2")) {
- message("RegularPackage");
- } else {
- tizen.package.install(url, onInstallationSuccess, onError);
- }
+ tizen.package.install(url, onInstallationSuccess, onError);
} catch(e) {
alert("Exception: " + e.name);
}
}
-function uninstall() {
-
- var onUninstallationSuccess1 = {
+function uninstall(package_id) {
- onprogress: function(packageId, percentage)
- {
- console.log("On uninstallation(" + packageId + "): progress(" + percentage + ")");
- $("#uninstall").html('<div data-role="button" id="uninstall" style="height:40px; line-height:40px;">' + pkgName + 'UnInstalling... ' + percentage + "%" + '</div>');
- },
- oncomplete: function(packageId)
- {
- console.log("Uninstallation(" + packageId + ") Complete");
- alert("Please uninstall the next package.");
- tizen.package.uninstall("apcontrol2", onUninstallationSuccess2, onError);
- }
- }
-
- var onUninstallationSuccess2 = {
-
- onprogress: function(packageId, percentage)
- {
- console.log("On uninstallation(" + packageId + "): progress(" + percentage + ")");
- $("#uninstall").html('<div data-role="button" id="uninstall" style="height:40px; line-height:40px;">' + pkgName + 'UnInstalling... ' + percentage + "%" + '</div>');
- },
- oncomplete: function(packageId)
- {
- console.log("Uninstallation(" + packageId + ") Complete");
+ var onUninstallationSuccess = {
+ onprogress: function(packageId, percentage)
+ {
+ console.log("On uninstallation(" + packageId + "): progress(" + percentage + ")");
+ },
+ oncomplete: function(packageId)
+ {
+ console.log("Uninstallation(" + packageId + ") Complete");
+ if(packageId == "apcontrol1") {
$("#launch1").addClass("ui-disabled");
+ }
+ if(packageId == "apcontrol2") {
$("#launch2").addClass("ui-disabled");
- $("#install2").addClass("ui-disabled");
$("#uninstall").addClass("ui-disabled");
- $("#install1").html('<div data-role="button" id="install1" style="height:40px; line-height:40px;">Install</div>');
- $("#install2").html('<div data-role="button" id="install2" style="height:40px; line-height:40px;">Install</div>');
+ EnablePassButton();
}
+ }
}
var onError = function (err) {
- alert("Error occured on installation : " + err.name);
+ console.log("Error occured on installation : " + err.name);
}
try {
- tizen.package.uninstall("apcontrol1", onUninstallationSuccess1, onError);
+ tizen.package.uninstall(package_id, onUninstallationSuccess, onError);
} catch (e) {
alert("Exception: " + e.name);
}
-->
<html>
<head>
-<meta charset="utf-8" />
-<meta name="viewport" content="initial-scale=1.0, maximum-scale=1.0, width=device-width" />
-<title>ApplicationInvisible</title>
-<link rel="stylesheet" type="text/css" href="../../css/jquery.mobile.css" />
-<script src="../../js/thirdparty/jquery.js"></script>
-<script src="../../js/thirdparty/jquery.mobile.js"></script>
-<script src="../../js/tests.js"></script>
-<script src="js/main.js"></script>
-<link rel="stylesheet" type="text/css" href="css/main.css" />
+ <meta charset="utf-8" />
+ <meta name="viewport" content="initial-scale=1.0, maximum-scale=1.0, width=device-width" />
+ <title>ApplicationInvisible</title>
+ <link rel="stylesheet" type="text/css" href="../../css/jquery.mobile.css" />
+ <link rel="stylesheet" type="text/css" href="../../css/main.css" />
+ <script src="../../js/thirdparty/jquery.js"></script>
+ <script src="../../js/thirdparty/jquery.mobile.js"></script>
+ <script src="../../js/tests.js"></script>
+ <script src="js/main.js"></script>
+ <link rel="stylesheet" type="text/css" href="css/main.css" />
</head>
<body>
<div data-role="page" id="main">
<div data-role="footer" data-position="fixed" data-tap-toggle="false">
</div>
<div data-role="popup" id="popup_info" data-theme="a">
+ <font class="fontSize">
<p>Test Purpose: </p>
<p>Verifies js and css animation will suspend when application goes invisible.</p>
<p>Test Step: </p>
<ol>
- <li>Push the "Home" button on device to return to the menu.</li>
- <li>Long touch "Home" button to start the "Task switcher" and select "tct-behavior-tests".</li>
+ <li>Press the "Home" button on device to return to the menu.</li>
+ <li>Long press "Home" button to start the "Task switcher" and select "tct-behavior-tests".</li>
</ol>
<p>Expected Result: </p>
<p>Test passes if the "JS time" is different from the "Difference time" and the "Animation time" is different from the "Difference time" too.</p>
+ </font>
</div>
</div>
</body>
<meta charset="utf-8" />
<meta name="viewport" content="initial-scale=1.0, maximum-scale=1.0, width=device-width" />
<link rel="stylesheet" type="text/css" href="../../css/jquery.mobile.css" />
+ <link rel="stylesheet" type="text/css" href="../../css/main.css" />
<script src="../../js/thirdparty/jquery.js"></script>
<script src="../../js/thirdparty/jquery.mobile.js"></script>
<script src="../../js/tests.js"></script>
</li>
<li data-role="list-divider" role="heading">Clean all the installed packages</li>
<li>
- <div data-role="button" id="wgtClean" style="height:40px; line-height:20px;">Clean all test applications</div>
+ <div data-role="button" id="wgtClean" class="wgtButton">Clean all test applications</div>
</li>
</ul>
</div>
<div data-role="footer" data-position="fixed" data-tap-toggle="false">
</div>
<div data-role="popup" id="popup_info" data-theme="a">
- <font style="font-size:85%">
+ <font class="fontSize">
<p>Test Note: </p>
<p>Verifies the functionality of CSP worked well.</p>
<p>Test Pre-condition: </p>
<p>Test Purpose: </p>
<p>Verifies the functionality of CSP worked well when script-src, object-src, style-src, img-src, media-src, frame-src, font-src, connect-src directives set different values.</p>
<p>Expected Result: </p>
- <p>Test passes if actual result matches expected result in every case.</p>
+ <p>Test passes if all sub-tests pass.</p>
</font>
</div>
</div>
var RESULT_FILE_NAME = "tct-behavior-child.csp.result.xml";
$(document).delegate("#main", "pageinit", function() {
+ DisablePassButton();
$("#wgtClean").bind("vclick", function() {
showTotalBar();
});
} else {
$.mobile.hidePageLoadingMsg();
alert("All widgets is uninstalled!");
+ EnablePassButton();
}
}
}
var onError = function (err) {
- alert("Error occured on installation : " + err.name);
+ console.log("Error occured on installation : " + err.name);
$.mobile.hidePageLoadingMsg();
}
var package_id;
$(document).ready(function(){
+ updateFooterButton();
+ DisablePassButton();
+
wgt_name = $("#wgt_name").val();
app_id = $("#app_id").val();
package_id = $("#package_id").val();
$("#launch").bind("vclick", function() {
launch(app_id);
$('#uninstall').removeClass("ui-disabled");
- EnablePassButton();
});
$("#uninstall").bind("vclick", function() {
uninstall(package_id);
packagePre(wgt_name);
$('#uninstall').addClass("ui-disabled");
$('#launch').addClass("ui-disabled");
- updateFooterButton();
- DisablePassButton();
+
+ if(checkInstalledPkg(package_id)) {
+ $('#install').addClass("ui-disabled");
+ $('#launch').removeClass("ui-disabled");
+ }
});
var packageEventCallback = {
oninstalled: function(packageInfo) {
$.mobile.hidePageLoadingMsg();
- $('#launch').removeClass("ui-disabled");
alert("The package " + packageInfo.name + " is installed");
},
onupdated: function(packageInfo) {
$.mobile.hidePageLoadingMsg();
- $('#launch').removeClass("ui-disabled");
alert("The package " + packageInfo.name + " is updated");
},
onuninstalled: function(packageId) {
$.mobile.hidePageLoadingMsg();
- $('#uninstall').addClass("ui-disabled");
- $('#launch').addClass("ui-disabled");
alert("The package " + packageId + " is uninstalled");
}
}
{
var Url1 = files[i].toURI();
installUrl = Url1.replace("file:///", "/");
- //install();
}
}
}
}
tizen.filesystem.resolve(
- 'documents',
- function(dir){
- documentsDir = dir;
- dir.listFiles(onsuccess, onerror);
- }, function(e) {
- alert("Error" + e.message);
- }, "r"
+ 'documents',
+ function(dir){
+ documentsDir = dir;
+ dir.listFiles(onsuccess, onerror);
+ }, function(e) {
+ alert("Error" + e.message);
+ }, "r"
);
}
-function checkInstalledPkg() {
- var packageInfo = null;
- try {
- if(package_id) {
- packageInfo = tizen.package.getPackageInfo(package_id);
- }
- } catch (e) {}
-
- return packageInfo === null ? false : true;
-}
-
function install() {
var onInstallationSuccess = {
- onprogress: function(packageId, percentage)
- {
- console.log("On installation(" + packageId + "): progress(" + percentage + ")");
- $.mobile.showPageLoadingMsg();
- },
- oncomplete: function(packageId)
- {
- console.log("Installation(" + packageId + ") Complete");
+ onprogress: function(packageId, percentage)
+ {
+ console.log("On installation(" + packageId + "): progress(" + percentage + ")");
+ $.mobile.showPageLoadingMsg();
+ },
+ oncomplete: function(packageId)
+ {
+ console.log("Installation(" + packageId + ") Complete");
+ if(checkInstalledPkg(package_id)) {
+ $('#install').addClass("ui-disabled");
+ $('#launch').removeClass("ui-disabled");
}
+ }
}
var onError = function (err) {
- alert("Error occured on installation : " + err.message);
+ console.log("Error occured on installation : " + err.message);
$.mobile.hidePageLoadingMsg();
}
try {
- if(checkInstalledPkg()) {
- $('#launch').removeClass("ui-disabled");
- alert("The package is already installed");
- } else {
- tizen.package.install(installUrl, onInstallationSuccess, onError);
- }
+ tizen.package.install(installUrl, onInstallationSuccess, onError);
} catch(e) {
alert("Exception: " + e.name);
}
function uninstall(package_id) {
var onUninstallationSuccess = {
- onprogress: function(packageId, percentage)
- {
- console.log("On uninstallation(" + packageId + "): progress(" + percentage + ")");
- $.mobile.showPageLoadingMsg();
- },
- oncomplete: function(packageId)
- {
- console.log("Uninstallation(" + packageId + ") Complete");
- }
+ onprogress: function(packageId, percentage)
+ {
+ console.log("On uninstallation(" + packageId + "): progress(" + percentage + ")");
+ $.mobile.showPageLoadingMsg();
+ },
+ oncomplete: function(packageId)
+ {
+ console.log("Uninstallation(" + packageId + ") Complete");
+ $('#launch').addClass("ui-disabled");
+ $('#uninstall').addClass("ui-disabled");
+ EnablePassButton();
+ }
}
var onError = function (err) {
- alert("Error occured on installation : " + err.name);
+ console.log("Error occured on installation : " + err.name);
$.mobile.hidePageLoadingMsg();
}
);
}
-function backAppsHome() {
- window.close();
-}
-
function reportResult(res) {
var jsonStr="[{\"testname\":\"" + wgt_name + "\",\"result\":\"" + res + "\"}]";
window.opener.postMessage(jsonStr, '*');
backAppsHome();
}
-
-function updateFooterButton(){
- var footbar = $(':jqmData(role=footer)');
- footbar.empty();
- footbar.attr("align", "center");
- footbar.append("<div data-role=\"controlgroup\" data-type=\"horizontal\">" +
- "<a href=\"javascript:reportResult('PASS');\" id=\"pass_button\" data-role=\"button\" data-icon=\"check\" style=\"color: green\">Pass</a>" +
- "<a href=\"javascript:reportResult('FAIL');\" id=\"fail_button\" data-role=\"button\" data-icon=\"delete\" style=\"color: red\">Fail</a>" +
- "<a href=\"#popup_info\" data-role=\"button\" data-icon=\"info\" data-rel=\"popup\" data-transition=\"pop\">Info</a>" +
- "<a href=\"javascript:backAppsHome();\" data-role=\"button\" data-icon=\"home\">Back</a></div>");
-
- footbar.trigger("create");
- footbar.find(':jqmData(role=button) > span:first-child').css('padding', '15px 10px 15px 30px');
- $("#popup_info").popup( "option", "theme", "a");
- var maxHeight = $(window).height() - 100 + "px";
- $("#popup_info").css("max-height", maxHeight);
- $("#popup_info").css("margin-bottom", "30px");
- $("#popup_info").css("overflow-y", "auto");
-}
-
-function EnablePassButton(){
- $('#pass_button').removeClass("ui-disabled");
-}
-
-function DisablePassButton(){
- $('#pass_button').addClass("ui-disabled");
-}
<meta charset="utf-8" />
<meta name="viewport" content="initial-scale=1.0, maximum-scale=1.0, width=device-width" />
<link rel="stylesheet" type="text/css" href="../../../css/jquery.mobile.css" />
+ <link rel="stylesheet" type="text/css" href="../../../css/main.css" />
<script src="../../../js/thirdparty/jquery.js"></script>
<script src="../../../js/thirdparty/jquery.mobile.js"></script>
+ <script src="../../../js/tests.js"></script>
<script src="../js/tests.js"></script>
</head>
<body>
<ul data-role="listview">
<li data-role="list-divider">Package Install</li>
<li>
- <div data-role="button" id="install" style="height:40px; line-height:20px;">Install</div>
+ <div data-role="button" id="install" class="wgtButton">Install</div>
</li>
<li data-role="list-divider">Package Launch</li>
<li>
- <div data-role="button" id="launch" style="height:40px; line-height:20px;">Launch</div>
+ <div data-role="button" id="launch" class="wgtButton">Launch</div>
</li>
<li data-role="list-divider">Package Uninstall</li>
<li>
- <div data-role="button" id="uninstall" style="height:40px; line-height:20px;">Uninstall</div>
+ <div data-role="button" id="uninstall" class="wgtButton">Uninstall</div>
</li>
</ul>
</div>
<div data-role="footer" data-position="fixed" data-tap-toggle="false">
</div>
<div data-role="popup" id="popup_info" data-theme="a">
- <font style="font-size:85%">
+ <font class="fontSize">
<p>Test Step: </p>
<ol>
<li>Click the "Install" button to install the widget.</li>
<li>Click the "Uninstall" button to uninstall the widget.</li>
</ol>
<p>Expected Result: </p>
- <p>Test passes if the "Test1","Test2","Test3","Test4","Test5","Test6","Test7" all passed.</p>
+ <p>Test passes if all "TestN", N=1...7, pass.</p>
</font>
</div>
</div>
<meta charset="utf-8" />
<meta name="viewport" content="initial-scale=1.0, maximum-scale=1.0, width=device-width" />
<link rel="stylesheet" type="text/css" href="../../../css/jquery.mobile.css" />
+ <link rel="stylesheet" type="text/css" href="../../../css/main.css" />
<script src="../../../js/thirdparty/jquery.js"></script>
<script src="../../../js/thirdparty/jquery.mobile.js"></script>
+ <script src="../../../js/tests.js"></script>
<script src="../js/tests.js"></script>
</head>
<body>
<ul data-role="listview">
<li data-role="list-divider">Package Install</li>
<li>
- <div data-role="button" id="install" style="height:40px; line-height:20px;">Install</div>
+ <div data-role="button" id="install" class="wgtButton">Install</div>
</li>
<li data-role="list-divider">Package Launch</li>
<li>
- <div data-role="button" id="launch" style="height:40px; line-height:20px;">Launch</div>
+ <div data-role="button" id="launch" class="wgtButton">Launch</div>
</li>
<li data-role="list-divider">Package Uninstall</li>
<li>
- <div data-role="button" id="uninstall" style="height:40px; line-height:20px;">Uninstall</div>
+ <div data-role="button" id="uninstall" class="wgtButton">Uninstall</div>
</li>
</ul>
</div>
<div data-role="footer" data-position="fixed" data-tap-toggle="false">
</div>
<div data-role="popup" id="popup_info" data-theme="a">
- <font style="font-size:85%">
+ <font class="fontSize">
<p>Test Step: </p>
<ol>
<li>Click the "Install" button to install the widget.</li>
<li>Click the "Uninstall" button to uninstall the widget.</li>
</ol>
<p>Expected Result: </p>
- <p>Test passes if the "Test1","Test2","Test3","Test4","Test5","Test6","Test7","Test8" all passed.</p>
+ <p>Test passes if all "TestN", N=1...8, pass.</p>
</font>
</div>
</div>
<meta charset="utf-8" />
<meta name="viewport" content="initial-scale=1.0, maximum-scale=1.0, width=device-width" />
<link rel="stylesheet" type="text/css" href="../../../css/jquery.mobile.css" />
+ <link rel="stylesheet" type="text/css" href="../../../css/main.css" />
<script src="../../../js/thirdparty/jquery.js"></script>
<script src="../../../js/thirdparty/jquery.mobile.js"></script>
+ <script src="../../../js/tests.js"></script>
<script src="../js/tests.js"></script>
</head>
<body>
<ul data-role="listview">
<li data-role="list-divider">Package Install</li>
<li>
- <div data-role="button" id="install" style="height:40px; line-height:20px;">Install</div>
+ <div data-role="button" id="install" class="wgtButton">Install</div>
</li>
<li data-role="list-divider">Package Launch</li>
<li>
- <div data-role="button" id="launch" style="height:40px; line-height:20px;">Launch</div>
+ <div data-role="button" id="launch" class="wgtButton">Launch</div>
</li>
<li data-role="list-divider">Package Uninstall</li>
<li>
- <div data-role="button" id="uninstall" style="height:40px; line-height:20px;">Uninstall</div>
+ <div data-role="button" id="uninstall" class="wgtButton">Uninstall</div>
</li>
</ul>
</div>
<div data-role="footer" data-position="fixed" data-tap-toggle="false">
</div>
<div data-role="popup" id="popup_info" data-theme="a">
- <font style="font-size:85%">
+ <font class="fontSize">
<p>Test Step: </p>
<ol>
<li>Click the "Install" button to install the widget.</li>
<li>Click the "Uninstall" button to uninstall the widget.</li>
</ol>
<p>Expected Result: </p>
- <p>Test passes if the "Test1","Test2","Test3","Test4","Test5","Test6","Test7" all passed.</p>
+ <p>Test passes if all "TestN", N=1...7, pass.</p>
</font>
</div>
</div>
<meta charset="utf-8" />
<meta name="viewport" content="initial-scale=1.0, maximum-scale=1.0, width=device-width" />
<link rel="stylesheet" type="text/css" href="../../../css/jquery.mobile.css" />
+ <link rel="stylesheet" type="text/css" href="../../../css/main.css" />
<script src="../../../js/thirdparty/jquery.js"></script>
<script src="../../../js/thirdparty/jquery.mobile.js"></script>
+ <script src="../../../js/tests.js"></script>
<script src="../js/tests.js"></script>
</head>
<body>
<ul data-role="listview">
<li data-role="list-divider">Package Install</li>
<li>
- <div data-role="button" id="install" style="height:40px; line-height:20px;">Install</div>
+ <div data-role="button" id="install" class="wgtButton">Install</div>
</li>
<li data-role="list-divider">Package Launch</li>
<li>
- <div data-role="button" id="launch" style="height:40px; line-height:20px;">Launch</div>
+ <div data-role="button" id="launch" class="wgtButton">Launch</div>
</li>
<li data-role="list-divider">Package Uninstall</li>
<li>
- <div data-role="button" id="uninstall" style="height:40px; line-height:20px;">Uninstall</div>
+ <div data-role="button" id="uninstall" class="wgtButton">Uninstall</div>
</li>
</ul>
</div>
<div data-role="footer" data-position="fixed" data-tap-toggle="false">
</div>
<div data-role="popup" id="popup_info" data-theme="a">
- <font style="font-size:85%">
+ <font class="fontSize">
<p>Test Step: </p>
<ol>
<li>Click the "Install" button to install the widget.</li>
<li>Click the "Uninstall" button to uninstall the widget.</li>
</ol>
<p>Expected Result: </p>
- <p>Test passes if the "Test1","Test2","Test3","Test4","Test5","Test6","Test7" all passed.</p>
+ <p>Test passes if all "TestN", N=1...7, pass.</p>
</font>
</div>
</div>
<meta charset="utf-8" />
<meta name="viewport" content="initial-scale=1.0, maximum-scale=1.0, width=device-width" />
<link rel="stylesheet" type="text/css" href="../../../css/jquery.mobile.css" />
+ <link rel="stylesheet" type="text/css" href="../../../css/main.css" />
<script src="../../../js/thirdparty/jquery.js"></script>
<script src="../../../js/thirdparty/jquery.mobile.js"></script>
+ <script src="../../../js/tests.js"></script>
<script src="../js/tests.js"></script>
</head>
<body>
<ul data-role="listview">
<li data-role="list-divider">Package Install</li>
<li>
- <div data-role="button" id="install" style="height:40px; line-height:20px;">Install</div>
+ <div data-role="button" id="install" class="wgtButton">Install</div>
</li>
<li data-role="list-divider">Package Launch</li>
<li>
- <div data-role="button" id="launch" style="height:40px; line-height:20px;">Launch</div>
+ <div data-role="button" id="launch" class="wgtButton">Launch</div>
</li>
<li data-role="list-divider">Package Uninstall</li>
<li>
- <div data-role="button" id="uninstall" style="height:40px; line-height:20px;">Uninstall</div>
+ <div data-role="button" id="uninstall" class="wgtButton">Uninstall</div>
</li>
</ul>
</div>
<div data-role="footer" data-position="fixed" data-tap-toggle="false">
</div>
<div data-role="popup" id="popup_info" data-theme="a">
- <font style="font-size:85%">
+ <font class="fontSize">
<p>Test Step: </p>
<ol>
<li>Click the "Install" button to install the widget.</li>
<li>Click the "Uninstall" button to uninstall the widget.</li>
</ol>
<p>Expected Result: </p>
- <p>Test passes if the "One","Two","Three","Four","Five","Six" all passed.</p>
+ <p>Test passes if the "One","Two","Three","Four","Five","Six" all pass.</p>
</font>
</div>
</div>
<meta charset="utf-8" />
<meta name="viewport" content="initial-scale=1.0, maximum-scale=1.0, width=device-width" />
<link rel="stylesheet" type="text/css" href="../../../css/jquery.mobile.css" />
+ <link rel="stylesheet" type="text/css" href="../../../css/main.css" />
<script src="../../../js/thirdparty/jquery.js"></script>
<script src="../../../js/thirdparty/jquery.mobile.js"></script>
+ <script src="../../../js/tests.js"></script>
<script src="../js/tests.js"></script>
</head>
<body>
<ul data-role="listview">
<li data-role="list-divider">Package Install</li>
<li>
- <div data-role="button" id="install" style="height:40px; line-height:20px;">Install</div>
+ <div data-role="button" id="install" class="wgtButton">Install</div>
</li>
<li data-role="list-divider">Package Launch</li>
<li>
- <div data-role="button" id="launch" style="height:40px; line-height:20px;">Launch</div>
+ <div data-role="button" id="launch" class="wgtButton">Launch</div>
</li>
<li data-role="list-divider">Package Uninstall</li>
<li>
- <div data-role="button" id="uninstall" style="height:40px; line-height:20px;">Uninstall</div>
+ <div data-role="button" id="uninstall" class="wgtButton">Uninstall</div>
</li>
</ul>
</div>
<div data-role="footer" data-position="fixed" data-tap-toggle="false">
</div>
<div data-role="popup" id="popup_info" data-theme="a">
- <font style="font-size:85%">
+ <font class="fontSize">
<p>Test Step: </p>
<ol>
<li>Click the "Install" button to install the widget.</li>
<li>Click the "Uninstall" button to uninstall the widget.</li>
</ol>
<p>Expected Result: </p>
- <p>Test passes if the "One","Two","Three","Four","Five","Six" all passed.</p>
+ <p>Test passes if the "One","Two","Three","Four","Five","Six" all pass.</p>
</font>
</div>
</div>
<meta charset="utf-8" />
<meta name="viewport" content="initial-scale=1.0, maximum-scale=1.0, width=device-width" />
<link rel="stylesheet" type="text/css" href="../../../css/jquery.mobile.css" />
+ <link rel="stylesheet" type="text/css" href="../../../css/main.css" />
<script src="../../../js/thirdparty/jquery.js"></script>
<script src="../../../js/thirdparty/jquery.mobile.js"></script>
+ <script src="../../../js/tests.js"></script>
<script src="../js/tests.js"></script>
</head>
<body>
<ul data-role="listview">
<li data-role="list-divider">Package Install</li>
<li>
- <div data-role="button" id="install" style="height:40px; line-height:20px;">Install</div>
+ <div data-role="button" id="install" class="wgtButton">Install</div>
</li>
<li data-role="list-divider">Package Launch</li>
<li>
- <div data-role="button" id="launch" style="height:40px; line-height:20px;">Launch</div>
+ <div data-role="button" id="launch" class="wgtButton">Launch</div>
</li>
<li data-role="list-divider">Package Uninstall</li>
<li>
- <div data-role="button" id="uninstall" style="height:40px; line-height:20px;">Uninstall</div>
+ <div data-role="button" id="uninstall" class="wgtButton">Uninstall</div>
</li>
</ul>
</div>
<div data-role="footer" data-position="fixed" data-tap-toggle="false">
</div>
<div data-role="popup" id="popup_info" data-theme="a">
- <font style="font-size:85%">
+ <font class="fontSize">
<p>Test Step: </p>
<ol>
<li>Click the "Install" button to install the widget.</li>
<meta charset="utf-8" />
<meta name="viewport" content="initial-scale=1.0, maximum-scale=1.0, width=device-width" />
<link rel="stylesheet" type="text/css" href="../../../css/jquery.mobile.css" />
+ <link rel="stylesheet" type="text/css" href="../../../css/main.css" />
<script src="../../../js/thirdparty/jquery.js"></script>
<script src="../../../js/thirdparty/jquery.mobile.js"></script>
+ <script src="../../../js/tests.js"></script>
<script src="../js/tests.js"></script>
</head>
<body>
<ul data-role="listview">
<li data-role="list-divider">Package Install</li>
<li>
- <div data-role="button" id="install" style="height:40px; line-height:20px;">Install</div>
+ <div data-role="button" id="install" class="wgtButton">Install</div>
</li>
<li data-role="list-divider">Package Launch</li>
<li>
- <div data-role="button" id="launch" style="height:40px; line-height:20px;">Launch</div>
+ <div data-role="button" id="launch" class="wgtButton">Launch</div>
</li>
<li data-role="list-divider">Package Uninstall</li>
<li>
- <div data-role="button" id="uninstall" style="height:40px; line-height:20px;">Uninstall</div>
+ <div data-role="button" id="uninstall" class="wgtButton">Uninstall</div>
</li>
</ul>
</div>
<div data-role="footer" data-position="fixed" data-tap-toggle="false">
</div>
<div data-role="popup" id="popup_info" data-theme="a">
- <font style="font-size:85%">
+ <font class="fontSize">
<p>Test Step: </p>
<ol>
<li>Click the "Install" button to install the widget.</li>
<li>Click the "Uninstall" button to uninstall the widget.</li>
</ol>
<p>Expected Result: </p>
- <p>Test passes if the "Test1","Test2" all passed.</p>
+ <p>Test passes if all "TestN", N=1...2, pass.</p>
</font>
</div>
</div>
<meta charset="utf-8" />
<meta name="viewport" content="initial-scale=1.0, maximum-scale=1.0, width=device-width" />
<link rel="stylesheet" type="text/css" href="../../../css/jquery.mobile.css" />
+ <link rel="stylesheet" type="text/css" href="../../../css/main.css" />
<script src="../../../js/thirdparty/jquery.js"></script>
<script src="../../../js/thirdparty/jquery.mobile.js"></script>
+ <script src="../../../js/tests.js"></script>
<script src="../js/tests.js"></script>
</head>
<body>
<ul data-role="listview">
<li data-role="list-divider">Package Install</li>
<li>
- <div data-role="button" id="install" style="height:40px; line-height:20px;">Install</div>
+ <div data-role="button" id="install" class="wgtButton">Install</div>
</li>
<li data-role="list-divider">Package Launch</li>
<li>
- <div data-role="button" id="launch" style="height:40px; line-height:20px;">Launch</div>
+ <div data-role="button" id="launch" class="wgtButton">Launch</div>
</li>
<li data-role="list-divider">Package Uninstall</li>
<li>
- <div data-role="button" id="uninstall" style="height:40px; line-height:20px;">Uninstall</div>
+ <div data-role="button" id="uninstall" class="wgtButton">Uninstall</div>
</li>
</ul>
</div>
<div data-role="footer" data-position="fixed" data-tap-toggle="false">
</div>
<div data-role="popup" id="popup_info" data-theme="a">
- <font style="font-size:85%">
+ <font class="fontSize">
<p>Test Step: </p>
<ol>
<li>Click the "Install" button to install the widget.</li>
<meta charset="utf-8" />
<meta name="viewport" content="initial-scale=1.0, maximum-scale=1.0, width=device-width" />
<link rel="stylesheet" type="text/css" href="../../../css/jquery.mobile.css" />
+ <link rel="stylesheet" type="text/css" href="../../../css/main.css" />
<script src="../../../js/thirdparty/jquery.js"></script>
<script src="../../../js/thirdparty/jquery.mobile.js"></script>
+ <script src="../../../js/tests.js"></script>
<script src="../js/tests.js"></script>
</head>
<body>
<ul data-role="listview">
<li data-role="list-divider">Package Install</li>
<li>
- <div data-role="button" id="install" style="height:40px; line-height:20px;">Install</div>
+ <div data-role="button" id="install" class="wgtButton">Install</div>
</li>
<li data-role="list-divider">Package Launch</li>
<li>
- <div data-role="button" id="launch" style="height:40px; line-height:20px;">Launch</div>
+ <div data-role="button" id="launch" class="wgtButton">Launch</div>
</li>
<li data-role="list-divider">Package Uninstall</li>
<li>
- <div data-role="button" id="uninstall" style="height:40px; line-height:20px;">Uninstall</div>
+ <div data-role="button" id="uninstall" class="wgtButton">Uninstall</div>
</li>
</ul>
</div>
<div data-role="footer" data-position="fixed" data-tap-toggle="false">
</div>
<div data-role="popup" id="popup_info" data-theme="a">
- <font style="font-size:85%">
+ <font class="fontSize">
<p>Test Step: </p>
<ol>
<li>Click the "Install" button to install the widget.</li>
<li>Click the "Uninstall" button to uninstall the widget.</li>
</ol>
<p>Expected Result: </p>
- <p>Test passes if the "Test1","Test2","Test3","Test4","Test5" all passed.</p>
+ <p>Test passes if all "TestN", N=1...5, pass.</p>
</font>
</div>
</div>
<meta charset="utf-8" />
<meta name="viewport" content="initial-scale=1.0, maximum-scale=1.0, width=device-width" />
<link rel="stylesheet" type="text/css" href="../../../css/jquery.mobile.css" />
+ <link rel="stylesheet" type="text/css" href="../../../css/main.css" />
<script src="../../../js/thirdparty/jquery.js"></script>
<script src="../../../js/thirdparty/jquery.mobile.js"></script>
+ <script src="../../../js/tests.js"></script>
<script src="../js/tests.js"></script>
</head>
<body>
<ul data-role="listview">
<li data-role="list-divider">Package Install</li>
<li>
- <div data-role="button" id="install" style="height:40px; line-height:20px;">Install</div>
+ <div data-role="button" id="install" class="wgtButton">Install</div>
</li>
<li data-role="list-divider">Package Launch</li>
<li>
- <div data-role="button" id="launch" style="height:40px; line-height:20px;">Launch</div>
+ <div data-role="button" id="launch" class="wgtButton">Launch</div>
</li>
<li data-role="list-divider">Package Uninstall</li>
<li>
- <div data-role="button" id="uninstall" style="height:40px; line-height:20px;">Uninstall</div>
+ <div data-role="button" id="uninstall" class="wgtButton">Uninstall</div>
</li>
</ul>
</div>
<div data-role="footer" data-position="fixed" data-tap-toggle="false">
</div>
<div data-role="popup" id="popup_info" data-theme="a">
- <font style="font-size:85%">
+ <font class="fontSize">
<p>Test Step: </p>
<ol>
<li>Click the "Install" button to install the widget.</li>
<meta charset="utf-8" />
<meta name="viewport" content="initial-scale=1.0, maximum-scale=1.0, width=device-width" />
<link rel="stylesheet" type="text/css" href="../../../css/jquery.mobile.css" />
+ <link rel="stylesheet" type="text/css" href="../../../css/main.css" />
<script src="../../../js/thirdparty/jquery.js"></script>
<script src="../../../js/thirdparty/jquery.mobile.js"></script>
+ <script src="../../../js/tests.js"></script>
<script src="../js/tests.js"></script>
</head>
<body>
<ul data-role="listview">
<li data-role="list-divider">Package Install</li>
<li>
- <div data-role="button" id="install" style="height:40px; line-height:20px;">Install</div>
+ <div data-role="button" id="install" class="wgtButton">Install</div>
</li>
<li data-role="list-divider">Package Launch</li>
<li>
- <div data-role="button" id="launch" style="height:40px; line-height:20px;">Launch</div>
+ <div data-role="button" id="launch" class="wgtButton">Launch</div>
</li>
<li data-role="list-divider">Package Uninstall</li>
<li>
- <div data-role="button" id="uninstall" style="height:40px; line-height:20px;">Uninstall</div>
+ <div data-role="button" id="uninstall" class="wgtButton">Uninstall</div>
</li>
</ul>
</div>
<div data-role="footer" data-position="fixed" data-tap-toggle="false">
</div>
<div data-role="popup" id="popup_info" data-theme="a">
- <font style="font-size:85%">
+ <font class="fontSize">
<p>Test Step: </p>
<ol>
<li>Click the "Install" button to install the widget.</li>
<meta charset="utf-8" />
<meta name="viewport" content="initial-scale=1.0, maximum-scale=1.0, width=device-width" />
<link rel="stylesheet" type="text/css" href="../../../css/jquery.mobile.css" />
+ <link rel="stylesheet" type="text/css" href="../../../css/main.css" />
<script src="../../../js/thirdparty/jquery.js"></script>
<script src="../../../js/thirdparty/jquery.mobile.js"></script>
+ <script src="../../../js/tests.js"></script>
<script src="../js/tests.js"></script>
</head>
<body>
<ul data-role="listview">
<li data-role="list-divider">Package Install</li>
<li>
- <div data-role="button" id="install" style="height:40px; line-height:20px;">Install</div>
+ <div data-role="button" id="install" class="wgtButton">Install</div>
</li>
<li data-role="list-divider">Package Launch</li>
<li>
- <div data-role="button" id="launch" style="height:40px; line-height:20px;">Launch</div>
+ <div data-role="button" id="launch" class="wgtButton">Launch</div>
</li>
<li data-role="list-divider">Package Uninstall</li>
<li>
- <div data-role="button" id="uninstall" style="height:40px; line-height:20px;">Uninstall</div>
+ <div data-role="button" id="uninstall" class="wgtButton">Uninstall</div>
</li>
</ul>
</div>
<div data-role="footer" data-position="fixed" data-tap-toggle="false">
</div>
<div data-role="popup" id="popup_info" data-theme="a">
- <font style="font-size:85%">
+ <font class="fontSize">
<p>Test Step: </p>
<ol>
<li>Click the "Install" button to install the widget.</li>
<meta charset="utf-8" />
<meta name="viewport" content="initial-scale=1.0, maximum-scale=1.0, width=device-width" />
<link rel="stylesheet" type="text/css" href="../../../css/jquery.mobile.css" />
+ <link rel="stylesheet" type="text/css" href="../../../css/main.css" />
<script src="../../../js/thirdparty/jquery.js"></script>
<script src="../../../js/thirdparty/jquery.mobile.js"></script>
+ <script src="../../../js/tests.js"></script>
<script src="../js/tests.js"></script>
</head>
<body>
<ul data-role="listview">
<li data-role="list-divider">Package Install</li>
<li>
- <div data-role="button" id="install" style="height:40px; line-height:20px;">Install</div>
+ <div data-role="button" id="install" class="wgtButton">Install</div>
</li>
<li data-role="list-divider">Package Launch</li>
<li>
- <div data-role="button" id="launch" style="height:40px; line-height:20px;">Launch</div>
+ <div data-role="button" id="launch" class="wgtButton">Launch</div>
</li>
<li data-role="list-divider">Package Uninstall</li>
<li>
- <div data-role="button" id="uninstall" style="height:40px; line-height:20px;">Uninstall</div>
+ <div data-role="button" id="uninstall" class="wgtButton">Uninstall</div>
</li>
</ul>
</div>
<div data-role="footer" data-position="fixed" data-tap-toggle="false">
</div>
<div data-role="popup" id="popup_info" data-theme="a">
- <font style="font-size:85%">
+ <font class="fontSize">
<p>Test Step: </p>
<ol>
<li>Click the "Install" button to install the widget.</li>
<meta charset="utf-8" />
<meta name="viewport" content="initial-scale=1.0, maximum-scale=1.0, width=device-width" />
<link rel="stylesheet" type="text/css" href="../../../css/jquery.mobile.css" />
+ <link rel="stylesheet" type="text/css" href="../../../css/main.css" />
<script src="../../../js/thirdparty/jquery.js"></script>
<script src="../../../js/thirdparty/jquery.mobile.js"></script>
+ <script src="../../../js/tests.js"></script>
<script src="../js/tests.js"></script>
</head>
<body>
<ul data-role="listview">
<li data-role="list-divider">Package Install</li>
<li>
- <div data-role="button" id="install" style="height:40px; line-height:20px;">Install</div>
+ <div data-role="button" id="install" class="wgtButton">Install</div>
</li>
<li data-role="list-divider">Package Launch</li>
<li>
- <div data-role="button" id="launch" style="height:40px; line-height:20px;">Launch</div>
+ <div data-role="button" id="launch" class="wgtButton">Launch</div>
</li>
<li data-role="list-divider">Package Uninstall</li>
<li>
- <div data-role="button" id="uninstall" style="height:40px; line-height:20px;">Uninstall</div>
+ <div data-role="button" id="uninstall" class="wgtButton">Uninstall</div>
</li>
</ul>
</div>
<div data-role="footer" data-position="fixed" data-tap-toggle="false">
</div>
<div data-role="popup" id="popup_info" data-theme="a">
- <font style="font-size:85%">
+ <font class="fontSize">
<p>Test Step: </p>
<ol>
<li>Click the "Install" button to install the widget.</li>
<meta charset="utf-8" />
<meta name="viewport" content="initial-scale=1.0, maximum-scale=1.0, width=device-width" />
<link rel="stylesheet" type="text/css" href="../../../css/jquery.mobile.css" />
+ <link rel="stylesheet" type="text/css" href="../../../css/main.css" />
<script src="../../../js/thirdparty/jquery.js"></script>
<script src="../../../js/thirdparty/jquery.mobile.js"></script>
+ <script src="../../../js/tests.js"></script>
<script src="../js/tests.js"></script>
</head>
<body>
<ul data-role="listview">
<li data-role="list-divider">Package Install</li>
<li>
- <div data-role="button" id="install" style="height:40px; line-height:20px;">Install</div>
+ <div data-role="button" id="install" class="wgtButton">Install</div>
</li>
<li data-role="list-divider">Package Launch</li>
<li>
- <div data-role="button" id="launch" style="height:40px; line-height:20px;">Launch</div>
+ <div data-role="button" id="launch" class="wgtButton">Launch</div>
</li>
<li data-role="list-divider">Package Uninstall</li>
<li>
- <div data-role="button" id="uninstall" style="height:40px; line-height:20px;">Uninstall</div>
+ <div data-role="button" id="uninstall" class="wgtButton">Uninstall</div>
</li>
</ul>
</div>
<div data-role="footer" data-position="fixed" data-tap-toggle="false">
</div>
<div data-role="popup" id="popup_info" data-theme="a">
- <font style="font-size:85%">
+ <font class="fontSize">
<p>Test Step: </p>
<ol>
<li>Click the "Install" button to install the widget.</li>
<meta charset="utf-8" />
<meta name="viewport" content="initial-scale=1.0, maximum-scale=1.0, width=device-width" />
<link rel="stylesheet" type="text/css" href="../../../css/jquery.mobile.css" />
+ <link rel="stylesheet" type="text/css" href="../../../css/main.css" />
<script src="../../../js/thirdparty/jquery.js"></script>
<script src="../../../js/thirdparty/jquery.mobile.js"></script>
+ <script src="../../../js/tests.js"></script>
<script src="../js/tests.js"></script>
</head>
<body>
<ul data-role="listview">
<li data-role="list-divider">Package Install</li>
<li>
- <div data-role="button" id="install" style="height:40px; line-height:20px;">Install</div>
+ <div data-role="button" id="install" class="wgtButton">Install</div>
</li>
<li data-role="list-divider">Package Launch</li>
<li>
- <div data-role="button" id="launch" style="height:40px; line-height:20px;">Launch</div>
+ <div data-role="button" id="launch" class="wgtButton">Launch</div>
</li>
<li data-role="list-divider">Package Uninstall</li>
<li>
- <div data-role="button" id="uninstall" style="height:40px; line-height:20px;">Uninstall</div>
+ <div data-role="button" id="uninstall" class="wgtButton">Uninstall</div>
</li>
</ul>
</div>
<div data-role="footer" data-position="fixed" data-tap-toggle="false">
</div>
<div data-role="popup" id="popup_info" data-theme="a">
- <font style="font-size:85%">
+ <font class="fontSize">
<p>Test Step: </p>
<ol>
<li>Click the "Install" button to install the widget.</li>
<meta charset="utf-8" />
<meta name="viewport" content="initial-scale=1.0, maximum-scale=1.0, width=device-width">
<link rel="stylesheet" type="text/css" href="../../css/jquery.mobile.css" />
+ <link rel="stylesheet" type="text/css" href="../../css/main.css" />
<link rel="stylesheet" type="text/css" href="css/style.css" />
<script src="../../js/thirdparty/jquery.js"></script>
<script src="../../js/thirdparty/jquery.mobile.js"></script>
<div data-role="footer" data-position="fixed">
</div>
<div data-role="popup" id="popup_info">
- <font style="font-size:85%">
+ <font class="fontSize">
<p>Test Purpose: </p>
<p>Verifies the CSS box is transferring between square and circle when moving from left to right, its background color is changing in the order of red, green and blue, and the counter record the times of CSS animation from 1 to 10.</p>
<p>Expected Result: </p>
- <p>This test PASS only if the transformation and animation function well.</p>
+ <p>Test passes if the transformation and animation function well.</p>
</font>
</div>
</body>
<meta charset="utf-8" />
<meta name="viewport" content="initial-scale=1.0, maximum-scale=1.0, width=device-width">
<link rel="stylesheet" type="text/css" href="../../css/jquery.mobile.css" />
+ <link rel="stylesheet" type="text/css" href="../../css/main.css" />
<link rel="stylesheet" type="text/css" href="css/style.css" />
<script src="../../js/thirdparty/jquery.js"></script>
<script src="../../js/thirdparty/jquery.mobile.js"></script>
<div data-role="footer" data-position="fixed">
</div>
<div data-role="popup" id="popup_info">
- <font style="font-size:85%">
+ <font class="fontSize">
<p>Test Purpose: </p>
<p>Verifies the div box has a white background, red first letter, green dotted border and genera description uses default font in browser, "column span" uses WOFF font. And tests the functionality of all the text color in red, green or blue, background transparence from 0% to 100%, outline offset from 0 to 15, multicolumn enabling and disabling, text align in left or right, text in uppercase or lowercase, test and box shadow in two effects, text decoration in three effects and word break in two effects. The WOFF text shows in random code when using uppercase.</p>
<p>Expected Result: </p>
- <p>This test PASS only if all the check points function well in the div box.</p>
+ <p>Test passes if all the check points function well in the div box.</p>
</font>
</div>
</body>
<meta charset="utf-8" />
<meta name="viewport" content="initial-scale=1.0, maximum-scale=1.0, width=device-width">
<link rel="stylesheet" type="text/css" href="../../css/jquery.mobile.css" />
+ <link rel="stylesheet" type="text/css" href="../../css/main.css" />
<script src="../../js/thirdparty/jquery.js"></script>
<script src="../../js/thirdparty/jquery.mobile.js"></script>
<script src="../../js/tests.js"></script>
<p id="filename"></p>
<div id="photoShow" align="center" style="height: 210px;line-height:210px;"></div>
</div>
- <input type="file" id="files" accept="image/*" capture="camera" style="display:none" />
+ <input type="file" id="files" accept="image/*" capture="camera" class="hideButton" />
<div align="center">
<input id="button" type="button" value="Launch camera to take a photo" />
</div>
<div data-role="footer" data-position="fixed">
</div>
<div data-role="popup" id="popup_info">
- <font style="font-size:85%">
+ <font class="fontSize">
<p>Test Purpose: </p>
<p>Verifies the functionality of Camera. Opens a device camera, previews the image automatically, then presents the captured photo after clicking the "capture" button.</p>
<p>Expected Result: </p>
- <p>This test PASS only if the camera preview and capture function well.</p>
+ <p>Test passes if the camera preview and capture function well.</p>
</font>
</div>
</body>
<meta charset="utf-8" />
<meta name="viewport" content="initial-scale=1.0, maximum-scale=1.0, width=device-width">
<link rel="stylesheet" type="text/css" href="../../css/jquery.mobile.css" />
+ <link rel="stylesheet" type="text/css" href="../../css/main.css" />
<script src="../../js/thirdparty/jquery.js"></script>
<script src="../../js/thirdparty/jquery.mobile.js"></script>
<script src="../../js/tests.js"></script>
<div data-role="footer" data-position="fixed">
</div>
<div data-role="popup" id="popup_info">
- <font style="font-size:85%">
+ <font class="fontSize">
<p>Test Purpose: </p>
<p>Verifies the functionality of enabling and disabling the Camera preview.</p>
<p>Expected Result: </p>
- <p>This test PASS only if the Camera preview through GetUserMedia functions well.</p>
+ <p>Test passes if the Camera preview through GetUserMedia functions well.</p>
</font>
</div>
</body>
<meta charset="utf-8" />
<meta name="viewport" content="initial-scale=1.0, maximum-scale=1.0, width=device-width">
<link rel="stylesheet" type="text/css" href="../../css/jquery.mobile.css" />
+ <link rel="stylesheet" type="text/css" href="../../css/main.css" />
<script src="../../js/thirdparty/jquery.js"></script>
<script src="../../js/thirdparty/jquery.mobile.js"></script>
<script src="../../js/tests.js"></script>
<div id="content">
<ul data-role="listview">
<li data-role="list-divider">ClipboardApplication Install</li>
- <li><div data-role="button" id="install">Install</div></li>
- <li><div data-role="button" id="launch1">Launch</div></li>
+ <li><div data-role="button" id="install" class="wgtButton">Install</div></li>
+ <li><div data-role="button" id="launch1" class="wgtButton">Launch</div></li>
<li data-role="list-divider">ClipboardApplication Uninstall</li>
- <li><div data-role="button" id="uninstall">Uninstall</div></li>
+ <li><div data-role="button" id="uninstall" class="wgtButton">Uninstall</div></li>
</ul>
</div>
<div data-role="footer" data-position="fixed">
</div>
<div data-role="popup" id="popup_info">
- <font style="font-size:85%">
+ <font class="fontSize">
<p>Test Purpose: </p>
<p>Verifies the device supports clipboard to copy, cut and paste texts. Tests the functionality by long pressing the selected text, choose the "Copy", "Cut" and "Paste" in popup menu.</p>
<p>Pre-condition: </p>
var installUrl;
$(document).delegate("#main", "pageinit", function() {
+ DisablePassButton();
+
$("#install").bind("vclick", function() {
install(installUrl, "install");
- $("#launch1").removeClass("ui-disabled");
});
$("#launch1").bind("vclick", function() {
launch();
} catch (e) {
alert("Exception: " + e.message);
}
- DisablePassButton();
packagePre();
$("#launch1").addClass("ui-disabled");
$("#uninstall").addClass("ui-disabled");
+
+ if(checkInstalledPkg("bclipboard")) {
+ $("#install").addClass("ui-disabled");
+ $("#launch1").removeClass("ui-disabled");
+ }
});
var packageEventCallback = {
);
}
-function checkInstalledPkg(pkgId) {
- var packageInfo = null;
- try {
- if(pkgId) {
- packageInfo = tizen.package.getPackageInfo(pkgId);
- }
- } catch (e) {}
-
- return packageInfo === null ? false : true;
-}
-
function install(url, type) {
var onInstallationSuccess = {
onprogress: function(packageId, percentage)
oncomplete: function(packageId)
{
console.log("Installation(" + packageId + ") Complete");
+ $("#install").addClass("ui-disabled");
+ $("#launch1").removeClass("ui-disabled");
}
}
var onError = function (err) {
- alert("Error occured on installation : " + err.message);
+ console.log("Error occured on installation : " + err.message);
$.mobile.hidePageLoadingMsg();
}
try {
- if(checkInstalledPkg("bclipboard")) {
- alert("The Clipboard application is already installed");
- } else {
- tizen.package.install(url, onInstallationSuccess, onError);
- }
+ tizen.package.install(url, onInstallationSuccess, onError);
} catch (e) {
alert("Exception: " + e.name);
}
},
oncomplete: function(packageId)
{
+ console.log("Uninstallation(" + packageId + ") Complete");
$("#launch1").addClass("ui-disabled");
$("#uninstall").addClass("ui-disabled");
- console.log("Uninstallation(" + packageId + ") Complete");
+ EnablePassButton();
}
}
var onError = function (err) {
- alert("Error occured on installation : " + err.name);
+ console.log("Error occured on installation : " + err.name);
$.mobile.hidePageLoadingMsg();
}
function onError(err) {
alert("launch failed : Clipboard application is already uninstalled or not installed");
}
- EnablePassButton();
+
try {
tizen.application.launch("bclipboard.clipboard", onSuccess, onError);
} catch (exc) {
<meta charset="utf-8" />
<meta name="viewport" content="initial-scale=1.0, maximum-scale=1.0, width=device-width" />
<link rel="stylesheet" type="text/css" href="../../css/jquery.mobile.css" />
+ <link rel="stylesheet" type="text/css" href="../../css/main.css" />
<script src="../../js/thirdparty/jquery.js"></script>
<script src="../../js/thirdparty/jquery.mobile.js"></script>
<script src="../../js/tests.js"></script>
</li>
<li data-role="list-divider" role="heading">Clean all the installed packages</li>
<li>
- <div data-role="button" id="wgtClean" style="height:40px; line-height:20px;">Clean all test applications</div>
+ <div data-role="button" id="wgtClean" class="wgtButton">Clean all test applications</div>
</li>
</ul>
</div>
<div data-role="footer" data-position="fixed" data-tap-toggle="false">
</div>
<div data-role="popup" id="popup_info" data-theme="a">
- <font style="font-size:85%">
+ <font class="fontSize">
<p>Test Note: </p>
<p>Verifies the functionality of tizen-specific widget configuration extension and w3c widget configuration extension.</p>
<p>Test Purpose: </p>
<p>Verifies WRT MUST support additional configuration elements that are not included in W3C Widget Packaging and XML Configuration, like "<tizen:application>", "<tizen:privilege>", "<tizen:setting>" etc.</p>
<p>Expected Result: </p>
- <p>Test passes only if all sub tests passed.</p>
+ <p>Test passes if all sub-tests pass.</p>
</font>
</div>
</div>
var RESULT_FILE_NAME = "tct-behavior-child.ce.result.xml";
$(document).delegate("#main", "pageinit", function() {
+ DisablePassButton();
$("#wgtClean").bind("vclick", function() {
showTotalBar();
});
} else {
$.mobile.hidePageLoadingMsg();
alert("All widgets is uninstalled!");
+ EnablePassButton();
}
}
var onUninstallationSuccess = {
- onprogress: function(packageId, percentage)
- {
- console.log("On uninstallation(" + packageId + "): progress(" + percentage + ")");
- $.mobile.showPageLoadingMsg();
- },
- oncomplete: function(packageId)
- {
- console.log("Uninstallation(" + packageId + ") Complete");
- alert("The package " + packageId + " is uninstalled");
- checkInstalledPackage();
- }
+ onprogress: function(packageId, percentage)
+ {
+ console.log("On uninstallation(" + packageId + "): progress(" + percentage + ")");
+ $.mobile.showPageLoadingMsg();
+ },
+ oncomplete: function(packageId)
+ {
+ console.log("Uninstallation(" + packageId + ") Complete");
+ alert("The package " + packageId + " is uninstalled");
+ checkInstalledPackage();
+ }
}
var onError = function (err) {
- alert("Error occured on installation : " + err.name);
+ console.log("Error occured on installation : " + err.name);
$.mobile.hidePageLoadingMsg();
}
var nolaunch_wgt = new Array('setting-encrypt-enable','setting-encrypt-disable');
$(document).ready(function(){
+ updateFooterButton();
+ DisablePassButton();
+
wgt_name = $("#wgt_name").val();
app_id = $("#app_id").val();
package_id = $("#package_id").val();
$("#install").bind("vclick", function() {
install();
- if(jQuery.inArray(wgt_name, nolaunch_wgt) != -1){
- $('#uninstall').removeClass("ui-disabled");
- EnablePassButton();
- }
});
$("#launch").bind("vclick", function() {
launch(app_id);
$('#uninstall').removeClass("ui-disabled");
- EnablePassButton();
});
$("#uninstall").bind("vclick", function() {
uninstall(package_id);
});
+ if(jQuery.inArray(wgt_name, nolaunch_wgt) != -1){
+ $('#launch').hide();
+ $('#launch_divider').hide();
+ }
try {
tizen.package.setPackageInfoEventListener(packageEventCallback);
} catch (e) {
alert("Exception: " + e.message);
}
- if(jQuery.inArray(wgt_name, nolaunch_wgt) != -1){
- $('#launch').hide();
- $('#launch_divider').hide();
- }
-
packagePre(wgt_name);
$('#uninstall').addClass("ui-disabled");
$('#launch').addClass("ui-disabled");
- updateFooterButton();
- DisablePassButton();
+
+ if(checkInstalledPkg(package_id)) {
+ $('#install').addClass("ui-disabled");
+ if(jQuery.inArray(wgt_name, nolaunch_wgt) != -1){
+ $('#uninstall').removeClass("ui-disabled");
+ } else {
+ $('#launch').removeClass("ui-disabled");
+ }
+ }
});
var packageEventCallback = {
oninstalled: function(packageInfo) {
$.mobile.hidePageLoadingMsg();
- $('#launch').removeClass("ui-disabled");
alert("The package " + packageInfo.name + " is installed");
},
onupdated: function(packageInfo) {
$.mobile.hidePageLoadingMsg();
- $('#launch').removeClass("ui-disabled");
alert("The package " + packageInfo.name + " is updated");
},
onuninstalled: function(packageId) {
$.mobile.hidePageLoadingMsg();
- $('#uninstall').addClass("ui-disabled");
- $('#launch').addClass("ui-disabled");
alert("The package " + packageId + " is uninstalled");
}
}
{
var Url1 = files[i].toURI();
installUrl = Url1.replace("file:///", "/");
- //if(jQuery.inArray(wgt_name, install_wgt) == -1){
- // install();
- //}
}
}
}
);
}
-function checkInstalledPkg() {
- var packageInfo = null;
- try {
- if(package_id) {
- packageInfo = tizen.package.getPackageInfo(package_id);
- }
- } catch (e) {}
-
- return packageInfo === null ? false : true;
-}
-
function install() {
var onInstallationSuccess = {
- onprogress: function(packageId, percentage)
- {
- console.log("On installation(" + packageId + "): progress(" + percentage + ")");
- $.mobile.showPageLoadingMsg();
- },
- oncomplete: function(packageId)
- {
- console.log("Installation(" + packageId + ") Complete");
+ onprogress: function(packageId, percentage)
+ {
+ console.log("On installation(" + packageId + "): progress(" + percentage + ")");
+ $.mobile.showPageLoadingMsg();
+ },
+ oncomplete: function(packageId)
+ {
+ console.log("Installation(" + packageId + ") Complete");
+ $('#install').addClass("ui-disabled");
+ if(jQuery.inArray(wgt_name, nolaunch_wgt) != -1){
+ $('#uninstall').removeClass("ui-disabled");
+ } else {
+ $('#launch').removeClass("ui-disabled");
}
+ }
}
var onError = function (err) {
- EnablePassButton();
- alert("Error occured on installation : " + err.message);
+ console.log("Error occured on installation : " + err.message);
$.mobile.hidePageLoadingMsg();
}
try {
- if(checkInstalledPkg()) {
- $('#launch').removeClass("ui-disabled");
- alert("The package is already installed");
- } else {
- tizen.package.install(installUrl, onInstallationSuccess, onError);
- }
+ tizen.package.install(installUrl, onInstallationSuccess, onError);
} catch(e) {
- $.mobile.hidePageLoadingMsg();
- EnablePassButton();
alert("Exception: " + e.name);
}
}
function uninstall(package_id) {
var onUninstallationSuccess = {
- onprogress: function(packageId, percentage)
- {
- console.log("On uninstallation(" + packageId + "): progress(" + percentage + ")");
- $.mobile.showPageLoadingMsg();
- },
- oncomplete: function(packageId)
- {
- console.log("Uninstallation(" + packageId + ") Complete");
- }
+ onprogress: function(packageId, percentage)
+ {
+ console.log("On uninstallation(" + packageId + "): progress(" + percentage + ")");
+ $.mobile.showPageLoadingMsg();
+ },
+ oncomplete: function(packageId)
+ {
+ console.log("Uninstallation(" + packageId + ") Complete");
+ $('#launch').addClass("ui-disabled");
+ $('#uninstall').addClass("ui-disabled");
+ EnablePassButton();
+ }
}
var onError = function (err) {
- alert("Error occured on installation : " + err.name);
+ console.log("Error occured on installation : " + err.name);
$.mobile.hidePageLoadingMsg();
}
);
}
-function backAppsHome() {
- window.close();
-}
-
function reportResult(res) {
var jsonStr="[{\"testname\":\"" + wgt_name + "\",\"result\":\"" + res + "\"}]";
window.opener.postMessage(jsonStr, '*');
backAppsHome();
-}
-
-function updateFooterButton(){
- var footbar = $(':jqmData(role=footer)');
- footbar.empty();
- footbar.attr("align", "center");
- footbar.append("<div data-role=\"controlgroup\" data-type=\"horizontal\">" +
- "<a href=\"javascript:reportResult('PASS');\" id=\"pass_button\" data-role=\"button\" data-icon=\"check\" style=\"color: green\">Pass</a>" +
- "<a href=\"javascript:reportResult('FAIL');\" id=\"fail_button\" data-role=\"button\" data-icon=\"delete\" style=\"color: red\">Fail</a>" +
- "<a href=\"#popup_info\" data-role=\"button\" data-icon=\"info\" data-rel=\"popup\" data-transition=\"pop\">Info</a>" +
- "<a href=\"javascript:backAppsHome();\" data-role=\"button\" data-icon=\"home\">Back</a></div>");
-
- footbar.trigger("create");
- footbar.find(':jqmData(role=button) > span:first-child').css('padding', '15px 10px 15px 30px');
- $("#popup_info").popup( "option", "theme", "a");
- var maxHeight = $(window).height() - 100 + "px";
- $("#popup_info").css("max-height", maxHeight);
- $("#popup_info").css("margin-bottom", "30px");
- $("#popup_info").css("overflow-y", "auto");
-}
-
-function EnablePassButton(){
- $('#pass_button').removeClass("ui-disabled");
-}
-
-function DisablePassButton(){
- $('#pass_button').addClass("ui-disabled");
-}
+}
\ No newline at end of file
<meta charset="utf-8" />
<meta name="viewport" content="initial-scale=1.0, maximum-scale=1.0, width=device-width" />
<link rel="stylesheet" type="text/css" href="../../../css/jquery.mobile.css" />
+ <link rel="stylesheet" type="text/css" href="../../../css/main.css" />
<script src="../../../js/thirdparty/jquery.js"></script>
<script src="../../../js/thirdparty/jquery.mobile.js"></script>
+ <script src="../../../js/tests.js"></script>
<script src="../js/tests.js"></script>
</head>
<body>
<ul data-role="listview">
<li data-role="list-divider">Package Install</li>
<li>
- <div data-role="button" id="install" style="height:40px; line-height:20px;">Install</div>
+ <div data-role="button" id="install" class="wgtButton">Install</div>
</li>
<li data-role="list-divider">Package Launch</li>
<li>
- <div data-role="button" id="launch" style="height:40px; line-height:20px;">Launch</div>
+ <div data-role="button" id="launch" class="wgtButton">Launch</div>
</li>
<li data-role="list-divider">Package Uninstall</li>
<li>
- <div data-role="button" id="uninstall" style="height:40px; line-height:20px;">Uninstall</div>
+ <div data-role="button" id="uninstall" class="wgtButton">Uninstall</div>
</li>
</ul>
</div>
<div data-role="footer" data-position="fixed" data-tap-toggle="false">
</div>
<div data-role="popup" id="popup_info" data-theme="a">
- <font style="font-size:85%">
+ <font class="fontSize">
<p>Pre-condition: </p>
<p>Make sure the device can access to Internet.</p>
<p>Test Step: </p>
<meta charset="utf-8" />
<meta name="viewport" content="initial-scale=1.0, maximum-scale=1.0, width=device-width" />
<link rel="stylesheet" type="text/css" href="../../../css/jquery.mobile.css" />
+ <link rel="stylesheet" type="text/css" href="../../../css/main.css" />
<script src="../../../js/thirdparty/jquery.js"></script>
<script src="../../../js/thirdparty/jquery.mobile.js"></script>
+ <script src="../../../js/tests.js"></script>
<script src="../js/tests.js"></script>
</head>
<body>
<ul data-role="listview">
<li data-role="list-divider">Package Install</li>
<li>
- <div data-role="button" id="install" style="height:40px; line-height:20px;">Install</div>
+ <div data-role="button" id="install" class="wgtButton">Install</div>
</li>
<li data-role="list-divider">Package Launch</li>
<li>
- <div data-role="button" id="launch" style="height:40px; line-height:20px;">Launch</div>
+ <div data-role="button" id="launch" class="wgtButton">Launch</div>
</li>
<li data-role="list-divider">Package Uninstall</li>
<li>
- <div data-role="button" id="uninstall" style="height:40px; line-height:20px;">Uninstall</div>
+ <div data-role="button" id="uninstall" class="wgtButton">Uninstall</div>
</li>
</ul>
</div>
<div data-role="footer" data-position="fixed" data-tap-toggle="false">
</div>
<div data-role="popup" id="popup_info" data-theme="a">
- <font style="font-size:85%">
+ <font class="fontSize">
<p>Pre-condition: </p>
<p>Make sure the device can access to Internet.</p>
<p>Test Step: </p>
<meta charset="utf-8" />
<meta name="viewport" content="initial-scale=1.0, maximum-scale=1.0, width=device-width" />
<link rel="stylesheet" type="text/css" href="../../../css/jquery.mobile.css" />
+ <link rel="stylesheet" type="text/css" href="../../../css/main.css" />
<script src="../../../js/thirdparty/jquery.js"></script>
<script src="../../../js/thirdparty/jquery.mobile.js"></script>
+ <script src="../../../js/tests.js"></script>
<script src="../js/tests.js"></script>
</head>
<body>
<ul data-role="listview">
<li data-role="list-divider">Package Install</li>
<li>
- <div data-role="button" id="install" style="height:40px; line-height:20px;">Install</div>
+ <div data-role="button" id="install" class="wgtButton">Install</div>
</li>
<li data-role="list-divider">Package Launch</li>
<li>
- <div data-role="button" id="launch" style="height:40px; line-height:20px;">Launch</div>
+ <div data-role="button" id="launch" class="wgtButton">Launch</div>
</li>
<li data-role="list-divider">Package Uninstall</li>
<li>
- <div data-role="button" id="uninstall" style="height:40px; line-height:20px;">Uninstall</div>
+ <div data-role="button" id="uninstall" class="wgtButton">Uninstall</div>
</li>
</ul>
</div>
<div data-role="footer" data-position="fixed" data-tap-toggle="false">
</div>
<div data-role="popup" id="popup_info" data-theme="a">
- <font style="font-size:85%">
+ <font class="fontSize">
<p>Pre-condition: </p>
<p>Make sure the device can access to Internet.</p>
<p>Test Step: </p>
<meta charset="utf-8" />
<meta name="viewport" content="initial-scale=1.0, maximum-scale=1.0, width=device-width" />
<link rel="stylesheet" type="text/css" href="../../../css/jquery.mobile.css" />
+ <link rel="stylesheet" type="text/css" href="../../../css/main.css" />
<script src="../../../js/thirdparty/jquery.js"></script>
<script src="../../../js/thirdparty/jquery.mobile.js"></script>
+ <script src="../../../js/tests.js"></script>
<script src="../js/tests.js"></script>
</head>
<body>
<ul data-role="listview">
<li data-role="list-divider">Package Install</li>
<li>
- <div data-role="button" id="install" style="height:40px; line-height:20px;">Install</div>
+ <div data-role="button" id="install" class="wgtButton">Install</div>
</li>
<li data-role="list-divider">Package Launch</li>
<li>
- <div data-role="button" id="launch" style="height:40px; line-height:20px;">Launch</div>
+ <div data-role="button" id="launch" class="wgtButton">Launch</div>
</li>
<li data-role="list-divider">Package Uninstall</li>
<li>
- <div data-role="button" id="uninstall" style="height:40px; line-height:20px;">Uninstall</div>
+ <div data-role="button" id="uninstall" class="wgtButton">Uninstall</div>
</li>
</ul>
</div>
<div data-role="footer" data-position="fixed" data-tap-toggle="false">
</div>
<div data-role="popup" id="popup_info" data-theme="a">
- <font style="font-size:85%">
+ <font class="fontSize">
<p>Pre-condition: </p>
<p>Make sure the device can access to Internet.</p>
<p>Test Step: </p>
<meta charset="utf-8" />
<meta name="viewport" content="initial-scale=1.0, maximum-scale=1.0, width=device-width" />
<link rel="stylesheet" type="text/css" href="../../../css/jquery.mobile.css" />
+ <link rel="stylesheet" type="text/css" href="../../../css/main.css" />
<script src="../../../js/thirdparty/jquery.js"></script>
<script src="../../../js/thirdparty/jquery.mobile.js"></script>
+ <script src="../../../js/tests.js"></script>
<script src="../js/tests.js"></script>
</head>
<body>
<ul data-role="listview">
<li data-role="list-divider">Package Install</li>
<li>
- <div data-role="button" id="install" style="height:40px; line-height:20px;">Install</div>
+ <div data-role="button" id="install" class="wgtButton">Install</div>
</li>
<li data-role="list-divider">Package Launch</li>
<li>
- <div data-role="button" id="launch" style="height:40px; line-height:20px;">Launch</div>
+ <div data-role="button" id="launch" class="wgtButton">Launch</div>
</li>
<li data-role="list-divider">Package Uninstall</li>
<li>
- <div data-role="button" id="uninstall" style="height:40px; line-height:20px;">Uninstall</div>
+ <div data-role="button" id="uninstall" class="wgtButton">Uninstall</div>
</li>
</ul>
</div>
<div data-role="footer" data-position="fixed" data-tap-toggle="false">
</div>
<div data-role="popup" id="popup_info" data-theme="a">
- <font style="font-size:85%">
+ <font class="fontSize">
<p>Pre-condition: </p>
<p>Set the auto rotate enable in Setting > Display> Auto rotate screen.</p>
<p>Test Step: </p>
<meta charset="utf-8" />
<meta name="viewport" content="initial-scale=1.0, maximum-scale=1.0, width=device-width" />
<link rel="stylesheet" type="text/css" href="../../../css/jquery.mobile.css" />
+ <link rel="stylesheet" type="text/css" href="../../../css/main.css" />
<script src="../../../js/thirdparty/jquery.js"></script>
<script src="../../../js/thirdparty/jquery.mobile.js"></script>
+ <script src="../../../js/tests.js"></script>
<script src="../js/tests.js"></script>
</head>
<body>
<ul data-role="listview">
<li data-role="list-divider">Package Install</li>
<li>
- <div data-role="button" id="install" style="height:40px; line-height:20px;">Install</div>
+ <div data-role="button" id="install" class="wgtButton">Install</div>
</li>
<li data-role="list-divider">Package Launch</li>
<li>
- <div data-role="button" id="launch" style="height:40px; line-height:20px;">Launch</div>
+ <div data-role="button" id="launch" class="wgtButton">Launch</div>
</li>
<li data-role="list-divider">Package Uninstall</li>
<li>
- <div data-role="button" id="uninstall" style="height:40px; line-height:20px;">Uninstall</div>
+ <div data-role="button" id="uninstall" class="wgtButton">Uninstall</div>
</li>
</ul>
</div>
<div data-role="footer" data-position="fixed" data-tap-toggle="false">
</div>
<div data-role="popup" id="popup_info" data-theme="a">
- <font style="font-size:85%">
+ <font class="fontSize">
<p>Test Step: </p>
<ol>
<li>Click the "Install" button to install the widget.</li>
<meta charset="utf-8" />
<meta name="viewport" content="initial-scale=1.0, maximum-scale=1.0, width=device-width" />
<link rel="stylesheet" type="text/css" href="../../../css/jquery.mobile.css" />
+ <link rel="stylesheet" type="text/css" href="../../../css/main.css" />
<script src="../../../js/thirdparty/jquery.js"></script>
<script src="../../../js/thirdparty/jquery.mobile.js"></script>
+ <script src="../../../js/tests.js"></script>
<script src="../js/tests.js"></script>
</head>
<body>
<ul data-role="listview">
<li data-role="list-divider">Package Install</li>
<li>
- <div data-role="button" id="install" style="height:40px; line-height:20px;">Install</div>
+ <div data-role="button" id="install" class="wgtButton">Install</div>
</li>
<li data-role="list-divider">Package Launch</li>
<li>
- <div data-role="button" id="launch" style="height:40px; line-height:20px;">Launch</div>
+ <div data-role="button" id="launch" class="wgtButton">Launch</div>
</li>
<li data-role="list-divider">Package Uninstall</li>
<li>
- <div data-role="button" id="uninstall" style="height:40px; line-height:20px;">Uninstall</div>
+ <div data-role="button" id="uninstall" class="wgtButton">Uninstall</div>
</li>
</ul>
</div>
<div data-role="footer" data-position="fixed" data-tap-toggle="false">
</div>
<div data-role="popup" id="popup_info" data-theme="a">
- <font style="font-size:85%">
+ <font class="fontSize">
<p>Test Step: </p>
<ol>
<li>Click the "Install" button to install the widget.</li>
<meta charset="utf-8" />
<meta name="viewport" content="initial-scale=1.0, maximum-scale=1.0, width=device-width" />
<link rel="stylesheet" type="text/css" href="../../../css/jquery.mobile.css" />
+ <link rel="stylesheet" type="text/css" href="../../../css/main.css" />
<script src="../../../js/thirdparty/jquery.js"></script>
<script src="../../../js/thirdparty/jquery.mobile.js"></script>
+ <script src="../../../js/tests.js"></script>
<script src="../js/tests.js"></script>
</head>
<body>
<ul data-role="listview">
<li data-role="list-divider">Package Install</li>
<li>
- <div data-role="button" id="install" style="height:40px; line-height:20px;">Install</div>
+ <div data-role="button" id="install" class="wgtButton">Install</div>
</li>
<li data-role="list-divider">Package Launch</li>
<li>
- <div data-role="button" id="launch" style="height:40px; line-height:20px;">Launch</div>
+ <div data-role="button" id="launch" class="wgtButton">Launch</div>
</li>
<li data-role="list-divider">Package Uninstall</li>
<li>
- <div data-role="button" id="uninstall" style="height:40px; line-height:20px;">Uninstall</div>
+ <div data-role="button" id="uninstall" class="wgtButton">Uninstall</div>
</li>
</ul>
</div>
<div data-role="footer" data-position="fixed" data-tap-toggle="false">
</div>
<div data-role="popup" id="popup_info" data-theme="a">
- <font style="font-size:85%">
+ <font class="fontSize">
<p>Test Step: </p>
<ol>
<li>Click the "Install" button to install the widget.</li>
<meta charset="utf-8" />
<meta name="viewport" content="initial-scale=1.0, maximum-scale=1.0, width=device-width" />
<link rel="stylesheet" type="text/css" href="../../../css/jquery.mobile.css" />
+ <link rel="stylesheet" type="text/css" href="../../../css/main.css" />
<script src="../../../js/thirdparty/jquery.js"></script>
<script src="../../../js/thirdparty/jquery.mobile.js"></script>
+ <script src="../../../js/tests.js"></script>
<script src="../js/tests.js"></script>
</head>
<body>
<ul data-role="listview">
<li data-role="list-divider">Package Install</li>
<li>
- <div data-role="button" id="install" style="height:40px; line-height:20px;">Install</div>
+ <div data-role="button" id="install" class="wgtButton">Install</div>
</li>
<li data-role="list-divider" id="launch_divider">Package Launch</li>
<li>
- <div data-role="button" id="launch" style="height:40px; line-height:20px;">Launch</div>
+ <div data-role="button" id="launch" class="wgtButton">Launch</div>
</li>
<li data-role="list-divider">Package Uninstall</li>
<li>
- <div data-role="button" id="uninstall" style="height:40px; line-height:20px;">Uninstall</div>
+ <div data-role="button" id="uninstall" class="wgtButton">Uninstall</div>
</li>
</ul>
</div>
<div data-role="footer" data-position="fixed" data-tap-toggle="false">
</div>
<div data-role="popup" id="popup_info" data-theme="a">
- <font style="font-size:85%">
+ <font class="fontSize">
<p>Pre-condition: </p>
<p>Confirm the widget application is not encrypted.</p>
<p>Test Step: </p>
<meta charset="utf-8" />
<meta name="viewport" content="initial-scale=1.0, maximum-scale=1.0, width=device-width" />
<link rel="stylesheet" type="text/css" href="../../../css/jquery.mobile.css" />
+ <link rel="stylesheet" type="text/css" href="../../../css/main.css" />
<script src="../../../js/thirdparty/jquery.js"></script>
<script src="../../../js/thirdparty/jquery.mobile.js"></script>
+ <script src="../../../js/tests.js"></script>
<script src="../js/tests.js"></script>
</head>
<body>
<ul data-role="listview">
<li data-role="list-divider">Package Install</li>
<li>
- <div data-role="button" id="install" style="height:40px; line-height:20px;">Install</div>
+ <div data-role="button" id="install" class="wgtButton">Install</div>
</li>
<li data-role="list-divider" id="launch_divider">Package Launch</li>
<li>
- <div data-role="button" id="launch" style="height:40px; line-height:20px;">Launch</div>
+ <div data-role="button" id="launch" class="wgtButton">Launch</div>
</li>
<li data-role="list-divider">Package Uninstall</li>
<li>
- <div data-role="button" id="uninstall" style="height:40px; line-height:20px;">Uninstall</div>
+ <div data-role="button" id="uninstall" class="wgtButton">Uninstall</div>
</li>
</ul>
</div>
<div data-role="footer" data-position="fixed" data-tap-toggle="false">
</div>
<div data-role="popup" id="popup_info" data-theme="a">
- <font style="font-size:85%">
+ <font class="fontSize">
<p>Pre-condition: </p>
<p>Confirm the widget application is encrypted.</p>
<p>Test Step: </p>
<meta charset="utf-8" />
<meta name="viewport" content="initial-scale=1.0, maximum-scale=1.0, width=device-width" />
<link rel="stylesheet" type="text/css" href="../../../css/jquery.mobile.css" />
+ <link rel="stylesheet" type="text/css" href="../../../css/main.css" />
<script src="../../../js/thirdparty/jquery.js"></script>
<script src="../../../js/thirdparty/jquery.mobile.js"></script>
+ <script src="../../../js/tests.js"></script>
<script src="../js/tests.js"></script>
</head>
<body>
<ul data-role="listview">
<li data-role="list-divider">Package Install</li>
<li>
- <div data-role="button" id="install" style="height:40px; line-height:20px;">Install</div>
+ <div data-role="button" id="install" class="wgtButton">Install</div>
</li>
<li data-role="list-divider">Package Launch</li>
<li>
- <div data-role="button" id="launch" style="height:40px; line-height:20px;">Launch</div>
+ <div data-role="button" id="launch" class="wgtButton">Launch</div>
</li>
<li data-role="list-divider">Package Uninstall</li>
<li>
- <div data-role="button" id="uninstall" style="height:40px; line-height:20px;">Uninstall</div>
+ <div data-role="button" id="uninstall" class="wgtButton">Uninstall</div>
</li>
</ul>
</div>
<div data-role="footer" data-position="fixed" data-tap-toggle="false">
</div>
<div data-role="popup" id="popup_info" data-theme="a">
- <font style="font-size:85%">
+ <font class="fontSize">
<p>Test Step: </p>
<ol>
<li>Click the "Install" button to install the widget.</li>
<meta charset="utf-8" />
<meta name="viewport" content="initial-scale=1.0, maximum-scale=1.0, width=device-width" />
<link rel="stylesheet" type="text/css" href="../../../css/jquery.mobile.css" />
+ <link rel="stylesheet" type="text/css" href="../../../css/main.css" />
<script src="../../../js/thirdparty/jquery.js"></script>
<script src="../../../js/thirdparty/jquery.mobile.js"></script>
+ <script src="../../../js/tests.js"></script>
<script src="../js/tests.js"></script>
</head>
<body>
<ul data-role="listview">
<li data-role="list-divider">Package Install</li>
<li>
- <div data-role="button" id="install" style="height:40px; line-height:20px;">Install</div>
+ <div data-role="button" id="install" class="wgtButton">Install</div>
</li>
<li data-role="list-divider">Package Launch</li>
<li>
- <div data-role="button" id="launch" style="height:40px; line-height:20px;">Launch</div>
+ <div data-role="button" id="launch" class="wgtButton">Launch</div>
</li>
<li data-role="list-divider">Package Uninstall</li>
<li>
- <div data-role="button" id="uninstall" style="height:40px; line-height:20px;">Uninstall</div>
+ <div data-role="button" id="uninstall" class="wgtButton">Uninstall</div>
</li>
</ul>
</div>
<div data-role="footer" data-position="fixed" data-tap-toggle="false">
</div>
<div data-role="popup" id="popup_info" data-theme="a">
- <font style="font-size:85%">
+ <font class="fontSize">
<p>Test Step: </p>
<ol>
<li>Click the "Install" button to install the widget.</li>
<meta charset="utf-8" />
<meta name="viewport" content="initial-scale=1.0, maximum-scale=1.0, width=device-width" />
<link rel="stylesheet" type="text/css" href="../../../css/jquery.mobile.css" />
+ <link rel="stylesheet" type="text/css" href="../../../css/main.css" />
<script src="../../../js/thirdparty/jquery.js"></script>
<script src="../../../js/thirdparty/jquery.mobile.js"></script>
+ <script src="../../../js/tests.js"></script>
<script src="../js/tests.js"></script>
</head>
<body>
<ul data-role="listview">
<li data-role="list-divider">Package Install</li>
<li>
- <div data-role="button" id="install" style="height:40px; line-height:20px;">Install</div>
+ <div data-role="button" id="install" class="wgtButton">Install</div>
</li>
<li data-role="list-divider">Package Launch</li>
<li>
- <div data-role="button" id="launch" style="height:40px; line-height:20px;">Launch</div>
+ <div data-role="button" id="launch" class="wgtButton">Launch</div>
</li>
<li data-role="list-divider">Package Uninstall</li>
<li>
- <div data-role="button" id="uninstall" style="height:40px; line-height:20px;">Uninstall</div>
+ <div data-role="button" id="uninstall" class="wgtButton">Uninstall</div>
</li>
</ul>
</div>
<div data-role="footer" data-position="fixed" data-tap-toggle="false">
</div>
<div data-role="popup" id="popup_info" data-theme="a">
- <font style="font-size:85%">
+ <font class="fontSize">
<p>Test Step: </p>
<ol>
<li>Click the "Install" button to install the widget.</li>
<meta charset="utf-8" />
<meta name="viewport" content="initial-scale=1.0, maximum-scale=1.0, width=device-width" />
<link rel="stylesheet" type="text/css" href="../../../css/jquery.mobile.css" />
+ <link rel="stylesheet" type="text/css" href="../../../css/main.css" />
<script src="../../../js/thirdparty/jquery.js"></script>
<script src="../../../js/thirdparty/jquery.mobile.js"></script>
+ <script src="../../../js/tests.js"></script>
<script src="../js/tests.js"></script>
</head>
<body>
<ul data-role="listview">
<li data-role="list-divider">Package Install</li>
<li>
- <div data-role="button" id="install" style="height:40px; line-height:20px;">Install</div>
+ <div data-role="button" id="install" class="wgtButton">Install</div>
</li>
<li data-role="list-divider">Package Launch</li>
<li>
- <div data-role="button" id="launch" style="height:40px; line-height:20px;">Launch</div>
+ <div data-role="button" id="launch" class="wgtButton">Launch</div>
</li>
<li data-role="list-divider">Package Uninstall</li>
<li>
- <div data-role="button" id="uninstall" style="height:40px; line-height:20px;">Uninstall</div>
+ <div data-role="button" id="uninstall" class="wgtButton">Uninstall</div>
</li>
</ul>
</div>
<div data-role="footer" data-position="fixed" data-tap-toggle="false">
</div>
<div data-role="popup" id="popup_info" data-theme="a">
- <font style="font-size:85%">
+ <font class="fontSize">
<p>Pre-condition: </p>
<p>Insert a memory card into the device.</p>
<p>Test Step: </p>
<meta charset="utf-8" />
<meta name="viewport" content="initial-scale=1.0, maximum-scale=1.0, width=device-width" />
<link rel="stylesheet" type="text/css" href="../../../css/jquery.mobile.css" />
+ <link rel="stylesheet" type="text/css" href="../../../css/main.css" />
<script src="../../../js/thirdparty/jquery.js"></script>
<script src="../../../js/thirdparty/jquery.mobile.js"></script>
+ <script src="../../../js/tests.js"></script>
<script src="../js/tests.js"></script>
</head>
<body>
<ul data-role="listview">
<li data-role="list-divider">Package Install</li>
<li>
- <div data-role="button" id="install" style="height:40px; line-height:20px;">Install</div>
+ <div data-role="button" id="install" class="wgtButton">Install</div>
</li>
<li data-role="list-divider">Package Launch</li>
<li>
- <div data-role="button" id="launch" style="height:40px; line-height:20px;">Launch</div>
+ <div data-role="button" id="launch" class="wgtButton">Launch</div>
</li>
<li data-role="list-divider">Package Uninstall</li>
<li>
- <div data-role="button" id="uninstall" style="height:40px; line-height:20px;">Uninstall</div>
+ <div data-role="button" id="uninstall" class="wgtButton">Uninstall</div>
</li>
</ul>
</div>
<div data-role="footer" data-position="fixed" data-tap-toggle="false">
</div>
<div data-role="popup" id="popup_info" data-theme="a">
- <font style="font-size:85%">
+ <font class="fontSize">
<p>Pre-condition: </p>
<p>Make sure there is no memory card inserted into the device.</p>
<p>Test Step: </p>
<meta charset="utf-8" />
<meta name="viewport" content="initial-scale=1.0, maximum-scale=1.0, width=device-width" />
<link rel="stylesheet" type="text/css" href="../../../css/jquery.mobile.css" />
+ <link rel="stylesheet" type="text/css" href="../../../css/main.css" />
<script src="../../../js/thirdparty/jquery.js"></script>
<script src="../../../js/thirdparty/jquery.mobile.js"></script>
+ <script src="../../../js/tests.js"></script>
<script src="../js/tests.js"></script>
</head>
<body>
<ul data-role="listview">
<li data-role="list-divider">Package Install</li>
<li>
- <div data-role="button" id="install" style="height:40px; line-height:20px;">Install</div>
+ <div data-role="button" id="install" class="wgtButton">Install</div>
</li>
<li data-role="list-divider">Package Launch</li>
<li>
- <div data-role="button" id="launch" style="height:40px; line-height:20px;">Launch</div>
+ <div data-role="button" id="launch" class="wgtButton">Launch</div>
</li>
<li data-role="list-divider">Package Uninstall</li>
<li>
- <div data-role="button" id="uninstall" style="height:40px; line-height:20px;">Uninstall</div>
+ <div data-role="button" id="uninstall" class="wgtButton">Uninstall</div>
</li>
</ul>
</div>
<div data-role="footer" data-position="fixed" data-tap-toggle="false">
</div>
<div data-role="popup" id="popup_info" data-theme="a">
- <font style="font-size:85%">
+ <font class="fontSize">
<p>Pre-condition: </p>
<p>Insert a memory card into the device.</p>
<p>Test Step: </p>
<meta charset="utf-8" />
<meta name="viewport" content="initial-scale=1.0, maximum-scale=1.0, width=device-width" />
<link rel="stylesheet" type="text/css" href="../../css/jquery.mobile.css" />
+ <link rel="stylesheet" type="text/css" href="../../css/main.css" />
<script src="../../js/thirdparty/jquery.js"></script>
<script src="../../js/thirdparty/jquery.mobile.js"></script>
<script src="../../js/tests.js"></script>
<div id="content">
<ul data-role="listview">
<li data-role="list-divider">DragandDropApplication Install</li>
- <li><div data-role="button" id="install">Install</div></li>
- <li><div data-role="button" id="launch1">Launch</div></li>
+ <li><div data-role="button" id="install" class="wgtButton">Install</div></li>
+ <li><div data-role="button" id="launch1" class="wgtButton">Launch</div></li>
<li data-role="list-divider">DragandDropApplication Uninstall</li>
- <li><div data-role="button" id="uninstall">Uninstall</div></li>
+ <li><div data-role="button" id="uninstall" class="wgtButton">Uninstall</div></li>
</ul>
</div>
<div data-role="footer" data-position="fixed" data-tap-toggle="false">
</div>
<div data-role="popup" id="popup_info" data-theme="a">
- <font style="font-size:85%">
+ <font class="fontSize">
<p>Test Purpose: </p>
<p>Verifies the device supports drag and drop functions.</p>
<p>Pre-condition: </p>
var installUrl;
$(document).delegate("#main", "pageinit", function() {
+ DisablePassButton();
+
$("#install").bind("vclick", function() {
install(installUrl, "install");
- $("#launch1").removeClass("ui-disabled");
});
$("#launch1").bind("vclick", function() {
launch();
} catch (e) {
alert("Exception: " + e.message);
}
- DisablePassButton();
+
packagePre();
$("#launch1").addClass("ui-disabled");
$("#uninstall").addClass("ui-disabled");
+
+ if(checkInstalledPkg("bhdragdrop")) {
+ $("#install").addClass("ui-disabled");
+ $("#launch1").removeClass("ui-disabled");
+ }
});
var packageEventCallback = {
);
}
-function checkInstalledPkg(pkgId) {
- var packageInfo = null;
- try {
- if(pkgId) {
- packageInfo = tizen.package.getPackageInfo(pkgId);
- }
- } catch (e) {}
-
- return packageInfo === null ? false : true;
-}
-
function install(url, type) {
var onInstallationSuccess = {
onprogress: function(packageId, percentage)
oncomplete: function(packageId)
{
console.log("Installation(" + packageId + ") Complete");
+ if(checkInstalledPkg("bhdragdrop")) {
+ $("#install").addClass("ui-disabled");
+ $("#launch1").removeClass("ui-disabled");
+ }
}
}
var onError = function (err) {
- alert("Error occured on installation : " + err.message);
+ console.log("Error occured on installation : " + err.message);
$.mobile.hidePageLoadingMsg();
}
try {
- if(checkInstalledPkg("bhdragdrop")) {
- alert("The DragandDrop application is already installed");
- } else {
- tizen.package.install(url, onInstallationSuccess, onError);
- }
+ tizen.package.install(url, onInstallationSuccess, onError);
} catch(e) {
alert("Exception: " + e.name);
}
},
oncomplete: function(packageId)
{
+ console.log("Uninstallation(" + packageId + ") Complete");
$("#launch1").addClass("ui-disabled");
$("#uninstall").addClass("ui-disabled");
- console.log("Uninstallation(" + packageId + ") Complete");
+ EnablePassButton();
}
}
var onError = function (err) {
- alert("Error occured on installation : " + err.name);
+ console.log("Error occured on installation : " + err.name);
$.mobile.hidePageLoadingMsg();
}
function onError(err) {
alert("launch failed : DragandDrop application is already uninstalled or not installed");
}
- EnablePassButton();
try {
tizen.application.launch("bhdragdrop.DragandDrop", onSuccess, onError);
} catch (exc) {
<meta charset="utf-8" />
<meta name="viewport" content="initial-scale=1.0, maximum-scale=1.0, width=device-width" />
<link rel="stylesheet" type="text/css" href="../../css/jquery.mobile.css" />
+ <link rel="stylesheet" type="text/css" href="../../css/main.css" />
<script src="../../js/thirdparty/jquery.js"></script>
<script src="../../js/thirdparty/jquery.mobile.js"></script>
<script src="../../js/tests.js"></script>
<ul data-role="listview">
<li data-role="list-divider">Package Install</li>
<li>
- <div data-role="button" id="install" style="height:40px; line-height:20px;">Install</div>
+ <div data-role="button" id="install" class="wgtButton">Install</div>
</li>
<li data-role="list-divider">TestPackage Application Launch</li>
<li>
- <div data-role="button" id="launch" style="height:40px; line-height:20px;">Launch</div>
+ <div data-role="button" id="launch" class="wgtButton">Launch</div>
</li>
<li data-role="list-divider">Package Uninstall</li>
<li>
- <div data-role="button" id="uninstall" style="height:40px; line-height:20px;">Uninstall</div>
+ <div data-role="button" id="uninstall" class="wgtButton">Uninstall</div>
</li>
</ul>
</div>
<div data-role="footer" data-position="fixed" data-tap-toggle="false">
</div>
<div data-role="popup" id="popup_info" data-theme="a">
- <font style="font-size:85%">
+ <font class="fontSize">
<p>Test Purpose: </p>
<p>Verifies the functionality of DynamicBox application: mouse event, visibility event and unload event for DynamicBox.</p>
<p>Test Step: </p>
<ol>
<li>Click the "Install" button, test step passes if app widgets are successfully installed.</li>
- <li>Click the "Launch" button to launch the DynamicBox Viewer. After each step below, touch "Back" key (soft or hard key) to go forward next step:</li>
+ <li>Click the "Launch" button to launch the DynamicBox Viewer. After each step below, press "Back" key (soft or hard key) to go forward next step:</li>
<ol>
<li>Click the "Mouse event false"; move the red filled square; test step passes if the square does NOT move without clicking 'Move' button and if the square moves with 'Move' button clicking;</li>
<li>Click the "Sample"; test step passes if there is a green 'Pass' text;</li>
<li>Click the "AppWidget Unload event"; wait 5 seconds; test step passes if there are several 'pass' displayed;</li>
- <li>Click the "Dynamic Box"; touch the menu button to select size 354x354; then drag down the box; test step passes if there apears a button "Send message to Box", and click the button, "Hello, Dynamic Box" appends into the box;</li>
+ <li>Click the "Dynamic Box"; press the menu button to select size 354x354; then drag down the box; test step passes if there apears a button "Send message to Box", and click the button, "Hello, Dynamic Box" appends into the box;</li>
- <li>Click the "AppWidget Content mouse event"; touch the red filled square; test step passes if the red square changes to green square;</li>
+ <li>Click the "AppWidget Content mouse event"; press the red filled square; test step passes if the red square changes to green square;</li>
<li>Click the "AppWidget Load event"; test step passes if there is a green 'Pass' text;</li>
<li>Click the "Visibility widget"; test step passes if there is a green 'Pass' text, and after drag down the 'Pass' there appears 'PD index.html';</li>
- <li>Click the "Size Decoration"; touch the menu button to select box size; test step passes if the box in '354x354' size has different frame decoration from those in '175x175' and '345x175' sizes;</li>
- <li>Click the "Size Preview"; touch the menu button; test step passes if there are icons in the size list.</li>
+ <li>Click the "Size Decoration"; press the menu button to select box size; test step passes if the box in '354x354' size has different frame decoration from those in '175x175' and '345x175' sizes;</li>
+ <li>Click the "Size Preview"; press the menu button; test step passes if there are icons in the size list.</li>
</ol>
<li>Click the "Uninstall" button, test step passes if app widgets are uninstalled successfully.</li>
</ol>
'wrt6awb003',
'wrt6awb005');
-var id_maps = {'app-widget-mouse-event-false.wgt': 'wrt6awi014',
+var id_maps = {'rMLtTXzQr2-2.0.0-arm.tpk': 'rMLtTXzQr2',
+ 'SD2nFxbyeA-2.0.0-i386.tpk': 'SD2nFxbyeA',
+ 'app-widget-mouse-event-false.wgt': 'wrt6awi014',
'app-widget-sample.wgt': 'wrt6app001',
'app-widget-unload-event.wgt': 'wrt6aws017',
'app-widget-box-appwidgetready-event.wgt': 'wrt6awb006',
$("#launch").bind("vclick", function() {
launch(launch_tpk);
$("#uninstall").removeClass("ui-disabled");
- EnablePassButton();
});
$("#uninstall").bind("vclick", function() {
uninstall(package_ids[uninstall_number]);
}
gettpkInfoByPlatForm();
packagePre(wgt_names[install_number]);
+
$("#launch").addClass("ui-disabled");
$("#uninstall").addClass("ui-disabled");
});
);
}
-function checkInstalledPkg(pkgId) {
- var packageInfo = null;
- try {
- if(pkgId) {
- packageInfo = tizen.package.getPackageInfo(pkgId);
- }
- } catch (e) {}
-
- return packageInfo === null ? false : true;
-}
-
function checkWgtName(filePath) {
var name = "";
wgt_names.forEach(function (wgt_name) {
}
function install() {
- $("#launch").addClass("ui-disabled");
var totalBar = Math.floor(install_number / wgt_names.length * 100);
var onInstallationSuccess = {
onprogress: function(packageId, percentage)
oncomplete: function(packageId)
{
console.log("Installation(" + packageId + ") Complete");
- $("#launch").removeClass("ui-disabled");
install_number++;
if(install_number < wgt_names.length){
packagePre(wgt_names[install_number]);
install_number = 0;
$.mobile.loading('hide');
alert("All widgets is installed!");
+ $("#install").addClass("ui-disabled");
+ $("#launch").removeClass("ui-disabled");
}
}
}
var onError = function (err) {
$.mobile.loading('hide');
$("#launch").removeClass("ui-disabled");
- alert("Error occured on installation : " + err.message);
+ console.log("Error occured on installation : " + err.message);
}
try {
var wgt_name = checkWgtName(installUrl);
if (wgt_name && checkInstalledPkg(id_maps[wgt_name])) {
- alert("Package " + id_maps[wgt_name] + " is already installed");
- $("#launch").removeClass("ui-disabled");
install_number++;
if(install_number < wgt_names.length){
packagePre(wgt_names[install_number]);
install_number = 0;
$.mobile.loading('hide');
alert("All widgets is installed!");
+ $("#install").addClass("ui-disabled");
+ $("#launch").removeClass("ui-disabled");
}
} else {
tizen.package.install(installUrl, onInstallationSuccess, onError);
$("#launch").addClass("ui-disabled");
$("#uninstall").addClass("ui-disabled");
alert("All widgets is uninstalled!");
+ EnablePassButton();
}
}
}
var onError = function (err) {
$.mobile.loading('hide');
- alert("Error occured on installation : " + err.name);
+ console.log("Error occured on installation : " + err.name);
}
try {
<meta charset="utf-8" />
<meta name="viewport" content="initial-scale=1.0, maximum-scale=1.0, width=device-width">
<link rel="stylesheet" type="text/css" href="../../css/jquery.mobile.css" />
+ <link rel="stylesheet" type="text/css" href="../../css/main.css" />
<link rel="stylesheet" type="text/css" href="css/style.css" />
<script src="../../js/thirdparty/jquery.js"></script>
<script src="../../js/thirdparty/jquery.mobile.js"></script>
<div data-role="footer" data-position="fixed">
</div>
<div data-role="popup" id="popup_info">
- <font style="font-size:85%">
+ <font class="fontSize">
<p>Test Purpose: </p>
<p>Verifies the functionality of File Reader. Tests the functionality of loading one or multiple files, opening the files one by one by clicking the hyperlink in file name.</p>
<p>Test Pre-configuration: </p>
<p>Ensure at least one txt file is located in device.</p>
<p>Expected Result: </p>
- <p>This test PASS only if the file uploading functions well, file size shows correctly and file content could be printed on the screen.</p>
+ <p>Test passes if
+ <li>the file uploading function well.</li>
+ <li>file size show correctly.</li>
+ <li>file content could be printed on the screen.</li>
+ </p>
</font>
</div>
</body>
<meta charset="utf-8" />
<meta name="viewport" content="initial-scale=1.0, maximum-scale=1.0, width=device-width">
<link rel="stylesheet" type="text/css" href="../../css/jquery.mobile.css" />
+ <link rel="stylesheet" type="text/css" href="../../css/main.css" />
<script src="../../js/thirdparty/jquery.js"></script>
<script src="../../js/thirdparty/jquery.mobile.js"></script>
<script src="../../js/tests.js"></script>
<li data-role="list-divider" id="labelFullScreen">FullScreen</li>
<li id ="buttonFullScreen">
<div data-role="button" id="requestFullScreen">Request</div>
- <div data-role="button" id="cancelFullScreen" style="display: none">Cancle FullScreen</div>
+ <div data-role="button" id="cancelFullScreen" class="hideButton">Cancle FullScreen</div>
</li>
<li data-role="list-divider" id="labelcssFullScreen">CSS FullScreen</li>
<li id ="buttoncssFullScreen">
<div data-role="button" id="cssFullScreen">Request</div>
- <div data-role="button" id="cancelCssFullScreen" style="display: none">Cancle CSS FullScreen</div>
+ <div data-role="button" id="cancelCssFullScreen" class="hideButton">Cancle CSS FullScreen</div>
</li>
</ul>
</div>
<div data-role="footer" data-position="fixed">
</div>
<div data-role="popup" id="popup_info">
- <font style="font-size:85%">
+ <font class="fontSize">
<p>Test Purpose: </p>
<p>Verifies the full screen mode and CSS full screen mode could be enabled and cancelled. The CSS full screen mode is filled with green color in background.</p>
<p>Expected Result: </p>
- <p>This test PASS only if full screen mode and CSS full screen mode function well.</p>
+ <p>Test passes if full screen mode and CSS full screen mode function well.</p>
</font>
</div>
</body>
<meta name="viewport" content="initial-scale=1.0, maximum-scale=1.0, width=device-width" />
<title>HybridApplication</title>
<link rel="stylesheet" type="text/css" href="../../css/jquery.mobile.css" />
+ <link rel="stylesheet" type="text/css" href="../../css/main.css" />
<script src="../../js/thirdparty/jquery.js"></script>
<script src="../../js/thirdparty/jquery.mobile.js"></script>
<script src="../../js/tests.js"></script>
<div id="content">
<ul data-role="listview">
<li data-role="list-divider">HybridApplication Install</li>
- <li><div data-role="button" id="install">Install</div></li>
- <li><div data-role="button" id="launch1">Launch</div></li>
+ <li><div data-role="button" id="install" class="wgtButton">Install</div></li>
+ <li><div data-role="button" id="launch1" class="wgtButton">Launch</div></li>
<li data-role="list-divider">HybridApplication Update</li>
- <li><div data-role="button" id="update">Update</div></li>
- <li><div data-role="button" id="launch2">Launch</div></li>
+ <li><div data-role="button" id="update" class="wgtButton">Update</div></li>
+ <li><div data-role="button" id="launch2" class="wgtButton">Launch</div></li>
<li data-role="list-divider">HybridApplication Uninstall</li>
- <li><div data-role="button" id="uninstall">Uninstall</div></li>
- <li><div data-role="button" id="launch3">Try to Launch</div></li>
+ <li><div data-role="button" id="uninstall" class="wgtButton">Uninstall</div></li>
+ <li><div data-role="button" id="launch3" class="wgtButton">Try to Launch</div></li>
</ul>
</div>
<div data-role="footer" data-position="fixed" data-tap-toggle="false">
</div>
<div data-role="popup" id="popup_info" data-theme="a">
- <font style="font-size:85%">
+ <font class="fontSize">
<p>Test Purpose: </p>
<p>Verifies the functionality of hybrid application. Tests the functionality of two hybrid applications installation, uninstallation, launching, update and communicating with the native application by clicking the "START/ STOP" buttons, clearing the messages by clicking the "CLEAR" button. And quit the hybrid application by clicking the "RETURN" button.</p>
<ol>
<li>Click the "Try to Launch" button to launch the Hybrid app, it will get an error msg.</li>
</ol>
<p>Expected Result: </p>
- <p>Test passes only if all the test points function well.</p>
+ <p>Test passes if all the test points function well.</p>
</font>
</div>
</div>
*/
var installUrl, updateUrl, platformName, packagePath;
-var flag = false;
-var install_flag = false;
-var update_flag = false;
-var uninstall_flag = false;
+var opened_flag = false;
$(document).delegate("#main", "pageinit", function() {
DisablePassButton();
+
$("#install").bind("vclick", function() {
install(installUrl, "install");
- $("#launch1").removeClass("ui-disabled");
});
- $("#uninstall").bind("vclick", function() {
- uninstall();
- $("#launch3").removeClass("ui-disabled");
+ $("#launch1").bind("vclick", function() {
+ launch();
+ if (!opened_flag) {
+ opened_flag = true;
+ $("#update").removeClass("ui-disabled");
+ }
});
$("#update").bind("vclick", function() {
install(updateUrl, "update");
- $("#launch2").removeClass("ui-disabled");
- });
- $("#launch1").bind("vclick", function() {
- launch();
- $("#update").removeClass("ui-disabled");
});
$("#launch2").bind("vclick", function() {
launch();
$("#uninstall").removeClass("ui-disabled");
});
+ $("#uninstall").bind("vclick", function() {
+ uninstall();
+ });
$("#launch3").bind("vclick", function() {
launch();
+ EnablePassButton();
});
try {
tizen.package.setPackageInfoEventListener(packageEventCallback);
$("#launch1").addClass("ui-disabled");
$("#launch2").addClass("ui-disabled");
$("#launch3").addClass("ui-disabled");
- $("#uninstall").addClass("ui-disabled");
$("#update").addClass("ui-disabled");
+ $("#uninstall").addClass("ui-disabled");
+
+ if(checkInstalledPkg("bhtchybrid")) {
+ $("#install").addClass("ui-disabled");
+ $("#launch1").removeClass("ui-disabled");
+ }
});
var packageEventCallback = {
oninstalled: function(packageInfo) {
hideProcess();
alert("The application " + packageInfo.name + " is installed");
- flag = true;
- install_flag = true;
},
onupdated: function(packageInfo) {
hideProcess();
alert("The application " + packageInfo.name + " is updated");
- flag = true;
- update_flag = true;
+ $("#update").removeClass("ui-disabled");
},
onuninstalled: function(packageId) {
hideProcess();
alert("The Hybrid application is uninstalled");
- flag = false;
- uninstall_flag = true;
}
};
oncomplete: function(packageId)
{
console.log("Installation(" + packageId + ") Complete");
+ if (type == "install") {
+ $("#install").addClass("ui-disabled");
+ $("#launch1").removeClass("ui-disabled");
+ }
+ if (type == "update") {
+ $("#update").addClass("ui-disabled");
+ $("#launch2").removeClass("ui-disabled");
+ }
}
}
var onError = function (err) {
- alert("Error occured on installation : " + err.name);
+ console.log("Error occured on installation : " + err.name);
$.mobile.hidePageLoadingMsg();
}
oncomplete: function(packageId)
{
console.log("Uninstallation(" + packageId + ") Complete");
+ $("#launch1").addClass("ui-disabled");
+ $("#launch2").addClass("ui-disabled");
+ $("#uninstall").addClass("ui-disabled");
+ $("#launch3").removeClass("ui-disabled");
}
}
var onError = function (err) {
- alert("Error occured on installation : " + err.name);
+ console.log("Error occured on installation : " + err.name);
$.mobile.hidePageLoadingMsg();
}
try {
- if(flag == false)
- alert("The Hybrid application is already uninstalled or not installed");
- else
- tizen.package.uninstall("bhtchybrid", onUninstallationSuccess, onError);
+ tizen.package.uninstall("bhtchybrid", onUninstallationSuccess, onError);
} catch (e) {
alert("Exception: " + e.name);
}
}
try {
- if(install_flag == true && update_flag == true && uninstall_flag == true) {
- EnablePassButton();
- }
tizen.application.launch("bhtchybrid.HybridApp", onSuccess, onError);
} catch (exc) {
alert("launch exc:" + exc.message);
<meta charset="utf-8" />
<meta name="viewport" content="initial-scale=1.0, maximum-scale=1.0, width=device-width">
<link rel="stylesheet" type="text/css" href="../../css/jquery.mobile.css" />
+ <link rel="stylesheet" type="text/css" href="../../css/main.css" />
<link rel="stylesheet" type="text/css" href="css/style.css"/>
<script src="../../js/thirdparty/jquery.js"></script>
<script src="../../js/thirdparty/jquery.mobile.js"></script>
<script src="../../js/tests.js"></script>
<script src="js/main.js"></script>
+ <style>
+ .observate {
+ border: #000 solid 1px;
+ height: 220px;
+ margin-bottom: 10px;
+ }
+ .display {
+ margin: 3px;
+ }
+ </style>
</head>
<body onload="initialize()">
<div data-role="header">
<h1 id="main_page_title"></h1>
</div>
<div data-role="content">
- <div id="observateEare" style="border: #000 solid 1px;height: 220px;margin-bottom: 10px;">
+ <div id="observateEare" class="observate">
<ul id="coordinate">
- <li id="latitudeDiv" style="margin: 3px;">Latitude: n/a</li>
- <li id="longitudeDiv" style="margin: 3px;">Longitude: n/a</li>
- <li id="speedDiv" style="margin: 3px;">Speed: n/a</li>
+ <li id="latitudeDiv" class="display">Latitude: n/a</li>
+ <li id="longitudeDiv" class="display">Longitude: n/a</li>
+ <li id="speedDiv" class="display">Speed: n/a</li>
</ul>
<p id="errormessage"></p>
</div>
<div data-role="footer" data-position="fixed">
</div>
<div data-role="popup" id="popup_info">
- <font style="font-size:85%">
+ <font class="fontSize">
<p>Test Purpose: </p>
<p>Verifies the location information of latitude and longitude position can be fetched through GPS.</p>
<p>Test Pre-configuration: </p>
<p>Ensure device networking is disabled and GPS is enabled.</p>
<p>Expected Result: </p>
- <p>This test PASS only if the latitude and longitude return the correct position data.</p>
+ <p>Test passes if both the latitude and longitude return the correct position data.</p>
</font>
</div>
</body>
<meta charset="utf-8" />
<meta name="viewport" content="initial-scale=1.0, maximum-scale=1.0, width=device-width">
<link rel="stylesheet" type="text/css" href="../../css/jquery.mobile.css" />
+ <link rel="stylesheet" type="text/css" href="../../css/main.css" />
<link rel="stylesheet" type="text/css" href="css/style.css"/>
<script src="../../js/thirdparty/jquery.js"></script>
<script src="../../js/thirdparty/jquery.mobile.js"></script>
<script src="../../js/tests.js"></script>
<script type="text/javascript" src="http://maps.google.com/maps/api/js?sensor=false"></script>
<script src="js/main.js"></script>
+ <style>
+ .observate {
+ border: #000 solid 1px;
+ height: 442px;
+ margin-bottom: 10px;
+ }
+ </style>
</head>
<body onload="initialize()">
<div data-role="header">
<h1 id="main_page_title"></h1>
</div>
<div data-role="content">
- <div id="observateEare" style="border: #000 solid 1px;height: 442px;margin-bottom: 10px;">
- <div id="onLine" class="online_show" style="display:none"></div>
- <div id="offLine" class="offline_show" style="display:none"></div>
+ <div id="observateEare" class="observate">
+ <div id="onLine" class="online_show" class="hideButton"></div>
+ <div id="offLine" class="offline_show" class="hideButton"></div>
<div id="latitudeDiv" class="attribute_show">Latitude:</div>
<div id="longitudeDiv" class="attribute_show">Longitude:</div>
<div id="errormessage"></div>
<div data-role="footer" data-position="fixed">
</div>
<div data-role="popup" id="popup_info">
- <font style="font-size:85%">
+ <font class="fontSize">
<p>Test Purpose: </p>
<p>Verifies the location information of latitude and longitude position can be fetched through network.</p>
<p>Test Pre-configuration: </p>
<p>Ensure device networking is enabled and GPS is disabled.</p>
<p>Expected Result: </p>
- <p>This test PASS only if the latitude and longitude return the correct position data.</p>
+ <p>Test passes if both the latitude and longitude return the correct position data.</p>
</font>
</div>
</body>
<meta charset="utf-8" />
<meta name="viewport" content="initial-scale=1.0, maximum-scale=1.0, width=device-width">
<link rel="stylesheet" type="text/css" href="../../css/jquery.mobile.css" />
+ <link rel="stylesheet" type="text/css" href="../../css/main.css" />
<link rel="stylesheet" type="text/css" href="css/style.css" />
<script src="../../js/thirdparty/jquery.js"></script>
<script src="../../js/thirdparty/jquery.mobile.js"></script>
<div data-role="footer" data-position="fixed">
</div>
<div data-role="popup" id="popup_info">
- <font style="font-size:85%">
+ <font class="fontSize">
<p>Test Purpose: </p>
<p>Verifies the video playback of OGV, 3GP and MP4 files works correctly. And tests the functionality of playback operations including play and pause, volume up and down, time bar sliding forward and backward, full screen and normal screen switching on every video files.</p>
<p>Expected Result: </p>
- <p>This test PASS only if all the check points function well during video playback.</p>
+ <p>Test passes if all the check points function well during video playback.</p>
</font>
</div>
</body>
<meta charset="utf-8" />
<meta name="viewport" content="initial-scale=1.0, maximum-scale=1.0, width=device-width" />
<link rel="stylesheet" type="text/css" href="../../css/jquery.mobile.css" />
+ <link rel="stylesheet" type="text/css" href="../../css/main.css" />
<script src="../../js/thirdparty/jquery.js"></script>
<script src="../../js/thirdparty/jquery.mobile.js"></script>
<script src="../../js/tests.js"></script>
</li>
<li data-role="list-divider" role="heading">Clean all the Installed packages</li>
<li>
- <div data-role="button" id="wgtClean" style="height:40px; line-height:20px;">Clean all test applications</div>
+ <div data-role="button" id="wgtClean" class="wgtButton">Clean all test applications</div>
</li>
</ul>
</div>
<div data-role="footer" data-position="fixed" data-tap-toggle="false">
</div>
<div data-role="popup" id="popup_info" data-theme="a">
- <font style="font-size:85%">
+ <font class="fontSize">
<p>Test Note: </p>
<p>Verifies the functionality of installing, updating and uninstalling web applications.</p>
<p>Test Purpose: </p>
<p>Verifies WRT can manage web applications by installing, updating and uninstalling web applications.</p>
<p>Expected Result: </p>
- <p>Test passes only if all sub tests passed.</p>
+ <p>Test passes if all sub-tests pass.</p>
</font>
</div>
</div>
var RESULT_FILE_NAME = "tct-behavior-child.pm.result.xml";
$(document).delegate("#main", "pageinit", function() {
+ DisablePassButton();
$("#wgtClean").bind("vclick", function() {
showTotalBar();
});
} else {
$.mobile.hidePageLoadingMsg();
alert("All widgets is uninstalled!");
+ EnablePassButton();
}
}
}
var onError = function (err) {
- alert("Error occured on installation : " + err.name);
+ console.log("Error occured on installation : " + err.name);
$.mobile.hidePageLoadingMsg();
}
var wgt_name;
var app_id;
var package_id;
-var update_flag = false;
var update_wgt = new Array('widget-version-1');
var nolaunch_wgt = new Array('Sample-widget3','Sample-widget4');
$(document).ready(function(){
+ updateFooterButton();
+ DisablePassButton();
+
wgt_name = $("#wgt_name").val();
app_id = $("#app_id").val();
package_id = $("#package_id").val();
$("#install").bind("vclick", function() {
- install();
- if(jQuery.inArray(wgt_name, nolaunch_wgt) != -1){
- $('#uninstall').removeClass("ui-disabled");
- EnablePassButton();
- }
- });
- $("#uninstall").bind("vclick", function() {
- uninstall(package_id);
+ install("install");
});
- try {
- tizen.package.setPackageInfoEventListener(packageEventCallback);
- } catch (e) {
- alert("Exception: " + e.message);
- }
-
if(jQuery.inArray(wgt_name, update_wgt) != -1){
$("#launch").bind("vclick", function() {
packagePre("widget-version-1-1");
- update_flag = true;
- install();
- $('#uninstall').removeClass("ui-disabled");
- EnablePassButton();
+ install("update");
});
} else if(jQuery.inArray(wgt_name, nolaunch_wgt) != -1){
$('#launch').hide();
$("#launch").bind("vclick", function() {
launch(app_id);
$('#uninstall').removeClass("ui-disabled");
- EnablePassButton();
});
}
+ $("#uninstall").bind("vclick", function() {
+ uninstall(package_id);
+ });
+ try {
+ tizen.package.setPackageInfoEventListener(packageEventCallback);
+ } catch (e) {
+ alert("Exception: " + e.message);
+ }
packagePre(wgt_name);
$('#uninstall').addClass("ui-disabled");
$('#launch').addClass("ui-disabled");
- updateFooterButton();
- DisablePassButton();
+
+ if(checkInstalledPkg(package_id)) {
+ $('#install').addClass("ui-disabled");
+ if(jQuery.inArray(wgt_name, nolaunch_wgt) != -1){
+ $('#uninstall').removeClass("ui-disabled");
+ } else {
+ $('#launch').removeClass("ui-disabled");
+ }
+ }
});
var packageEventCallback = {
oninstalled: function(packageInfo) {
$.mobile.hidePageLoadingMsg();
- $('#launch').removeClass("ui-disabled");
alert("The package " + packageInfo.name + " is installed");
},
onupdated: function(packageInfo) {
- update_flag = false;
$.mobile.hidePageLoadingMsg();
- $('#launch').removeClass("ui-disabled");
alert("The package " + packageInfo.name + " is updated");
},
onuninstalled: function(packageId) {
$.mobile.hidePageLoadingMsg();
- $('#uninstall').addClass("ui-disabled");
- $('#launch').addClass("ui-disabled");
alert("The package " + packageId + " is uninstalled");
}
}
{
var Url1 = files[i].toURI();
installUrl = Url1.replace("file:///", "/");
- //if(jQuery.inArray(wgt_name, install_wgt) == -1){
- // install();
- //}
}
}
}
}
tizen.filesystem.resolve(
- 'documents',
- function(dir){
- documentsDir = dir;
- dir.listFiles(onsuccess, onerror);
- }, function(e) {
- alert("Error" + e.message);
- }, "r"
+ 'documents',
+ function(dir){
+ documentsDir = dir;
+ dir.listFiles(onsuccess, onerror);
+ }, function(e) {
+ alert("Error" + e.message);
+ }, "r"
);
}
-function checkInstalledPkg() {
- var packageInfo = null;
- try {
- if(package_id) {
- packageInfo = tizen.package.getPackageInfo(package_id);
- }
- } catch (e) {}
-
- return packageInfo === null ? false : true;
-}
-
-function install() {
+function install(type) {
var onInstallationSuccess = {
- onprogress: function(packageId, percentage)
- {
- console.log("On installation(" + packageId + "): progress(" + percentage + ")");
- $.mobile.showPageLoadingMsg();
- },
- oncomplete: function(packageId)
- {
- console.log("Installation(" + packageId + ") Complete");
+ onprogress: function(packageId, percentage)
+ {
+ console.log("On installation(" + packageId + "): progress(" + percentage + ")");
+ $.mobile.showPageLoadingMsg();
+ },
+ oncomplete: function(packageId)
+ {
+ console.log("Installation(" + packageId + ") Complete");
+ $('#install').addClass("ui-disabled");
+ if(jQuery.inArray(wgt_name, update_wgt) != -1 && type == "update"){
+ $('#launch').addClass("ui-disabled");
+ $('#uninstall').removeClass("ui-disabled");
+ } else if(jQuery.inArray(wgt_name, nolaunch_wgt) != -1){
+ $('#uninstall').removeClass("ui-disabled");
+ } else {
+ $('#launch').removeClass("ui-disabled");
}
+ }
}
var onError = function (err) {
- alert("Error occured on installation : " + err.message);
+ console.log("Error occured on installation : " + err.message);
$.mobile.hidePageLoadingMsg();
}
try {
- if(checkInstalledPkg() && !update_flag) {
- $('#launch').removeClass("ui-disabled");
- alert("The package is already installed");
- } else {
- tizen.package.install(installUrl, onInstallationSuccess, onError);
- }
+ tizen.package.install(installUrl, onInstallationSuccess, onError);
} catch(e) {
alert("Exception: " + e.name);
}
oncomplete: function(packageId)
{
console.log("Uninstallation(" + packageId + ") Complete");
+ $('#launch').addClass("ui-disabled");
+ $('#uninstall').addClass("ui-disabled");
+ EnablePassButton();
}
}
var onError = function (err) {
- alert("Error occured on installation : " + err.name);
+ console.log("Error occured on installation : " + err.name);
$.mobile.hidePageLoadingMsg();
}
);
}
-function backAppsHome() {
- window.close();
-}
-
function reportResult(res) {
var jsonStr="[{\"testname\":\"" + wgt_name + "\",\"result\":\"" + res + "\"}]";
window.opener.postMessage(jsonStr, '*');
backAppsHome();
}
-
-function updateFooterButton(){
- var footbar = $(':jqmData(role=footer)');
- footbar.empty();
- footbar.attr("align", "center");
- footbar.append("<div data-role=\"controlgroup\" data-type=\"horizontal\">" +
- "<a href=\"javascript:reportResult('PASS');\" id=\"pass_button\" data-role=\"button\" data-icon=\"check\" style=\"color: green\">Pass</a>" +
- "<a href=\"javascript:reportResult('FAIL');\" id=\"fail_button\" data-role=\"button\" data-icon=\"delete\" style=\"color: red\">Fail</a>" +
- "<a href=\"#popup_info\" data-role=\"button\" data-icon=\"info\" data-rel=\"popup\" data-transition=\"pop\">Info</a>" +
- "<a href=\"javascript:backAppsHome();\" data-role=\"button\" data-icon=\"home\">Back</a></div>");
-
- footbar.trigger("create");
- footbar.find(':jqmData(role=button) > span:first-child').css('padding', '15px 10px 15px 30px');
- $("#popup_info").popup( "option", "theme", "a");
- var maxHeight = $(window).height() - 100 + "px";
- $("#popup_info").css("max-height", maxHeight);
- $("#popup_info").css("margin-bottom", "30px");
- $("#popup_info").css("overflow-y", "auto");
-}
-
-function EnablePassButton(){
- $('#pass_button').removeClass("ui-disabled");
-}
-
-function DisablePassButton(){
- $('#pass_button').addClass("ui-disabled");
-}
<meta charset="utf-8" />
<meta name="viewport" content="initial-scale=1.0, maximum-scale=1.0, width=device-width" />
<link rel="stylesheet" type="text/css" href="../../../css/jquery.mobile.css" />
+ <link rel="stylesheet" type="text/css" href="../../../css/main.css" />
<script src="../../../js/thirdparty/jquery.js"></script>
<script src="../../../js/thirdparty/jquery.mobile.js"></script>
+ <script src="../../../js/tests.js"></script>
<script src="../js/tests.js"></script>
</head>
<body>
<ul data-role="listview">
<li data-role="list-divider">Package Install</li>
<li>
- <div data-role="button" id="install" style="height:40px; line-height:20px;">Install</div>
+ <div data-role="button" id="install" class="wgtButton">Install</div>
</li>
<li data-role="list-divider">Package Launch</li>
<li>
- <div data-role="button" id="launch" style="height:40px; line-height:20px;">Launch</div>
+ <div data-role="button" id="launch" class="wgtButton">Launch</div>
</li>
<li data-role="list-divider">Package Uninstall</li>
<li>
- <div data-role="button" id="uninstall" style="height:40px; line-height:20px;">Uninstall</div>
+ <div data-role="button" id="uninstall" class="wgtButton">Uninstall</div>
</li>
</ul>
</div>
<div data-role="footer" data-position="fixed" data-tap-toggle="false">
</div>
<div data-role="popup" id="popup_info" data-theme="a">
- <font style="font-size:85%">
+ <font class="fontSize">
<p>Test Step: </p>
<ol>
<li>Click the "Install" button to install the widget.</li>
<meta charset="utf-8" />
<meta name="viewport" content="initial-scale=1.0, maximum-scale=1.0, width=device-width" />
<link rel="stylesheet" type="text/css" href="../../../css/jquery.mobile.css" />
+ <link rel="stylesheet" type="text/css" href="../../../css/main.css" />
<script src="../../../js/thirdparty/jquery.js"></script>
<script src="../../../js/thirdparty/jquery.mobile.js"></script>
+ <script src="../../../js/tests.js"></script>
<script src="../js/tests.js"></script>
</head>
<body>
<ul data-role="listview">
<li data-role="list-divider">Package Install</li>
<li>
- <div data-role="button" id="install" style="height:40px; line-height:20px;">Install</div>
+ <div data-role="button" id="install" class="wgtButton">Install</div>
</li>
<li data-role="list-divider">Package Launch</li>
<li>
- <div data-role="button" id="launch" style="height:40px; line-height:20px;">Launch</div>
+ <div data-role="button" id="launch" class="wgtButton">Launch</div>
</li>
<li data-role="list-divider">Package Uninstall</li>
<li>
- <div data-role="button" id="uninstall" style="height:40px; line-height:20px;">Uninstall</div>
+ <div data-role="button" id="uninstall" class="wgtButton">Uninstall</div>
</li>
</ul>
</div>
<div data-role="footer" data-position="fixed" data-tap-toggle="false">
</div>
<div data-role="popup" id="popup_info" data-theme="a">
- <font style="font-size:85%">
+ <font class="fontSize">
<p>Pre-condition: </p>
<p>Make sure the "Sample-widget2" app is not installed.</p>
<p>Test Step: </p>
<meta charset="utf-8" />
<meta name="viewport" content="initial-scale=1.0, maximum-scale=1.0, width=device-width" />
<link rel="stylesheet" type="text/css" href="../../../css/jquery.mobile.css" />
+ <link rel="stylesheet" type="text/css" href="../../../css/main.css" />
<script src="../../../js/thirdparty/jquery.js"></script>
<script src="../../../js/thirdparty/jquery.mobile.js"></script>
+ <script src="../../../js/tests.js"></script>
<script src="../js/tests.js"></script>
</head>
<body>
<ul data-role="listview">
<li data-role="list-divider">Package Install</li>
<li>
- <div data-role="button" id="install" style="height:40px; line-height:20px;">Install</div>
+ <div data-role="button" id="install" class="wgtButton">Install</div>
</li>
<li data-role="list-divider" id="launch_divider">Package Launch</li>
<li>
- <div data-role="button" id="launch" style="height:40px; line-height:20px;">Launch</div>
+ <div data-role="button" id="launch" class="wgtButton">Launch</div>
</li>
<li data-role="list-divider">Package Uninstall</li>
<li>
- <div data-role="button" id="uninstall" style="height:40px; line-height:20px;">Uninstall</div>
+ <div data-role="button" id="uninstall" class="wgtButton">Uninstall</div>
</li>
</ul>
</div>
<div data-role="footer" data-position="fixed" data-tap-toggle="false">
</div>
<div data-role="popup" id="popup_info" data-theme="a">
- <font style="font-size:85%">
+ <font class="fontSize">
<p>Test Step: </p>
<ol>
<li>Copy the "Sample-widget3.wgt" to "Downloads" folder. For example, use the command: "cp -a /opt/usr/apps/tctbhtests/res/wgt/tests/PackageManagement/res/Sample-widget3.wgt /opt/usr/media/Downloads".</li>
<meta charset="utf-8" />
<meta name="viewport" content="initial-scale=1.0, maximum-scale=1.0, width=device-width" />
<link rel="stylesheet" type="text/css" href="../../../css/jquery.mobile.css" />
+ <link rel="stylesheet" type="text/css" href="../../../css/main.css" />
<script src="../../../js/thirdparty/jquery.js"></script>
<script src="../../../js/thirdparty/jquery.mobile.js"></script>
+ <script src="../../../js/tests.js"></script>
<script src="../js/tests.js"></script>
</head>
<body>
<ul data-role="listview">
<li data-role="list-divider">Package Install</li>
<li>
- <div data-role="button" id="install" style="height:40px; line-height:20px;">Install</div>
+ <div data-role="button" id="install" class="wgtButton">Install</div>
</li>
<li data-role="list-divider" id="launch_divider">Package Launch</li>
<li>
- <div data-role="button" id="launch" style="height:40px; line-height:20px;">Launch</div>
+ <div data-role="button" id="launch" class="wgtButton">Launch</div>
</li>
<li data-role="list-divider">Package Uninstall</li>
<li>
- <div data-role="button" id="uninstall" style="height:40px; line-height:20px;">Uninstall</div>
+ <div data-role="button" id="uninstall" class="wgtButton">Uninstall</div>
</li>
</ul>
</div>
<div data-role="footer" data-position="fixed" data-tap-toggle="false">
</div>
<div data-role="popup" id="popup_info" data-theme="a">
- <font style="font-size:85%">
+ <font class="fontSize">
<p>Test Step: </p>
<ol>
<li>Click the "Install" button to install the widget.</li>
<meta charset="utf-8" />
<meta name="viewport" content="initial-scale=1.0, maximum-scale=1.0, width=device-width" />
<link rel="stylesheet" type="text/css" href="../../../css/jquery.mobile.css" />
+ <link rel="stylesheet" type="text/css" href="../../../css/main.css" />
<script src="../../../js/thirdparty/jquery.js"></script>
<script src="../../../js/thirdparty/jquery.mobile.js"></script>
+ <script src="../../../js/tests.js"></script>
<script src="../js/tests.js"></script>
</head>
<body>
<ul data-role="listview">
<li data-role="list-divider">Package Install</li>
<li>
- <div data-role="button" id="install" style="height:40px; line-height:20px;">Install</div>
+ <div data-role="button" id="install" class="wgtButton">Install</div>
</li>
<li data-role="list-divider">Package Launch</li>
<li>
- <div data-role="button" id="launch" style="height:40px; line-height:20px;">Launch</div>
+ <div data-role="button" id="launch" class="wgtButton">Launch</div>
</li>
<li data-role="list-divider">Package Uninstall</li>
<li>
- <div data-role="button" id="uninstall" style="height:40px; line-height:20px;">Uninstall</div>
+ <div data-role="button" id="uninstall" class="wgtButton">Uninstall</div>
</li>
</ul>
</div>
<div data-role="footer" data-position="fixed" data-tap-toggle="false">
</div>
<div data-role="popup" id="popup_info" data-theme="a">
- <font style="font-size:85%">
+ <font class="fontSize">
<p>Test Step: </p>
<ol>
<li>Click the "Install" button to install the widget.</li>
</ol>
<p>Expected result:</p>
<ul>
- <li>If this is a ARM device, the test passes if Javascript and NPRuntime multiplication time displayed above the button "Get the multiplication time". </li>
- <li>If this is a X86 device, the test passes if a popup displayed on the screen.</li>
+ <li>If this is a ARM device, test passes if Javascript and NPRuntime multiplication time displayed above the button "Get the multiplication time". </li>
+ <li>If this is a X86 device, test passes if a popup displayed on the screen.</li>
</ul>
</font>
</div>
<meta charset="utf-8" />
<meta name="viewport" content="initial-scale=1.0, maximum-scale=1.0, width=device-width" />
<link rel="stylesheet" type="text/css" href="../../../css/jquery.mobile.css" />
+ <link rel="stylesheet" type="text/css" href="../../../css/main.css" />
<script src="../../../js/thirdparty/jquery.js"></script>
<script src="../../../js/thirdparty/jquery.mobile.js"></script>
+ <script src="../../../js/tests.js"></script>
<script src="../js/tests.js"></script>
</head>
<body>
<ul data-role="listview">
<li data-role="list-divider">Package Install</li>
<li>
- <div data-role="button" id="install" style="height:40px; line-height:20px;">Install</div>
+ <div data-role="button" id="install" class="wgtButton">Install</div>
</li>
<li data-role="list-divider" id="launch_divider">Package Launch</li>
<li>
- <div data-role="button" id="launch" style="height:40px; line-height:20px;">Launch</div>
+ <div data-role="button" id="launch" class="wgtButton">Launch</div>
</li>
<li data-role="list-divider">Package Uninstall</li>
<li>
- <div data-role="button" id="uninstall" style="height:40px; line-height:20px;">Uninstall</div>
+ <div data-role="button" id="uninstall" class="wgtButton">Uninstall</div>
</li>
</ul>
</div>
<div data-role="footer" data-position="fixed" data-tap-toggle="false">
</div>
<div data-role="popup" id="popup_info" data-theme="a">
- <font style="font-size:85%">
+ <font class="fontSize">
<p>Test Step: </p>
<ol>
<li>Click the "Install" button to install the widget.</li>
</ol>
<p>Expected result:</p>
<ul>
- <li>If this is a X86 device, the test passes if Javascript and NPRuntime multiplication time displayed above the button "Get the multiplication time". </li>
- <li>If this is a ARM device, the test passes if a popup displayed on the screen.</li>
+ <li>If this is a X86 device, test passes if Javascript and NPRuntime multiplication time displayed above the button "Get the multiplication time". </li>
+ <li>If this is a ARM device, test passes if a popup displayed on the screen.</li>
</ul>
</font>
</div>
<meta charset="utf-8" />
<meta name="viewport" content="initial-scale=1.0, maximum-scale=1.0, width=device-width" />
<link rel="stylesheet" type="text/css" href="../../../css/jquery.mobile.css" />
+ <link rel="stylesheet" type="text/css" href="../../../css/main.css" />
<script src="../../../js/thirdparty/jquery.js"></script>
<script src="../../../js/thirdparty/jquery.mobile.js"></script>
+ <script src="../../../js/tests.js"></script>
<script src="../js/tests.js"></script>
</head>
<body>
<ul data-role="listview">
<li data-role="list-divider">Package Install</li>
<li>
- <div data-role="button" id="install" style="height:40px; line-height:20px;">Install</div>
+ <div data-role="button" id="install" class="wgtButton">Install</div>
</li>
<li data-role="list-divider">Package Update</li>
<li>
- <div data-role="button" id="launch" style="height:40px; line-height:20px;">Update</div>
+ <div data-role="button" id="launch" class="wgtButton">Update</div>
</li>
<li data-role="list-divider">Package Uninstall</li>
<li>
- <div data-role="button" id="uninstall" style="height:40px; line-height:20px;">Uninstall</div>
+ <div data-role="button" id="uninstall" class="wgtButton">Uninstall</div>
</li>
</ul>
</div>
<div data-role="footer" data-position="fixed" data-tap-toggle="false">
</div>
<div data-role="popup" id="popup_info" data-theme="a">
- <font style="font-size:85%">
+ <font class="fontSize">
<p>Test Step: </p>
<ol>
<li>Click the "Install" button to install the widget.</li>
-->
<html>
<head>
-<meta charset="utf-8" />
-<meta name="viewport" content="initial-scale=1.0, maximum-scale=1.0, width=device-width" />
-<link rel="stylesheet" type="text/css" href="../../css/jquery.mobile.css" />
-<script src="../../js/thirdparty/jquery.js"></script>
-<script src="../../js/thirdparty/jquery.mobile.js"></script>
-<script src="../../js/tests.js"></script>
-<script src="js/main.js"></script>
+ <meta charset="utf-8" />
+ <meta name="viewport" content="initial-scale=1.0, maximum-scale=1.0, width=device-width" />
+ <link rel="stylesheet" type="text/css" href="../../css/jquery.mobile.css" />
+ <link rel="stylesheet" type="text/css" href="../../css/main.css" />
+ <script src="../../js/thirdparty/jquery.js"></script>
+ <script src="../../js/thirdparty/jquery.mobile.js"></script>
+ <script src="../../js/tests.js"></script>
+ <script src="js/main.js"></script>
</head>
<body>
<div data-role="page" id="main">
<div data-role="content">
<div data-role="collapsible-set" data-inset="false" data-collapsed-icon="arrow-r" data-expanded-icon="arrow-d" data-theme="b">
<div data-role="collapsible" data-collapsed="true" data-theme="b">
- <h3 id="homeList">Screen-lock State</h3>
+ <h3 id="homeList1">Screen-lock State</h3>
<ul data-role="listview" data-inset="false">
<li class="ui-li ui-li-static" id="lock"></li>
</ul>
</div>
<div data-role="collapsible" data-collapsed="true" data-theme="b">
- <h3 id="homeList">Screen-unlock State</h3>
+ <h3 id="homeList2">Screen-unlock State</h3>
<ul data-role="listview" data-inset="false">
<li class="ui-li ui-li-static" id="unlock"></li>
</ul>
<div data-role="footer" data-position="fixed" data-tap-toggle="false">
</div>
<div data-role="popup" id="popup_info" data-theme="a">
- <font style="font-size:85%">
+ <font class="fontSize">
<p>Test Purpose: </p>
<p>Verifies the device is able to handle pageVisible event when lock and unlock the screen by gesture.</p>
<p>Expected Result: </p>
- <p>This test PASS only if the screen lock and unlock information displayed correctly on screen.</p>
+ <p>Test passes if the screen lock and unlock information displayed correctly on screen.</p>
+ </font>
</div>
</div>
</body>
<meta charset="utf-8" />
<meta name="viewport" content="initial-scale=1.0, maximum-scale=1.0, width=device-width">
<link rel="stylesheet" type="text/css" href="../../css/jquery.mobile.css" />
+ <link rel="stylesheet" type="text/css" href="../../css/main.css" />
<script src="../../js/thirdparty/jquery.js"></script>
<script src="../../js/thirdparty/jquery.mobile.js"></script>
<script src="../../js/tests.js"></script>
<div data-role="footer" data-position="fixed">
</div>
<div data-role="popup" id="popup_info">
- <font style="font-size:85%">
+ <font class="fontSize">
<p>Test Purpose: </p>
<p>Verifies the blue circle could be transferred to ellipse, and rotate along with elliptical patch at the same time.</p>
<p>Expected Result: </p>
- <p>This test PASS only if the transformation and rotate function well.</p>
+ <p>Test passes if the transformation and rotate function well.</p>
</font>
</div>
</body>
<meta charset="utf-8" />
<meta name="viewport" content="initial-scale=1.0, maximum-scale=1.0, width=device-width">
<link rel="stylesheet" type="text/css" href="../../css/jquery.mobile.css" />
+ <link rel="stylesheet" type="text/css" href="../../css/main.css" />
<link rel="stylesheet" type="text/css" href="css/style.css" />
<script src="../../js/thirdparty/jquery.js"></script>
<script src="../../js/thirdparty/jquery.mobile.js"></script>
<div data-role="footer" data-position="fixed">
</div>
<div data-role="popup" id="popup_info">
- <font style="font-size:85%">
+ <font class="fontSize">
<p>Test Purpose: </p>
<p>Verifies that (1) this applicaton is running by non-root ID and, (2) it is only allowed to manipulate files in the following locations: home directory, shared media directory.</p>
<p>Test Step: </p>
MEDIA_DELETE_DIR = "internal0/",
ETC_DIR = "file:///etc";
var count = 0, homeDir, mediaDir, etcDir;
-var gFiles = [], createdNumber = [];
+var gFiles = [], createdId = [];
var etcFlag = false;
$(document).ready(function(){
+ count
+ ')" data-icon="delete" data-theme="c">'
+ '</a></li>';
- createdNumber.push(count);
+ createdId.push(count);
gFiles[count++] = newFile;
if (str) {
$(selector).append(str).trigger("create").listview("refresh");
});
function deleteFile(id) {
+ var dir, selector, index;
+
if (id == null) {
return;
}
+ //Only delete the file by user created.
+ index = createdId.indexOf(id);
+ if (index == -1) {
+ return;
+ }
- var dir, selector;
try {
switch (gFiles[Number(id)].path) {
case HOME_DELETE_DIR: dir = homeDir; selector = "#home"; break;
}
if (dir) {
dir.deleteFile(gFiles[Number(id)].fullPath, function() {
+ //Delete the id in createdId array.
+ createdId.splice(index, 1);
$("#" + gFiles[Number(id)].name).remove();
$(selector).trigger("create").listview("refresh");
}, function (err) {
}
function backAppsHome() {
- createdNumber.forEach(function(number) {
- deleteFile(number);
+ createdId.forEach(function(id) {
+ deleteFile(id);
});
window.close();
}
<meta charset="utf-8" />
<meta name="viewport" content="initial-scale=1.0, maximum-scale=1.0, width=device-width" />
<link rel="stylesheet" type="text/css" href="../../css/jquery.mobile.css" />
+ <link rel="stylesheet" type="text/css" href="../../css/main.css" />
<script src="../../js/thirdparty/jquery.js"></script>
<script src="../../js/thirdparty/jquery.mobile.js"></script>
<script src="../../js/tests.js"></script>
</li>
<li data-role="list-divider" role="heading">Clean all the installed packages</li>
<li>
- <div data-role="button" id="wgtClean" style="height:40px; line-height:20px;">Clean all test applications</div>
+ <div data-role="button" id="wgtClean" class="wgtButton">Clean all test applications</div>
</li>
</ul>
</div>
<div data-role="footer" data-position="fixed" data-tap-toggle="false">
</div>
<div data-role="popup" id="popup_info" data-theme="a">
- <font style="font-size:85%">
+ <font class="fontSize">
<p>Test Note: </p>
<p>Verifies the stability of the device.</p>
<p>Test Purpose: </p>
var RESULT_FILE_NAME = "tct-behavior-child.sta.result.xml";
$(document).delegate("#main", "pageinit", function() {
+ DisablePassButton();
$("#wgtClean").bind("vclick", function() {
showTotalBar();
});
} else {
$.mobile.hidePageLoadingMsg();
alert("All widgets is uninstalled!");
+ EnablePassButton();
}
}
}
var onError = function (err) {
- alert("Error occured on installation : " + err.name);
+ console.log("Error occured on installation : " + err.name);
$.mobile.hidePageLoadingMsg();
}
var install_wgt = new Array('test-half-memory');
$(document).ready(function(){
+ updateFooterButton();
+ DisablePassButton();
+
wgt_name = $("#wgt_name").val();
app_id = $("#app_id").val();
package_id = $("#package_id").val();
$("#install").bind("vclick", function() {
install();
- if(jQuery.inArray(wgt_name, install_wgt) != -1){
- $('#uninstall').removeClass("ui-disabled");
- EnablePassButton();
- }
- });
- $("#uninstall").bind("vclick", function() {
- uninstall(package_id);
});
- try {
- tizen.package.setPackageInfoEventListener(packageEventCallback);
- } catch (e) {
- alert("Exception: " + e.message);
- }
-
if(jQuery.inArray(wgt_name, install_wgt) != -1){
$('#launch').hide();
$('#launch_divider').hide();
$("#launch").bind("vclick", function() {
launch(app_id);
$('#uninstall').removeClass("ui-disabled");
- EnablePassButton();
});
}
+ $("#uninstall").bind("vclick", function() {
+ uninstall(package_id);
+ });
+ try {
+ tizen.package.setPackageInfoEventListener(packageEventCallback);
+ } catch (e) {
+ alert("Exception: " + e.message);
+ }
packagePre(wgt_name);
$('#uninstall').addClass("ui-disabled");
$('#launch').addClass("ui-disabled");
- updateFooterButton();
- DisablePassButton();
+
+ if(checkInstalledPkg(package_id)) {
+ $('#install').addClass("ui-disabled");
+ if(jQuery.inArray(wgt_name, install_wgt) != -1){
+ $('#uninstall').removeClass("ui-disabled");
+ } else {
+ $('#launch').removeClass("ui-disabled");
+ }
+ }
});
var packageEventCallback = {
oninstalled: function(packageInfo) {
$.mobile.hidePageLoadingMsg();
- $('#launch').removeClass("ui-disabled");
alert("The package " + packageInfo.name + " is installed");
},
onupdated: function(packageInfo) {
$.mobile.hidePageLoadingMsg();
- $('#launch').removeClass("ui-disabled");
alert("The package " + packageInfo.name + " is updated");
},
onuninstalled: function(packageId) {
$.mobile.hidePageLoadingMsg();
- $('#uninstall').addClass("ui-disabled");
- $('#launch').addClass("ui-disabled");
alert("The package " + packageId + " is uninstalled");
}
}
{
var Url1 = files[i].toURI();
installUrl = Url1.replace("file:///", "/");
- //if(jQuery.inArray(wgt_name, install_wgt) == -1){
- // install();
- //}
}
}
}
}
tizen.filesystem.resolve(
- 'documents',
- function(dir){
- documentsDir = dir;
- dir.listFiles(onsuccess, onerror);
- }, function(e) {
- alert("Error" + e.message);
- }, "r"
+ 'documents',
+ function(dir){
+ documentsDir = dir;
+ dir.listFiles(onsuccess, onerror);
+ }, function(e) {
+ alert("Error" + e.message);
+ }, "r"
);
}
-function checkInstalledPkg() {
- var packageInfo = null;
- try {
- if(package_id) {
- packageInfo = tizen.package.getPackageInfo(package_id);
- }
- } catch (e) {}
-
- return packageInfo === null ? false : true;
-}
-
function install() {
var onInstallationSuccess = {
- onprogress: function(packageId, percentage)
- {
- console.log("On installation(" + packageId + "): progress(" + percentage + ")");
- $.mobile.showPageLoadingMsg();
- },
- oncomplete: function(packageId)
- {
- console.log("Installation(" + packageId + ") Complete");
+ onprogress: function(packageId, percentage)
+ {
+ console.log("On installation(" + packageId + "): progress(" + percentage + ")");
+ $.mobile.showPageLoadingMsg();
+ },
+ oncomplete: function(packageId)
+ {
+ console.log("Installation(" + packageId + ") Complete");
+ if(checkInstalledPkg(package_id)) {
+ $('#install').addClass("ui-disabled");
+ if(jQuery.inArray(wgt_name, install_wgt) != -1){
+ $('#uninstall').removeClass("ui-disabled");
+ } else {
+ $('#launch').removeClass("ui-disabled");
+ }
}
+ }
}
var onError = function (err) {
- alert("Error occured on installation : " + err.message);
+ console.log("Error occured on installation : " + err.message);
$.mobile.hidePageLoadingMsg();
}
try {
- if(checkInstalledPkg()) {
- $('#launch').removeClass("ui-disabled");
- alert("The package is already installed");
- } else {
- tizen.package.install(installUrl, onInstallationSuccess, onError);
- }
+ tizen.package.install(installUrl, onInstallationSuccess, onError);
} catch(e) {
alert("Exception: " + e.name);
}
oncomplete: function(packageId)
{
console.log("Uninstallation(" + packageId + ") Complete");
+ $('#launch').addClass("ui-disabled");
+ $('#uninstall').addClass("ui-disabled");
+ EnablePassButton();
}
}
var onError = function (err) {
- alert("Error occured on installation : " + err.name);
+ console.log("Error occured on installation : " + err.name);
$.mobile.hidePageLoadingMsg();
}
);
}
-function backAppsHome() {
- window.close();
-}
-
function reportResult(res) {
var jsonStr="[{\"testname\":\"" + wgt_name + "\",\"result\":\"" + res + "\"}]";
window.opener.postMessage(jsonStr, '*');
backAppsHome();
}
-
-function updateFooterButton(){
- var footbar = $(':jqmData(role=footer)');
- footbar.empty();
- footbar.attr("align", "center");
- footbar.append("<div data-role=\"controlgroup\" data-type=\"horizontal\">" +
- "<a href=\"javascript:reportResult('PASS');\" id=\"pass_button\" data-role=\"button\" data-icon=\"check\" style=\"color: green\">Pass</a>" +
- "<a href=\"javascript:reportResult('FAIL');\" id=\"fail_button\" data-role=\"button\" data-icon=\"delete\" style=\"color: red\">Fail</a>" +
- "<a href=\"#popup_info\" data-role=\"button\" data-icon=\"info\" data-rel=\"popup\" data-transition=\"pop\">Info</a>" +
- "<a href=\"javascript:backAppsHome();\" data-role=\"button\" data-icon=\"home\">Back</a></div>");
-
- footbar.trigger("create");
- footbar.find(':jqmData(role=button) > span:first-child').css('padding', '15px 10px 15px 30px');
- $("#popup_info").popup( "option", "theme", "a");
- var maxHeight = $(window).height() - 100 + "px";
- $("#popup_info").css("max-height", maxHeight);
- $("#popup_info").css("margin-bottom", "30px");
- $("#popup_info").css("overflow-y", "auto");
-}
-
-function EnablePassButton(){
- $('#pass_button').removeClass("ui-disabled");
-}
-
-function DisablePassButton(){
- $('#pass_button').addClass("ui-disabled");
-}
<meta charset="utf-8" />
<meta name="viewport" content="initial-scale=1.0, maximum-scale=1.0, width=device-width" />
<link rel="stylesheet" type="text/css" href="../../../css/jquery.mobile.css" />
+ <link rel="stylesheet" type="text/css" href="../../../css/main.css" />
<script src="../../../js/thirdparty/jquery.js"></script>
<script src="../../../js/thirdparty/jquery.mobile.js"></script>
+ <script src="../../../js/tests.js"></script>
<script src="../js/tests.js"></script>
</head>
<body>
<ul data-role="listview">
<li data-role="list-divider">Package Install</li>
<li>
- <div data-role="button" id="install" style="height:40px; line-height:20px;">Install</div>
+ <div data-role="button" id="install" class="wgtButton">Install</div>
</li>
<li data-role="list-divider" id="launch_divider">Package Launch</li>
<li>
- <div data-role="button" id="launch" style="height:40px; line-height:20px;">Launch</div>
+ <div data-role="button" id="launch" class="wgtButton">Launch</div>
</li>
<li data-role="list-divider">Package Uninstall</li>
<li>
- <div data-role="button" id="uninstall" style="height:40px; line-height:20px;">Uninstall</div>
+ <div data-role="button" id="uninstall" class="wgtButton">Uninstall</div>
</li>
</ul>
</div>
<div data-role="footer" data-position="fixed" data-tap-toggle="false">
</div>
<div data-role="popup" id="popup_info" data-theme="a">
- <font style="font-size:85%">
+ <font class="fontSize">
<p>Pre-condition: </p>
<p>Make sure the free storage is more than half memory.</p>
<p>Test Step: </p>
<meta charset="utf-8" />
<meta name="viewport" content="initial-scale=1.0, maximum-scale=1.0, width=device-width" />
<link rel="stylesheet" type="text/css" href="../../../css/jquery.mobile.css" />
+ <link rel="stylesheet" type="text/css" href="../../../css/main.css" />
<script src="../../../js/thirdparty/jquery.js"></script>
<script src="../../../js/thirdparty/jquery.mobile.js"></script>
+ <script src="../../../js/tests.js"></script>
<script src="../js/tests.js"></script>
</head>
<body>
<ul data-role="listview">
<li data-role="list-divider">Package Install</li>
<li>
- <div data-role="button" id="install" style="height:40px; line-height:20px;">Install</div>
+ <div data-role="button" id="install" class="wgtButton">Install</div>
</li>
<li data-role="list-divider">Package Launch</li>
<li>
- <div data-role="button" id="launch" style="height:40px; line-height:20px;">Launch</div>
+ <div data-role="button" id="launch" class="wgtButton">Launch</div>
</li>
<li data-role="list-divider">Package Uninstall</li>
<li>
- <div data-role="button" id="uninstall" style="height:40px; line-height:20px;">Uninstall</div>
+ <div data-role="button" id="uninstall" class="wgtButton">Uninstall</div>
</li>
</ul>
</div>
<div data-role="footer" data-position="fixed" data-tap-toggle="false">
</div>
<div data-role="popup" id="popup_info" data-theme="a">
- <font style="font-size:85%">
+ <font class="fontSize">
<p>Test Step: </p>
<ol>
<li>Click the "Install" button to install the widget.</li>
<li>Click the "Uninstall" button to uninstall the widget.</li>
</ol>
<p>Expected Result: </p>
- <p>Test passes if the image displayed normally.</p>
+ <p>Test passes if the image display normally.</p>
</font>
</div>
</div>
<meta name="viewport" content="initial-scale=1.0, maximum-scale=1.0, width=device-width">
<link rel="stylesheet" type="text/css" href="css/style.css"/>
<link rel="stylesheet" type="text/css" href="../../css/jquery.mobile.css" />
+ <link rel="stylesheet" type="text/css" href="../../css/main.css" />
<script src="../../js/thirdparty/jquery.js"></script>
<script src="../../js/thirdparty/jquery.mobile.js"></script>
<script src="../../js/tests.js"></script>
<script src="js/main.js"></script>
+ <style>
+ .target {
+ left: 145px;
+ top:300px;
+ position: absolute;
+ }
+ </style>
</head>
<body>
<div data-role="header">
<div data-role="content">
<table id="tabletouch" cellpadding="5">
<tr>
- <td><img id="image1" src="img/btn_up.png" height="100" width="100"></img></td>
- <td><img id="image2" src="img/btn_up.png" height="100" width="100"></img></td>
- <td><img id="image3" src="img/btn_up.png" height="100" width="100"></img></td>
+ <td><img id="image1" src="img/btn_up.png" height="100" width="100" /></td>
+ <td><img id="image2" src="img/btn_up.png" height="100" width="100" /></td>
+ <td><img id="image3" src="img/btn_up.png" height="100" width="100" /></td>
</tr>
</table>
<p id="testresult">Touch info: no button touched</p>
<div id="scrollEare" class="scroll_eare">
- <div id="scrollTarget" style="left: 145px;top:300px;position: absolute;"><img id="imageScroll" src="img/scroll.png" height="80" width="80"></img></div>
+ <div id="scrollTarget" class="target"><img id="imageScroll" src="img/scroll.png" height="80" width="80" /></div>
</div>
<p class="ui-li-desc">* Drag this red button in above eare.</p>
<p id="errormessage"></p>
<div data-role="footer" data-position="fixed">
</div>
<div data-role="popup" id="popup_info">
- <font style="font-size:85%">
+ <font class="fontSize">
<p>Test Purpose: </p>
<p>Verifies the device supports single touch, two fingers touch and three fingers touch by clicking the blue buttons, and supports move touch by dragging the red button.</p>
<p>Expected Result: </p>
- <p>This test PASS only if all the tips "one button touched, two buttons touched at one time, three buttons touched at one time" show and the red button can be dragged.</p>
+ <p>Test passes if all the tips "one button touched, two buttons touched at one time, three buttons touched at one time" show and the red button can be dragged.</p>
</font>
</div>
</body>
<meta charset="utf-8" />
<meta name="viewport" content="initial-scale=1.0, maximum-scale=1.0, width=device-width" />
<link rel="stylesheet" type="text/css" href="../../css/jquery.mobile.css" />
+ <link rel="stylesheet" type="text/css" href="../../css/main.css" />
<script src="../../js/thirdparty/jquery.js"></script>
<script src="../../js/thirdparty/jquery.mobile.js"></script>
<script src="../../js/tests.js"></script>
#user-agent-string {
list-style : none;
}
+ .tips{
+ color: red;
+ }
</style>
</head>
<body>
<div class="d">
<ul>
<li>User-Agent:</li>
- <li id="user-agent-string"><span style="color: red;">Failed to get user agent string</span></li>
+ <li id="user-agent-string"><span class="tips">Failed to get user agent string</span></li>
<li>PLATFORM_VER: <span id="user-platform-ver"></span></li>
<li>MODEL: <span id="user-model-string"></span></li>
<li>APPLE_WEBKIT_VER: <span id="user-apple-webkit-ver"></span></li>
<div data-role="footer" data-position="fixed">
</div>
<div data-role="popup" id="popup_info">
- <font style="font-size:85%">
+ <font class="fontSize">
<p>Test Purpose: </p>
<p>Verifies the user agent string follow correct format.</p>
<p>Expected Result: </p>
- <p>The user agent string reported by the Web View MUST follow this format:</p>
+ <p>Test passes if the user agent string reported by the Web View follow this format:</p>
<p>Mozilla/5.0 (Linux; Tizen PLATFORM_VER; MODEL) AppleWebKit/APPLE_WEBKIT_VER (KHTML, like Gecko) APP_NAME/APP_VER Mobile Safari/APPLE_WEBKIT_VER</p>
<ul>
<li>The value of the PLATFORM_VER string MUST be the platform version of the device.</li>
<meta charset="utf-8" />
<meta name="viewport" content="initial-scale=1.0, maximum-scale=1.0, width=device-width">
<link rel="stylesheet" type="text/css" href="../../css/jquery.mobile.css" />
+ <link rel="stylesheet" type="text/css" href="../../css/main.css" />
<link rel="stylesheet" type="text/css" href="css/style.css" />
<script src="../../js/thirdparty/jquery.js"></script>
<script src="../../js/thirdparty/jquery.mobile.js"></script>
<script src="../../js/tests.js"></script>
<script src="js/main.js"></script>
<script src="js/slider.tooltip.js"></script>
+ <style>
+ .vibration {
+ text-align: left
+ }
+ .opt {
+ text-align: left
+ }
+ </style>
</head>
<body>
<div data-role="header">
</div>
<div data-role="content">
<div class="containing-element">
- <label for="slider-1" style="text-align: left">Vibration Time(s)</label>
- <input type="range" name="slider-1" id="slider-1" data-highlight="true" min="0.50" max="3" step="0.10" value="1" data-show-value="true" style="display:none">
- <label for="slider-1" style="text-align: left">Vibration Periods(s)</label>
- <input type="range" name="slider-2" id="slider-2" data-highlight="true" min="0.10" max="2" step="0.10" value="0.50" data-show-value="true" style="display:none">
- <label for="slider-1" style="text-align: left">Vibration Number</label>
- <input type="range" name="slider-3" id="slider-3" data-highlight="true" min="1" max="20" value="2" data-show-value="true" style="display:none">
- <p><a href="javascript:startVibration()" id="start" data-role="button" style="height: 40px; line-height:10px">Start Vibration</a></p>
- <a href="javascript:stopVibration()" id="stop" data-role="button" style="height: 40px; line-height:10px">Stop Vibration</a>
+ <label for="slider-1" class="vibration">Vibration Time(s)</label>
+ <input type="range" name="slider-1" id="slider-1" data-highlight="true" min="0.50" max="3" step="0.10" value="1" data-show-value="true" class="hideButton">
+ <label for="slider-1" class="vibration">Vibration Periods(s)</label>
+ <input type="range" name="slider-2" id="slider-2" data-highlight="true" min="0.10" max="2" step="0.10" value="0.50" data-show-value="true" class="hideButton">
+ <label for="slider-1" class="vibration">Vibration Number</label>
+ <input type="range" name="slider-3" id="slider-3" data-highlight="true" min="1" max="20" value="2" data-show-value="true" class="hideButton">
+ <p><a href="javascript:startVibration()" id="start" data-role="button" class="opt">Start Vibration</a></p>
+ <a href="javascript:stopVibration()" id="stop" data-role="button" class="opt">Stop Vibration</a>
</div>
</div>
<div data-role="footer" data-position="fixed">
</div>
<div data-role="popup" id="popup_info">
- <font style="font-size:85%">
+ <font class="fontSize">
<p>Test Purpose: </p>
<p>Verifies the vibration is able to adjust vibration time from 500ms to 3000ms, vibration period from 100ms to 2000ms, and vibration number from 1 to 100. E.g, if vibration time is 1000ms, vibration period is 2000ms and vibration number is 3, then the test device vibrates 3 times in 6 seconds, and vibrates 1 second a time.</p>
<p>Expected Result: </p>
- <p>This test PASS only if the vibration functions well.</p>
+ <p>Test passes if the vibration functions well.</p>
</font>
</div>
</body>
<meta charset="utf-8" />
<meta name="viewport" content="initial-scale=1.0, maximum-scale=1.0, width=device-width">
<link rel="stylesheet" type="text/css" href="../../css/jquery.mobile.css" />
+ <link rel="stylesheet" type="text/css" href="../../css/main.css" />
<script src="../../js/thirdparty/jquery.js"></script>
<script src="../../js/thirdparty/jquery.mobile.js"></script>
<script src="../../js/tests.js"></script>
<div data-role="footer" data-position="fixed">
</div>
<div data-role="popup" id="popup_info">
- <font style="font-size:85%">
+ <font class="fontSize">
<p>Test Purpose: </p>
<p>Verifies the functionalities of viewport. Tests the functionality of getting screen height and width, enabling or disabling screen saleable to allow or disallow zoom in/out screen, sliding the screen by figure.</p>
<p>Expected Result: </p>
- <p>This test PASS only if the all the check points function well.</p>
+ <p>Test passes if all the check points function well.</p>
</font>
</div>
</body>
<meta charset="utf-8" />
<meta name="viewport" content="initial-scale=1.0, maximum-scale=1.0, width=device-width" />
<link rel="stylesheet" type="text/css" href="../../css/jquery.mobile.css" />
+ <link rel="stylesheet" type="text/css" href="../../css/main.css" />
<script src="../../js/thirdparty/jquery.js"></script>
<script src="../../js/thirdparty/jquery.mobile.js"></script>
<script src="../../js/tests.js"></script>
</li>
<li data-role="list-divider" role="heading">Clean all the installed packages</li>
<li>
- <div data-role="button" id="wgtClean" style="height:40px; line-height:20px;">Clean all test applications</div>
+ <div data-role="button" id="wgtClean" class="wgtButton">Clean all test applications</div>
</li>
</ul>
</div>
<div data-role="footer" data-position="fixed" data-tap-toggle="false">
</div>
<div data-role="popup" id="popup_info" data-theme="a">
- <font style="font-size:85%">
+ <font class="fontSize">
<p>Test Note: </p>
<p>Verifies the functionality of uri scheme support.</p>
<p>Test Purpose: </p>
<p>Verifies WRT MUST support at least the following URI schemes: "sms://", "mmsto://", "mailto://", "<mailto:>" and support localization funxtionality.</p>
<p>Expected Result: </p>
- <p>Test passes only if all sub tests passed.</p>
+ <p>Test passes if all sub-tests pass.</p>
</font>
</div>
</div>
var RESULT_FILE_NAME = "tct-behavior-child.wrts.result.xml";
$(document).delegate("#main", "pageinit", function() {
+ DisablePassButton();
$("#wgtClean").bind("vclick", function() {
showTotalBar();
});
} else {
$.mobile.hidePageLoadingMsg();
alert("All widgets is uninstalled!");
+ EnablePassButton();
}
}
}
var onError = function (err) {
- alert("Error occured on installation : " + err.name);
+ console.log("Error occured on installation : " + err.name);
$.mobile.hidePageLoadingMsg();
}
var install_wgt = new Array('debug-web-inspector-windows7','debug-web-inspector-ubuntu');
$(document).ready(function(){
+ updateFooterButton();
+
wgt_name = $("#wgt_name").val();
if(jQuery.inArray(wgt_name, install_wgt) == -1){
+ DisablePassButton();
+
app_id = $("#app_id").val();
package_id = $("#package_id").val();
$("#launch").bind("vclick", function() {
launch(app_id);
$('#uninstall').removeClass("ui-disabled");
- EnablePassButton();
});
$("#uninstall").bind("vclick", function() {
uninstall(package_id);
packagePre(wgt_name);
$('#uninstall').addClass("ui-disabled");
$('#launch').addClass("ui-disabled");
- updateFooterButton();
- DisablePassButton();
- } else {
- updateFooterButton();
+
+ if(checkInstalledPkg(package_id)) {
+ $('#install').addClass("ui-disabled");
+ $('#launch').removeClass("ui-disabled");
+ }
}
});
var packageEventCallback = {
oninstalled: function(packageInfo) {
$.mobile.hidePageLoadingMsg();
- $('#launch').removeClass("ui-disabled");
alert("The package " + packageInfo.name + " is installed");
},
onupdated: function(packageInfo) {
$.mobile.hidePageLoadingMsg();
- $('#launch').removeClass("ui-disabled");
alert("The package " + packageInfo.name + " is updated");
},
onuninstalled: function(packageId) {
$.mobile.hidePageLoadingMsg();
- $('#uninstall').addClass("ui-disabled");
- $('#launch').addClass("ui-disabled");
alert("The package " + packageId + " is uninstalled");
}
}
}
tizen.filesystem.resolve(
- 'documents',
- function(dir){
- documentsDir = dir;
- dir.listFiles(onsuccess, onerror);
- }, function(e) {
- alert("Error" + e.message);
- }, "r"
+ 'documents',
+ function(dir){
+ documentsDir = dir;
+ dir.listFiles(onsuccess, onerror);
+ }, function(e) {
+ alert("Error" + e.message);
+ }, "r"
);
}
-function checkInstalledPkg() {
- var packageInfo = null;
- try {
- if(package_id) {
- packageInfo = tizen.package.getPackageInfo(package_id);
- }
- } catch (e) {}
-
- return packageInfo === null ? false : true;
-}
-
function install() {
var onInstallationSuccess = {
- onprogress: function(packageId, percentage)
- {
- console.log("On installation(" + packageId + "): progress(" + percentage + ")");
- $.mobile.showPageLoadingMsg();
- },
- oncomplete: function(packageId)
- {
- console.log("Installation(" + packageId + ") Complete");
- }
+ onprogress: function(packageId, percentage)
+ {
+ console.log("On installation(" + packageId + "): progress(" + percentage + ")");
+ $.mobile.showPageLoadingMsg();
+ },
+ oncomplete: function(packageId)
+ {
+ console.log("Installation(" + packageId + ") Complete");
+ $('#install').addClass("ui-disabled");
+ $('#launch').removeClass("ui-disabled");
+ }
}
var onError = function (err) {
- alert("Error occured on installation : " + err.message);
+ console.log("Error occured on installation : " + err.message);
$.mobile.hidePageLoadingMsg();
}
try {
- if(checkInstalledPkg()) {
- $('#launch').removeClass("ui-disabled");
- alert("The package is already installed");
- } else {
- tizen.package.install(installUrl, onInstallationSuccess, onError);
- }
+ tizen.package.install(installUrl, onInstallationSuccess, onError);
} catch(e) {
alert("Exception: " + e.name);
}
function uninstall(package_id) {
var onUninstallationSuccess = {
- onprogress: function(packageId, percentage)
- {
- console.log("On uninstallation(" + packageId + "): progress(" + percentage + ")");
- $.mobile.showPageLoadingMsg();
- },
- oncomplete: function(packageId)
- {
- console.log("Uninstallation(" + packageId + ") Complete");
- }
+ onprogress: function(packageId, percentage)
+ {
+ console.log("On uninstallation(" + packageId + "): progress(" + percentage + ")");
+ $.mobile.showPageLoadingMsg();
+ },
+ oncomplete: function(packageId)
+ {
+ console.log("Uninstallation(" + packageId + ") Complete");
+ $('#launch').addClass("ui-disabled");
+ $('#uninstall').addClass("ui-disabled");
+ EnablePassButton();
+ }
}
var onError = function (err) {
- alert("Error occured on installation : " + err.name);
+ console.log("Error occured on installation : " + err.name);
$.mobile.hidePageLoadingMsg();
}
);
}
-function backAppsHome() {
- window.close();
-}
-
function reportResult(res) {
var jsonStr="[{\"testname\":\"" + wgt_name + "\",\"result\":\"" + res + "\"}]";
window.opener.postMessage(jsonStr, '*');
backAppsHome();
}
-
-function updateFooterButton(){
- var footbar = $(':jqmData(role=footer)');
- footbar.empty();
- footbar.attr("align", "center");
- footbar.append("<div data-role=\"controlgroup\" data-type=\"horizontal\">" +
- "<a href=\"javascript:reportResult('PASS');\" id=\"pass_button\" data-role=\"button\" data-icon=\"check\" style=\"color: green\">Pass</a>" +
- "<a href=\"javascript:reportResult('FAIL');\" id=\"fail_button\" data-role=\"button\" data-icon=\"delete\" style=\"color: red\">Fail</a>" +
- "<a href=\"#popup_info\" data-role=\"button\" data-icon=\"info\" data-rel=\"popup\" data-transition=\"pop\">Info</a>" +
- "<a href=\"javascript:backAppsHome();\" data-role=\"button\" data-icon=\"home\">Back</a></div>");
-
- footbar.trigger("create");
- footbar.find(':jqmData(role=button) > span:first-child').css('padding', '15px 10px 15px 30px');
- $("#popup_info").popup( "option", "theme", "a");
- var maxHeight = $(window).height() - 100 + "px";
- $("#popup_info").css("max-height", maxHeight);
- $("#popup_info").css("margin-bottom", "30px");
- $("#popup_info").css("overflow-y", "auto");
-}
-
-function EnablePassButton(){
- $('#pass_button').removeClass("ui-disabled");
-}
-
-function DisablePassButton(){
- $('#pass_button').addClass("ui-disabled");
-}
<meta charset="utf-8" />
<meta name="viewport" content="initial-scale=1.0, maximum-scale=1.0, width=device-width" />
<link rel="stylesheet" type="text/css" href="../../../css/jquery.mobile.css" />
+ <link rel="stylesheet" type="text/css" href="../../../css/main.css" />
<script src="../../../js/thirdparty/jquery.js"></script>
<script src="../../../js/thirdparty/jquery.mobile.js"></script>
<script src="../js/tests.js"></script>
<div data-role="footer" data-position="fixed" data-tap-toggle="false">
</div>
<div data-role="popup" id="popup_info" data-theme="a">
- <font style="font-size:85%">
+ <font class="fontSize">
<p>Test Purpose: </p>
<p>Verifies 'web inspector' supported on PC(ubuntu).</p>
</font>
<meta charset="utf-8" />
<meta name="viewport" content="initial-scale=1.0, maximum-scale=1.0, width=device-width" />
<link rel="stylesheet" type="text/css" href="../../../css/jquery.mobile.css" />
+ <link rel="stylesheet" type="text/css" href="../../../css/main.css" />
<script src="../../../js/thirdparty/jquery.js"></script>
<script src="../../../js/thirdparty/jquery.mobile.js"></script>
<script src="../js/tests.js"></script>
<div data-role="footer" data-position="fixed" data-tap-toggle="false">
</div>
<div data-role="popup" id="popup_info" data-theme="a">
- <font style="font-size:85%">
+ <font class="fontSize">
<p>Test Purpose: </p>
<p>Verifies 'web inspector' supported on PC(windows).</p>
</font>
<meta charset="utf-8" />
<meta name="viewport" content="initial-scale=1.0, maximum-scale=1.0, width=device-width" />
<link rel="stylesheet" type="text/css" href="../../../css/jquery.mobile.css" />
+ <link rel="stylesheet" type="text/css" href="../../../css/main.css" />
<script src="../../../js/thirdparty/jquery.js"></script>
<script src="../../../js/thirdparty/jquery.mobile.js"></script>
+ <script src="../../../js/tests.js"></script>
<script src="../js/tests.js"></script>
</head>
<body>
<ul data-role="listview">
<li data-role="list-divider">Package Install</li>
<li>
- <div data-role="button" id="install" style="height:40px; line-height:20px;">Install</div>
+ <div data-role="button" id="install" class="wgtButton">Install</div>
</li>
<li data-role="list-divider">Package Launch</li>
<li>
- <div data-role="button" id="launch" style="height:40px; line-height:20px;">Launch</div>
+ <div data-role="button" id="launch" class="wgtButton">Launch</div>
</li>
<li data-role="list-divider">Package Uninstall</li>
<li>
- <div data-role="button" id="uninstall" style="height:40px; line-height:20px;">Uninstall</div>
+ <div data-role="button" id="uninstall" class="wgtButton">Uninstall</div>
</li>
</ul>
</div>
<div data-role="footer" data-position="fixed" data-tap-toggle="false">
</div>
<div data-role="popup" id="popup_info" data-theme="a">
- <font style="font-size:85%">
+ <font class="fontSize">
<p>Test Step: </p>
<ol>
<li>Click the "Install" button to install the widget.</li>
<meta charset="utf-8" />
<meta name="viewport" content="initial-scale=1.0, maximum-scale=1.0, width=device-width" />
<link rel="stylesheet" type="text/css" href="../../../css/jquery.mobile.css" />
+ <link rel="stylesheet" type="text/css" href="../../../css/main.css" />
<script src="../../../js/thirdparty/jquery.js"></script>
<script src="../../../js/thirdparty/jquery.mobile.js"></script>
+ <script src="../../../js/tests.js"></script>
<script src="../js/tests.js"></script>
</head>
<body>
<ul data-role="listview">
<li data-role="list-divider">Package Install</li>
<li>
- <div data-role="button" id="install" style="height:40px; line-height:20px;">Install</div>
+ <div data-role="button" id="install" class="wgtButton">Install</div>
</li>
<li data-role="list-divider">Package Launch</li>
<li>
- <div data-role="button" id="launch" style="height:40px; line-height:20px;">Launch</div>
+ <div data-role="button" id="launch" class="wgtButton">Launch</div>
</li>
<li data-role="list-divider">Package Uninstall</li>
<li>
- <div data-role="button" id="uninstall" style="height:40px; line-height:20px;">Uninstall</div>
+ <div data-role="button" id="uninstall" class="wgtButton">Uninstall</div>
</li>
</ul>
</div>
<div data-role="footer" data-position="fixed" data-tap-toggle="false">
</div>
<div data-role="popup" id="popup_info" data-theme="a">
- <font style="font-size:85%">
+ <font class="fontSize">
<p>Pre-condition: </p>
<p>Make sure the local language is English (check the installed widget's name on the device idle screen, it should be "english-ol").</p>
<p>Test Step: </p>
<meta charset="utf-8" />
<meta name="viewport" content="initial-scale=1.0, maximum-scale=1.0, width=device-width" />
<link rel="stylesheet" type="text/css" href="../../../css/jquery.mobile.css" />
+ <link rel="stylesheet" type="text/css" href="../../../css/main.css" />
<script src="../../../js/thirdparty/jquery.js"></script>
<script src="../../../js/thirdparty/jquery.mobile.js"></script>
+ <script src="../../../js/tests.js"></script>
<script src="../js/tests.js"></script>
</head>
<body>
<ul data-role="listview">
<li data-role="list-divider">Package Install</li>
<li>
- <div data-role="button" id="install" style="height:40px; line-height:20px;">Install</div>
+ <div data-role="button" id="install" class="wgtButton">Install</div>
</li>
<li data-role="list-divider">Package Launch</li>
<li>
- <div data-role="button" id="launch" style="height:40px; line-height:20px;">Launch</div>
+ <div data-role="button" id="launch" class="wgtButton">Launch</div>
</li>
<li data-role="list-divider">Package Uninstall</li>
<li>
- <div data-role="button" id="uninstall" style="height:40px; line-height:20px;">Uninstall</div>
+ <div data-role="button" id="uninstall" class="wgtButton">Uninstall</div>
</li>
</ul>
</div>
<div data-role="footer" data-position="fixed" data-tap-toggle="false">
</div>
<div data-role="popup" id="popup_info" data-theme="a">
- <font style="font-size:85%">
+ <font class="fontSize">
<p>Test Step: </p>
<ol>
<li>Click the "Install" button to install the widget.</li>
<meta charset="utf-8" />
<meta name="viewport" content="initial-scale=1.0, maximum-scale=1.0, width=device-width" />
<link rel="stylesheet" type="text/css" href="../../../css/jquery.mobile.css" />
+ <link rel="stylesheet" type="text/css" href="../../../css/main.css" />
<script src="../../../js/thirdparty/jquery.js"></script>
<script src="../../../js/thirdparty/jquery.mobile.js"></script>
+ <script src="../../../js/tests.js"></script>
<script src="../js/tests.js"></script>
</head>
<body>
<ul data-role="listview">
<li data-role="list-divider">Package Install</li>
<li>
- <div data-role="button" id="install" style="height:40px; line-height:20px;">Install</div>
+ <div data-role="button" id="install" class="wgtButton">Install</div>
</li>
<li data-role="list-divider">Package Launch</li>
<li>
- <div data-role="button" id="launch" style="height:40px; line-height:20px;">Launch</div>
+ <div data-role="button" id="launch" class="wgtButton">Launch</div>
</li>
<li data-role="list-divider">Package Uninstall</li>
<li>
- <div data-role="button" id="uninstall" style="height:40px; line-height:20px;">Uninstall</div>
+ <div data-role="button" id="uninstall" class="wgtButton">Uninstall</div>
</li>
</ul>
</div>
<div data-role="footer" data-position="fixed" data-tap-toggle="false">
</div>
<div data-role="popup" id="popup_info" data-theme="a">
- <font style="font-size:85%">
+ <font class="fontSize">
<p>Test Step: </p>
<ol>
<li>Click the "Install" button to install the widget.</li>
<meta charset="utf-8" />
<meta name="viewport" content="initial-scale=1.0, maximum-scale=1.0, width=device-width" />
<link rel="stylesheet" type="text/css" href="../../../css/jquery.mobile.css" />
+ <link rel="stylesheet" type="text/css" href="../../../css/main.css" />
<script src="../../../js/thirdparty/jquery.js"></script>
<script src="../../../js/thirdparty/jquery.mobile.js"></script>
+ <script src="../../../js/tests.js"></script>
<script src="../js/tests.js"></script>
</head>
<body>
<ul data-role="listview">
<li data-role="list-divider">Package Install</li>
<li>
- <div data-role="button" id="install" style="height:40px; line-height:20px;">Install</div>
+ <div data-role="button" id="install" class="wgtButton">Install</div>
</li>
<li data-role="list-divider">Package Launch</li>
<li>
- <div data-role="button" id="launch" style="height:40px; line-height:20px;">Launch</div>
+ <div data-role="button" id="launch" class="wgtButton">Launch</div>
</li>
<li data-role="list-divider">Package Uninstall</li>
<li>
- <div data-role="button" id="uninstall" style="height:40px; line-height:20px;">Uninstall</div>
+ <div data-role="button" id="uninstall" class="wgtButton">Uninstall</div>
</li>
</ul>
</div>
<div data-role="footer" data-position="fixed" data-tap-toggle="false">
</div>
<div data-role="popup" id="popup_info" data-theme="a">
- <font style="font-size:85%">
+ <font class="fontSize">
<p>Pre-condition: </p>
<p>Make sure the device can connect to the Internet.</p>
<p>Test Step: </p>
<meta charset="utf-8" />
<meta name="viewport" content="initial-scale=1.0, maximum-scale=1.0, width=device-width" />
<link rel="stylesheet" type="text/css" href="../../../css/jquery.mobile.css" />
+ <link rel="stylesheet" type="text/css" href="../../../css/main.css" />
<script src="../../../js/thirdparty/jquery.js"></script>
<script src="../../../js/thirdparty/jquery.mobile.js"></script>
+ <script src="../../../js/tests.js"></script>
<script src="../js/tests.js"></script>
</head>
<body>
<ul data-role="listview">
<li data-role="list-divider">Package Install</li>
<li>
- <div data-role="button" id="install" style="height:40px; line-height:20px;">Install</div>
+ <div data-role="button" id="install" class="wgtButton">Install</div>
</li>
<li data-role="list-divider">Package Launch</li>
<li>
- <div data-role="button" id="launch" style="height:40px; line-height:20px;">Launch</div>
+ <div data-role="button" id="launch" class="wgtButton">Launch</div>
</li>
<li data-role="list-divider">Package Uninstall</li>
<li>
- <div data-role="button" id="uninstall" style="height:40px; line-height:20px;">Uninstall</div>
+ <div data-role="button" id="uninstall" class="wgtButton">Uninstall</div>
</li>
</ul>
</div>
<div data-role="footer" data-position="fixed" data-tap-toggle="false">
</div>
<div data-role="popup" id="popup_info" data-theme="a">
- <font style="font-size:85%">
+ <font class="fontSize">
<p>Pre-condition: </p>
<p>Confirm the widget application is encrypted.The resources(js, CSS, HTML files) of protection-encryption-check application is encrypted.<br>
For example: use the command: "vi /opt/usr/apps/wrt5pec002/res/wgt/index.html" to show the content of "index.html" in terminal, the content of "index.html" is encrypted.</p>
<meta charset="utf-8" />
<meta name="viewport" content="initial-scale=1.0, maximum-scale=1.0, width=device-width" />
<link rel="stylesheet" type="text/css" href="../../../css/jquery.mobile.css" />
+ <link rel="stylesheet" type="text/css" href="../../../css/main.css" />
<script src="../../../js/thirdparty/jquery.js"></script>
<script src="../../../js/thirdparty/jquery.mobile.js"></script>
+ <script src="../../../js/tests.js"></script>
<script src="../js/tests.js"></script>
</head>
<body>
<ul data-role="listview">
<li data-role="list-divider">Package Install</li>
<li>
- <div data-role="button" id="install" style="height:40px; line-height:20px;">Install</div>
+ <div data-role="button" id="install" class="wgtButton">Install</div>
</li>
<li data-role="list-divider">Package Launch</li>
<li>
- <div data-role="button" id="launch" style="height:40px; line-height:20px;">Launch</div>
+ <div data-role="button" id="launch" class="wgtButton">Launch</div>
</li>
<li data-role="list-divider">Package Uninstall</li>
<li>
- <div data-role="button" id="uninstall" style="height:40px; line-height:20px;">Uninstall</div>
+ <div data-role="button" id="uninstall" class="wgtButton">Uninstall</div>
</li>
</ul>
</div>
<div data-role="footer" data-position="fixed" data-tap-toggle="false">
</div>
<div data-role="popup" id="popup_info" data-theme="a">
- <font style="font-size:85%">
+ <font class="fontSize">
<p>Test Step: </p>
<ol>
<li>Click the "Install" button to install the widget.</li>
<meta charset="utf-8" />
<meta name="viewport" content="initial-scale=1.0, maximum-scale=1.0, width=device-width" />
<link rel="stylesheet" type="text/css" href="../../../css/jquery.mobile.css" />
+ <link rel="stylesheet" type="text/css" href="../../../css/main.css" />
<script src="../../../js/thirdparty/jquery.js"></script>
<script src="../../../js/thirdparty/jquery.mobile.js"></script>
+ <script src="../../../js/tests.js"></script>
<script src="../js/tests.js"></script>
</head>
<body>
<ul data-role="listview">
<li data-role="list-divider">Package Install</li>
<li>
- <div data-role="button" id="install" style="height:40px; line-height:20px;">Install</div>
+ <div data-role="button" id="install" class="wgtButton">Install</div>
</li>
<li data-role="list-divider">Package Launch</li>
<li>
- <div data-role="button" id="launch" style="height:40px; line-height:20px;">Launch</div>
+ <div data-role="button" id="launch" class="wgtButton">Launch</div>
</li>
<li data-role="list-divider">Package Uninstall</li>
<li>
- <div data-role="button" id="uninstall" style="height:40px; line-height:20px;">Uninstall</div>
+ <div data-role="button" id="uninstall" class="wgtButton">Uninstall</div>
</li>
</ul>
</div>
<div data-role="footer" data-position="fixed" data-tap-toggle="false">
</div>
<div data-role="popup" id="popup_info" data-theme="a">
- <font style="font-size:85%">
+ <font class="fontSize">
<p>Test Step: </p>
<ol>
<li>Click the "Install" button to install the widget.</li>
<meta charset="utf-8" />
<meta name="viewport" content="initial-scale=1.0, maximum-scale=1.0, width=device-width" />
<link rel="stylesheet" type="text/css" href="../../../css/jquery.mobile.css" />
+ <link rel="stylesheet" type="text/css" href="../../../css/main.css" />
<script src="../../../js/thirdparty/jquery.js"></script>
<script src="../../../js/thirdparty/jquery.mobile.js"></script>
+ <script src="../../../js/tests.js"></script>
<script src="../js/tests.js"></script>
</head>
<body>
<ul data-role="listview">
<li data-role="list-divider">Package Install</li>
<li>
- <div data-role="button" id="install" style="height:40px; line-height:20px;">Install</div>
+ <div data-role="button" id="install" class="wgtButton">Install</div>
</li>
<li data-role="list-divider">Package Launch</li>
<li>
- <div data-role="button" id="launch" style="height:40px; line-height:20px;">Launch</div>
+ <div data-role="button" id="launch" class="wgtButton">Launch</div>
</li>
<li data-role="list-divider">Package Uninstall</li>
<li>
- <div data-role="button" id="uninstall" style="height:40px; line-height:20px;">Uninstall</div>
+ <div data-role="button" id="uninstall" class="wgtButton">Uninstall</div>
</li>
</ul>
</div>
<div data-role="footer" data-position="fixed" data-tap-toggle="false">
</div>
<div data-role="popup" id="popup_info" data-theme="a">
- <font style="font-size:85%">
+ <font class="fontSize">
<p>Pre-condition: </p>
<p>Make sure the device can connect to the Internet.</p>
<p>Test Step: </p>
<meta charset="utf-8" />
<meta name="viewport" content="initial-scale=1.0, maximum-scale=1.0, width=device-width" />
<link rel="stylesheet" type="text/css" href="../../../css/jquery.mobile.css" />
+ <link rel="stylesheet" type="text/css" href="../../../css/main.css" />
<script src="../../../js/thirdparty/jquery.js"></script>
<script src="../../../js/thirdparty/jquery.mobile.js"></script>
+ <script src="../../../js/tests.js"></script>
<script src="../js/tests.js"></script>
</head>
<body>
<ul data-role="listview">
<li data-role="list-divider">Package Install</li>
<li>
- <div data-role="button" id="install" style="height:40px; line-height:20px;">Install</div>
+ <div data-role="button" id="install" class="wgtButton">Install</div>
</li>
<li data-role="list-divider">Package Launch</li>
<li>
- <div data-role="button" id="launch" style="height:40px; line-height:20px;">Launch</div>
+ <div data-role="button" id="launch" class="wgtButton">Launch</div>
</li>
<li data-role="list-divider">Package Uninstall</li>
<li>
- <div data-role="button" id="uninstall" style="height:40px; line-height:20px;">Uninstall</div>
+ <div data-role="button" id="uninstall" class="wgtButton">Uninstall</div>
</li>
</ul>
</div>
<div data-role="footer" data-position="fixed" data-tap-toggle="false">
</div>
<div data-role="popup" id="popup_info" data-theme="a">
- <font style="font-size:85%">
+ <font class="fontSize">
<p>Pre-condition: </p>
<p>Make sure the device can connect to the Internet.</p>
<p>Test Step: </p>
<meta charset="utf-8" />
<meta name="viewport" content="initial-scale=1.0, maximum-scale=1.0, width=device-width" />
<link rel="stylesheet" type="text/css" href="../../../css/jquery.mobile.css" />
+ <link rel="stylesheet" type="text/css" href="../../../css/main.css" />
<script src="../../../js/thirdparty/jquery.js"></script>
<script src="../../../js/thirdparty/jquery.mobile.js"></script>
+ <script src="../../../js/tests.js"></script>
<script src="../js/tests.js"></script>
</head>
<body>
<ul data-role="listview">
<li data-role="list-divider">Package Install</li>
<li>
- <div data-role="button" id="install" style="height:40px; line-height:20px;">Install</div>
+ <div data-role="button" id="install" class="wgtButton">Install</div>
</li>
<li data-role="list-divider">Package Launch</li>
<li>
- <div data-role="button" id="launch" style="height:40px; line-height:20px;">Launch</div>
+ <div data-role="button" id="launch" class="wgtButton">Launch</div>
</li>
<li data-role="list-divider">Package Uninstall</li>
<li>
- <div data-role="button" id="uninstall" style="height:40px; line-height:20px;">Uninstall</div>
+ <div data-role="button" id="uninstall" class="wgtButton">Uninstall</div>
</li>
</ul>
</div>
<div data-role="footer" data-position="fixed" data-tap-toggle="false">
</div>
<div data-role="popup" id="popup_info" data-theme="a">
- <font style="font-size:85%">
+ <font class="fontSize">
<p>Pre-condition: </p>
<p>Make sure the device can connect to the Internet.</p>
<p>Test Step: </p>
<meta charset="utf-8" />
<meta name="viewport" content="initial-scale=1.0, maximum-scale=1.0, width=device-width" />
<link rel="stylesheet" type="text/css" href="../../css/jquery.mobile.css" />
+ <link rel="stylesheet" type="text/css" href="../../css/main.css" />
<script src="../../js/thirdparty/jquery.js"></script>
<script src="../../js/thirdparty/jquery.mobile.js"></script>
<script src="../../js/tests.js"></script>
</li>
<li data-role="list-divider" role="heading">Clean all the installed packages</li>
<li>
- <div data-role="button" id="wgtClean" style="height:40px; line-height:20px;">Clean all test applications</div>
+ <div data-role="button" id="wgtClean" class="wgtButton">Clean all test applications</div>
</li>
</ul>
</div>
<div data-role="footer" data-position="fixed" data-tap-toggle="false">
</div>
<div data-role="popup" id="popup_info" data-theme="a">
- <font style="font-size:85%">
+ <font class="fontSize">
<p>Test Note: </p>
<p>Verifies the functionality of view mode and multiple browsing context support.</p>
<p>Test Purpose: </p>
<p>Verifies WRT support two view modes: “maximized” and “fullscreen” of W3C 'view-mode' Media Feature.</p>
<p>Expected Result: </p>
- <p>Test passes only if all sub tests passed.</p>
+ <p>Test passes if all sub-tests pass.</p>
</font>
</div>
</div>
var RESULT_FILE_NAME = "tct-behavior-child.wrtui.result.xml";
$(document).delegate("#main", "pageinit", function() {
+ DisablePassButton();
$("#wgtClean").bind("vclick", function() {
showTotalBar();
});
} else {
$.mobile.hidePageLoadingMsg();
alert("All widgets is uninstalled!");
+ EnablePassButton();
}
}
}
var onError = function (err) {
- alert("Error occured on installation : " + err.name);
+ console.log("Error occured on installation : " + err.name);
$.mobile.hidePageLoadingMsg();
}
var package_id;
$(document).ready(function(){
+ updateFooterButton();
+ DisablePassButton();
+
wgt_name = $("#wgt_name").val();
app_id = $("#app_id").val();
package_id = $("#package_id").val();
$("#launch").bind("vclick", function() {
launch(app_id);
$('#uninstall').removeClass("ui-disabled");
- EnablePassButton();
});
$("#uninstall").bind("vclick", function() {
uninstall(package_id);
packagePre(wgt_name);
$('#uninstall').addClass("ui-disabled");
$('#launch').addClass("ui-disabled");
- updateFooterButton();
- DisablePassButton();
+
+ if(checkInstalledPkg(package_id)) {
+ $('#install').addClass("ui-disabled");
+ $('#launch').removeClass("ui-disabled");
+ }
});
var packageEventCallback = {
oninstalled: function(packageInfo) {
$.mobile.hidePageLoadingMsg();
- $('#launch').removeClass("ui-disabled");
alert("The package " + packageInfo.name + " is installed");
},
onupdated: function(packageInfo) {
$.mobile.hidePageLoadingMsg();
- $('#launch').removeClass("ui-disabled");
alert("The package " + packageInfo.name + " is updated");
},
onuninstalled: function(packageId) {
$.mobile.hidePageLoadingMsg();
- $('#uninstall').addClass("ui-disabled");
- $('#launch').addClass("ui-disabled");
alert("The package " + packageId + " is uninstalled");
}
}
}
tizen.filesystem.resolve(
- 'documents',
- function(dir){
- documentsDir = dir;
- dir.listFiles(onsuccess, onerror);
- }, function(e) {
- alert("Error" + e.message);
- }, "r"
+ 'documents',
+ function(dir){
+ documentsDir = dir;
+ dir.listFiles(onsuccess, onerror);
+ }, function(e) {
+ alert("Error" + e.message);
+ }, "r"
);
}
-function checkInstalledPkg() {
- var packageInfo = null;
- try {
- if(package_id) {
- packageInfo = tizen.package.getPackageInfo(package_id);
- }
- } catch (e) {}
-
- return packageInfo === null ? false : true;
-}
-
function install() {
var onInstallationSuccess = {
- onprogress: function(packageId, percentage)
- {
- console.log("On installation(" + packageId + "): progress(" + percentage + ")");
- $.mobile.showPageLoadingMsg();
- },
- oncomplete: function(packageId)
- {
- console.log("Installation(" + packageId + ") Complete");
- }
+ onprogress: function(packageId, percentage)
+ {
+ console.log("On installation(" + packageId + "): progress(" + percentage + ")");
+ $.mobile.showPageLoadingMsg();
+ },
+ oncomplete: function(packageId)
+ {
+ console.log("Installation(" + packageId + ") Complete");
+ $('#install').addClass("ui-disabled");
+ $('#launch').removeClass("ui-disabled");
+ }
}
var onError = function (err) {
- alert("Error occured on installation : " + err.message);
+ console.log("Error occured on installation : " + err.message);
$.mobile.hidePageLoadingMsg();
}
try {
- if(checkInstalledPkg()) {
- $('#launch').removeClass("ui-disabled");
- alert("The package is already installed");
- } else {
- tizen.package.install(installUrl, onInstallationSuccess, onError);
- }
+ tizen.package.install(installUrl, onInstallationSuccess, onError);
} catch(e) {
alert("Exception: " + e.name);
}
function uninstall(package_id) {
var onUninstallationSuccess = {
- onprogress: function(packageId, percentage)
- {
- console.log("On uninstallation(" + packageId + "): progress(" + percentage + ")");
- $.mobile.showPageLoadingMsg();
- },
- oncomplete: function(packageId)
- {
- console.log("Uninstallation(" + packageId + ") Complete");
- }
+ onprogress: function(packageId, percentage)
+ {
+ console.log("On uninstallation(" + packageId + "): progress(" + percentage + ")");
+ $.mobile.showPageLoadingMsg();
+ },
+ oncomplete: function(packageId)
+ {
+ console.log("Uninstallation(" + packageId + ") Complete");
+ $('#uninstall').addClass("ui-disabled");
+ $('#launch').addClass("ui-disabled");
+ EnablePassButton();
+ }
}
var onError = function (err) {
- alert("Error occured on installation : " + err.name);
+ console.log("Error occured on installation : " + err.name);
$.mobile.hidePageLoadingMsg();
}
);
}
-function backAppsHome() {
- window.close();
-}
-
function reportResult(res) {
var jsonStr="[{\"testname\":\"" + wgt_name + "\",\"result\":\"" + res + "\"}]";
window.opener.postMessage(jsonStr, '*');
backAppsHome();
}
-
-function updateFooterButton(){
- var footbar = $(':jqmData(role=footer)');
- footbar.empty();
- footbar.attr("align", "center");
- footbar.append("<div data-role=\"controlgroup\" data-type=\"horizontal\">" +
- "<a href=\"javascript:reportResult('PASS');\" id=\"pass_button\" data-role=\"button\" data-icon=\"check\" style=\"color: green\">Pass</a>" +
- "<a href=\"javascript:reportResult('FAIL');\" id=\"fail_button\" data-role=\"button\" data-icon=\"delete\" style=\"color: red\">Fail</a>" +
- "<a href=\"#popup_info\" data-role=\"button\" data-icon=\"info\" data-rel=\"popup\" data-transition=\"pop\">Info</a>" +
- "<a href=\"javascript:backAppsHome();\" data-role=\"button\" data-icon=\"home\">Back</a></div>");
-
- footbar.trigger("create");
- footbar.find(':jqmData(role=button) > span:first-child').css('padding', '15px 10px 15px 30px');
- $("#popup_info").popup( "option", "theme", "a");
- var maxHeight = $(window).height() - 100 + "px";
- $("#popup_info").css("max-height", maxHeight);
- $("#popup_info").css("margin-bottom", "30px");
- $("#popup_info").css("overflow-y", "auto");
-}
-
-function EnablePassButton(){
- $('#pass_button').removeClass("ui-disabled");
-}
-
-function DisablePassButton(){
- $('#pass_button').addClass("ui-disabled");
-}
<meta charset="utf-8" />
<meta name="viewport" content="initial-scale=1.0, maximum-scale=1.0, width=device-width" />
<link rel="stylesheet" type="text/css" href="../../../css/jquery.mobile.css" />
+ <link rel="stylesheet" type="text/css" href="../../../css/main.css" />
<script src="../../../js/thirdparty/jquery.js"></script>
<script src="../../../js/thirdparty/jquery.mobile.js"></script>
+ <script src="../../../js/tests.js"></script>
<script src="../js/tests.js"></script>
</head>
<body>
<ul data-role="listview">
<li data-role="list-divider">Package Install</li>
<li>
- <div data-role="button" id="install" style="height:40px; line-height:20px;">Install</div>
+ <div data-role="button" id="install" class="wgtButton">Install</div>
</li>
<li data-role="list-divider">Package Launch</li>
<li>
- <div data-role="button" id="launch" style="height:40px; line-height:20px;">Launch</div>
+ <div data-role="button" id="launch" class="wgtButton">Launch</div>
</li>
<li data-role="list-divider">Package Uninstall</li>
<li>
- <div data-role="button" id="uninstall" style="height:40px; line-height:20px;">Uninstall</div>
+ <div data-role="button" id="uninstall" class="wgtButton">Uninstall</div>
</li>
</ul>
</div>
<div data-role="footer" data-position="fixed" data-tap-toggle="false">
</div>
<div data-role="popup" id="popup_info" data-theme="a">
- <font style="font-size:85%">
+ <font class="fontSize">
<p>Pre-condition: </p>
<p>Turn on the auto-rotate screen. (Maybe this option can be found in the "setting" menu of the device).</p>
<p>Test Step: </p>
<meta charset="utf-8" />
<meta name="viewport" content="initial-scale=1.0, maximum-scale=1.0, width=device-width" />
<link rel="stylesheet" type="text/css" href="../../../css/jquery.mobile.css" />
+ <link rel="stylesheet" type="text/css" href="../../../css/main.css" />
<script src="../../../js/thirdparty/jquery.js"></script>
<script src="../../../js/thirdparty/jquery.mobile.js"></script>
+ <script src="../../../js/tests.js"></script>
<script src="../js/tests.js"></script>
</head>
<body>
<ul data-role="listview">
<li data-role="list-divider">Package Install</li>
<li>
- <div data-role="button" id="install" style="height:40px; line-height:20px;">Install</div>
+ <div data-role="button" id="install" class="wgtButton">Install</div>
</li>
<li data-role="list-divider">Package Launch</li>
<li>
- <div data-role="button" id="launch" style="height:40px; line-height:20px;">Launch</div>
+ <div data-role="button" id="launch" class="wgtButton">Launch</div>
</li>
<li data-role="list-divider">Package Uninstall</li>
<li>
- <div data-role="button" id="uninstall" style="height:40px; line-height:20px;">Uninstall</div>
+ <div data-role="button" id="uninstall" class="wgtButton">Uninstall</div>
</li>
</ul>
</div>
<div data-role="footer" data-position="fixed" data-tap-toggle="false">
</div>
<div data-role="popup" id="popup_info" data-theme="a">
- <font style="font-size:85%">
+ <font class="fontSize">
<p>Test Step: </p>
<ol>
<li>Click the "Install" button to install the widget.</li>
<meta charset="utf-8" />
<meta name="viewport" content="initial-scale=1.0, maximum-scale=1.0, width=device-width" />
<link rel="stylesheet" type="text/css" href="../../../css/jquery.mobile.css" />
+ <link rel="stylesheet" type="text/css" href="../../../css/main.css" />
<script src="../../../js/thirdparty/jquery.js"></script>
<script src="../../../js/thirdparty/jquery.mobile.js"></script>
+ <script src="../../../js/tests.js"></script>
<script src="../js/tests.js"></script>
</head>
<body>
<ul data-role="listview">
<li data-role="list-divider">Package Install</li>
<li>
- <div data-role="button" id="install" style="height:40px; line-height:20px;">Install</div>
+ <div data-role="button" id="install" class="wgtButton">Install</div>
</li>
<li data-role="list-divider">Package Launch</li>
<li>
- <div data-role="button" id="launch" style="height:40px; line-height:20px;">Launch</div>
+ <div data-role="button" id="launch" class="wgtButton">Launch</div>
</li>
<li data-role="list-divider">Package Uninstall</li>
<li>
- <div data-role="button" id="uninstall" style="height:40px; line-height:20px;">Uninstall</div>
+ <div data-role="button" id="uninstall" class="wgtButton">Uninstall</div>
</li>
</ul>
</div>
<div data-role="footer" data-position="fixed" data-tap-toggle="false">
</div>
<div data-role="popup" id="popup_info" data-theme="a">
- <font style="font-size:85%">
+ <font class="fontSize">
<p>Test Step: </p>
<ol>
<li>Click the "Install" button to install the widget.</li>
<meta charset="utf-8" />
<meta name="viewport" content="initial-scale=1.0, maximum-scale=1.0, width=device-width" />
<link rel="stylesheet" type="text/css" href="../../../css/jquery.mobile.css" />
+ <link rel="stylesheet" type="text/css" href="../../../css/main.css" />
<script src="../../../js/thirdparty/jquery.js"></script>
<script src="../../../js/thirdparty/jquery.mobile.js"></script>
+ <script src="../../../js/tests.js"></script>
<script src="../js/tests.js"></script>
</head>
<body>
<ul data-role="listview">
<li data-role="list-divider">Package Install</li>
<li>
- <div data-role="button" id="install" style="height:40px; line-height:20px;">Install</div>
+ <div data-role="button" id="install" class="wgtButton">Install</div>
</li>
<li data-role="list-divider">Package Launch</li>
<li>
- <div data-role="button" id="launch" style="height:40px; line-height:20px;">Launch</div>
+ <div data-role="button" id="launch" class="wgtButton">Launch</div>
</li>
<li data-role="list-divider">Package Uninstall</li>
<li>
- <div data-role="button" id="uninstall" style="height:40px; line-height:20px;">Uninstall</div>
+ <div data-role="button" id="uninstall" class="wgtButton">Uninstall</div>
</li>
</ul>
</div>
<div data-role="footer" data-position="fixed" data-tap-toggle="false">
</div>
<div data-role="popup" id="popup_info" data-theme="a">
- <font style="font-size:85%">
+ <font class="fontSize">
<p>Test Step: </p>
<ol>
<li>Click the "Install" button to install the widget.</li>