+++ /dev/null
-<!DOCTYPE html>
-<!--
-Copyright (c) 2012 Intel Corporation.
-
-Redistribution and use in source and binary forms, with or without modification,
-are permitted provided that the following conditions are met:
-
-* Redistributions of works must retain the original copyright notice, this list
- of conditions and the following disclaimer.
-* Redistributions in binary form must reproduce the original copyright notice,
- this list of conditions and the following disclaimer in the documentation
- and/or other materials provided with the distribution.
-* Neither the name of Intel Corporation nor the names of its contributors
- may be used to endorse or promote products derived from this work without
- specific prior written permission.
-
-THIS SOFTWARE IS PROVIDED BY INTEL CORPORATION "AS IS"
-AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
-IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE
-ARE DISCLAIMED. IN NO EVENT SHALL INTEL CORPORATION BE LIABLE FOR ANY DIRECT,
-INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING,
-BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE,
-DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY
-OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING
-NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE,
-EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
-
-Authors:
- Hao, Yunfei <yunfenx.hao@intel.com>
-
--->
-
-<html>
- <head>
- <title>WRT Test: other-widget-interface-attribute</title>
- <link rel="author" title="Intel" href="http://www.intel.com"/>
- <link rel="help" href=""/>
- <meta name="flags" content=""/>
- <meta name="assert" content="Check if the WRT supports the attributes of the W3C Widget Interface. "/>
- <meta charset="utf-8">
- <script language="javascript" type="text/javascript">
- var mm = [
- "Author Name", // author name
- "testcases@tizendev.org", // author email
- "http://test.tizendev.org/", // autuor href
- "A sample widget for testing.", // description
- "owi", // short name
- "1.2.3", // version
- "http://tizen.org/other-widget-interface-attribute", //id
- "100", //height
- "200" //width
- ]
- var oo = [
- "author name", // author name
- "author email", // author email
- "author Href", // autuor href
- "description", // description
- "shortName", // short name
- "version", // version
- "id", //id
- "height", //height
- "width" //width
- ]
- try{
- var nn = [
- widget.author, // author name
- widget.authorEmail, // author email
- widget.authorHref, // autuor href
- widget.description, // description
- widget.shortName, // short name
- widget.version, // version
- widget.id, //id
- widget.height, //height
- widget.width //width
- ]
- } catch (e){
- alert("catch a error:"+e.message);
- }
- function check(i){
- var rlt = null;
- rlt = "result"+i;
- rlt2 =rlt+i;
- if (mm[i] ==nn[i]){
- document.getElementById(rlt).innerHTML="<span style='color:green'>Pass</span>";
- document.getElementById(rlt2).innerHTML=oo[i]+" value is '"+nn[i]+"'";
- }
- else{
- document.getElementById(rlt).innerHTML="<span style='color:red'>Fail</span>";
- document.getElementById(rlt2).innerHTML=oo[i]+" value is '"+nn[i]+"'";
- }
-
- }
- </script>
- </head>
- <body>
- <table>
- <tr>
- <td><input type="button" value="Test author" onclick="check(0)"/></td>
- <td>Result:<span id = "result0"><span style="color:black"> Not Run</span></span></td>
- <td><span id = "result00"></span></td>
- </tr>
- <tr>
- <td><input type="button" value="Test authorEmail" onclick="check(1)"/></td>
- <td>Result:<span id = "result1"><span style="color:black"> Not Run</span></span></td>
- <td><span id = "result11"></span></td>
- </tr>
- <tr>
- <td><input type="button" value="Test authorHref" onclick="check(2)"/></td>
- <td>Result:<span id = "result2"><span style="color:black"> Not Run</span></span></td>
- <td><span id = "result22"></span></td>
- </tr>
- <tr>
- <td><input type="button" value="Test description" onclick="check(3)"/></td>
- <td>Result:<span id = "result3"><span style="color:black"> Not Run</span></span></td>
- <td><span id = "result33"></span></td>
- </tr>
- <tr>
- <td><input type="button" value="Test shortName" onclick="check(4)"/></td>
- <td>Result:<span id = "result4"><span style="color:black"> Not Run</span></span></td>
- <td><span id = "result44"></span></td>
- </tr>
- <tr>
- <td><input type="button" value="Test version" onclick="check(5)"/></td>
- <td>Result:<span id = "result5"><span style="color:black"> Not Run</span></span></td>
- <td><span id = "result55"></span></td>
- </tr>
- <tr>
- <td><input type="button" value="Test id" onclick="check(6)"/></td>
- <td>Result:<span id = "result6"><span style="color:black"> Not Run</span></span></td>
- <td><span id = "result66"></span></td>
- </tr>
- <tr>
- <td><input type="button" value="Test height" onclick="check(7)"/></td>
- <td>Result:<span id = "result7"><span style="color:black"> Not Run</span></span></td>
- <td><span id = "result77"></span></td>
- </tr>
- <tr>
- <td><input type="button" value="Test width" onclick="check(8)"/></td>
- <td>Result:<span id = "result8"><span style="color:black"> Not Run</span></span></td>
- <td><span id = "result88"></span></td>
- </tr>
- </table>
- </body>
-</html>
+++ /dev/null
-<!DOCTYPE html>
-<!--
-Copyright (c) 2012 Intel Corporation.
-
-Redistribution and use in source and binary forms, with or without modification,
-are permitted provided that the following conditions are met:
-
-* Redistributions of works must retain the original copyright notice, this list
- of conditions and the following disclaimer.
-* Redistributions in binary form must reproduce the original copyright notice,
- this list of conditions and the following disclaimer in the documentation
- and/or other materials provided with the distribution.
-* Neither the name of Intel Corporation nor the names of its contributors
- may be used to endorse or promote products derived from this work without
- specific prior written permission.
-
-THIS SOFTWARE IS PROVIDED BY INTEL CORPORATION "AS IS"
-AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
-IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE
-ARE DISCLAIMED. IN NO EVENT SHALL INTEL CORPORATION BE LIABLE FOR ANY DIRECT,
-INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING,
-BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE,
-DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY
-OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING
-NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE,
-EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
-
-Authors:
- Hao, Yunfei <yunfenx.hao@intel.com>
-
--->
-
-<html>
- <head>
- <title>WRT Test: other-widget-interface-method</title>
- <link rel="author" title="Intel" href="http://www.intel.com"/>
- <link rel="help" href=""/>
- <meta name="flags" content=""/>
- <meta name="assert" content="Check if the WRT supports the method of the W3C Widget Interface. "/>
- <meta charset="utf-8">
- <script language="javascript" type="text/javascript">
- function getP(key){
- var preference = null;
- preference = widget.preferences.getItem(key);
- if (preference =="f199bb20-1499-11df"){
- document.getElementById("result0").innerHTML="<span style='color:green'>Pass</span>";
- document.getElementById("result00").innerHTML=" widget.getItem('licenseKey')value is '"+widget.preferences.getItem("licenseKey")+"'";
- }
- else{
- document.getElementById("result0").innerHTML="<span style='color:red'>Fail</span>";
- document.getElementById("result00").innerHTML=oo[i]+" value is '"+nn[i]+"'";
- }
- }
- var fields0;
- var fields1;
- function init(){
- fields0 = document.forms[0].elements;
- loadPrefs0()
- fields1 = document.forms[1].elements;
- loadPrefs1()
- }
- function loadPrefs0 () {
- for(var i = 0; i < fields0.length; i++){
- var field = fields0[i];
- if (typeof widget.preferences[field.name] !== "undefined") {
- field.value = widget.preferences[field.name];
- }
- }
- }
- function savePrefs0 () {
- for(var i = 0; i < fields0.length; i++){
- var field = fields0[i];
- try{
- widget.preferences.setItem(field.name,field.value);
- alert("Save the preference "+field.name+"="+field.value+" launched well!");
- }catch(e){
- if(e.code === DOMException.NO_MODIFICATION_ALLOWED_ERR){
- alert(e);
- }
- }
- }
- }
- function loadPrefs1 () {
- for(var i = 0; i < fields1.length; i++){
- var field = fields1[i];
- if (typeof widget.preferences[field.name] !== "undefined") {
- field.value = widget.preferences[field.name];
- }
- }
- }
- function savePrefs1() {
- for(var i = 0; i < fields1.length; i++){
- var field = fields1[i];
- try{
- widget.preferences.setItem(field.name,field.value);
- }catch(e){
- if(e.code === DOMException.NO_MODIFICATION_ALLOWED_ERR){
- alert("Pass, the readonly item can not be saved.");
- }
- }
- }
- }
- function clr() {
- widget.preferences.clear();
- alert("widget.preferences.clear() launched successfully!");
- }
- function savePrefs2() {
- try{
- widget.preferences.setItem(document.getElementById("pKey").value,document.getElementById("pValue").value);
- }catch(e){
- alert(e.message);
- }
- alert("Save succeed! key is "+document.getElementById("pKey").value+",value is "+widget.preferences.getItem(document.getElementById("pKey").value));
- }
- function loadPrefs2() {
- document.getElementById("pValue").value = widget.preferences.getItem(document.getElementById("pKey").value);
- }
- </script>
- </head>
- <body onload="init()">
- <fieldset id="prefs-form">
- <legend>Preferences getItem() test</legend>
- <tr>
- <td><input type="button" value="Test getItem('preKey')" onclick="getP('preKey')"/></td>
- <td>Result:<span id = "result0"><span style="color:black"> Not Run</span></span></td>
- <td><span id = "result00"></span></td>
- </tr>
- </fieldset>
- <fieldset id="prefs-form">
- <legend>Preferences setItem() test</legend>
- <form>
- <label>preNum:
- <select name="preNum">
- <option value=0>0
- <option value=1>1
- <option value=2>2
- </select>
- </label>
-
- <label>preString
-
- <select name="preString">
- <option value=a>a
- <option value=b>b
- <option value=c>c
- </select>
- </label>
- </form>
- <button onclick="savePrefs0()">Save writable item</button>
- <button onclick="loadPrefs0()">Load writable item</button>
- <button onclick="clr()">Clear writable item</button>
- </fieldset>
- <fieldset id="prefs-form">
- <legend>Preferences setItem() readonly test</legend>
- <form>
- <label>License Key: <input type = "text"name="licenseKey"></label>
- </form>
- <button onclick="savePrefs1()">Save readonly item</button>
- <button onclick="loadPrefs1()">Load readonly item</button>
- <button onclick="clr()">Clear readonly item</button>
- </fieldset>
- <fieldset id="prefs-form">
- <legend>Undefined preferences test</legend>
- <form>
- <label> Key: <input type = "text" id="pKey" ></label>
- <label> Value: <input type = "text" id="pValue" ></label>
- </form>
- <button onclick="savePrefs2()">Save undefined item</button>
- <button onclick="loadPrefs2()">Load undefined item</button>
- <button onclick="clr()">Clear undefined item</button>
- </fieldset>
- </body>
-</html>
</spec>
</specs>
</testcase>
- <testcase component="Web/Runtime/WebApplicationRuntime" id="other-widget-interface" execution_type="manual" purpose="Check if WRT supports W3C Widget Interface." priority="P1" status="approved" type="Functional positive">
- <description>
- <pre_condition></pre_condition>
- <post_condition>Get the 'application id' of other-widget-interface.wgt with the command :"wrt-launcher -l" and uninstall the other-widget-interface.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-rt02-wrt-tests/other-widget-interface.wgt.</step_desc>
- <expected>The widget package is installed successfully. Its icon appears on screen.</expected>
- </step>
- <step order="2">
- <step_desc>Touch the icon to enter the application.</step_desc>
- <expected>A green "Pass" is displayed on screen.</expected>
- </step>
- </steps>
- <test_script_entry test_script_expected_result="0"/>
- <notes/>
- </description>
- <specs>
- <spec>
- <spec_assertion element_type="attribute" element_name="N/A" interface="0460" specification="Other" section="Web Application Runtime" category="Tizen WRT Core Specifications"/>
- <spec_url/>
- <spec_statement>TBD</spec_statement>
- </spec>
- </specs>
- </testcase>
<testcase component="Web/Runtime/WebApplicationRuntime" id="other-widget-uri-scheme" execution_type="manual" purpose="Check if WRT supports W3C Widget URI Scheme." priority="P1" status="approved" type="Functional positive">
<description>
<pre_condition></pre_condition>
</spec>
</specs>
</testcase>
- <testcase component="Web/Runtime/WebApplicationRuntime" id="other-widget-interface-author-name" execution_type="manual" purpose="Check if WRT supports W3C widget interface author name attribute." priority="P2" status="approved" type="Functional positive">
- <description>
- <pre_condition></pre_condition>
- <post_condition>Get the 'application id' of other-widget-interface-attribute.wgt with the command :"wrt-launcher -l" and uninstall the other-widget-interface-attribute.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-rt02-wrt-tests/other-widget-interface-attribute.wgt.</step_desc>
- <expected>The widget package is installed successfully. Its icon appears on screen.</expected>
- </step>
- <step order="2">
- <step_desc>Get the 'application id' of other-widget-interface-attribute.wgt with the command :"wrt-launcher -l" and launch the other-widget-interface-attribute.wgt with the command :"wrt-launcher -s 'application id'".</step_desc>
- <expected>The widget is luanched successfully.</expected>
- </step>
- <step order="3">
- <step_desc>Click the button "Test author".</step_desc>
- <expected>A green "Pass" appears on the right side of the button.</expected>
- </step>
- </steps>
- <test_script_entry test_script_expected_result="0"/>
- <notes/>
- </description>
- <specs>
- <spec>
- <spec_assertion element_type="attribute" element_name="N/A" interface="0460" specification="Other" section="Web Application Runtime" category="Tizen WRT Core Specifications"/>
- <spec_url/>
- <spec_statement>TBD</spec_statement>
- </spec>
- </specs>
- </testcase>
- <testcase component="Web/Runtime/WebApplicationRuntime" id="other-widget-interface-author-email" execution_type="manual" purpose="Check if WRT supports W3C widget interface author email attribute." priority="P2" status="approved" type="Functional positive">
- <description>
- <pre_condition></pre_condition>
- <post_condition>Get the 'application id' of other-widget-interface-attribute.wgt with the command :"wrt-launcher -l" and uninstall the other-widget-interface-attribute.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-rt02-wrt-tests/other-widget-interface-attribute.wgt.</step_desc>
- <expected>The widget package is installed successfully. Its icon appears on screen.</expected>
- </step>
- <step order="2">
- <step_desc>Get the 'application id' of other-widget-interface-attribute.wgt with the command :"wrt-launcher -l" and launch the other-widget-interface-attribute.wgt with the command :"wrt-launcher -s 'application id'".</step_desc>
- <expected>The widget is luanched successfully.</expected>
- </step>
- <step order="3">
- <step_desc>Click the button "Test authorEmail".</step_desc>
- <expected>A green "Pass" appears on the right side of the button.</expected>
- </step>
- </steps>
- <test_script_entry test_script_expected_result="0"/>
- <notes/>
- </description>
- <specs>
- <spec>
- <spec_assertion element_type="attribute" element_name="N/A" interface="0460" specification="Other" section="Web Application Runtime" category="Tizen WRT Core Specifications"/>
- <spec_url/>
- <spec_statement>TBD</spec_statement>
- </spec>
- </specs>
- </testcase>
- <testcase component="Web/Runtime/WebApplicationRuntime" id="other-widget-interface-author-href" execution_type="manual" purpose="Check if WRT supports W3C widget interface author href attribute." priority="P2" status="approved" type="Functional positive">
- <description>
- <pre_condition></pre_condition>
- <post_condition>Get the 'application id' of other-widget-interface-attribute.wgt with the command :"wrt-launcher -l" and uninstall the other-widget-interface-attribute.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-rt02-wrt-tests/other-widget-interface-attribute.wgt.</step_desc>
- <expected>The widget package is installed successfully. Its icon appears on screen.</expected>
- </step>
- <step order="2">
- <step_desc>Get the 'application id' of other-widget-interface-attribute.wgt with the command :"wrt-launcher -l" and launch the other-widget-interface-attribute.wgt with the command :"wrt-launcher -s 'application id'"</step_desc>
- <expected>The widget is launched successfully.</expected>
- </step>
- <step order="3">
- <step_desc>Click the button "Test authorHref".</step_desc>
- <expected>A green "Pass" appears on the right side of the button.</expected>
- </step>
- </steps>
- <test_script_entry test_script_expected_result="0"/>
- <notes/>
- </description>
- <specs>
- <spec>
- <spec_assertion element_type="attribute" element_name="N/A" interface="0460" specification="Other" section="Web Application Runtime" category="Tizen WRT Core Specifications"/>
- <spec_url/>
- <spec_statement>TBD</spec_statement>
- </spec>
- </specs>
- </testcase>
- <testcase component="Web/Runtime/WebApplicationRuntime" id="other-widget-interface-description" execution_type="manual" purpose="Check if WRT supports W3C widget interface description attribute." priority="P2" status="approved" type="Functional positive">
- <description>
- <pre_condition></pre_condition>
- <post_condition>Get the 'application id' of other-widget-interface-attribute.wgt with the command :"wrt-launcher -l" and uninstall the other-widget-interface-attribute.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-rt02-wrt-tests/other-widget-interface-attribute.wgt.</step_desc>
- <expected>The widget package is installed successfully. Its icon appears on screen.</expected>
- </step>
- <step order="2">
- <step_desc>Get the 'application id' of other-widget-interface-attribute.wgt with the command :"wrt-launcher -l" and launch the other-widget-interface-attribute.wgt with the command :"wrt-launcher -s 'application id'"</step_desc>
- <expected>The widget is launched successfully.</expected>
- </step>
- <step order="3">
- <step_desc>Click the button "Test description".</step_desc>
- <expected>A green "Pass" appears on the right side of the button.</expected>
- </step>
- </steps>
- <test_script_entry test_script_expected_result="0"/>
- <notes/>
- </description>
- <specs>
- <spec>
- <spec_assertion element_type="attribute" element_name="N/A" interface="0460" specification="Other" section="Web Application Runtime" category="Tizen WRT Core Specifications"/>
- <spec_url/>
- <spec_statement>TBD</spec_statement>
- </spec>
- </specs>
- </testcase>
- <testcase component="Web/Runtime/WebApplicationRuntime" id="other-widget-interface-short-name" execution_type="manual" purpose="Check if WRT supports W3C widget interface short name attribute." priority="P2" status="approved" type="Functional positive">
- <description>
- <pre_condition></pre_condition>
- <post_condition>Get the 'application id' of other-widget-interface-attribute.wgt with the command :"wrt-launcher -l" and uninstall the other-widget-interface-attribute.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-rt02-wrt-tests/other-widget-interface-attribute.wgt.</step_desc>
- <expected>The widget package is installed successfully. Its icon appears on screen.</expected>
- </step>
- <step order="2">
- <step_desc>Get the 'application id' of other-widget-interface-attribute.wgt with the command :"wrt-launcher -l" and launch the other-widget-interface-attribute.wgt with the command :"wrt-launcher -s 'application id'"</step_desc>
- <expected>The widget is launched successfully.</expected>
- </step>
- <step order="3">
- <step_desc>Click the button "Test shortName".</step_desc>
- <expected>A green "Pass" appears on the right side of the button.</expected>
- </step>
- </steps>
- <test_script_entry test_script_expected_result="0"/>
- <notes/>
- </description>
- <specs>
- <spec>
- <spec_assertion element_type="attribute" element_name="N/A" interface="0460" specification="Other" section="Web Application Runtime" category="Tizen WRT Core Specifications"/>
- <spec_url/>
- <spec_statement>TBD</spec_statement>
- </spec>
- </specs>
- </testcase>
- <testcase component="Web/Runtime/WebApplicationRuntime" id="other-widget-interface-version" execution_type="manual" purpose="Check if WRT supports W3C widget interface version attribute." priority="P2" status="approved" type="Functional positive">
- <description>
- <pre_condition></pre_condition>
- <post_condition>Get the 'application id' of other-widget-interface-attribute.wgt with the command :"wrt-launcher -l" and uninstall the other-widget-interface-attribute.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-rt02-wrt-tests/other-widget-interface-attribute.wgt.</step_desc>
- <expected>The widget package is installed successfully. Its icon appears on screen.</expected>
- </step>
- <step order="2">
- <step_desc>Get the 'application id' of other-widget-interface-attribute.wgt with the command :"wrt-launcher -l" and launch the other-widget-interface-attribute.wgt with the command :"wrt-launcher -s 'application id'"</step_desc>
- <expected>The widget is launched successfully.</expected>
- </step>
- <step order="3">
- <step_desc>Click the button "Test version".</step_desc>
- <expected>A green "Pass" appears on the right side of the button.</expected>
- </step>
- </steps>
- <test_script_entry test_script_expected_result="0"/>
- <notes/>
- </description>
- <specs>
- <spec>
- <spec_assertion element_type="attribute" element_name="N/A" interface="0460" specification="Other" section="Web Application Runtime" category="Tizen WRT Core Specifications"/>
- <spec_url/>
- <spec_statement>TBD</spec_statement>
- </spec>
- </specs>
- </testcase>
- <testcase component="Web/Runtime/WebApplicationRuntime" id="other-widget-interface-id" execution_type="manual" purpose="Check if WRT supports W3C widget interface id attribute." priority="P2" status="approved" type="Functional positive">
- <description>
- <pre_condition></pre_condition>
- <post_condition>Get the 'application id' of other-widget-interface-attribute.wgt with the command :"wrt-launcher -l" and uninstall the other-widget-interface-attribute.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-rt02-wrt-tests/other-widget-interface-attribute.wgt.</step_desc>
- <expected>The widget package is installed successfully. Its icon appears on screen.</expected>
- </step>
- <step order="2">
- <step_desc>Get the 'application id' of other-widget-interface-attribute.wgt with the command :"wrt-launcher -l" and launch the other-widget-interface-attribute.wgt with the command :"wrt-launcher -s 'application id'"</step_desc>
- <expected>The widget is launched successfully.</expected>
- </step>
- <step order="3">
- <step_desc>Click the button "Test id".</step_desc>
- <expected>A green "Pass" appears on the right side of the button.</expected>
- </step>
- </steps>
- <test_script_entry test_script_expected_result="0"/>
- <notes/>
- </description>
- <specs>
- <spec>
- <spec_assertion element_type="attribute" element_name="N/A" interface="0460" specification="Other" section="Web Application Runtime" category="Tizen WRT Core Specifications"/>
- <spec_url/>
- <spec_statement>TBD</spec_statement>
- </spec>
- </specs>
- </testcase>
- <testcase component="Web/Runtime/WebApplicationRuntime" id="other-widget-interface-height" execution_type="manual" purpose="Check if WRT supports W3C widget interface height attribute." priority="P2" status="approved" type="Functional positive">
- <description>
- <pre_condition></pre_condition>
- <post_condition>Get the 'application id' of other-widget-interface-attribute.wgt with the command :"wrt-launcher -l" and uninstall the other-widget-interface-attribute.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-rt02-wrt-tests/other-widget-interface-attribute.wgt.</step_desc>
- <expected>The widget package is installed successfully. Its icon appears on screen.</expected>
- </step>
- <step order="2">
- <step_desc>Get the 'application id' of other-widget-interface-attribute.wgt with the command :"wrt-launcher -l" and launch the other-widget-interface-attribute.wgt with the command :"wrt-launcher -s 'application id'"</step_desc>
- <expected>The widget is launched successfully.</expected>
- </step>
- <step order="3">
- <step_desc>Click the button "Test height".</step_desc>
- <expected>A green "Pass" appears on the right side of the button.</expected>
- </step>
- </steps>
- <test_script_entry test_script_expected_result="0"/>
- <notes/>
- </description>
- <specs>
- <spec>
- <spec_assertion element_type="attribute" element_name="N/A" interface="0460" specification="Other" section="Web Application Runtime" category="Tizen WRT Core Specifications"/>
- <spec_url/>
- <spec_statement>TBD</spec_statement>
- </spec>
- </specs>
- </testcase>
- <testcase component="Web/Runtime/WebApplicationRuntime" id="other-widget-interface-width" execution_type="manual" purpose="Check if WRT supports W3C widget interface width attribute." priority="P2" status="approved" type="Functional positive">
- <description>
- <pre_condition></pre_condition>
- <post_condition>Get the 'application id' of other-widget-interface-attribute.wgt with the command :"wrt-launcher -l" and uninstall the other-widget-interface-attribute.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-rt02-wrt-tests/other-widget-interface-attribute.wgt</step_desc>
- <expected>The widget package is installed successfullly. Its icon is appeared in screen.</expected>
- </step>
- <step order="2">
- <step_desc>Get the 'application id' of other-widget-interface-attribute.wgt with the command :"wrt-launcher -l" and launch the other-widget-interface-attribute.wgt with the command :"wrt-launcher -s 'application id'"</step_desc>
- <expected>The widget is launched successfully.</expected>
- </step>
- <step order="3">
- <step_desc>Click the button "Test width"</step_desc>
- <expected>A green prompt of "Pass" appears on the right side of the button.</expected>
- </step>
- </steps>
- <test_script_entry test_script_expected_result="0"/>
- <notes/>
- </description>
- <specs>
- <spec>
- <spec_assertion element_type="attribute" element_name="N/A" interface="0460" specification="Other" section="Web Application Runtime" category="Tizen WRT Core Specifications"/>
- <spec_url/>
- <spec_statement>TBD</spec_statement>
- </spec>
- </specs>
- </testcase>
- <testcase component="Web/Runtime/WebApplicationRuntime" id="other-widget-interface-preference-getitem" execution_type="manual" purpose="Check if WRT supports W3C widget interface preference getItem method." priority="P2" status="approved" type="Functional positive">
- <description>
- <pre_condition></pre_condition>
- <post_condition>Get the 'application id' of other-widget-interface-method.wgt with the command :"wrt-launcher -l" and uninstall the other-widget-interface-method.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-rt02-wrt-tests/other-widget-interface-method.wgt</step_desc>
- <expected>The widget package is installed successfullly. Its icon is appeared in screen.</expected>
- </step>
- <step order="2">
- <step_desc>Get the 'application id' of other-widget-interface-method.wgt with the command :"wrt-launcher -l" and launch the other-widget-interface-method.wgt with the command :"wrt-launcher -s 'application id'"</step_desc>
- <expected>The widget is launched successfully.</expected>
- </step>
- <step order="3">
- <step_desc>Click the button "Test getItem('preKey')"</step_desc>
- <expected>A green prompt of "Pass" appears on the right side of the button.</expected>
- </step>
- </steps>
- <test_script_entry test_script_expected_result="0"/>
- <notes/>
- </description>
- <specs>
- <spec>
- <spec_assertion element_type="attribute" element_name="N/A" interface="0460" specification="Other" section="Web Application Runtime" category="Tizen WRT Core Specifications"/>
- <spec_url/>
- <spec_statement>TBD</spec_statement>
- </spec>
- </specs>
- </testcase>
- <testcase component="Web/Runtime/WebApplicationRuntime" id="other-widget-interface-preference-setitem" execution_type="manual" purpose="Check if WRT supports W3C widget interface preference setItem method." priority="P2" status="approved" type="Functional positive">
- <description>
- <pre_condition></pre_condition>
- <post_condition>Get the 'application id' of other-widget-interface-method.wgt with the command :"wrt-launcher -l" and uninstall the other-widget-interface-method.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-rt02-wrt-tests/other-widget-interface-method.wgt</step_desc>
- <expected>The widget package is installed successfullly. Its icon is appeared in screen.</expected>
- </step>
- <step order="2">
- <step_desc>Get the 'application id' of other-widget-interface-method.wgt with the command :"wrt-launcher -l" and launch the other-widget-interface-method.wgt with the command :"wrt-launcher -s 'application id'"</step_desc>
- <expected>The widget is launched successfully.</expected>
- </step>
- <step order="3">
- <step_desc>Change the value of "preNum" from "0"to "1" and change the value of "preString" from "b" to "a"</step_desc>
- <expected>The value is changed successfully.</expected>
- </step>
- <step order="4">
- <step_desc>Click the button "Save writable item"</step_desc>
- <expected>Message "Save the preference preNum=1 launched well!" and "Save the preference preString=a launched well!" pops up on the screen.</expected>
- </step>
- <step order="5">
- <step_desc>Change the value of "preNum" from "1"to "2" and change the value of "preString" from "a" to "c"</step_desc>
- <expected>The value is changed successfully.</expected>
- </step>
- <step order="6">
- <step_desc>Click the button "Load writable item"</step_desc>
- <expected>The value of "preNum" became "1" and the value of "preString" became "a".</expected>
- </step>
- </steps>
- <test_script_entry test_script_expected_result="0"/>
- <notes/>
- </description>
- <specs>
- <spec>
- <spec_assertion element_type="attribute" element_name="N/A" interface="0460" specification="Other" section="Web Application Runtime" category="Tizen WRT Core Specifications"/>
- <spec_url/>
- <spec_statement>TBD</spec_statement>
- </spec>
- </specs>
- </testcase>
- <testcase component="Web/Runtime/WebApplicationRuntime" id="other-widget-interface-preference-setitem-readonly" execution_type="manual" purpose="Check if WRT supports W3C widget interface preference setItem method when preference is readonly." priority="P2" status="approved" type="Functional positive">
- <description>
- <pre_condition></pre_condition>
- <post_condition>Get the 'application id' of other-widget-interface-method.wgt with the command :"wrt-launcher -l" and uninstall the other-widget-interface-method.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-rt02-wrt-tests/other-widget-interface-method.wgt</step_desc>
- <expected>The widget package is installed successfullly. Its icon appears on screen.</expected>
- </step>
- <step order="2">
- <step_desc>Get the 'application id' of other-widget-interface-method.wgt with the command :"wrt-launcher -l" and launch the other-widget-interface-method.wgt with the command :"wrt-launcher -s 'application id'"</step_desc>
- <expected>The widget is launched successfully.</expected>
- </step>
- <step order="3">
- <step_desc>Click the button "Load readonly item"</step_desc>
- <expected>Message "licenseKey can not be changed" is displayed in the textbox.</expected>
- </step>
- <step order="4">
- <step_desc>Delete the word "licenseKey" in the textbox</step_desc>
- <expected>The word is deleted successfully.</expected>
- </step>
- <step order="5">
- <step_desc>Click the button "Save readonly item"</step_desc>
- <expected>Message "Pass, the readonly item is unable to be saved." pops up on the screen.</expected>
- </step>
- <step order="6">
- <step_desc>Click the button "Load readonly item"</step_desc>
- <expected>Message "licenseKey can not be changed" is displayed in the textbox.</expected>
- </step>
- </steps>
- <test_script_entry test_script_expected_result="0"/>
- <notes/>
- </description>
- <specs>
- <spec>
- <spec_assertion element_type="attribute" element_name="N/A" interface="0460" specification="Other" section="Web Application Runtime" category="Tizen WRT Core Specifications"/>
- <spec_url/>
- <spec_statement>TBD</spec_statement>
- </spec>
- </specs>
- </testcase>
- <testcase component="Web/Runtime/WebApplicationRuntime" id="other-widget-interface-preference-clear" execution_type="manual" purpose="Check if WRT supports W3C widget interface preference clear method." priority="P2" status="approved" type="Functional positive">
- <description>
- <pre_condition></pre_condition>
- <post_condition>Get the 'application id' of other-widget-interface-method.wgt with the command :"wrt-launcher -l" and uninstall the other-widget-interface-method.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-rt02-wrt-tests/other-widget-interface-method.wgt</step_desc>
- <expected>The widget package is installed successfullly. Its icon is appeared in screen.</expected>
- </step>
- <step order="2">
- <step_desc>Get the 'application id' of other-widget-interface-method.wgt with the command :"wrt-launcher -l" and launch the other-widget-interface-method.wgt with the command :"wrt-launcher -s 'application id'"</step_desc>
- <expected>The widget is launched successfully.</expected>
- </step>
- <step order="3">
- <step_desc>Change the value of "preNum" from "0" to "1" and change the value of "preString" from "b" to "a"</step_desc>
- <expected>The value is changed successfully.</expected>
- </step>
- <step order="4">
- <step_desc>Click the button "Save writable item"</step_desc>
- <expected>Message "Save the preference preNum=1 launched well!" and "Save the preference preString=a launched well!" pops up on the screen.</expected>
- </step>
- <step order="5">
- <step_desc>Click the button "Clear writable item"</step_desc>
- <expected>Message "widget.preferences.clear() launched successfully!" pops up on the screen.</expected>
- </step>
- <step order="6">
- <step_desc>Click the value of "preNum" from "1" to "2" and change the value of "preString" from "a" to "c"</step_desc>
- <expected>The value is changed successfully.</expected>
- </step>
- <step order="7">
- <step_desc>Click the button "Load writable item"</step_desc>
- <expected>The values of "preString" and "preNum" have not changed.</expected>
- </step>
- </steps>
- <test_script_entry test_script_expected_result="0"/>
- <notes/>
- </description>
- <specs>
- <spec>
- <spec_assertion element_type="attribute" element_name="N/A" interface="0460" specification="Other" section="Web Application Runtime" category="Tizen WRT Core Specifications"/>
- <spec_url/>
- <spec_statement>TBD</spec_statement>
- </spec>
- </specs>
- </testcase>
- <testcase component="Web/Runtime/WebApplicationRuntime" id="other-widget-interface-preference-clear-readonly" execution_type="manual" purpose="Check if WRT supports W3C widget interface preference is unable to clear the readonly preference with clear method." priority="P2" status="approved" type="Functional positive">
- <description>
- <pre_condition></pre_condition>
- <post_condition>Get the 'application id' of other-widget-interface-method.wgt with the command :"wrt-launcher -l" and uninstall the other-widget-interface-method.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-rt02-wrt-tests/other-widget-interface-method.wgt</step_desc>
- <expected>The widget package is installed successfullly. Its icon appears on screen.</expected>
- </step>
- <step order="2">
- <step_desc>Get the 'application id' of other-widget-interface-method.wgt with the command :"wrt-launcher -l" and launch the other-widget-interface-method.wgt with the command :"wrt-launcher -s 'application id'"</step_desc>
- <expected>The widget is launched successfully.</expected>
- </step>
- <step order="3">
- <step_desc>Click the button "Load readonly item"</step_desc>
- <expected>Message "licenseKey can not be changed" is displayed in the textbox.</expected>
- </step>
- <step order="4">
- <step_desc>Click the button "Clear readonly item"</step_desc>
- <expected>Message "widget.preferences.clear() launched successfully!" pops up on the screen.</expected>
- </step>
- <step order="5">
- <step_desc>Delete the word "licenseKey" in the textbox, then touch blank area on the screen except the textbox.</step_desc>
- <expected>The word is deleted successfully.</expected>
- </step>
- <step order="6">
- <step_desc>Click the button "Save readonly item"</step_desc>
- <expected>A popup "Pass, the readonly item can not be saved" displayed on the screen.</expected>
- </step>
- <step order="7">
- <step_desc>Close the popup and click the button "Load readonly item"</step_desc>
- <expected>Message "licenseKey can not be changed" is displayed in the textbox.</expected>
- </step>
- </steps>
- <test_script_entry test_script_expected_result="0"/>
- <notes/>
- </description>
- <specs>
- <spec>
- <spec_assertion element_type="attribute" element_name="N/A" interface="0460" specification="Other" section="Web Application Runtime" category="Tizen WRT Core Specifications"/>
- <spec_url/>
- <spec_statement>TBD</spec_statement>
- </spec>
- </specs>
- </testcase>
- <testcase component="Web/Runtime/WebApplicationRuntime" id="other-widget-interface-preference-setitem-undefined" execution_type="manual" purpose="Check if WRT supports W3C widget interface preference setItem method when preference is undefined." priority="P2" status="approved" type="Functional positive">
- <description>
- <pre_condition></pre_condition>
- <post_condition>Get the 'application id' of other-widget-interface-method.wgt with the command :"wrt-launcher -l" and uninstall the other-widget-interface-method.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-rt02-wrt-tests/other-widget-interface-method.wgt</step_desc>
- <expected>The widget package is installed successfullly. Its icon is appeared in screen.</expected>
- </step>
- <step order="2">
- <step_desc>Get the 'application id' of other-widget-interface-method.wgt with the command :"wrt-launcher -l" and launch the other-widget-interface-method.wgt with the command :"wrt-launcher -s 'application id'"</step_desc>
- <expected>The widget is launched successfully.</expected>
- </step>
- <step order="3">
- <step_desc>Input "aaa" to the "Key:" textbox, and input "111" to the "Value:" textbox</step_desc>
- <expected>The value is input successfully.</expected>
- </step>
- <step order="4">
- <step_desc>Click the button "Save undefined item"</step_desc>
- <expected>Message "Save succeed! key is aaa,value is 111" pops up on the screen.</expected>
- </step>
- </steps>
- <test_script_entry test_script_expected_result="0"/>
- <notes/>
- </description>
- <specs>
- <spec>
- <spec_assertion element_type="attribute" element_name="N/A" interface="0460" specification="Other" section="Web Application Runtime" category="Tizen WRT Core Specifications"/>
- <spec_url/>
- <spec_statement>TBD</spec_statement>
- </spec>
- </specs>
- </testcase>
- <testcase component="Web/Runtime/WebApplicationRuntime" id="other-widget-interface-preference-getitem-undefined" execution_type="manual" purpose="Check if WRT supports W3C widget interface preference getitem method when preference is undefined." priority="P2" status="approved" type="Functional positive">
- <description>
- <pre_condition></pre_condition>
- <post_condition>Get the 'application id' of other-widget-interface-method.wgt with the command :"wrt-launcher -l" and uninstall the other-widget-interface-method.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-rt02-wrt-tests/other-widget-interface-method.wgt</step_desc>
- <expected>The widget package is installed successfullly. Its icon appears on screen.</expected>
- </step>
- <step order="2">
- <step_desc>Get the 'application id' of other-widget-interface-method.wgt with the command :"wrt-launcher -l" and launch the other-widget-interface-method.wgt with the command :"wrt-launcher -s 'application id'"</step_desc>
- <expected>The widget is launched successfully.</expected>
- </step>
- <step order="3">
- <step_desc>Input "aaa" to the "Key:" textbox, and input "111" to the "Value:" textbox</step_desc>
- <expected>The value is input successfully.</expected>
- </step>
- <step order="4">
- <step_desc>Click the button "Save undefined item"</step_desc>
- <expected>Message "Save succeed! key is aaa,value is 111" pops up on the screen.</expected>
- </step>
- <step order="4">
- <step_desc>Change "111" to "222" in the textbox "Value:"</step_desc>
- <expected>The value is changed successfully.</expected>
- </step>
- <step order="6">
- <step_desc>Click the button "Load undefined item"</step_desc>
- <expected>The value of testbox "Value:" is changed from "222" to "111".</expected>
- </step>
- </steps>
- <test_script_entry test_script_expected_result="0"/>
- <notes/>
- </description>
- <specs>
- <spec>
- <spec_assertion element_type="attribute" element_name="N/A" interface="0460" specification="Other" section="Web Application Runtime" category="Tizen WRT Core Specifications"/>
- <spec_url/>
- <spec_statement>TBD</spec_statement>
- </spec>
- </specs>
- </testcase>
- <testcase component="Web/Runtime/WebApplicationRuntime" id="other-widget-interface-preference-clear-undefined" execution_type="manual" purpose="Check if WRT supports W3C widget interface preference clear method when preference is undefined." priority="P2" status="approved" type="Functional positive">
- <description>
- <pre_condition></pre_condition>
- <post_condition>Get the 'application id' of other-widget-interface-method.wgt with the command :"wrt-launcher -l" and uninstall the other-widget-interface-method.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-rt02-wrt-tests/other-widget-interface-method.wgt</step_desc>
- <expected>The widget package is installed successfullly. Its icon appears on screen.</expected>
- </step>
- <step order="2">
- <step_desc>Get the 'application id' of other-widget-interface-method.wgt with the command :"wrt-launcher -l" and launch the other-widget-interface-method.wgt with the command :"wrt-launcher -s 'application id'"</step_desc>
- <expected>The widget is launched successfully.</expected>
- </step>
- <step order="3">
- <step_desc>Input "aaa" to the "Key:" textbox, and input "111" to the "Value:" textbox</step_desc>
- <expected>The value is input successfully.</expected>
- </step>
- <step order="4">
- <step_desc>Click the button "Save undefined item"</step_desc>
- <expected>Message "Save succeed! key is aaa,value is 111" pops up on the screen.</expected>
- </step>
- <step order="5">
- <step_desc>Change "111" to "222" in the "Value:" textbox</step_desc>
- <expected>The value of the "Value:" textbox is changed successfully.</expected>
- </step>
- <step order="6">
- <step_desc>Click the button "Load undefined item"</step_desc>
- <expected>The value of the "Value:" textbox is changed from "222" to "111".</expected>
- </step>
- <step order="7">
- <step_desc>Click the button "Clear undefined item"</step_desc>
- <expected>Message "widget.preferences.clear() launched successfully!" pops up on the screen.</expected>
- </step>
- <step order="8">
- <step_desc>Change "111" to "333" in the "Value:" textbox</step_desc>
- <expected>The value is changed successfully.</expected>
- </step>
- <step order="9">
- <step_desc>Click the button "Load undefined item"</step_desc>
- <expected>The displayed value of the "Value:" textbox is empty.</expected>
- </step>
- </steps>
- <test_script_entry test_script_expected_result="0"/>
- <notes/>
- </description>
- <specs>
- <spec>
- <spec_assertion element_type="attribute" element_name="N/A" interface="0460" specification="Other" section="Web Application Runtime" category="Tizen WRT Core Specifications"/>
- <spec_url/>
- <spec_statement>TBD</spec_statement>
- </spec>
- </specs>
- </testcase>
<testcase component="Web/Runtime/WebApplicationRuntime" id="other-localization-description" execution_type="manual" purpose="Check if WRT supports localization of description." priority="P2" status="approved" type="Functional positive">
<description>
<pre_condition>Make sure the local language is English</pre_condition>