<testcase id="script-src_none" result="N/A"></testcase>
<testcase id="script-src_inline_eval" result="N/A"></testcase>
<testcase id="style-src_self" result="N/A"></testcase>
- <testcase id="report-uri-single-violated" result="N/A"></testcase>
</set>
<set name="PackageManagement">
<testcase id="Sample-widget1" result="N/A"></testcase>
<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>Test Step: </p>
+ <ol>
+ <li>Click the "Status" slider to play or pause the animation.</li>
+ <li>Click the "Direction" buttons to change the rotation direction.</li>
+ <li>Click the "Size" slider to change the animation size.</li>
+ <li>Click the "Speed" slider to change the rotation speed.</li>
+ </ol>
<p>Expected Result: </p>
- <p>Test passes if all the check points function well during rotation.</p>
+ <p>Test passes if all the check points work well during rotation.</p>
</font>
</div>
</body>
}
var onError = function (err) {
- console.log("Error occured on installation : " + err.message);
+ alert("Error occured on installation : " + err.message);
}
try {
}
var onError = function (err) {
- console.log("Error occured on installation : " + err.name);
+ alert("Error occured on uninstallation : " + err.name);
}
try {
<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>
+ <ul>
+ <li>The "JS time" is different from the "Difference time".</li>
+ <li>The "Animation time" is different from the "Difference time".</li>
+ </ul>
</font>
</div>
</div>
} else {
$.mobile.hidePageLoadingMsg();
alert("All widgets is uninstalled!");
- EnablePassButton();
+ if (checkIfAllPackagePass()) {
+ EnablePassButton();
+ }
}
}
+function checkIfAllPackagePass() {
+ var result = true;
+
+ tests.each(function() {
+ if ($(this).attr('result') != "PASS") {
+ result = false;
+ }
+ });
+ return result;
+}
+
function uninstall(val) {
installedId.shift();
var totalBar = Math.floor((allId.length - installedId.length - 1) / allId.length * 100);
}
var onError = function (err) {
- console.log("Error occured on installation : " + err.message);
+ alert("Error occured on installation : " + err.message);
$.mobile.hidePageLoadingMsg();
}
}
var onError = function (err) {
- console.log("Error occured on installation : " + err.name);
+ alert("Error occured on uninstallation : " + err.name);
$.mobile.hidePageLoadingMsg();
}
<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 pass.</p>
+ <p>Test passes if all "TestN", N=1...6, pass.</p>
</font>
</div>
</div>
<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 pass.</p>
+ <p>Test passes if all "TestN", N=1...6, pass.</p>
</font>
</div>
</div>
<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>Test passes if the transformation and animation function well.</p>
+ <p>Test passes if the transformation and animation functions all work well.</p>
</font>
</div>
</body>
<script src="../../js/tests.js"></script>
<script src="js/main.js"></script>
<script src="js/slider.tooltip.js"></script>
+ <style>
+ .normalSpan {
+ display:none;
+ color:red;
+ }
+ .columnSpan {
+ visibility:hidden;
+ color:red;
+ }
+ </style>
</head>
<body>
<div data-role="header">
<div data-role="content" class="content">
<div id="d">
<div id="text-div">
- <div id="p"><span style="display:none;color:red">A</span>
+ <div id="p"><span class="normalSpan">A</span>
By using functionality described in this document, style sheets can declare that the content of an element is to be laid out in multiple columns.
- <h3 id="h"><span style="visibility:hidden;color:red">A</span>column span</h3>
+ <h3 id="h"><span class="columnSpan">A</span>column span</h3>
The main benefit of using CSS-based columns is flexibility; content can flow from one column to another.
</div>
</div>
<div data-role="popup" id="popup_info">
<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>Verifies</p>
+ <ul>
+ <li>the dotted line box has a white background, red first letter, green dotted border.</li>
+ <li>the general description uses default font in browser.</li>
+ <li>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.</li>
+ <li>the text align in left or right, text in uppercase or lowercase, text and box shadow in two effects, text decoration in three effects and word break in two effects.</li>
+ <li>the "column span" text shows in random code when using uppercase.</li>
+ </ul>
<p>Expected Result: </p>
- <p>Test passes if all the check points function well in the div box.</p>
+ <p>Test passes if all the check points work well in the dotted line box.</p>
</font>
</div>
</body>
<script src="../../js/thirdparty/jquery.mobile.js"></script>
<script src="../../js/tests.js"></script>
<script src="js/main.js"></script>
+ <style>
+ #observateEare {
+ border: black solid 1px;
+ height: 300px;
+ }
+ #photoShow {
+ height: 210px;
+ line-height:210px;
+ }
+ </style>
</head>
<body>
<div data-role="header">
<h1 id="main_page_title"></h1>
</div>
<div data-role="content">
- <div id="observateEare" align="center" style="border: #000 solid 1px;height: 300px;">
+ <div id="observateEare" align="center">
<p id="filename"></p>
- <div id="photoShow" align="center" style="height: 210px;line-height:210px;"></div>
+ <div id="photoShow" align="center"></div>
</div>
<input type="file" id="files" accept="image/*" capture="camera" class="hideButton" />
<div align="center">
<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>Test Step: </p>
+ <p>Click the "Launch camera to take a photo" button to launch the camera preview.</p>
<p>Expected Result: </p>
- <p>Test passes if the camera preview and capture function well.</p>
+ <p>Test passes if the camera preview and capture work well.</p>
</font>
</div>
</body>
<script src="../../js/thirdparty/jquery.mobile.js"></script>
<script src="../../js/tests.js"></script>
<script src="js/main.js"></script>
+ <style>
+ #observateEare {
+ border: black solid 1px;
+ height: 330px;
+ line-height:330px;
+ }
+ </style>
</head>
<body>
<div data-role="header">
<h1 id="main_page_title"></h1>
</div>
<div data-role="content">
- <div id="observateEare" align="center" style="border: #000 solid 1px;height: 330px;line-height:330px;">
+ <div id="observateEare" align="center">
<p id="errormassage"></p>
<div align="center">
<video width="330px" height="330px" id="localView" autoplay="autoplay"></video>
<font class="fontSize">
<p>Test Purpose: </p>
<p>Verifies the functionality of enabling and disabling the Camera preview.</p>
+ <p>Test Step: </p>
+ <ol>
+ <li>Click the "Start camera preview" button to launch the preview.</li>
+ <li>Click the "Stop camera preview" button to close the preview.</li>
+ </ol>
<p>Expected Result: </p>
- <p>Test passes if the Camera preview through GetUserMedia functions well.</p>
+ <p>Test passes if the Camera preview works well.</p>
</font>
</div>
</body>
</div>
<div id="content">
<ul data-role="listview">
- <li data-role="list-divider">ClipboardApplication Install</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" class="wgtButton">Uninstall</div></li>
+ <li data-role="list-divider">Package Install</li>
+ <li>
+ <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="launch1" class="wgtButton">Launch</div>
+ </li>
+ <li data-role="list-divider">Package Uninstall</li>
+ <li>
+ <div data-role="button" id="uninstall" class="wgtButton">Uninstall</div>
+ </li>
</ul>
</div>
<div data-role="footer" data-position="fixed">
<li>Click the "Uninstall" button to uninstall the widget.</li>
</ol>
<p>Expected Result: </p>
- <p>Test passes if the copy, cut and paste functions all well.</p>
+ <p>Test passes if the copy, cut and paste functions all work well.</p>
</font>
</div>
</div>
}
var onError = function (err) {
- console.log("Error occured on installation : " + err.message);
+ alert("Error occured on installation : " + err.message);
$.mobile.hidePageLoadingMsg();
}
}
var onError = function (err) {
- console.log("Error occured on installation : " + err.name);
+ alert("Error occured on uninstallation : " + err.name);
$.mobile.hidePageLoadingMsg();
}
} else {
$.mobile.hidePageLoadingMsg();
alert("All widgets is uninstalled!");
- EnablePassButton();
+ if (checkIfAllPackagePass()) {
+ EnablePassButton();
+ }
}
}
+function checkIfAllPackagePass() {
+ var result = true;
+
+ tests.each(function() {
+ if ($(this).attr('result') != "PASS") {
+ result = false;
+ }
+ });
+ return result;
+}
+
function uninstall(val) {
installedId.shift();
var totalBar = Math.floor((allId.length - installedId.length - 1) / allId.length * 100);
var app_id;
var package_id;
var nolaunch_wgt = new Array('setting-encrypt-enable','setting-encrypt-disable');
+var NOTINSTALL_WGT = "setting-install-location-prefer-external-no-card";
$(document).ready(function(){
updateFooterButton();
}
var onError = function (err) {
- console.log("Error occured on installation : " + err.message);
+ alert("Error occured on installation : " + err.message);
$.mobile.hidePageLoadingMsg();
+
+ if (wgt_name == NOTINSTALL_WGT) {
+ EnablePassButton();
+ }
}
try {
}
var onError = function (err) {
- console.log("Error occured on installation : " + err.name);
+ alert("Error occured on uninstallation : " + err.name);
$.mobile.hidePageLoadingMsg();
}
<li>Click the "Uninstall" button to uninstall the widget.</li>
</ol>
<p>Expected Result: </p>
- <p>Test passes if the popup dialog cannot be displayed after losing the press.</p>
+ <p>No popup menu after release the press.</p>
</font>
</div>
</div>
<li>Click the "Uninstall" button to uninstall the widget.</li>
</ol>
<p>Expected Result: </p>
- <p>Test passes if the popup dialog can be displayed after losing the press.</p>
+ <p>There is a popup menu after release the press.</p>
</font>
</div>
</div>
<li>Click the "Uninstall" button to uninstall the widget.</li>
</ol>
<p>Expected Result: </p>
- <p>Test passes if the widget application can be launched and a "PASS" is shown on the screen.</p>
+ <p>There is a "PASS" after launch the widget.</p>
</font>
</div>
</div>
<p>Make sure there is no memory card inserted into the device.</p>
<p>Test Step: </p>
<p>Click the "Install" button to install the widget.</p>
- <li>Click the "Uninstall" button to uninstall the widget.</li>
<p>Expected Result: </p>
- <p>Test passes if the widget can not be installed successfully.</p>
+ <p>The widget cannot be installed successfully.</p>
</font>
</div>
</div>
</div>
<div id="content">
<ul data-role="listview">
- <li data-role="list-divider">DragandDropApplication Install</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" class="wgtButton">Uninstall</div></li>
+ <li data-role="list-divider">Package Install</li>
+ <li>
+ <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="launch1" class="wgtButton">Launch</div>
+ </li>
+ <li data-role="list-divider">Package Uninstall</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">
}
var onError = function (err) {
- console.log("Error occured on installation : " + err.message);
+ alert("Error occured on installation : " + err.message);
$.mobile.hidePageLoadingMsg();
}
}
var onError = function (err) {
- console.log("Error occured on installation : " + err.name);
+ alert("Error occured on uninstallation : " + err.name);
$.mobile.hidePageLoadingMsg();
}
<li>
<div data-role="button" id="install" class="wgtButton">Install</div>
</li>
- <li data-role="list-divider">TestPackage Application Launch</li>
+ <li data-role="list-divider">Package Launch</li>
<li>
<div data-role="button" id="launch" class="wgtButton">Launch</div>
</li>
<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 "Install" button, test step passes if all app widgets installed successfully.</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 "Mouse event false"; press the filled blue square; test step passes if the blue square doesn't change;</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 "AppWidget Unload event"; wait 3 seconds; test step passes if there are several 'pass' displayed;</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"; press 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 filled blue square; test step passes if the blue square changes to green;</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"; 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>
+ <li>Click the "Uninstall" button, test step passes if all app widgets uninstalled successfully.</li>
</ol>
<p>Expected Result: </p>
<p>Test passes if all the test steps pass.</p>
'app-widget-sample.wgt',
'app-widget-unload-event.wgt',
'app-widget-box-appwidgetready-event.wgt',
- 'app-widget-box-label-fr.wgt',
- 'app-widget-primary-true-false.wgt',
'app-widget-mouse-event-true.wgt',
'app-widget-load-event.wgt',
'app-widget-visibility-event.wgt',
'wrt6app001',
'wrt6aws017',
'wrt6awb006',
- 'wrt6awb010',
- 'wrt6awi004',
'wrt6awi013',
'wrt6aws016',
'wrt6aws018',
'app-widget-sample.wgt': 'wrt6app001',
'app-widget-unload-event.wgt': 'wrt6aws017',
'app-widget-box-appwidgetready-event.wgt': 'wrt6awb006',
- 'app-widget-box-label-fr.wgt': 'wrt6awb010',
- 'app-widget-primary-true-false.wgt': 'wrt6awi004',
'app-widget-mouse-event-true.wgt': 'wrt6awi013',
'app-widget-load-event.wgt': 'wrt6aws016',
'app-widget-visibility-event.wgt': 'wrt6aws018',
var onError = function (err) {
$.mobile.loading('hide');
$("#launch").removeClass("ui-disabled");
- console.log("Error occured on installation : " + err.message);
+ alert("Error occured on installation : " + err.message);
}
try {
var onError = function (err) {
$.mobile.loading('hide');
- console.log("Error occured on installation : " + err.name);
+ alert("Error occured on uninstallation : " + err.name);
}
try {
<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>Ensure at least one txt file is located in the device.</p>
<p>Expected Result: </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>
+ <ul>
+ <li>File upload successfully.</li>
+ <li>File size show correctly.</li>
+ <li>File content print on the screen.</li>
+ </ul>
</font>
</div>
</body>
<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>Test passes if full screen mode and CSS full screen mode function well.</p>
+ <p>Test passes if full screen mode and CSS full screen mode functions all work well.</p>
</font>
</div>
</body>
</div>
<div id="content">
<ul data-role="listview">
- <li data-role="list-divider">HybridApplication Install</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" 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" class="wgtButton">Uninstall</div></li>
- <li><div data-role="button" id="launch3" class="wgtButton">Try to Launch</div></li>
+ <li data-role="list-divider">Package Install</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">Package Update</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">Package Uninstall</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">
<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 if all the test points function well.</p>
+ <p>Test passes if all the test points work well.</p>
</font>
</div>
</div>
<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>Test passes if all the check points function well during video playback.</p>
+ <p>Test passes if all the check points work well during the video playback.</p>
</font>
</div>
</body>
} else {
$.mobile.hidePageLoadingMsg();
alert("All widgets is uninstalled!");
- EnablePassButton();
+ if (checkIfAllPackagePass()) {
+ EnablePassButton();
+ }
}
}
+function checkIfAllPackagePass() {
+ var result = true;
+
+ tests.each(function() {
+ if ($(this).attr('result') != "PASS") {
+ result = false;
+ }
+ });
+ return result;
+}
+
function getPackageInfo(packageId){
var packageInfo = tizen.package.getPackageInfo(packageId);
console.log("Current Package ID : " + packageInfo.id);
}
var onError = function (err) {
- console.log("Error occured on installation : " + err.message);
+ alert("Error occured on installation : " + err.message);
$.mobile.hidePageLoadingMsg();
}
}
var onError = function (err) {
- console.log("Error occured on installation : " + err.name);
+ alert("Error occured on uninstallation : " + err.name);
$.mobile.hidePageLoadingMsg();
}
<li>Click the "Uninstall" button to uninstall the widget.</li>
</ol>
<p>Expected Result: </p>
- <p>Test passes if "PASS" is displayed and the widget name is shown as "Sample-widget1" on device idle screen.</p>
+ <ul>
+ <li>There is a widget named "Sample-widget1" on the device screen after the widget installed.</li>
+ <li>When click the "Launch" button, a "PASS" is displayed.</li>
+ </ul>
</font>
</div>
</div>
<li>Click the "Uninstall" button to uninstall the widget.</li>
</ol>
<p>Expected Result: </p>
- <p>Test passes if the widget info(Name, Version, Package ID, App ID) displayed and it is the same with config.xml. For example, "Name: Sample-widget4", "Version: 1.0.0".</p>
+ <p>Test passes if the command line displays: "Name: Sample-widget4", "Version: 1.0.0", " Package ID: wrt1smt010", "App ID: wrt1smt010.Samplewidget4".</p>
</font>
</div>
</div>
<li>Re-open this TC, click the "Uninstall" button to uninstall the widget.</li>
</ol>
<p>Expected Result: </p>
- <p>Test passes if there are <strong>no error message</strong> and <strong>no system crash</strong>.</p>
+ <ul>
+ <li>There is <strong>no error message</strong>.</li>
+ <li>There is <strong>no system crash</strong>.</li>
+ </ul>
</font>
</div>
</div>
<li>Open and/or create files in home directory, shared media directory and etc directory.</li>
</ol>
<p>Expected Result: </p>
- <ul>
- <li>The "USRER" info is NOT root user.</li>
- <li>There is <strong>no error message</strong> when click buttons under "Home Directory", "Shared Media Directory".</li>
- <li>There appears error message when click button under "Permission Denied Directory".</li>
- </ul>
+ <ul>
+ <li>The "USRER" info is NOT root user.</li>
+ <li>There is <strong>no error message</strong> when click buttons under "Home Directory", "Shared Media Directory".</li>
+ <li>There appears error message when click button under "Permission Denied Directory".</li>
+ </ul>
</font>
</div>
</body>
} else {
$.mobile.hidePageLoadingMsg();
alert("All widgets is uninstalled!");
- EnablePassButton();
+ if (checkIfAllPackagePass()) {
+ EnablePassButton();
+ }
}
}
+function checkIfAllPackagePass() {
+ var result = true;
+
+ tests.each(function() {
+ if ($(this).attr('result') != "PASS") {
+ result = false;
+ }
+ });
+ return result;
+}
+
function uninstall(val) {
installedId.shift();
var totalBar = Math.floor((allId.length - installedId.length - 1) / allId.length * 100);
}
var onError = function (err) {
- console.log("Error occured on installation : " + err.message);
+ alert("Error occured on installation : " + err.message);
$.mobile.hidePageLoadingMsg();
}
}
var onError = function (err) {
- console.log("Error occured on installation : " + err.name);
+ alert("Error occured on uninstallation : " + err.name);
$.mobile.hidePageLoadingMsg();
}
<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>
- <li>The value of the MODEL string SHOULD be the same as the name of the device.</li>
- <li>The value of the APPLE_WEBKIT_VER string MUST be "537.3".</li>
- <li>The value of the APP_NAME string SHOULD be the same as the name of the application.</li>
- <li>The value of the APP_VER string SHOULD be the same as the version of the application.</li>
- <li>Device implementations MAY omit the word “Mobile” from the user agent string.</li>
+ <li>The value of the PLATFORM_VER string MUST be the platform version of the device.</li>
+ <li>The value of the MODEL string SHOULD be the same as the name of the device.</li>
+ <li>The value of the APPLE_WEBKIT_VER string MUST be "537.3".</li>
+ <li>The value of the APP_NAME string SHOULD be the same as the name of the application.</li>
+ <li>The value of the APP_VER string SHOULD be the same as the version of the application.</li>
+ <li>Device implementations MAY omit the word “Mobile” from the user agent string.</li>
</ul>
</font>
</div>
<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>Test passes if the vibration functions well.</p>
+ <p>Test passes if the vibration functions work well.</p>
</font>
</div>
</body>
} else {
$.mobile.hidePageLoadingMsg();
alert("All widgets is uninstalled!");
- EnablePassButton();
+ if (checkIfAllPackagePass()) {
+ EnablePassButton();
+ }
}
}
+function checkIfAllPackagePass() {
+ var result = true;
+
+ tests.each(function() {
+ if ($(this).attr('result') != "PASS") {
+ result = false;
+ }
+ });
+ return result;
+}
+
function uninstall(val) {
installedId.shift();
var totalBar = Math.floor((allId.length - installedId.length - 1) / allId.length * 100);
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) {
updateFooterButton();
wgt_name = $("#wgt_name").val();
- if(jQuery.inArray(wgt_name, install_wgt) == -1){
+ if(jQuery.inArray(wgt_name, install_wgt) == -1) {
DisablePassButton();
app_id = $("#app_id").val();
}
var onError = function (err) {
- console.log("Error occured on installation : " + err.message);
+ alert("Error occured on installation : " + err.message);
$.mobile.hidePageLoadingMsg();
}
}
var onError = function (err) {
- console.log("Error occured on installation : " + err.name);
+ alert("Error occured on uninstallation : " + err.name);
$.mobile.hidePageLoadingMsg();
}
<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>
<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>
<div data-role="popup" id="popup_info" data-theme="a">
<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>Make sure the local language is English (check the installed widget's name on the device screen, it should be "english-ol").</p>
<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
- <li>the email with your wrote contents(cc account, bcc account, body content, groups account, subject content) are displayed on the screen when click the "send email" button.</li>
- <li>the telephone call is displayed on the screen when click the "call" button.</li>
- </p>
+ <ul>
+ <li>The email with your wrote contents(cc account, bcc account, body content, groups account, subject content) are displayed on the screen when click the "send email" button.</li>
+ <li>The telephone call is displayed on the screen when click the "call" button.</li>
+ </ul>
</font>
</div>
</div>
<li>Click the "Uninstall" button to uninstall the widget.</li>
</ol>
<p>Expected Result: </p>
- <p>Test passes if
- <li>click the link of "www.baidu.com", it opend the home page of "www.baidu.com".</li>
- <li>close the widget and launch again, the home page of "www.163.com" is not opened.</li>
- <li>click the link of "www.163.com", it is opened in the default browser of the device.</li>
- </p>
+ <ul>
+ <li>Click the link of "www.baidu.com", it opens the home page of "www.baidu.com".</li>
+ <li>Close the widget and launch again, it cannot open the home page of "www.163.com".</li>
+ <li>Click the link of "www.163.com", it opens the home page of "www.163.com" in the default browser.</li>
+ </ul>
</font>
</div>
</div>
<li>Click the "Uninstall" button to uninstall the widget.</li>
</ol>
<p>Expected Result: </p>
- <p>Test pass if
- <li>click the link "http://www.baidu.com". It opened in this widget successfully.</li>
- <li>click the link "http://www.neusoft.com". It opened in this widget successfully.</li>
- <li>click the link "http://www.163.com". It opened in this widget successfully.</li>
- </p>
+ <ul>
+ <li>Click the link "http://www.baidu.com". It opens in the widget successfully.</li>
+ <li>Click the link "http://www.neusoft.com". It opens in the widget successfully.</li>
+ <li>Click the link "http://www.163.com". It opens in the widget successfully.</li>
+ </ul>
</font>
</div>
</div>
<li>Click the "Uninstall" button to uninstall the widget.</li>
</ol>
<p>Expected Result: </p>
- <p>Test passes if
- <li>click the link "http://www.baidu.com". It opened in this widget successfully.</li>
- <li>click the link "http://www.baidu.com/gaoji/preferences.html". It opened in this widget successfully.</li>
- <li>click the link "http://www.neusoft.com". It opened in this widget successfully.</li>
- <li>click the link "http://www.neusoft.com/cn". It opened in this widget successfully.</li>
- </p>
+ <ul>
+ <li>Click the link "http://www.baidu.com". It opens in the widget successfully.</li>
+ <li>Click the link "http://www.baidu.com/gaoji/preferences.html". It opens in the widget successfully.</li>
+ <li>Click the link "http://www.neusoft.com". It opens in the widget successfully.</li>
+ <li>Click the link "http://www.neusoft.com/cn". It opens in the widget successfully.</li>
+ </ul>
</font>
</div>
</div>
<li>Click the "Uninstall" button to uninstall the widget.</li>
</ol>
<p>Expected Result: </p>
- <p>Test passes if
- <li>click the link "http://www.baidu.com". It opened in this widget successfully.</li>
- <li>click the link "http://www.neusoft.com". It opened in this widget successfully.</li>
- <li>click the link "http://www.163.com". It doesn't open in this widget, it opened in the browser of the device.</li>
- </p>
+ <ul>
+ <li>Click the link "http://www.baidu.com". It opens in the widget successfully.</li>
+ <li>Click the link "http://www.neusoft.com". It opens in the widget successfully.</li>
+ <li>Click the link "http://www.163.com". It doesn't open in the widget, it opens in the default browser.</li>
+ </ul>
</font>
</div>
</div>
} else {
$.mobile.hidePageLoadingMsg();
alert("All widgets is uninstalled!");
- EnablePassButton();
+ if (checkIfAllPackagePass()) {
+ EnablePassButton();
+ }
}
}
+function checkIfAllPackagePass() {
+ var result = true;
+
+ tests.each(function() {
+ if ($(this).attr('result') != "PASS") {
+ result = false;
+ }
+ });
+ return result;
+}
+
function uninstall(val) {
installedId.shift();
var totalBar = Math.floor((allId.length - installedId.length - 1) / allId.length * 100);
}
var onError = function (err) {
- console.log("Error occured on installation : " + err.message);
+ alert("Error occured on installation : " + err.message);
$.mobile.hidePageLoadingMsg();
}
}
var onError = function (err) {
- console.log("Error occured on installation : " + err.name);
+ alert("Error occured on uninstallation : " + err.name);
$.mobile.hidePageLoadingMsg();
}