<?xml version="1.0" encoding="UTF-8"?>
<widget xmlns="http://www.w3.org/ns/widgets" xmlns:tizen="http://tizen.org/ns/widgets" id="http://yourdomain/Sample-widget" version="1.0.0" viewmodes="maximized">
- <tizen:application id="wrt1smt007.Samplewidget" package="wrt1smt007" required_version="2.1"/>
- <content src="index.html"/>
- <icon src="icon.png"/>
- <name>Sample-widget</name>
-</widget>
+ <tizen:application id="wrt1smt007.Samplewidget" package="wrt1smt007" required_version="2.1"/>
+ <content src="index.html"/>
+ <icon src="icon.png"/>
+ <name>Sample-widget</name>
+</widget>
\ No newline at end of file
<html>
<head>
<title>WRT Test: Sample-widget</title>
- <link rel="author" title="Intel" href="http://www.intel.com" />
- <link rel="help" href="" />
- <meta name="flags" content="" />
- <meta name="assert" content="." />
+ <link rel="author" title="Intel" href="http://www.intel.com"/>
+ <link rel="help" href=""/>
+ <meta name="flags" content=""/>
+ <meta name="assert" content="."/>
<meta charset="utf-8">
</head>
- <body>
- <div>This is Web App for testing</div>
- </body>
-</html>
+ <body>
+ <div>This is Web App for testing</div>
+ </body>
+</html>
\ No newline at end of file
<?xml version="1.0" encoding="UTF-8"?>
<widget xmlns="http://www.w3.org/ns/widgets" xmlns:tizen="http://tizen.org/ns/widgets" id="http://yourdomain/WIdgetIDAppID" version="2.0.0" viewmodes="maximized">
- <tizen:application id="wrt1wai008.WIdgetIDAppID" package="wrt1wai008" required_version="2.1"/>
- <content src="index.html"/>
- <icon src="icon.png"/>
- <name>WIdgetIDAppID</name>
-</widget>
+ <tizen:application id="wrt1wai008.WIdgetIDAppID" package="wrt1wai008" required_version="2.1"/>
+ <content src="index.html"/>
+ <icon src="icon.png"/>
+ <name>WIdgetIDAppID</name>
+</widget>
\ No newline at end of file
<html>
<head>
<title>WRT Test: WIdgetIDAppID</title>
- <link rel="author" title="Intel" href="http://www.intel.com" />
- <link rel="help" href="" />
- <meta name="flags" content="" />
- <meta name="assert" content="." />
+ <link rel="author" title="Intel" href="http://www.intel.com"/>
+ <link rel="help" href=""/>
+ <meta name="flags" content=""/>
+ <meta name="assert" content="."/>
<meta charset="utf-8">
</head>
- <body>
- <div>This is Web App for testing</div>
- </body>
-</html>
+ <body>
+ <div>This is Web App for testing</div>
+ </body>
+</html>
\ No newline at end of file
<?xml version="1.0" encoding="UTF-8"?>
<widget xmlns="http://www.w3.org/ns/widgets" xmlns:tizen="http://tizen.org/ns/widgets" id="http://yourdomain/WIdgetIDAppID" version="1.0.0" viewmodes="maximized">
- <tizen:application id="wrt1wai008.WIdgetIDAppID" package="wrt1wai008" required_version="2.1"/>
- <content src="index.html"/>
- <icon src="icon.png"/>
- <name>WIdgetIDAppID</name>
-</widget>
+ <tizen:application id="wrt1wai008.WIdgetIDAppID" package="wrt1wai008" required_version="2.1"/>
+ <content src="index.html"/>
+ <icon src="icon.png"/>
+ <name>WIdgetIDAppID</name>
+</widget>
\ No newline at end of file
<html>
<head>
<title>WRT Test: WIdgetIDAppID</title>
- <link rel="author" title="Intel" href="http://www.intel.com" />
- <link rel="help" href="" />
- <meta name="flags" content="" />
- <meta name="assert" content="." />
+ <link rel="author" title="Intel" href="http://www.intel.com"/>
+ <link rel="help" href=""/>
+ <meta name="flags" content=""/>
+ <meta name="assert" content="."/>
<meta charset="utf-8">
</head>
- <body>
- <div>This is Web App for testing</div>
- </body>
-</html>
+ <body>
+ <div>This is Web App for testing</div>
+ </body>
+</html>
\ No newline at end of file
<?xml version="1.0" encoding="UTF-8"?>
<widget xmlns="http://www.w3.org/ns/widgets" xmlns:tizen="http://tizen.org/ns/widgets" id="http://yourdomain/WIdgetIDAppID" version="2.0.0" viewmodes="maximized">
- <tizen:application id="wrt1wai008.WIdgetIDAppID" package="wrt1wai008" required_version="2.1"/>
- <content src="index.html"/>
- <icon src="icon.png"/>
- <name>WIdgetIDAppID</name>
-</widget>
+ <tizen:application id="wrt1wai008.WIdgetIDAppID" package="wrt1wai008" required_version="2.1"/>
+ <content src="index.html"/>
+ <icon src="icon.png"/>
+ <name>WIdgetIDAppID</name>
+</widget>
\ No newline at end of file
<html>
<head>
<title>WRT Test: WIdgetIDAppID</title>
- <link rel="author" title="Intel" href="http://www.intel.com" />
- <link rel="help" href="" />
- <meta name="flags" content="" />
- <meta name="assert" content="." />
+ <link rel="author" title="Intel" href="http://www.intel.com"/>
+ <link rel="help" href=""/>
+ <meta name="flags" content=""/>
+ <meta name="assert" content="."/>
<meta charset="utf-8">
</head>
- <body>
- <div>This is Web App for testing</div>
- </body>
-</html>
+ <body>
+ <div>This is Web App for testing</div>
+ </body>
+</html>
\ No newline at end of file
<?xml version="1.0" encoding="UTF-8"?>
<widget xmlns="http://www.w3.org/ns/widgets" xmlns:tizen="http://tizen.org/ns/widgets" id="http://tizen.org/feature-element-be-ignored" version="1.0.0" viewmodes="maximized">
- <tizen:application id="wrt1apm018.featureelementbeignored" package="wrt1apm018" required_version="2.1"/>
- <feature name="http://example.org/api.geolocation" required="false"/>
- <content src="index.html"/>
- <icon src="icon.png"/>
- <name>feature-element-be-ignored</name>
-</widget>
+ <tizen:application id="wrt1apm018.featureelementbeignored" package="wrt1apm018" required_version="2.1"/>
+ <feature name="http://example.org/api.geolocation" required="false"/>
+ <content src="index.html"/>
+ <icon src="icon.png"/>
+ <name>feature-element-be-ignored</name>
+</widget>
\ No newline at end of file
-->
<html>
<head>
- <meta charset="utf-8" />
+ <meta charset="utf-8"/>
<meta name="viewport" content="width=device-width, initial-scale=1.0, maximum-scale=1.0">
<meta name="description" content="Tizen basic template generated by Tizen Web IDE"/>
-
<title>feature-element-be-ignored</title>
-
<link rel="stylesheet" type="text/css" href="css/style.css"/>
<script src="js/main.js"></script>
</head>
-
<body>
<p>Pass: if you see me</p>
</body>
-</html>
+</html>
\ No newline at end of file
-Hoseon Lee <hoseon46.lee at samsung dot com>
+Hoseon Lee <hoseon46.lee at samsung dot com>
\ No newline at end of file
Copyright (c) 2013 Samsung Electronics Co., Ltd. All rights reserved.
Except as noted, this software is licensed under Flora License, Version 1.1
-Please, see the LICENSE.Flora file for Flora License, Version 1.1 terms and conditions.
+Please, see the LICENSE.Flora file for Flora License, Version 1.1 terms and conditions.
\ No newline at end of file
<?xml version="1.0" encoding="UTF-8"?>
<widget xmlns="http://www.w3.org/ns/widgets" xmlns:tizen="http://tizen.org/ns/widgets" id="http://yourdomain/npruntime-all-on-arm" version="1.0.0" viewmodes="maximized">
- <tizen:application id="ZkMSjQuYt8.npruntimeAllOnArm" package="ZkMSjQuYt8" required_version="2.1"/>
- <content src="index.html"/>
- <icon src="icon.png"/>
- <name>npruntime-all-on-arm</name>
-</widget>
+ <tizen:application id="ZkMSjQuYt8.npruntimeAllOnArm" package="ZkMSjQuYt8" required_version="2.1"/>
+ <content src="index.html"/>
+ <icon src="icon.png"/>
+ <name>npruntime-all-on-arm</name>
+</widget>
\ No newline at end of file
body {
-}
+}
\ No newline at end of file
<!DOCTYPE html>
<html>
- <head>
- <meta charset="utf-8" />
- <meta name="viewport" content="width=device-width, initial-scale=1.0, maximum-scale=1.0" />
- <meta name="description" content="Tizen NPRuntime Sample Web Application" />
- <script type="text/javascript" src="./js/main.js"></script>
- <title>Tizen Web IDE - Tizen - NPRuntime Sample Web Application</title>
- </head>
- <body>
- <object id="NPRuntimeMatrix" type="application/test" width="0" height="0"></object>
- <header>
- <hgroup>
- <h1>NPRUNTIME Sample</h1>
- <hr />
- <h3>Description</h3>
- <h4>This sample application compares Javascript and NPRuntime about matrix multiplication time.
- <hr /></h4>
- <h3>Running steps</h3>
- <h4>1. Get the matrix length <br />2. Create two square matrixes with random generated number <br />3. Measure the multiplication time </h4>
- <hr />
- </hgroup>
- </header>
- <p>Enter the matrix length : <input type="number" min="100" max="300" value="100" id="length_btn" onkeydown="check_input_onkeydown()" style="height: 30px; width: 70px" /> (100~300)<br /></p>
- <hr />
- <div id="resultByJS_div">
- Javascript :
- </div>
- <br />
- <div id="resultByPlugin_div">
- NPRuntime :
- </div>
- <p><input type="button" value="Get the multiplication time" id="result_btn" onclick="resultFunction()" /><br /></p>
- <div id="array1"></div>
- <div id="array2"></div>
- <div id="array3"></div>
- <div id="array4"></div>
- </body>
-</html>
+ <head>
+ <meta charset="utf-8">
+ <meta name="viewport" content="width=device-width, initial-scale=1.0, maximum-scale=1.0"/>
+ <meta name="description" content="Tizen NPRuntime Sample Web Application"/>
+ <script src="./js/main.js"></script>
+ <title>Tizen Web IDE - Tizen - NPRuntime Sample Web Application</title>
+ </head>
+ <body>
+ <object id="NPRuntimeMatrix" type="application/test" width="0" height="0"></object>
+ <header>
+ <hgroup>
+ <h1>NPRUNTIME Sample</h1>
+ <hr/>
+ <h3>Description</h3>
+ <h4>This sample application compares Javascript and NPRuntime about matrix multiplication time.<hr/></h4>
+ <h3>Running steps</h3>
+ <h4>1. Get the matrix length <br/>2. Create two square matrixes with random generated number <br/>3. Measure the multiplication time </h4>
+ <hr/>
+ </hgroup>
+ </header>
+ <p>Enter the matrix length : <input type="number" min="100" max="300" value="100" id="length_btn" onkeydown="check_input_onkeydown()" style="height: 30px; width: 70px"/> (100~300)<br/></p>
+ <hr/>
+ <div id="resultByJS_div">
+ Javascript :
+ </div>
+ <br/>
+ <div id="resultByPlugin_div">
+ NPRuntime :
+ </div>
+ <p><input type="button" value="Get the multiplication time" id="result_btn" onclick="resultFunction()"/><br/></p>
+ <div id="array1"></div>
+ <div id="array2"></div>
+ <div id="array3"></div>
+ <div id="array4"></div>
+ </body>
+</html>
\ No newline at end of file
var matResult = new Array();
function createArray() {
- var matLength = parseInt(document.getElementById('length_btn').value);;
-
- for (var i=0; i<matLength; i++) {
+ var matLength = parseInt(document.getElementById('length_btn').value);
+ for(var i = 0; i < matLength; i++) {
matA[i] = new Array();
matB[i] = new Array();
matResult[i] = new Array();
}
-
- for (var i=0; i<matLength; i++) {
- for (var j=0; j<matLength; j++) {
+ for(var i = 0; i < matLength; i++) {
+ for(var j = 0; j < matLength; j++) {
matA[i][j] = Math.ceil(Math.random()*100-1);
matB[i][j] = Math.ceil(Math.random()*100-1);
}
}
- try {
+ try {
NPRuntimeMatrix.setMatrixA(matA);
NPRuntimeMatrix.setMatrixB(matB);
- }catch(e){
- alert("If this is a x86 device,then PASS. Otherwise, FAIL.");
- }
-
+ }catch(e){
+ alert("If this is a x86 device,then PASS. Otherwise, FAIL.");
+ }
document.getElementById('resultByJS_div').innerHTML = "Javascript : Calculating...";
document.getElementById('resultByPlugin_div').innerHTML = "NPRuntime : Calculating...";
setTimeout("getResult()", 10);
function getResult() {
var before = new Date();
- for (var i=0; i<matA.length; i++) {
- for (var j=0; j<matA[i].length; j++) {
+ for(var i = 0; i < matA.length; i++) {
+ for(var j = 0; j < matA[i].length; j++) {
var sum = 0;
- for (var k=0; k<matA[i].length; k++) {
- sum = sum + (matA[i][k] *matB[k][j]);
+ for(var k = 0; k < matA[i].length; k++) {
+ sum = sum + (matA[i][k] * matB[k][j]);
}
matResult[i][j] = sum;
}
}
var after = new Date();
document.getElementById('resultByJS_div').innerHTML = "Javascript : " + (after.getTime() - before.getTime()) + "ms";
-
var beforeP = new Date();
NPRuntimeMatrix.multiplication();
var afterP = new Date();
document.getElementById('resultByPlugin_div').innerHTML = "NPRuntime : " + (afterP.getTime() - beforeP.getTime()) + "ms";
-
//document.getElementById('array1').innerHTML = "matA :<br>" + matA + "<br>";
//document.getElementById('array2').innerHTML = "matB :<br>" + matB + "<br>";
//document.getElementById('array3').innerHTML = "matResult JS :<br>" + matResult + "<br>";
//document.getElementById('array4').innerHTML = "matResult Plugin :<br>" + NPRuntimeMatrix.getMatrixResult() + "<br>";
-
document.getElementById('result_btn').style.display = "";
}
document.getElementById('resultByJS_div').innerHTML = "Javascript :";
document.getElementById('resultByPlugin_div').innerHTML = "NPRuntime :";
var inputValue = parseFloat(document.getElementById('length_btn').value);
- if( inputValue > 300 || inputValue < 100 || isNaN(inputValue)) {
+ if(inputValue > 300 || inputValue < 100 || isNaN(inputValue)) {
alert("input value 100 ~ 300");
document.getElementById('length_btn').value = 100;
return;
setTimeout("createArray()", 10);
}
-function check_input_onkeydown(){
+function check_input_onkeydown() {
var theForm=document.frm1;
- if( !( (event.keyCode >= 48 && event.keyCode<=57) || (event.keyCode >= 96 && event.keyCode <= 105) || event.keyCode==8 ) ){
- event.returnValue=false;
+ if(!( (event.keyCode >= 48 && event.keyCode <= 57) || (event.keyCode >= 96 && event.keyCode <= 105) || event.keyCode == 8 )){
+ event.returnValue = false;
}
-}
+}
\ No newline at end of file
-Hoseon Lee <hoseon46.lee at samsung dot com>
+Hoseon Lee <hoseon46.lee at samsung dot com>
\ No newline at end of file
Copyright (c) 2013 Samsung Electronics Co., Ltd. All rights reserved.
Except as noted, this software is licensed under Flora License, Version 1.1
-Please, see the LICENSE.Flora file for Flora License, Version 1.1 terms and conditions.
+Please, see the LICENSE.Flora file for Flora License, Version 1.1 terms and conditions.
\ No newline at end of file
<?xml version="1.0" encoding="UTF-8"?>
<widget xmlns="http://www.w3.org/ns/widgets" xmlns:tizen="http://tizen.org/ns/widgets" id="http://yourdomain/npruntime-arm-on-x86" version="1.0.0" viewmodes="maximized">
- <tizen:application id="UZmPMhuMeO.npruntimeArmOnX86" package="UZmPMhuMeO" required_version="2.1"/>
- <content src="index.html"/>
- <icon src="icon.png"/>
- <name>npruntime-arm-on-x86</name>
-</widget>
+ <tizen:application id="UZmPMhuMeO.npruntimeArmOnX86" package="UZmPMhuMeO" required_version="2.1"/>
+ <content src="index.html"/>
+ <icon src="icon.png"/>
+ <name>npruntime-arm-on-x86</name>
+</widget>
\ No newline at end of file
body {
-}
+}
\ No newline at end of file
<!DOCTYPE html>
<html>
- <head>
- <meta charset="utf-8" />
- <meta name="viewport" content="width=device-width, initial-scale=1.0, maximum-scale=1.0" />
- <meta name="description" content="Tizen NPRuntime Sample Web Application" />
- <script type="text/javascript" src="./js/main.js"></script>
- <title>Tizen Web IDE - Tizen - NPRuntime Sample Web Application</title>
- </head>
- <body>
- <object id="NPRuntimeMatrix" type="application/test" width="0" height="0"></object>
- <header>
- <hgroup>
- <h1>NPRUNTIME Sample</h1>
- <hr />
- <h3>Description</h3>
- <h4>This sample application compares Javascript and NPRuntime about matrix multiplication time.
- <hr /></h4>
- <h3>Running steps</h3>
- <h4>1. Get the matrix length <br />2. Create two square matrixes with random generated number <br />3. Measure the multiplication time </h4>
- <hr />
- </hgroup>
- </header>
- <p>Enter the matrix length : <input type="number" min="100" max="300" value="100" id="length_btn" onkeydown="check_input_onkeydown()" style="height: 30px; width: 70px" /> (100~300)<br /></p>
- <hr />
- <div id="resultByJS_div">
- Javascript :
- </div>
- <br />
- <div id="resultByPlugin_div">
- NPRuntime :
- </div>
- <p><input type="button" value="Get the multiplication time" id="result_btn" onclick="resultFunction()" /><br /></p>
- <div id="array1"></div>
- <div id="array2"></div>
- <div id="array3"></div>
- <div id="array4"></div>
- </body>
-</html>
+ <head>
+ <meta charset="utf-8">
+ <meta name="viewport" content="width=device-width, initial-scale=1.0, maximum-scale=1.0"/>
+ <meta name="description" content="Tizen NPRuntime Sample Web Application"/>
+ <script src="./js/main.js"></script>
+ <title>Tizen Web IDE - Tizen - NPRuntime Sample Web Application</title>
+ </head>
+ <body>
+ <object id="NPRuntimeMatrix" type="application/test" width="0" height="0"></object>
+ <header>
+ <hgroup>
+ <h1>NPRUNTIME Sample</h1>
+ <hr/>
+ <h3>Description</h3>
+ <h4>This sample application compares Javascript and NPRuntime about matrix multiplication time.<hr/></h4>
+ <h3>Running steps</h3>
+ <h4>1. Get the matrix length <br/>2. Create two square matrixes with random generated number <br/>3. Measure the multiplication time </h4>
+ <hr/>
+ </hgroup>
+ </header>
+ <p>Enter the matrix length : <input type="number" min="100" max="300" value="100" id="length_btn" onkeydown="check_input_onkeydown()" style="height: 30px; width: 70px"/> (100~300)<br/></p>
+ <hr/>
+ <div id="resultByJS_div">
+ Javascript :
+ </div>
+ <br/>
+ <div id="resultByPlugin_div">
+ NPRuntime :
+ </div>
+ <p><input type="button" value="Get the multiplication time" id="result_btn" onclick="resultFunction()"/><br/></p>
+ <div id="array1"></div>
+ <div id="array2"></div>
+ <div id="array3"></div>
+ <div id="array4"></div>
+ </body>
+</html>
\ No newline at end of file
var matResult = new Array();
function createArray() {
- var matLength = parseInt(document.getElementById('length_btn').value);;
-
- for (var i=0; i<matLength; i++) {
+ var matLength = parseInt(document.getElementById('length_btn').value);
+ for(var i = 0; i < matLength; i++) {
matA[i] = new Array();
matB[i] = new Array();
matResult[i] = new Array();
}
-
- for (var i=0; i<matLength; i++) {
- for (var j=0; j<matLength; j++) {
+ for(var i = 0; i < matLength; i++) {
+ for(var j = 0; j < matLength; j++) {
matA[i][j] = Math.ceil(Math.random()*100-1);
matB[i][j] = Math.ceil(Math.random()*100-1);
}
}
- try {
+ try {
NPRuntimeMatrix.setMatrixA(matA);
NPRuntimeMatrix.setMatrixB(matB);
- }catch(e){
- alert("If this is a arm device,then PASS. Otherwise, FAIL.");
- }
-
+ }catch(e){
+ alert("If this is a arm device,then PASS. Otherwise, FAIL.");
+ }
document.getElementById('resultByJS_div').innerHTML = "Javascript : Calculating...";
document.getElementById('resultByPlugin_div').innerHTML = "NPRuntime : Calculating...";
setTimeout("getResult()", 10);
function getResult() {
var before = new Date();
- for (var i=0; i<matA.length; i++) {
- for (var j=0; j<matA[i].length; j++) {
+ for(var i = 0; i < matA.length; i++) {
+ for(var j = 0; j < matA[i].length; j++) {
var sum = 0;
- for (var k=0; k<matA[i].length; k++) {
- sum = sum + (matA[i][k] *matB[k][j]);
+ for(var k = 0; k < matA[i].length; k++) {
+ sum = sum + (matA[i][k] * matB[k][j]);
}
matResult[i][j] = sum;
}
}
var after = new Date();
document.getElementById('resultByJS_div').innerHTML = "Javascript : " + (after.getTime() - before.getTime()) + "ms";
-
var beforeP = new Date();
NPRuntimeMatrix.multiplication();
var afterP = new Date();
document.getElementById('resultByPlugin_div').innerHTML = "NPRuntime : " + (afterP.getTime() - beforeP.getTime()) + "ms";
-
//document.getElementById('array1').innerHTML = "matA :<br>" + matA + "<br>";
//document.getElementById('array2').innerHTML = "matB :<br>" + matB + "<br>";
//document.getElementById('array3').innerHTML = "matResult JS :<br>" + matResult + "<br>";
//document.getElementById('array4').innerHTML = "matResult Plugin :<br>" + NPRuntimeMatrix.getMatrixResult() + "<br>";
-
document.getElementById('result_btn').style.display = "";
}
document.getElementById('resultByJS_div').innerHTML = "Javascript :";
document.getElementById('resultByPlugin_div').innerHTML = "NPRuntime :";
var inputValue = parseFloat(document.getElementById('length_btn').value);
- if( inputValue > 300 || inputValue < 100 || isNaN(inputValue)) {
+ if(inputValue > 300 || inputValue < 100 || isNaN(inputValue)) {
alert("input value 100 ~ 300");
document.getElementById('length_btn').value = 100;
return;
setTimeout("createArray()", 10);
}
-function check_input_onkeydown(){
+function check_input_onkeydown() {
var theForm=document.frm1;
- if( !( (event.keyCode >= 48 && event.keyCode<=57) || (event.keyCode >= 96 && event.keyCode <= 105) || event.keyCode==8 ) ){
+ if(!( (event.keyCode >= 48 && event.keyCode <= 57) || (event.keyCode >= 96 && event.keyCode <= 105) || event.keyCode == 8 )){
event.returnValue=false;
}
-}
+}
\ No newline at end of file
APP_NAME="widget-version2"
elif [ "$APP_NAME" = "widget-version-3" -o "$APP_NAME" = "widget-version-3-1" ];then
APP_NAME="widget-version3"
- elif [ "$APP_NAME" = "WIdgetIDAppID-same1" -o "$APP_NAME" = "WIdgetIDAppID-same2" ];then
+ elif [ "$APP_NAME" = "WIdgetIDAppID-same1" -o "$APP_NAME" = "WIdgetIDAppID-same2" -o "$APP_NAME" = "WIdgetIDAppID-different" ];then
APP_NAME="WIdgetIDAppID"
fi
wrt-installer -i $PACKAGENAME
APP_NAME="widget-version2"
elif [ "$APP_NAME" = "widget-version-3" -o "$APP_NAME" = "widget-version-3-1" ];then
APP_NAME="widget-version3"
- elif [ "$APP_NAME" = "WIdgetIDAppID-same1" -o "$APP_NAME" = "WIdgetIDAppID-same2" ];then
+ elif [ "$APP_NAME" = "WIdgetIDAppID-same1" -o "$APP_NAME" = "WIdgetIDAppID-same2" -o "$APP_NAME" = "WIdgetIDAppID-different" ];then
APP_NAME="WIdgetIDAppID"
fi
App_ID=`wrt-launcher -l|grep $APP_NAME|awk '{print $NF}'`
--- /dev/null
+#!/bin/bash
+#
+# Copyright (C) 2010 Intel Corporation
+#
+# This program is free software; you can redistribute it and/or
+# modify it under the terms of the GNU General Public License
+# as published by the Free Software Foundation; either version 2
+# of the License, or (at your option) any later version.
+#
+# This program is distributed in the hope that it will be useful,
+# but WITHOUT ANY WARRANTY; without even the implied warranty of
+# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
+# GNU General Public License for more details.
+#
+# You should have received a copy of the GNU General Public License
+# along with this program; if not, write to the Free Software
+# Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
+#
+# Author:
+# Yue, jianhui <jianhuix.a.yue@intel.com>
+
+source $(dirname $0)/Common
+
+func_install_changename WIdgetIDAppID-same1.wgt
+if [ $? -eq 1 ];then
+ echo "The installation is failed"
+ exit 1
+fi
+
+func_install_changename WIdgetIDAppID-different.wgt
+if [ $? -eq 1 ];then
+ echo "The installation is failed"
+ exit 1
+fi
+echo "The widget is able to be updated."
+
+func_uninstall_changename WIdgetIDAppID-different.wgt
+
+exit 0
\ No newline at end of file
<html>
<head>
<title>WRT Test: test-broken-widget</title>
- <link rel="author" title="Intel" href="http://www.intel.com" />
- <link rel="help" href="" />
- <meta name="flags" content="" />
- <meta name="assert" content="Check web application package management Install,Update,Uninstall." />
+ <link rel="author" title="Intel" href="http://www.intel.com"/>
+ <link rel="help" href=""/>
+ <meta name="flags" content=""/>
+ <meta name="assert" content="Check web application package management Install,Update,Uninstall."/>
<meta charset="utf-8">
</head>
<body>
<div style="font-size:20px">test-broken-widget</div>
</body>
-</html>
+</html>
\ No newline at end of file
<icon src="custom.png" height="123" width="123"/>
<name>test-hosted-widget</name>
<tizen:application id="wrt1pkm005.testhostedwidget" package="wrt1pkm005" required_version="2.1"/>
-</widget>
+</widget>
\ No newline at end of file
<html>
<head>
<title>WRT Test: test-hosted-widget</title>
- <link rel="author" title="Intel" href="http://www.intel.com" />
- <link rel="help" href="" />
- <meta name="flags" content="" />
- <meta name="assert" content="Check web application package management Install,Update,Uninstall." />
+ <link rel="author" title="Intel" href="http://www.intel.com"/>
+ <link rel="help" href=""/>
+ <meta name="flags" content=""/>
+ <meta name="assert" content="Check web application package management Install,Update,Uninstall."/>
<meta charset="utf-8">
</head>
<body>
<div style="font-size:20px">test-hosted-widget</div>
</body>
-</html>
+</html>
\ No newline at end of file
<?xml version="1.0" encoding="UTF-8"?>
<widget xmlns="http://www.w3.org/ns/widgets" xmlns:tizen="http://tizen.org/ns/widgets" id="http://yourdomain/test-widget" version="1.0.0" viewmodes="maximized">
- <tizen:application id="wrt1tes005.testwidget" package="wrt1tes005" required_version="2.1"/>
- <content src="index.html"/>
- <icon src="icon.png"/>
- <name>test-widget</name>
-</widget>
+ <tizen:application id="wrt1tes005.testwidget" package="wrt1tes005" required_version="2.1"/>
+ <content src="index.html"/>
+ <icon src="icon.png"/>
+ <name>test-widget</name>
+</widget>
\ No newline at end of file
<html>
<head>
<title>WRT Test: test-widget</title>
- <link rel="author" title="Intel" href="http://www.intel.com" />
- <link rel="help" href="" />
- <meta name="flags" content="" />
- <meta name="assert" content="." />
+ <link rel="author" title="Intel" href="http://www.intel.com"/>
+ <link rel="help" href=""/>
+ <meta name="flags" content=""/>
+ <meta name="assert" content="."/>
<meta charset="utf-8">
</head>
- <body>
- <div>This is Web App for testing</div>
- </body>
-</html>
+ <body>
+ <div>This is Web App for testing</div>
+ </body>
+</html>
\ No newline at end of file
<post_condition></post_condition>
<steps>
<step order="1">
- <step_desc>Install the widget with the command : wrt-installer -i /opt/tct-pm-wrt-tests/Sample-widget.wgt.</step_desc>
+ <step_desc>Check if Packaged Web Application can be installed successfully.</step_desc>
<expected>Pass if the Sample-widget Application is installed successfully.</expected>
</step>
</steps>
<specs>
<spec>
<spec_assertion element_type="attribute" element_name="N/A" interface="0010" specification="Web Application Types" section="Web Application Package Management" category="Tizen WRT Core Specifications"/>
- <spec_url/>
+ <spec_url></spec_url>
<spec_statement>TBD</spec_statement>
</spec>
</specs>
<post_condition></post_condition>
<steps>
<step order="1">
- <step_desc>Install the widget with the command : wrt-installer -i /opt/tct-pm-wrt-tests/test-hosted-widget.wgt.</step_desc>
+ <step_desc>Check if local hosted Web Application can be installed successfully.</step_desc>
<expected>Pass if the test-hosted-widget Application is installed successfully.</expected>
</step>
</steps>
<specs>
<spec>
<spec_assertion element_type="attribute" element_name="N/A" interface="0020" specification="Web Application Types" section="Web Application Package Management" category="Tizen WRT Core Specifications"/>
- <spec_url/>
+ <spec_url></spec_url>
<spec_statement>TBD</spec_statement>
</spec>
</specs>
</testcase>
- <testcase purpose="Check if Web Application can be installed successfully by using command." type="user_experience" status="approved" component="Web/Runtime/PackageManagement" execution_type="manual" priority="P1" id="PKManagement_LocalAPP_Install">
+ <testcase purpose="Check if Web Application can be installed successfully by using command." type="user_experience" status="approved" component="Web/Runtime/PackageManagement" execution_type="auto" priority="P1" id="PKManagement_LocalAPP_Install">
<description>
<pre_condition></pre_condition>
<post_condition></post_condition>
<steps>
<step order="1">
- <step_desc>Install the widget with the command : wrt-installer -i /opt/tct-pm-wrt-tests/Sample-widget.wgt.</step_desc>
+ <step_desc>Check if Web Application can be installed successfully by using command.</step_desc>
<expected>Pass if Sample-widget.wgt webapp is installed successfully.</expected>
</step>
</steps>
<specs>
<spec>
<spec_assertion element_type="attribute" element_name="N/A" interface="0040" specification="Web Application Installation point" section="Web Application Package Management" category="Tizen WRT Core Specifications"/>
- <spec_url/>
+ <spec_url></spec_url>
<spec_statement>TBD</spec_statement>
</spec>
</specs>
</testcase>
- <testcase purpose="Check if WRT can register the Web Application on device's idle screen." type="user_experience" status="approved" component="Web/Runtime/PackageManagement" execution_type="manual" priority="P1" id="PKManagement_APP_Installed_">
+ <testcase purpose="Check if WRT can register the Web Application on device's idle screen." type="user_experience" status="approved" component="Web/Runtime/PackageManagement" execution_type="manual" priority="P1" id="PKManagement_APP_Installed">
<description>
<pre_condition>Make sure the Sample-widget.wgt is not installed.</pre_condition>
<post_condition>Get the 'application id' of Sample-widget.wgt with the command :"wrt-launcher -l" and uninstall the Sample-widget.wgt with the command :"wrt-installer -un 'application id'"</post_condition>
<steps>
<step order="1">
- <step_desc>Install the widget with the command : wrt-installer -i /opt/tct-pm-wrt-tests/Sample-widget.wgt".</step_desc>
- <expected>Pass if Sample-widget icon and package name are displayed on screen.</expected>
+ <step_desc>Install the widget with the command : wrt-installer -i /opt/tct-pm-wrt-tests/Sample-widget.wgt</step_desc>
+ <expected>Pass if Sample-widget icon and widget name are displayed on screen.</expected>
</step>
</steps>
- <test_script_entry test_script_expected_result="0"/>
+ <test_script_entry test_script_expected_result="0"></test_script_entry>
</description>
<specs>
<spec>
<spec_assertion element_type="attribute" element_name="N/A" interface="0090" specification="Web Application Installation" section="Web Application Package Management" category="Tizen WRT Core Specifications"/>
- <spec_url/>
+ <spec_url></spec_url>
<spec_statement>TBD</spec_statement>
</spec>
</specs>
<specs>
<spec>
<spec_assertion element_type="attribute" element_name="N/A" interface="0060" specification="Web Application Installation" section="Web Application Package Management" category="Tizen WRT Core Specifications"/>
- <spec_url/>
+ <spec_url></spec_url>
<spec_statement>TBD</spec_statement>
</spec>
</specs>
<specs>
<spec>
<spec_assertion element_type="attribute" element_name="N/A" interface="0060" specification="Web Application Installation" section="Web Application Package Management" category="Tizen WRT Core Specifications"/>
- <spec_url/>
+ <spec_url></spec_url>
<spec_statement>TBD</spec_statement>
</spec>
</specs>
<specs>
<spec>
<spec_assertion element_type="attribute" element_name="N/A" interface="0060" specification="Web Application Installation" section="Web Application Package Management" category="Tizen WRT Core Specifications"/>
- <spec_url/>
+ <spec_url></spec_url>
<spec_statement>TBD</spec_statement>
</spec>
</specs>
<description>
<pre_condition></pre_condition>
<post_condition></post_condition>
- <step order="1">
- <step_desc>Check if user is informed when the Web Application cannot be installed.</step_desc>
- <expected>There is a message informing user that the Web Application can't be installed and WebApp icon is not displayed on the device screen.</expected>
- </step>
+ <steps>
+ <step order="1">
+ <step_desc>Check if user is informed when the Web Application cannot be installed.</step_desc>
+ <expected>There is a message informing user that the Web Application can't be installed and WebApp icon is not displayed on the device screen.</expected>
+ </step>
+ </steps>
<test_script_entry test_script_expected_result="0">/opt/tct-pm-wrt-tests/scripts/wrt_pm_InstallerFail.sh test-broken-widget.wgt</test_script_entry>
</description>
<specs>
<spec>
<spec_assertion element_type="attribute" element_name="N/A" interface="0070" specification="Web Application Installation" section="Web Application Package Management" category="Tizen WRT Core Specifications"/>
- <spec_url/>
+ <spec_url></spec_url>
<spec_statement>TBD</spec_statement>
</spec>
</specs>
<specs>
<spec>
<spec_assertion element_type="attribute" element_name="N/A" interface="0080" specification="Web Application Installation" section="Web Application Package Management" category="Tizen WRT Core Specifications"/>
- <spec_url/>
+ <spec_url></spec_url>
<spec_statement>TBD</spec_statement>
</spec>
</specs>
<post_condition>Get the 'application id' of Sample-widget.wgt with the command :"wrt-launcher -l" and uninstall the Sample-widget.wgt with the command :"wrt-installer -un 'application id'"</post_condition>
<steps>
<step order="1">
- <step_desc>Install the widget with the command : wrt-installer -i /opt/tct-pm-wrt-tests/Sample-widget.wgt.</step_desc>
+ <step_desc>Install the widget with the command : wrt-installer -i /opt/tct-pm-wrt-tests/Sample-widget.wgt</step_desc>
<expected>Pass if packaged webapp is being installed.</expected>
</step>
<step order="2">
<step_desc>Long press the power key to shutdown the mobile device.</step_desc>
- <expected>Pass if Device can be shutdown successfully.</expected>
+ <expected>Pass if device can be shutdown successfully.</expected>
</step>
<step order="3">
<step_desc>Power on the device and install Sample-widget.wgt again.</step_desc>
- <expected>Pass if The installation of Sample-widget app can be ran.</expected>
+ <expected>Pass if the installation of Sample-widget app can run.</expected>
</step>
</steps>
- <test_script_entry test_script_expected_result="0"/>
+ <test_script_entry test_script_expected_result="0"></test_script_entry>
</description>
<specs>
<spec>
<spec_assertion element_type="attribute" element_name="N/A" interface="0100" specification="Web Application Installation" section="Web Application Package Management" category="Tizen WRT Core Specifications"/>
- <spec_url/>
+ <spec_url></spec_url>
<spec_statement>TBD</spec_statement>
</spec>
</specs>
<specs>
<spec>
<spec_assertion element_type="attribute" element_name="N/A" interface="0130" specification="Web Application Update" section="Web Application Package Management" category="Tizen WRT Core Specifications"/>
- <spec_url/>
+ <spec_url></spec_url>
<spec_statement>TBD</spec_statement>
</spec>
</specs>
</testcase>
- <testcase purpose="Check if Web Applications with same Tizen AppID and different Widget IDs can be updated successfully." type="user_experience" status="approved" component="Web/Runtime/PackageManagement" execution_type="manual" priority="P1" id="PKManagement_DifferentWidgetID_Update">
+ <testcase purpose="Check if Web Applications with same Tizen AppID and different Widget IDs can be updated successfully." type="user_experience" status="approved" component="Web/Runtime/PackageManagement" execution_type="auto" priority="P1" id="PKManagement_DifferentWidgetID_Update">
<description>
- <pre_condition>Make sure the WIdgetIDAppID-same1.wgt and WIdgetIDAppID-different.wgt are not installed.</pre_condition>
- <post_condition>Get the 'application id' of WIdgetIDAppID-same1.wgt and WIdgetIDAppID-different.wgt with the command :"wrt-launcher -l" and uninstall the widgets with the command :"wrt-installer -un 'application id'".</post_condition>
+ <pre_condition></pre_condition>
+ <post_condition></post_condition>
<steps>
<step order="1">
- <step_desc>Install the widget with the command : wrt-installer -i /opt/tct-pm-wrt-tests/WIdgetIDAppID-same1.wgt.</step_desc>
- <expected>Pass if WIdgetIDAppID-same1.wgt is installed successfully.</expected>
- </step>
- <step order="2">
- <step_desc>Update the packaged webapp through installing WIdgetIDAppID-different.wgt with the command : wrt-installer -i /opt/tct-pm-wrt-tests/WIdgetIDAppID-different.wgt.</step_desc>
- <expected>Pass if WIdgetIDAppID-same1.wgt is updated successfully.</expected>
+ <step_desc>Check if Web Applications with same Tizen AppID and different Widget IDs can be updated successfully</step_desc>
+ <expected>WIdgetIDAppID-same1.wgt is updated successfully.</expected>
</step>
</steps>
- <test_script_entry test_script_expected_result="0"/>
+ <test_script_entry test_script_expected_result="0">/opt/tct-pm-wrt-tests/scripts/wrt_pm_WidgetID_Update.sh</test_script_entry>
</description>
<specs>
<spec>
<spec_assertion element_type="attribute" element_name="N/A" interface="0130" specification="Web Application Update" section="Web Application Package Management" category="Tizen WRT Core Specifications"/>
- <spec_url/>
+ <spec_url></spec_url>
<spec_statement>TBD</spec_statement>
</spec>
</specs>
<specs>
<spec>
<spec_assertion element_type="attribute" element_name="N/A" interface="0130" specification="Web Application Update" section="Web Application Package Management" category="Tizen WRT Core Specifications"/>
- <spec_url/>
+ <spec_url></spec_url>
<spec_statement>TBD</spec_statement>
</spec>
</specs>
<specs>
<spec>
<spec_assertion element_type="attribute" element_name="N/A" interface="0150" specification="Web Application Uninstallation" section="Web Application Package Management" category="Tizen WRT Core Specifications"/>
- <spec_url/>
+ <spec_url></spec_url>
<spec_statement>TBD</spec_statement>
</spec>
</specs>
</testcase>
- <testcase purpose="Check if all Web Application resources and data (Tizen settings, widget preferences, cookies, local storage) should be erased after un-installation." type="user_experience" status="approved" component="Web/Runtime/PackageManagement" execution_type="auto" priority="P0" id="uninstallation-application-erased">
+ <testcase purpose="Check if all Web Application resources and data (Tizen settings, widget preferences, cookies, local storage) should be erased after uninstalled." type="user_experience" status="approved" component="Web/Runtime/PackageManagement" execution_type="auto" priority="P0" id="uninstallation-application-erased">
<description>
<pre_condition></pre_condition>
- <post_condition/>
+ <post_condition></post_condition>
<steps>
<step order="1">
- <step_desc>Check if all Web Application resources and data (Tizen settings, widget preferences, cookies, local storage) should be erased after un-installation.</step_desc>
- <expected>data folder does not exist.</expected>
+ <step_desc>Check if all Web Application resources and data (Tizen settings, widget preferences, cookies, local storage) should be erased after uninstalled.</step_desc>
+ <expected>Data folder does not exist.</expected>
</step>
</steps>
<test_script_entry test_script_expected_result="0">/opt/tct-pm-wrt-tests/scripts/wrt_pm_uninstallation_application_erased.sh</test_script_entry>
<specs>
<spec>
<spec_assertion element_type="attribute" element_name="N/A" interface="0160" specification="Web Application Uninstallation" section="Web Application Package Management" category="Tizen WRT Core Specifications"/>
- <spec_url/>
+ <spec_url></spec_url>
<spec_statement>TBD</spec_statement>
</spec>
</specs>
</testcase>
- <testcase purpose="Check if package management can install applications through file browser." type="user_experience" status="approved" component="Web/Runtime/PackageManagement" execution_type="manual" priority="P1" id="WebApp_onlineInstall_TwoApp">
+ <testcase purpose="Check if package management can install applications through file browser." type="user_experience" status="approved" component="Web/Runtime/PackageManagement" execution_type="manual" priority="P1" id="WebApp_fileBrowser_install">
<description>
<pre_condition>Make sure the Sample-widget.wgt is not installed.</pre_condition>
<post_condition>Get the 'application id' of Sample-widget.wgt with the command :"wrt-launcher -l" and uninstall the Sample-widget.wgt with the command :"wrt-installer -un 'application id'"</post_condition>
<expected>Pass if the webapp is being installed.</expected>
</step>
</steps>
- <test_script_entry test_script_expected_result="0"/>
+ <test_script_entry test_script_expected_result="0"></test_script_entry>
</description>
<specs>
<spec>
<spec_assertion element_type="attribute" element_name="N/A" interface="0120" specification="Web Application Update" section="Web Application Package Management" category="Tizen WRT Core Specifications"/>
- <spec_url/>
+ <spec_url></spec_url>
<spec_statement>TBD</spec_statement>
</spec>
</specs>
<specs>
<spec>
<spec_assertion element_type="attribute" element_name="N/A" interface="0050" specification="Web Application Installation" section="Web Application Package Management" category="Tizen WRT Core Specifications"/>
- <spec_url/>
+ <spec_url></spec_url>
<spec_statement>TBD</spec_statement>
</spec>
</specs>
<specs>
<spec>
<spec_assertion element_type="attribute" element_name="N/A" interface="0050" specification="Web Application Installation" section="Web Application Package Management" category="Tizen WRT Core Specifications"/>
- <spec_url/>
+ <spec_url></spec_url>
<spec_statement>TBD</spec_statement>
</spec>
</specs>
<specs>
<spec>
<spec_assertion element_type="attribute" element_name="N/A" interface="0150" specification="Web Application Uninstallation" section="Web Application Package Management" category="Tizen WRT Core Specifications"/>
- <spec_url/>
+ <spec_url></spec_url>
<spec_statement>TBD</spec_statement>
</spec>
</specs>
<specs>
<spec>
<spec_assertion element_type="attribute" element_name="N/A" interface="0150" specification="Web Application Uninstallation" section="Web Application Package Management" category="Tizen WRT Core Specifications"/>
- <spec_url/>
+ <spec_url></spec_url>
<spec_statement>TBD</spec_statement>
</spec>
</specs>
<post_condition>Get the 'application id' of widget-version-1.wgt and widget-version-1-1.wgt with the command :"wrt-launcher -l" and uninstall the widgets with the command :"wrt-installer -un 'application id'"</post_condition>
<steps>
<step order="1">
- <step_desc>Install the widget with the command : wrt-installer -i /opt/tct-pm-wrt-tests/widget-version-1.wgt.</step_desc>
+ <step_desc>Install the widget with the command : wrt-installer -i /opt/tct-pm-wrt-tests/widget-version-1.wgt</step_desc>
<expected>Pass if the widget-version-1 webapp is installed successfully.</expected>
</step>
<step order="2">
<expected>Pass if there aren't any error messages and system crash</expected>
</step>
</steps>
- <test_script_entry test_script_expected_result="0"/>
+ <test_script_entry test_script_expected_result="0"></test_script_entry>
</description>
<specs>
<spec>
<spec_assertion element_type="attribute" element_name="N/A" interface="0110" specification="Web Application Update" section="Web Application Package Management" category="Tizen WRT Core Specifications"/>
- <spec_url/>
+ <spec_url></spec_url>
<spec_statement>TBD</spec_statement>
</spec>
</specs>
<specs>
<spec>
<spec_assertion element_type="attribute" element_name="N/A" interface="0050" specification="Web Application Installation" section="Web Application Package Management" category="Tizen WRT Core Specifications"/>
- <spec_url/>
+ <spec_url></spec_url>
<spec_statement>TBD</spec_statement>
</spec>
</specs>
<specs>
<spec>
<spec_assertion element_type="attribute" element_name="N/A" interface="0110" specification="Web Application Update" section="Web Application Package Management" category="Tizen WRT Core Specifications"/>
- <spec_url/>
+ <spec_url></spec_url>
<spec_statement>TBD</spec_statement>
</spec>
</specs>
<specs>
<spec>
<spec_assertion element_type="attribute" element_name="N/A" interface="0110" specification="Web Application Update" section="Web Application Package Management" category="Tizen WRT Core Specifications"/>
- <spec_url/>
+ <spec_url></spec_url>
<spec_statement>TBD</spec_statement>
</spec>
</specs>
</testcase>
<testcase purpose="Check if package management can return Web Application information." type="user_experience" status="approved" component="Web/Runtime/PackageManagement" execution_type="manual" priority="P2" id="WebApp_Get_Information">
<description>
- <pre_condition>Make sure the Sample-widget.wgt is installed with the command : wrt-installer -i /opt/tct-pm-wrt-tests/Sample-widget.wgt.</pre_condition>
+ <pre_condition>Make sure the Sample-widget.wgt is installed with the command : wrt-installer -i /opt/tct-pm-wrt-tests/Sample-widget.wgt</pre_condition>
<post_condition>Get the 'application id' of Sample-widget.wgt with the command :"wrt-launcher -l" and uninstall the widget with the command :"wrt-installer -un 'application id'"</post_condition>
<steps>
<step order="1">
<step_desc>Check the widget details information with command: wrt-launcher -l.</step_desc>
- <expected>The widget info are displayed.</expected>
- </step>
- <step order="2">
- <step_desc>Check the widget info.</step_desc>
- <expected>Pass if the application information is the same with config.xml. For example, Name: Sample-widget Version: 1.0.0.</expected>
- </step>
- </steps>
- <test_script_entry test_script_expected_result="0"/>
- </description>
- <specs>
- <spec>
- <spec_assertion element_type="attribute" element_name="N/A" interface="0050" specification="Web Application Installation" section="Web Application Package Management" category="Tizen WRT Core Specifications"/>
- <spec_url/>
- <spec_statement>TBD</spec_statement>
- </spec>
- </specs>
- </testcase>
- <testcase purpose="Check if packaged Web Application can be listed on the device screen successfully." type="user_experience" status="approved" component="Web/Runtime/PackageManagement" execution_type="manual" priority="P1" id="PKManagement_PackagedAPP_List">
- <description>
- <pre_condition>Make sure the Sample-widget.wgt is not installed.Without any Web Application has been installed.</pre_condition>
- <post_condition>Get the 'application id' of Sample-widget.wgt with the command :"wrt-launcher -l" and uninstall the widget with the command :"wrt-installer -un 'application id'"</post_condition>
- <steps>
- <step order="1">
- <step_desc>Check if Sample-widget.wgt has been installed with command: wrt-launcher -l.</step_desc>
- <expected>Pass if there is no any Web Application has been installed.</expected>
- </step>
- <step order="2">
- <step_desc>Install the widget with the command : wrt-installer -i /opt/tct-pm-wrt-tests/Sample-widget.wgt.</step_desc>
- <expected>Pass if "installed:wrt1smt007.Sample-widget" is listed on the device screen.</expected>
- </step>
- <step order="2">
- <step_desc>Check if Sample-widget.wgt has been installed with command: wrt-launcher -l.</step_desc>
- <expected>Pass if a set of information is listed on the device screen correctly(you can confirm these information from the config.xml file). For example: NO 1, Name Sample-widget, Version 1.0.0, GUID http://yourdomain/Sample-widget and Package ID wrt1smt007.</expected>
+ <expected>The widget info are displayed and it is the same with config.xml. For example, Name: Sample-widget Version: 1.0.0.</expected>
</step>
</steps>
- <test_script_entry test_script_expected_result="0"/>
+ <test_script_entry test_script_expected_result="0"></test_script_entry>
</description>
<specs>
<spec>
<spec_assertion element_type="attribute" element_name="N/A" interface="0050" specification="Web Application Installation" section="Web Application Package Management" category="Tizen WRT Core Specifications"/>
- <spec_url/>
+ <spec_url></spec_url>
<spec_statement>TBD</spec_statement>
</spec>
</specs>
<post_condition>Get the 'application id' of npruntime-all-on-arm.wgt with the command :"wrt-launcher -l" and uninstall the widget with the command :"wrt-installer -un 'application id'"</post_condition>
<steps>
<step order="1">
- <step_desc>Install the widget with the command : wrt-installer -i /opt/tct-pm-wrt-tests/npruntime-all-on-arm.wgt.</step_desc>
+ <step_desc>Install the widget with the command : wrt-installer -i /opt/tct-pm-wrt-tests/npruntime-all-on-arm.wgt</step_desc>
<expected>Pass if the widget is installed successfully.</expected>
</step>
<step order="2">
<expected>If this is a arm device and Javascript and NPRuntime multiplication time displayed above the button "Get the multiplication time", then PASS.If this is a x86 device and a popup displayed on the screen, then PASS.</expected>
</step>
</steps>
- <test_script_entry test_script_expected_result="0"/>
+ <test_script_entry test_script_expected_result="0"></test_script_entry>
</description>
<specs>
<spec>
<spec_assertion element_type="attribute" element_name="N/A" interface="0102" specification="Web Application Installation" section="Web Application Package Management" category="Tizen WRT Core Specifications"/>
- <spec_url/>
+ <spec_url></spec_url>
<spec_statement>TBD</spec_statement>
</spec>
</specs>
<description>
<pre_condition>Make sure the npruntime-arm-on-x86.wgt is not installed. </pre_condition>
<post_condition>Get the 'application id' of npruntime-arm-on-x86.wgt or with the command :"wrt-launcher -l" and uninstall the widget with the command :"wrt-installer -un 'application id'"</post_condition>
- <test_script_entry test_script_expected_result="0"/>
<steps>
<step order="1">
- <step_desc>Install the widget with the command : wrt-installer -i /opt/tct-pm-wrt-tests/npruntime-arm-on-x86.wgt.</step_desc>
+ <step_desc>Install the widget with the command : wrt-installer -i /opt/tct-pm-wrt-tests/npruntime-arm-on-x86.wgt</step_desc>
<expected>Pass if the widget is installed successfully.</expected>
</step>
<step order="2">
<expected>If this is a x86 device and Javascript and NPRuntime multiplication time displayed above the button "Get the multiplication time", then PASS.If this is a arm device and a popup displayed on the screen, then PASS.</expected>
</step>
</steps>
+ <test_script_entry test_script_expected_result="0"></test_script_entry>
</description>
<specs>
<spec>
<spec_assertion element_type="attribute" element_name="N/A" interface="0103" specification="Web Application Installation" section="Web Application Package Management" category="Tizen WRT Core Specifications"/>
- <spec_url/>
+ <spec_url></spec_url>
<spec_statement>TBD</spec_statement>
</spec>
</specs>
<post_condition></post_condition>
<steps>
<step order="1">
- <step_desc>Install the widget with the command : wrt-installer -i /opt/tct-pm-wrt-tests/11a.wgt.</step_desc>
+ <step_desc>Check if the WRT cannot install the widget which contains distributor signature without a dsp:Role signature property</step_desc>
<expected>Pass if the widget can not be installed.</expected>
</step>
</steps>
<specs>
<spec>
<spec_assertion element_type="attribute" element_name="N/A" interface="0101" specification="Web Application Installation" section="Web Application Package Management" category="Tizen WRT Core Specifications"/>
- <spec_url/>
+ <spec_url></spec_url>
<spec_statement>TBD</spec_statement>
</spec>
</specs>
<post_condition></post_condition>
<steps>
<step order="1">
- <step_desc>Install the widget with the command : wrt-installer -i /opt/tct-pm-wrt-tests/11b.wgt.</step_desc>
+ <step_desc>Check if the WRT cannot install the widget which contains distributor signature with a dsp:Role signature property that does not contain an URI for a distributor role.</step_desc>
<expected>Pass if the widget can not be installed.</expected>
</step>
</steps>
<specs>
<spec>
<spec_assertion element_type="attribute" element_name="N/A" interface="0101" specification="Web Application Installation" section="Web Application Package Management" category="Tizen WRT Core Specifications"/>
- <spec_url/>
+ <spec_url></spec_url>
<spec_statement>TBD</spec_statement>
</spec>
</specs>
<post_condition></post_condition>
<steps>
<step order="1">
- <step_desc>Install the widget with the command : wrt-installer -i /opt/tct-pm-wrt-tests/widget-partner-privilege.wgt.</step_desc>
+ <step_desc>Check if the WRT cannot install the widget which is announced with one or more partner API privileges in configuration file.</step_desc>
<expected>Pass if the widget can not be installed.</expected>
</step>
</steps>
<specs>
<spec>
<spec_assertion element_type="attribute" element_name="N/A" interface="0101" specification="Web Application Installation" section="Web Application Package Management" category="Tizen WRT Core Specifications"/>
- <spec_url/>
+ <spec_url></spec_url>
<spec_statement>TBD</spec_statement>
</spec>
</specs>
<post_condition></post_condition>
<steps>
<step order="1">
- <step_desc>Install feature-element-be-ignored.wgt application</step_desc>
+ <step_desc>Check if the 'feature' element should be ignored during installation process.</step_desc>
<expected>Pass if feature-element-be-ignored WebApp is installed successfully.</expected>
</step>
</steps>
<specs>
<spec>
<spec_assertion element_type="attribute" element_name="N/A" interface="0050" specification="Web Application Installation" section="Web Application Package Management" category="Tizen WRT Core Specifications"/>
- <spec_url/>
+ <spec_url></spec_url>
<spec_statement>TBD</spec_statement>
</spec>
</specs>
<post_condition></post_condition>
<steps>
<step order="1">
- <step_desc>Install web-api-version.wgt application</step_desc>
+ <step_desc>Check if WRT should abort installation when the version of Tizen Web API supported by the WRT is lower than the minimum version required by the Web Application.</step_desc>
<expected>Pass: The application can't be installed successfully.</expected>
</step>
</steps>
<specs>
<spec>
<spec_assertion element_type="attribute" element_name="N/A" interface="0080" specification="Web Application Installation" section="Web Application Package Management" category="Tizen WRT Core Specifications"/>
- <spec_url/>
+ <spec_url></spec_url>
<spec_statement>TBD</spec_statement>
</spec>
</specs>
<?xml version="1.0" encoding="UTF-8"?>
<widget xmlns="http://www.w3.org/ns/widgets" xmlns:tizen="http://tizen.org/ns/widgets" id="http://tizen.org/uninstallation-application-erased" version="1.0.0" viewmodes="maximized">
- <tizen:application id="wrt1uae011.uninstallationapplicationerased" package="wrt1uae011" required_version="2.1"/>
- <content src="index.html"/>
- <icon src="icon.png"/>
- <name>uninstallation-application-erased</name>
-</widget>
+ <tizen:application id="wrt1uae011.uninstallationapplicationerased" package="wrt1uae011" required_version="2.1"/>
+ <content src="index.html"/>
+ <icon src="icon.png"/>
+ <name>uninstallation-application-erased</name>
+</widget>
\ No newline at end of file
-->
<html>
<head>
- <meta charset="utf-8" />
+ <meta charset="utf-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0, maximum-scale=1.0">
<meta name="description" content="Tizen basic template generated by Tizen Web IDE"/>
-
<title>uninstallation-application-erased</title>
-
<link rel="stylesheet" type="text/css" href="css/style.css"/>
<script src="js/main.js"></script>
</head>
-
<body>
<script type="text/javascript">
- document.write("Pls create a folder name is 'test' and the path is 'opt/apps/Lerkind001/res/wgt/'!")
+ document.write("Pls create a folder name is 'test' and the path is 'opt/apps/Lerkind001/res/wgt/'!");
</script>
</body>
-</html>
+</html>
\ No newline at end of file
<html>
<head>
<title>WRT Test: web-api-version</title>
- <link rel="author" title="Intel" href="http://www.intel.com" />
- <link rel="help" href="" />
- <meta name="flags" content="" />
- <meta name="assert" content="Check that the WRT must not allow Web Application access to messaging.write sensitive API features without first consulting the security policy." />
+ <link rel="author" title="Intel" href="http://www.intel.com"/>
+ <link rel="help" href=""/>
+ <meta name="flags" content=""/>
+ <meta name="assert" content="Check that the WRT must not allow Web Application access to messaging.write sensitive API features without first consulting the security policy."/>
<meta charset="utf-8">
</head>
- <body>
- <script type="text/javascript">
-
- document.write("<br><br><br>");
- document.write("Test purpose: Check that the WRT must not allow Web Application access to messaging.write sensitive API features without first consulting the security policy <br>");
-
- try{
- function serviceSynced() {
- document.write("Pass");
- }
-
- function servicesListSuccessCB(services) {
- alert("1");
- services[1].sync(serviceSynced, null, 30);
- alert("2");
- }
- tizen.messaging.getMessageServices("messaging.email", servicesListSuccessCB);
- }catch(e){
- if ("SecurityError" == e.name) {
- document.write("Pass");
- } else {
- document.write("Pass");
+ <body>
+ <script type="text/javascript">
+ document.write("<br><br><br>");
+ document.write("Test purpose: Check that the WRT must not allow Web Application access to messaging.write sensitive API features without first consulting the security policy <br>");
+ try{
+ function serviceSynced() {
+ document.write("Pass");
+ }
+ function servicesListSuccessCB(services) {
+ alert("1");
+ services[1].sync(serviceSynced, null, 30);
+ alert("2");
+ }
+ tizen.messaging.getMessageServices("messaging.email", servicesListSuccessCB);
+ }catch(e){
+ if ("SecurityError" == e.name) {
+ document.write("Pass");
+ } else {
+ document.write("Pass");
+ }
}
- }
-</script>
- </body>
+ </script>
+ </body>
</html>
\ No newline at end of file
<?xml version="1.0" encoding="UTF-8"?>
<widget xmlns="http://www.w3.org/ns/widgets" xmlns:tizen="http://tizen.org/ns/widgets" id="http://yourdomain/widget-version" version="1.1.0" viewmodes="maximized">
- <tizen:application id="wrt1wvt006.widgetversion" package="wrt1wvt006" required_version="2.1"/>
- <content src="index.html"/>
- <icon src="icon.png"/>
- <name>widget-version</name>
-</widget>
+ <tizen:application id="wrt1wvt006.widgetversion" package="wrt1wvt006" required_version="2.1"/>
+ <content src="index.html"/>
+ <icon src="icon.png"/>
+ <name>widget-version</name>
+</widget>
\ No newline at end of file
<html>
<head>
<title>WRT Test: widget-version</title>
- <link rel="author" title="Intel" href="http://www.intel.com" />
- <link rel="help" href="" />
- <meta name="flags" content="" />
- <meta name="assert" content="." />
+ <link rel="author" title="Intel" href="http://www.intel.com"/>
+ <link rel="help" href=""/>
+ <meta name="flags" content=""/>
+ <meta name="assert" content="."/>
<meta charset="utf-8">
</head>
- <body>
- <div>This is Web App for testing</div>
- </body>
-</html>
+ <body>
+ <div>This is Web App for testing</div>
+ </body>
+</html>
\ No newline at end of file
<?xml version="1.0" encoding="UTF-8"?>
<widget xmlns="http://www.w3.org/ns/widgets" xmlns:tizen="http://tizen.org/ns/widgets" id="http://yourdomain/widget-version" version="1.2.0" viewmodes="maximized">
- <tizen:application id="wrt1wvt006.widgetversion" package="wrt1wvt006" required_version="2.1"/>
- <content src="index.html"/>
- <icon src="icon.png"/>
- <name>widget-version</name>
-</widget>
+ <tizen:application id="wrt1wvt006.widgetversion" package="wrt1wvt006" required_version="2.1"/>
+ <content src="index.html"/>
+ <icon src="icon.png"/>
+ <name>widget-version</name>
+</widget>
\ No newline at end of file
<html>
<head>
<title>WRT Test: widget-version</title>
- <link rel="author" title="Intel" href="http://www.intel.com" />
- <link rel="help" href="" />
- <meta name="flags" content="" />
- <meta name="assert" content="." />
+ <link rel="author" title="Intel" href="http://www.intel.com"/>
+ <link rel="help" href=""/>
+ <meta name="flags" content=""/>
+ <meta name="assert" content="."/>
<meta charset="utf-8">
</head>
- <body>
- <div>This is Web App for testing</div>
- </body>
-</html>
+ <body>
+ <div>This is Web App for testing</div>
+ </body>
+</html>
\ No newline at end of file
<?xml version="1.0" encoding="UTF-8"?>
<widget xmlns="http://www.w3.org/ns/widgets" xmlns:tizen="http://tizen.org/ns/widgets" id="http://yourdomain/widget-version" version="1.0.0" viewmodes="maximized">
- <tizen:application id="wrt1wvt006.widgetversion" package="wrt1wvt006" required_version="2.1"/>
- <content src="index.html"/>
- <icon src="icon.png"/>
- <name>widget-version</name>
-</widget>
+ <tizen:application id="wrt1wvt006.widgetversion" package="wrt1wvt006" required_version="2.1"/>
+ <content src="index.html"/>
+ <icon src="icon.png"/>
+ <name>widget-version</name>
+</widget>
\ No newline at end of file
<html>
<head>
<title>WRT Test: widget-version</title>
- <link rel="author" title="Intel" href="http://www.intel.com" />
- <link rel="help" href="" />
- <meta name="flags" content="" />
- <meta name="assert" content="." />
+ <link rel="author" title="Intel" href="http://www.intel.com"/>
+ <link rel="help" href=""/>
+ <meta name="flags" content=""/>
+ <meta name="assert" content="."/>
<meta charset="utf-8">
</head>
- <body>
- <div>This is Web App for testing</div>
- </body>
-</html>
+ <body>
+ <div>This is Web App for testing</div>
+ </body>
+</html>
\ No newline at end of file
<?xml version="1.0" encoding="UTF-8"?>
<widget xmlns="http://www.w3.org/ns/widgets" xmlns:tizen="http://tizen.org/ns/widgets" id="http://yourdomain/widget-version2" version="2.1.0" viewmodes="maximized">
- <tizen:application id="wrt1wvt009.widgetversion2" package="wrt1wvt009" required_version="2.1"/>
- <content src="index.html"/>
- <icon src="icon.png"/>
- <name>widget-version2</name>
-</widget>
+ <tizen:application id="wrt1wvt009.widgetversion2" package="wrt1wvt009" required_version="2.1"/>
+ <content src="index.html"/>
+ <icon src="icon.png"/>
+ <name>widget-version2</name>
+</widget>
\ No newline at end of file
<html>
<head>
<title>WRT Test: widget-version2</title>
- <link rel="author" title="Intel" href="http://www.intel.com" />
- <link rel="help" href="" />
- <meta name="flags" content="" />
- <meta name="assert" content="." />
+ <link rel="author" title="Intel" href="http://www.intel.com"/>
+ <link rel="help" href=""/>
+ <meta name="flags" content=""/>
+ <meta name="assert" content="."/>
<meta charset="utf-8">
</head>
- <body>
- <div>This is Web App for testing</div>
- </body>
-</html>
+ <body>
+ <div>This is Web App for testing</div>
+ </body>
+</html>
\ No newline at end of file
<?xml version="1.0" encoding="UTF-8"?>
<widget xmlns="http://www.w3.org/ns/widgets" xmlns:tizen="http://tizen.org/ns/widgets" id="http://yourdomain/widget-version2" version="2.0.0" viewmodes="maximized">
- <tizen:application id="wrt1wvt009.widgetversion2" package="wrt1wvt009" required_version="2.1"/>
- <content src="index.html"/>
- <icon src="icon.png"/>
- <name>widget-version2</name>
-</widget>
+ <tizen:application id="wrt1wvt009.widgetversion2" package="wrt1wvt009" required_version="2.1"/>
+ <content src="index.html"/>
+ <icon src="icon.png"/>
+ <name>widget-version2</name>
+</widget>
\ No newline at end of file
<html>
<head>
<title>WRT Test: widget-version2</title>
- <link rel="author" title="Intel" href="http://www.intel.com" />
- <link rel="help" href="" />
- <meta name="flags" content="" />
- <meta name="assert" content="." />
+ <link rel="author" title="Intel" href="http://www.intel.com"/>
+ <link rel="help" href=""/>
+ <meta name="flags" content=""/>
+ <meta name="assert" content="."/>
<meta charset="utf-8">
</head>
- <body>
- <div>This is Web App for testing</div>
- </body>
-</html>
+ <body>
+ <div>This is Web App for testing</div>
+ </body>
+</html>
\ No newline at end of file
<?xml version="1.0" encoding="UTF-8"?>
<widget xmlns="http://www.w3.org/ns/widgets" xmlns:tizen="http://tizen.org/ns/widgets" id="http://yourdomain/widget-version3" version="3.1.0" viewmodes="maximized">
- <tizen:application id="wrt1wvt010.widgetversion3" package="wrt1wvt010" required_version="2.1"/>
- <content src="index.html"/>
- <icon src="icon.png"/>
- <name>widget-version3</name>
-</widget>
+ <tizen:application id="wrt1wvt010.widgetversion3" package="wrt1wvt010" required_version="2.1"/>
+ <content src="index.html"/>
+ <icon src="icon.png"/>
+ <name>widget-version3</name>
+</widget>
\ No newline at end of file
<html>
<head>
<title>WRT Test: widget-version3</title>
- <link rel="author" title="Intel" href="http://www.intel.com" />
- <link rel="help" href="" />
- <meta name="flags" content="" />
- <meta name="assert" content="." />
+ <link rel="author" title="Intel" href="http://www.intel.com"/>
+ <link rel="help" href=""/>
+ <meta name="flags" content=""/>
+ <meta name="assert" content="."/>
<meta charset="utf-8">
</head>
- <body>
- <div>This is Web App for testing</div>
- </body>
-</html>
+ <body>
+ <div>This is Web App for testing</div>
+ </body>
+</html>
\ No newline at end of file
<?xml version="1.0" encoding="UTF-8"?>
<widget xmlns="http://www.w3.org/ns/widgets" xmlns:tizen="http://tizen.org/ns/widgets" id="http://yourdomain/widget-version3" version="3.0.0" viewmodes="maximized">
- <tizen:application id="wrt1wvt010.widgetversion3" package="wrt1wvt010" required_version="2.1"/>
- <content src="index.html"/>
- <icon src="icon.png"/>
- <name>widget-version3</name>
-</widget>
+ <tizen:application id="wrt1wvt010.widgetversion3" package="wrt1wvt010" required_version="2.1"/>
+ <content src="index.html"/>
+ <icon src="icon.png"/>
+ <name>widget-version3</name>
+</widget>
\ No newline at end of file
<html>
<head>
<title>WRT Test: widget-version3</title>
- <link rel="author" title="Intel" href="http://www.intel.com" />
- <link rel="help" href="" />
- <meta name="flags" content="" />
- <meta name="assert" content="." />
+ <link rel="author" title="Intel" href="http://www.intel.com"/>
+ <link rel="help" href=""/>
+ <meta name="flags" content=""/>
+ <meta name="assert" content="."/>
<meta charset="utf-8">
</head>
- <body>
- <div>This is Web App for testing</div>
- </body>
-</html>
+ <body>
+ <div>This is Web App for testing</div>
+ </body>
+</html>
\ No newline at end of file