tct_parser.read(TCT_CONFIG_FILE)
SRC_DIR = tct_parser.get('DEVICE', 'DEVICE_SUITE_TARGET_30')
PKG_SRC_DIR = "%s/tct/opt/%s" % (SRC_DIR, PKG_NAME)
+EXECUTION_MODE_30 = tct_parser.get('DEVICE', 'DEVICE_EXECUTION_MODE_30')
+ADMIN_USER_30 = tct_parser.get('DEVICE', 'DEVICE_ADMIN_USER_30')
+def userCheck():
+ global GLOVAL_OPT
+ if ADMIN_USER_30 == EXECUTION_MODE_30:
+ GLOVAL_OPT="--global"
+ else:
+ GLOVAL_OPT=""
def doCMD(cmd):
# Do not need handle timeout in this short script, let tool do it
action_status = False
continue
(return_code, output) = doRemoteCMD(
- "pkgcmd -u -t wgt -q -n %s" % pkg_id)
+ "pkgcmd %s -u -t wgt -q -n %s" % (GLOVAL_OPT, pkg_id))
for line in output:
if "Failure" in line:
action_status = False
if not doRemoteCopy(os.path.join(root, file), "%s/%s" % (SRC_DIR, file)):
action_status = False
(return_code, output) = doRemoteCMD(
- "pkgcmd -i -t wgt -q -p %s/%s" % (SRC_DIR, file))
+ "pkgcmd %s -i -t wgt -q -p %s/%s" % (GLOVAL_OPT, SRC_DIR, file))
doRemoteCMD("rm -rf %s/%s" % (SRC_DIR, file))
for line in output:
if "Failure" in line:
sys.exit(1)
if not PARAMETERS.user:
- PARAMETERS.user = "owner"
+ PARAMETERS.user = EXECUTION_MODE_30
if not PARAMETERS.mode:
PARAMETERS.mode = "SDB"
print "No device provided"
sys.exit(1)
+ userCheck()
+
user_info = getUSERID()
re_code = user_info[0]
if re_code == 0 :
</testcase>
<testcase purpose="Check if onchange() is called with valid argument" type="compliance" onload_delay="120" status="approved" component="Tizen Device APIs/TBD/WidgetService" execution_type="manual" priority="P1" id="WidgetChangeCallback_onchange">
<description>
- <pre_condition>"widget3" widget should be added to home screen.</pre_condition>
+ <pre_condition>32 bit TARGET : "widgetarm" widget should be added to home screen.
+ 64 bit TARGET : "widgetaarch64" widget should be added to home screen.
+ 32 bit EMULATOR : "widgetx86" widget should be added to home screen.
+ 64 bit EMULATOR : "widgetx86_64" widget should be added to home screen. </pre_condition>
<steps>
<step order="1">
<step_desc>press [Run] button in the test case.</step_desc>
</testcase>
<testcase purpose="Check if onsuccess() is called with valid argument" type="compliance" onload_delay="90" status="approved" component="Tizen Device APIs/TBD/WidgetService" execution_type="manual" priority="P1" id="WidgetContentCallback_onsuccess">
<description>
- <pre_condition>"widget3" widget should be added to home screen.</pre_condition>
+ <pre_condition>32 bit TARGET : "widgetarm" widget should be added to home screen.
+ 64 bit TARGET : "widgetaarch64" widget should be added to home screen.
+ 32 bit EMULATOR : "widgetx86" widget should be added to home screen.
+ 64 bit EMULATOR : "widgetx86_64" widget should be added to home screen. </pre_condition>
<steps>
<step order="1">
<step_desc>press [Run] button in the test case.</step_desc>
</testcase>
<testcase purpose="Check if WidgetInstance::changeUpdatePeriod method works correctly" type="compliance" onload_delay="90" status="approved" component="Tizen Device APIs/TBD/WidgetService" execution_type="manual" priority="P1" id="WidgetInstance_changeUpdatePeriod">
<description>
- <pre_condition>"widget3" widget should be added to home screen.</pre_condition>
+ <pre_condition>32 bit TARGET : "widgetarm" widget should be added to home screen.
+ 64 bit TARGET : "widgetaarch64" widget should be added to home screen.
+ 32 bit EMULATOR : "widgetx86" widget should be added to home screen.
+ 64 bit EMULATOR : "widgetx86_64" widget should be added to home screen. </pre_condition>
<steps>
<step order="1">
<step_desc>press [Run] button in the test case.</step_desc>
</testcase>
<testcase purpose="Check if WidgetInstance::changeUpdatePeriod method exists" type="compliance" onload_delay="90" status="approved" component="Tizen Device APIs/TBD/WidgetService" execution_type="manual" priority="P0" id="WidgetInstance_changeUpdatePeriod_exist">
<description>
- <pre_condition>"widget3" widget should be added to home screen.</pre_condition>
+ <pre_condition>32 bit TARGET : "widgetarm" widget should be added to home screen.
+ 64 bit TARGET : "widgetaarch64" widget should be added to home screen.
+ 32 bit EMULATOR : "widgetx86" widget should be added to home screen.
+ 64 bit EMULATOR : "widgetx86_64" widget should be added to home screen. </pre_condition>
<steps>
<step order="1">
<step_desc>press [Run] button in the test case.</step_desc>
</testcase>
<testcase purpose="Check if changeUpdatePeriod method throws InvalidValuesError when seconds is invalid" type="compliance" onload_delay="90" status="approved" component="Tizen Device APIs/TBD/WidgetService" execution_type="manual" priority="P2" id="WidgetInstance_changeUpdatePeriod_seconds_invalid">
<description>
- <pre_condition>"widget3" widget should be added to home screen.</pre_condition>
+ <pre_condition>32 bit TARGET : "widgetarm" widget should be added to home screen.
+ 64 bit TARGET : "widgetaarch64" widget should be added to home screen.
+ 32 bit EMULATOR : "widgetx86" widget should be added to home screen.
+ 64 bit EMULATOR : "widgetx86_64" widget should be added to home screen. </pre_condition>
<steps>
<step order="1">
<step_desc>press [Run] button in the test case.</step_desc>
</testcase>
<testcase purpose="Check if WidgetInstance object is extendable" type="compliance" onload_delay="90" status="approved" component="Tizen Device APIs/TBD/WidgetService" execution_type="manual" priority="P3" id="WidgetInstance_extend">
<description>
- <pre_condition>"widget3" widget should be added to home screen.</pre_condition>
+ <pre_condition>32 bit TARGET : "widgetarm" widget should be added to home screen.
+ 64 bit TARGET : "widgetaarch64" widget should be added to home screen.
+ 32 bit EMULATOR : "widgetx86" widget should be added to home screen.
+ 64 bit EMULATOR : "widgetx86_64" widget should be added to home screen. </pre_condition>
<steps>
<step order="1">
<step_desc>press [Run] button in the test case.</step_desc>
</testcase>
<testcase purpose="Check if WidgetInstance::getContent method works correctly" type="compliance" onload_delay="90" status="approved" component="Tizen Device APIs/TBD/WidgetService" execution_type="manual" priority="P1" id="WidgetInstance_getContent">
<description>
- <pre_condition>"widget3" widget should be added to home screen.</pre_condition>
+ <pre_condition>32 bit TARGET : "widgetarm" widget should be added to home screen.
+ 64 bit TARGET : "widgetaarch64" widget should be added to home screen.
+ 32 bit EMULATOR : "widgetx86" widget should be added to home screen.
+ 64 bit EMULATOR : "widgetx86_64" widget should be added to home screen. </pre_condition>
<steps>
<step order="1">
<step_desc>press [Run] button in the test case.</step_desc>
</testcase>
<testcase purpose="Check if WidgetInstance:getContent with incorrect errorCallback argument throws an exception" type="compliance" onload_delay="90" status="approved" component="Tizen Device APIs/TBD/WidgetService" execution_type="manual" priority="P2" id="WidgetInstance_getContent_errorCallback_TypeMismatch">
<description>
- <pre_condition>"widget3" widget should be added to home screen.</pre_condition>
+ <pre_condition>32 bit TARGET : "widgetarm" widget should be added to home screen.
+ 64 bit TARGET : "widgetaarch64" widget should be added to home screen.
+ 32 bit EMULATOR : "widgetx86" widget should be added to home screen.
+ 64 bit EMULATOR : "widgetx86_64" widget should be added to home screen. </pre_condition>
<steps>
<step order="1">
<step_desc>press [Run] button in the test case.</step_desc>
</testcase>
<testcase purpose="Check if WidgetInstance:getContent throws exception when errorCallback is invalid" type="compliance" onload_delay="90" status="approved" component="Tizen Device APIs/TBD/WidgetService" execution_type="manual" priority="P2" id="WidgetInstance_getContent_errorCallback_invalid_cb">
<description>
- <pre_condition>"widget3" widget should be added to home screen.</pre_condition>
+ <pre_condition>32 bit TARGET : "widgetarm" widget should be added to home screen.
+ 64 bit TARGET : "widgetaarch64" widget should be added to home screen.
+ 32 bit EMULATOR : "widgetx86" widget should be added to home screen.
+ 64 bit EMULATOR : "widgetx86_64" widget should be added to home screen. </pre_condition>
<steps>
<step order="1">
<step_desc>press [Run] button in the test case.</step_desc>
</testcase>
<testcase purpose="Check if WidgetInstance::getContent method exists" type="compliance" onload_delay="90" status="approved" component="Tizen Device APIs/TBD/WidgetService" execution_type="manual" priority="P0" id="WidgetInstance_getContent_exist">
<description>
- <pre_condition>"widget3" widget should be added to home screen.</pre_condition>
+ <pre_condition>32 bit TARGET : "widgetarm" widget should be added to home screen.
+ 64 bit TARGET : "widgetaarch64" widget should be added to home screen.
+ 32 bit EMULATOR : "widgetx86" widget should be added to home screen.
+ 64 bit EMULATOR : "widgetx86_64" widget should be added to home screen. </pre_condition>
<steps>
<step order="1">
<step_desc>press [Run] button in the test case.</step_desc>
</testcase>
<testcase purpose="Check if WidgetInstance::getContent throws exception when mandatory params are missing" type="compliance" onload_delay="90" status="approved" component="Tizen Device APIs/TBD/WidgetService" execution_type="manual" priority="P2" id="WidgetInstance_getContent_misarg">
<description>
- <pre_condition>"widget3" widget should be added to home screen.</pre_condition>
+ <pre_condition>32 bit TARGET : "widgetarm" widget should be added to home screen.
+ 64 bit TARGET : "widgetaarch64" widget should be added to home screen.
+ 32 bit EMULATOR : "widgetx86" widget should be added to home screen.
+ 64 bit EMULATOR : "widgetx86_64" widget should be added to home screen. </pre_condition>
<steps>
<step order="1">
<step_desc>press [Run] button in the test case.</step_desc>
</testcase>
<testcase purpose="Check if WidgetInstance:getContent with incorrect successCallback argument throws an exception" type="compliance" onload_delay="90" status="approved" component="Tizen Device APIs/TBD/WidgetService" execution_type="manual" priority="P2" id="WidgetInstance_getContent_successCallback_TypeMismatch">
<description>
- <pre_condition>"widget3" widget should be added to home screen.</pre_condition>
+ <pre_condition>32 bit TARGET : "widgetarm" widget should be added to home screen.
+ 64 bit TARGET : "widgetaarch64" widget should be added to home screen.
+ 32 bit EMULATOR : "widgetx86" widget should be added to home screen.
+ 64 bit EMULATOR : "widgetx86_64" widget should be added to home screen. </pre_condition>
<steps>
<step order="1">
<step_desc>press [Run] button in the test case.</step_desc>
</testcase>
<testcase purpose="Check if WidgetInstance:getContent throws exception when successCallback is invalid" type="compliance" onload_delay="90" status="approved" component="Tizen Device APIs/TBD/WidgetService" execution_type="manual" priority="P2" id="WidgetInstance_getContent_successCallback_invalid_cb">
<description>
- <pre_condition>"widget3" widget should be added to home screen.</pre_condition>
+ <pre_condition>32 bit TARGET : "widgetarm" widget should be added to home screen.
+ 64 bit TARGET : "widgetaarch64" widget should be added to home screen.
+ 32 bit EMULATOR : "widgetx86" widget should be added to home screen.
+ 64 bit EMULATOR : "widgetx86_64" widget should be added to home screen. </pre_condition>
<steps>
<step order="1">
<step_desc>press [Run] button in the test case.</step_desc>
</testcase>
<testcase purpose="Check if attribute id of WidgetInstance exists, has type string and is readonly" type="compliance" onload_delay="90" status="approved" component="Tizen Device APIs/TBD/WidgetService" execution_type="manual" priority="P1" id="WidgetInstance_id_attribute">
<description>
- <pre_condition>"widget3" widget should be added to home screen.</pre_condition>
+ <pre_condition>32 bit TARGET : "widgetarm" widget should be added to home screen.
+ 64 bit TARGET : "widgetaarch64" widget should be added to home screen.
+ 32 bit EMULATOR : "widgetx86" widget should be added to home screen.
+ 64 bit EMULATOR : "widgetx86_64" widget should be added to home screen. </pre_condition>
<steps>
<step order="1">
<step_desc>press [Run] button in the test case.</step_desc>
</testcase>
<testcase purpose="Check if WidgetInstance::sendContent method works correctly" type="compliance" onload_delay="90" status="approved" component="Tizen Device APIs/TBD/WidgetService" execution_type="manual" priority="P1" id="WidgetInstance_sendContent">
<description>
- <pre_condition>"widget3" widget should be added to home screen.</pre_condition>
+ <pre_condition>32 bit TARGET : "widgetarm" widget should be added to home screen.
+ 64 bit TARGET : "widgetaarch64" widget should be added to home screen.
+ 32 bit EMULATOR : "widgetx86" widget should be added to home screen.
+ 64 bit EMULATOR : "widgetx86_64" widget should be added to home screen. </pre_condition>
<steps>
<step order="1">
<step_desc>press [Run] button in the test case.</step_desc>
</testcase>
<testcase purpose="Check if WidgetInstance:sendContent with incorrect data argument throws an exception" type="compliance" onload_delay="90" status="approved" component="Tizen Device APIs/TBD/WidgetService" execution_type="manual" priority="P2" id="WidgetInstance_sendContent_data_TypeMismatch">
<description>
- <pre_condition>"widget3" widget should be added to home screen.</pre_condition>
+ <pre_condition>32 bit TARGET : "widgetarm" widget should be added to home screen.
+ 64 bit TARGET : "widgetaarch64" widget should be added to home screen.
+ 32 bit EMULATOR : "widgetx86" widget should be added to home screen.
+ 64 bit EMULATOR : "widgetx86_64" widget should be added to home screen. </pre_condition>
<steps>
<step order="1">
<step_desc>press [Run] button in the test case.</step_desc>
</testcase>
<testcase purpose="Check if WidgetInstance::sendContent method exists" type="compliance" onload_delay="90" status="approved" component="Tizen Device APIs/TBD/WidgetService" execution_type="manual" priority="P0" id="WidgetInstance_sendContent_exist">
<description>
- <pre_condition>"widget3" widget should be added to home screen.</pre_condition>
+ <pre_condition>32 bit TARGET : "widgetarm" widget should be added to home screen.
+ 64 bit TARGET : "widgetaarch64" widget should be added to home screen.
+ 32 bit EMULATOR : "widgetx86" widget should be added to home screen.
+ 64 bit EMULATOR : "widgetx86_64" widget should be added to home screen. </pre_condition>
<steps>
<step order="1">
<step_desc>press [Run] button in the test case.</step_desc>
</testcase>
<testcase purpose="Check if WidgetInstance::sendContent throws exception when mandatory params are missing" type="compliance" onload_delay="90" status="approved" component="Tizen Device APIs/TBD/WidgetService" execution_type="manual" priority="P2" id="WidgetInstance_sendContent_misarg">
<description>
- <pre_condition>"widget3" widget should be added to home screen.</pre_condition>
+ <pre_condition>32 bit TARGET : "widgetarm" widget should be added to home screen.
+ 64 bit TARGET : "widgetaarch64" widget should be added to home screen.
+ 32 bit EMULATOR : "widgetx86" widget should be added to home screen.
+ 64 bit EMULATOR : "widgetx86_64" widget should be added to home screen. </pre_condition>
<steps>
<step order="1">
<step_desc>press [Run] button in the test case.</step_desc>
</testcase>
<testcase purpose="Check if attribute widget of WidgetInstance exists, has type object and is readonly" type="compliance" onload_delay="90" status="approved" component="Tizen Device APIs/TBD/WidgetService" execution_type="manual" priority="P1" id="WidgetInstance_widget_attribute">
<description>
- <pre_condition>"widget3" widget should be added to home screen.</pre_condition>
+ <pre_condition>32 bit TARGET : "widgetarm" widget should be added to home screen.
+ 64 bit TARGET : "widgetaarch64" widget should be added to home screen.
+ 32 bit EMULATOR : "widgetx86" widget should be added to home screen.
+ 64 bit EMULATOR : "widgetx86_64" widget should be added to home screen. </pre_condition>
<steps>
<step order="1">
<step_desc>press [Run] button in the test case.</step_desc>
</testcase>
<testcase purpose="Test whether WidgetInstancesCallback:onsuccess is called with argument of proper type" type="compliance" onload_delay="90" status="approved" component="Tizen Device APIs/TBD/WidgetService" execution_type="manual" priority="P1" id="WidgetInstancesCallback_onsuccess">
<description>
- <pre_condition>"widget3" widget should be added to home screen.</pre_condition>
+ <pre_condition>32 bit TARGET : "widgetarm" widget should be added to home screen.
+ 64 bit TARGET : "widgetaarch64" widget should be added to home screen.
+ 32 bit EMULATOR : "widgetx86" widget should be added to home screen.
+ 64 bit EMULATOR : "widgetx86_64" widget should be added to home screen. </pre_condition>
<steps>
<step order="1">
<step_desc>press [Run] button in the test case.</step_desc>
</testcase>
<testcase purpose="Check if Widget::addStateChangeListener method works correctly" type="compliance" onload_delay="120" status="approved" component="Tizen Device APIs/TBD/WidgetService" execution_type="manual" priority="P1" id="Widget_addStateChangeListener">
<description>
- <pre_condition>"widget3" widget should be added to home screen.</pre_condition>
+ <pre_condition>32 bit TARGET : "widgetarm" widget should be added to home screen.
+ 64 bit TARGET : "widgetaarch64" widget should be added to home screen.
+ 32 bit EMULATOR : "widgetx86" widget should be added to home screen.
+ 64 bit EMULATOR : "widgetx86_64" widget should be added to home screen. </pre_condition>
<steps>
<step order="1">
<step_desc>press [Run] button in the test case.</step_desc>
</testcase>
<testcase purpose="Check if Widget::getInstances method works correctly" type="compliance" onload_delay="90" status="approved" component="Tizen Device APIs/TBD/WidgetService" execution_type="manual" priority="P1" id="Widget_getInstances">
<description>
- <pre_condition>"widget3" widget should be added to home screen.</pre_condition>
+ <pre_condition>32 bit TARGET : "widgetarm" widget should be added to home screen.
+ 64 bit TARGET : "widgetaarch64" widget should be added to home screen.
+ 32 bit EMULATOR : "widgetx86" widget should be added to home screen.
+ 64 bit EMULATOR : "widgetx86_64" widget should be added to home screen. </pre_condition>
<steps>
<step order="1">
<step_desc>press [Run] button in the test case.</step_desc>
</testcase>
<testcase purpose="Check if Widget::getInstances method works correctly with errorCallback" type="compliance" onload_delay="90" status="approved" component="Tizen Device APIs/TBD/WidgetService" execution_type="manual" priority="P1" id="Widget_getInstances_with_errorCallback">
<description>
- <pre_condition>"widget3" widget should be added to home screen.</pre_condition>
+ <pre_condition>32 bit TARGET : "widgetarm" widget should be added to home screen.
+ 64 bit TARGET : "widgetaarch64" widget should be added to home screen.
+ 32 bit EMULATOR : "widgetx86" widget should be added to home screen.
+ 64 bit EMULATOR : "widgetx86_64" widget should be added to home screen. </pre_condition>
<steps>
<step order="1">
<step_desc>press [Run] button in the test case.</step_desc>
</testcase>
<testcase purpose="Check if Widget::removeStateChangeListener method works correctly" type="compliance" onload_delay="120" status="approved" component="Tizen Device APIs/TBD/WidgetService" execution_type="manual" priority="P1" id="Widget_removeStateChangeListener">
<description>
- <pre_condition>"widget3" widget should be added to home screen.</pre_condition>
+ <pre_condition>32 bit TARGET : "widgetarm" widget should be added to home screen.
+ 64 bit TARGET : "widgetaarch64" widget should be added to home screen.
+ 32 bit EMULATOR : "widgetx86" widget should be added to home screen.
+ 64 bit EMULATOR : "widgetx86_64" widget should be added to home screen. </pre_condition>
<steps>
<step order="1">
<step_desc>press [Run] button in the test case.</step_desc>
</testcase>
<testcase purpose="Check if onchange() is called with valid argument" onload_delay="120" component="Tizen Device APIs/TBD/WidgetService" execution_type="manual" priority="P1" id="WidgetChangeCallback_onchange">
<description>
- <pre_condition>"widget3" widget should be added to home screen.</pre_condition>
+ <pre_condition>32 bit TARGET : "widgetarm" widget should be added to home screen.
+ 64 bit TARGET : "widgetaarch64" widget should be added to home screen.
+ 32 bit EMULATOR : "widgetx86" widget should be added to home screen.
+ 64 bit EMULATOR : "widgetx86_64" widget should be added to home screen. </pre_condition>
<steps>
<step order="1">
<step_desc>press [Run] button in the test case.</step_desc>
</testcase>
<testcase purpose="Check if onsuccess() is called with valid argument" onload_delay="90" component="Tizen Device APIs/TBD/WidgetService" execution_type="manual" priority="P1" id="WidgetContentCallback_onsuccess">
<description>
- <pre_condition>"widget3" widget should be added to home screen.</pre_condition>
+ <pre_condition>32 bit TARGET : "widgetarm" widget should be added to home screen.
+ 64 bit TARGET : "widgetaarch64" widget should be added to home screen.
+ 32 bit EMULATOR : "widgetx86" widget should be added to home screen.
+ 64 bit EMULATOR : "widgetx86_64" widget should be added to home screen. </pre_condition>
<steps>
<step order="1">
<step_desc>press [Run] button in the test case.</step_desc>
</testcase>
<testcase purpose="Check if WidgetInstance::changeUpdatePeriod method works correctly" onload_delay="90" component="Tizen Device APIs/TBD/WidgetService" execution_type="manual" priority="P1" id="WidgetInstance_changeUpdatePeriod">
<description>
- <pre_condition>"widget3" widget should be added to home screen.</pre_condition>
+ <pre_condition>32 bit TARGET : "widgetarm" widget should be added to home screen.
+ 64 bit TARGET : "widgetaarch64" widget should be added to home screen.
+ 32 bit EMULATOR : "widgetx86" widget should be added to home screen.
+ 64 bit EMULATOR : "widgetx86_64" widget should be added to home screen. </pre_condition>
<steps>
<step order="1">
<step_desc>press [Run] button in the test case.</step_desc>
</testcase>
<testcase purpose="Check if WidgetInstance::changeUpdatePeriod method exists" onload_delay="90" component="Tizen Device APIs/TBD/WidgetService" execution_type="manual" priority="P0" id="WidgetInstance_changeUpdatePeriod_exist">
<description>
- <pre_condition>"widget3" widget should be added to home screen.</pre_condition>
+ <pre_condition>32 bit TARGET : "widgetarm" widget should be added to home screen.
+ 64 bit TARGET : "widgetaarch64" widget should be added to home screen.
+ 32 bit EMULATOR : "widgetx86" widget should be added to home screen.
+ 64 bit EMULATOR : "widgetx86_64" widget should be added to home screen. </pre_condition>
<steps>
<step order="1">
<step_desc>press [Run] button in the test case.</step_desc>
</testcase>
<testcase purpose="Check if changeUpdatePeriod method throws InvalidValuesError when seconds is invalid" onload_delay="90" component="Tizen Device APIs/TBD/WidgetService" execution_type="manual" priority="P2" id="WidgetInstance_changeUpdatePeriod_seconds_invalid">
<description>
- <pre_condition>"widget3" widget should be added to home screen.</pre_condition>
+ <pre_condition>32 bit TARGET : "widgetarm" widget should be added to home screen.
+ 64 bit TARGET : "widgetaarch64" widget should be added to home screen.
+ 32 bit EMULATOR : "widgetx86" widget should be added to home screen.
+ 64 bit EMULATOR : "widgetx86_64" widget should be added to home screen. </pre_condition>
<steps>
<step order="1">
<step_desc>press [Run] button in the test case.</step_desc>
</testcase>
<testcase purpose="Check if WidgetInstance object is extendable" onload_delay="90" component="Tizen Device APIs/TBD/WidgetService" execution_type="manual" priority="P3" id="WidgetInstance_extend">
<description>
- <pre_condition>"widget3" widget should be added to home screen.</pre_condition>
+ <pre_condition>32 bit TARGET : "widgetarm" widget should be added to home screen.
+ 64 bit TARGET : "widgetaarch64" widget should be added to home screen.
+ 32 bit EMULATOR : "widgetx86" widget should be added to home screen.
+ 64 bit EMULATOR : "widgetx86_64" widget should be added to home screen. </pre_condition>
<steps>
<step order="1">
<step_desc>press [Run] button in the test case.</step_desc>
</testcase>
<testcase purpose="Check if WidgetInstance::getContent method works correctly" onload_delay="90" component="Tizen Device APIs/TBD/WidgetService" execution_type="manual" priority="P1" id="WidgetInstance_getContent">
<description>
- <pre_condition>"widget3" widget should be added to home screen.</pre_condition>
+ <pre_condition>32 bit TARGET : "widgetarm" widget should be added to home screen.
+ 64 bit TARGET : "widgetaarch64" widget should be added to home screen.
+ 32 bit EMULATOR : "widgetx86" widget should be added to home screen.
+ 64 bit EMULATOR : "widgetx86_64" widget should be added to home screen. </pre_condition>
<steps>
<step order="1">
<step_desc>press [Run] button in the test case.</step_desc>
</testcase>
<testcase purpose="Check if WidgetInstance:getContent with incorrect errorCallback argument throws an exception" onload_delay="90" component="Tizen Device APIs/TBD/WidgetService" execution_type="manual" priority="P2" id="WidgetInstance_getContent_errorCallback_TypeMismatch">
<description>
- <pre_condition>"widget3" widget should be added to home screen.</pre_condition>
+ <pre_condition>32 bit TARGET : "widgetarm" widget should be added to home screen.
+ 64 bit TARGET : "widgetaarch64" widget should be added to home screen.
+ 32 bit EMULATOR : "widgetx86" widget should be added to home screen.
+ 64 bit EMULATOR : "widgetx86_64" widget should be added to home screen. </pre_condition>
<steps>
<step order="1">
<step_desc>press [Run] button in the test case.</step_desc>
</testcase>
<testcase purpose="Check if WidgetInstance:getContent throws exception when errorCallback is invalid" onload_delay="90" component="Tizen Device APIs/TBD/WidgetService" execution_type="manual" priority="P2" id="WidgetInstance_getContent_errorCallback_invalid_cb">
<description>
- <pre_condition>"widget3" widget should be added to home screen.</pre_condition>
+ <pre_condition>32 bit TARGET : "widgetarm" widget should be added to home screen.
+ 64 bit TARGET : "widgetaarch64" widget should be added to home screen.
+ 32 bit EMULATOR : "widgetx86" widget should be added to home screen.
+ 64 bit EMULATOR : "widgetx86_64" widget should be added to home screen. </pre_condition>
<steps>
<step order="1">
<step_desc>press [Run] button in the test case.</step_desc>
</testcase>
<testcase purpose="Check if WidgetInstance::getContent method exists" onload_delay="90" component="Tizen Device APIs/TBD/WidgetService" execution_type="manual" priority="P0" id="WidgetInstance_getContent_exist">
<description>
- <pre_condition>"widget3" widget should be added to home screen.</pre_condition>
+ <pre_condition>32 bit TARGET : "widgetarm" widget should be added to home screen.
+ 64 bit TARGET : "widgetaarch64" widget should be added to home screen.
+ 32 bit EMULATOR : "widgetx86" widget should be added to home screen.
+ 64 bit EMULATOR : "widgetx86_64" widget should be added to home screen. </pre_condition>
<steps>
<step order="1">
<step_desc>press [Run] button in the test case.</step_desc>
</testcase>
<testcase purpose="Check if WidgetInstance::getContent throws exception when mandatory params are missing" onload_delay="90" component="Tizen Device APIs/TBD/WidgetService" execution_type="manual" priority="P2" id="WidgetInstance_getContent_misarg">
<description>
- <pre_condition>"widget3" widget should be added to home screen.</pre_condition>
+ <pre_condition>32 bit TARGET : "widgetarm" widget should be added to home screen.
+ 64 bit TARGET : "widgetaarch64" widget should be added to home screen.
+ 32 bit EMULATOR : "widgetx86" widget should be added to home screen.
+ 64 bit EMULATOR : "widgetx86_64" widget should be added to home screen. </pre_condition>
<steps>
<step order="1">
<step_desc>press [Run] button in the test case.</step_desc>
</testcase>
<testcase purpose="Check if WidgetInstance:getContent with incorrect successCallback argument throws an exception" onload_delay="90" component="Tizen Device APIs/TBD/WidgetService" execution_type="manual" priority="P2" id="WidgetInstance_getContent_successCallback_TypeMismatch">
<description>
- <pre_condition>"widget3" widget should be added to home screen.</pre_condition>
+ <pre_condition>32 bit TARGET : "widgetarm" widget should be added to home screen.
+ 64 bit TARGET : "widgetaarch64" widget should be added to home screen.
+ 32 bit EMULATOR : "widgetx86" widget should be added to home screen.
+ 64 bit EMULATOR : "widgetx86_64" widget should be added to home screen. </pre_condition>
<steps>
<step order="1">
<step_desc>press [Run] button in the test case.</step_desc>
</testcase>
<testcase purpose="Check if WidgetInstance:getContent throws exception when successCallback is invalid" onload_delay="90" component="Tizen Device APIs/TBD/WidgetService" execution_type="manual" priority="P2" id="WidgetInstance_getContent_successCallback_invalid_cb">
<description>
- <pre_condition>"widget3" widget should be added to home screen.</pre_condition>
+ <pre_condition>32 bit TARGET : "widgetarm" widget should be added to home screen.
+ 64 bit TARGET : "widgetaarch64" widget should be added to home screen.
+ 32 bit EMULATOR : "widgetx86" widget should be added to home screen.
+ 64 bit EMULATOR : "widgetx86_64" widget should be added to home screen. </pre_condition>
<steps>
<step order="1">
<step_desc>press [Run] button in the test case.</step_desc>
</testcase>
<testcase purpose="Check if attribute id of WidgetInstance exists, has type string and is readonly" onload_delay="90" component="Tizen Device APIs/TBD/WidgetService" execution_type="manual" priority="P1" id="WidgetInstance_id_attribute">
<description>
- <pre_condition>"widget3" widget should be added to home screen.</pre_condition>
+ <pre_condition>32 bit TARGET : "widgetarm" widget should be added to home screen.
+ 64 bit TARGET : "widgetaarch64" widget should be added to home screen.
+ 32 bit EMULATOR : "widgetx86" widget should be added to home screen.
+ 64 bit EMULATOR : "widgetx86_64" widget should be added to home screen. </pre_condition>
<steps>
<step order="1">
<step_desc>press [Run] button in the test case.</step_desc>
</testcase>
<testcase purpose="Check if WidgetInstance::sendContent method works correctly" onload_delay="90" component="Tizen Device APIs/TBD/WidgetService" execution_type="manual" priority="P1" id="WidgetInstance_sendContent">
<description>
- <pre_condition>"widget3" widget should be added to home screen.</pre_condition>
+ <pre_condition>32 bit TARGET : "widgetarm" widget should be added to home screen.
+ 64 bit TARGET : "widgetaarch64" widget should be added to home screen.
+ 32 bit EMULATOR : "widgetx86" widget should be added to home screen.
+ 64 bit EMULATOR : "widgetx86_64" widget should be added to home screen. </pre_condition>
<steps>
<step order="1">
<step_desc>press [Run] button in the test case.</step_desc>
</testcase>
<testcase purpose="Check if WidgetInstance:sendContent with incorrect data argument throws an exception" onload_delay="90" component="Tizen Device APIs/TBD/WidgetService" execution_type="manual" priority="P2" id="WidgetInstance_sendContent_data_TypeMismatch">
<description>
- <pre_condition>"widget3" widget should be added to home screen.</pre_condition>
+ <pre_condition>32 bit TARGET : "widgetarm" widget should be added to home screen.
+ 64 bit TARGET : "widgetaarch64" widget should be added to home screen.
+ 32 bit EMULATOR : "widgetx86" widget should be added to home screen.
+ 64 bit EMULATOR : "widgetx86_64" widget should be added to home screen. </pre_condition>
<steps>
<step order="1">
<step_desc>press [Run] button in the test case.</step_desc>
</testcase>
<testcase purpose="Check if WidgetInstance::sendContent method exists" onload_delay="90" component="Tizen Device APIs/TBD/WidgetService" execution_type="manual" priority="P0" id="WidgetInstance_sendContent_exist">
<description>
- <pre_condition>"widget3" widget should be added to home screen.</pre_condition>
+ <pre_condition>32 bit TARGET : "widgetarm" widget should be added to home screen.
+ 64 bit TARGET : "widgetaarch64" widget should be added to home screen.
+ 32 bit EMULATOR : "widgetx86" widget should be added to home screen.
+ 64 bit EMULATOR : "widgetx86_64" widget should be added to home screen. </pre_condition>
<steps>
<step order="1">
<step_desc>press [Run] button in the test case.</step_desc>
</testcase>
<testcase purpose="Check if WidgetInstance::sendContent throws exception when mandatory params are missing" onload_delay="90" component="Tizen Device APIs/TBD/WidgetService" execution_type="manual" priority="P2" id="WidgetInstance_sendContent_misarg">
<description>
- <pre_condition>"widget3" widget should be added to home screen.</pre_condition>
+ <pre_condition>32 bit TARGET : "widgetarm" widget should be added to home screen.
+ 64 bit TARGET : "widgetaarch64" widget should be added to home screen.
+ 32 bit EMULATOR : "widgetx86" widget should be added to home screen.
+ 64 bit EMULATOR : "widgetx86_64" widget should be added to home screen. </pre_condition>
<steps>
<step order="1">
<step_desc>press [Run] button in the test case.</step_desc>
</testcase>
<testcase purpose="Check if attribute widget of WidgetInstance exists, has type object and is readonly" onload_delay="90" component="Tizen Device APIs/TBD/WidgetService" execution_type="manual" priority="P1" id="WidgetInstance_widget_attribute">
<description>
- <pre_condition>"widget3" widget should be added to home screen.</pre_condition>
+ <pre_condition>32 bit TARGET : "widgetarm" widget should be added to home screen.
+ 64 bit TARGET : "widgetaarch64" widget should be added to home screen.
+ 32 bit EMULATOR : "widgetx86" widget should be added to home screen.
+ 64 bit EMULATOR : "widgetx86_64" widget should be added to home screen. </pre_condition>
<steps>
<step order="1">
<step_desc>press [Run] button in the test case.</step_desc>
</testcase>
<testcase purpose="Test whether WidgetInstancesCallback:onsuccess is called with argument of proper type" onload_delay="90" component="Tizen Device APIs/TBD/WidgetService" execution_type="manual" priority="P1" id="WidgetInstancesCallback_onsuccess">
<description>
- <pre_condition>"widget3" widget should be added to home screen.</pre_condition>
+ <pre_condition>32 bit TARGET : "widgetarm" widget should be added to home screen.
+ 64 bit TARGET : "widgetaarch64" widget should be added to home screen.
+ 32 bit EMULATOR : "widgetx86" widget should be added to home screen.
+ 64 bit EMULATOR : "widgetx86_64" widget should be added to home screen. </pre_condition>
<steps>
<step order="1">
<step_desc>press [Run] button in the test case.</step_desc>
</testcase>
<testcase purpose="Check if Widget::addStateChangeListener method works correctly" onload_delay="120" component="Tizen Device APIs/TBD/WidgetService" execution_type="manual" priority="P1" id="Widget_addStateChangeListener">
<description>
- <pre_condition>"widget3" widget should be added to home screen.</pre_condition>
+ <pre_condition>32 bit TARGET : "widgetarm" widget should be added to home screen.
+ 64 bit TARGET : "widgetaarch64" widget should be added to home screen.
+ 32 bit EMULATOR : "widgetx86" widget should be added to home screen.
+ 64 bit EMULATOR : "widgetx86_64" widget should be added to home screen. </pre_condition>
<steps>
<step order="1">
<step_desc>press [Run] button in the test case.</step_desc>
</testcase>
<testcase purpose="Check if Widget::getInstances method works correctly" onload_delay="90" component="Tizen Device APIs/TBD/WidgetService" execution_type="manual" priority="P1" id="Widget_getInstances">
<description>
- <pre_condition>"widget3" widget should be added to home screen.</pre_condition>
+ <pre_condition>32 bit TARGET : "widgetarm" widget should be added to home screen.
+ 64 bit TARGET : "widgetaarch64" widget should be added to home screen.
+ 32 bit EMULATOR : "widgetx86" widget should be added to home screen.
+ 64 bit EMULATOR : "widgetx86_64" widget should be added to home screen. </pre_condition>
<steps>
<step order="1">
<step_desc>press [Run] button in the test case.</step_desc>
</testcase>
<testcase purpose="Check if Widget::getInstances method works correctly with errorCallback" onload_delay="90" component="Tizen Device APIs/TBD/WidgetService" execution_type="manual" priority="P1" id="Widget_getInstances_with_errorCallback">
<description>
- <pre_condition>"widget3" widget should be added to home screen.</pre_condition>
+ <pre_condition>32 bit TARGET : "widgetarm" widget should be added to home screen.
+ 64 bit TARGET : "widgetaarch64" widget should be added to home screen.
+ 32 bit EMULATOR : "widgetx86" widget should be added to home screen.
+ 64 bit EMULATOR : "widgetx86_64" widget should be added to home screen. </pre_condition>
<steps>
<step order="1">
<step_desc>press [Run] button in the test case.</step_desc>
</testcase>
<testcase purpose="Check if Widget::removeStateChangeListener method works correctly" onload_delay="120" component="Tizen Device APIs/TBD/WidgetService" execution_type="manual" priority="P1" id="Widget_removeStateChangeListener">
<description>
- <pre_condition>"widget3" widget should be added to home screen.</pre_condition>
+ <pre_condition>32 bit TARGET : "widgetarm" widget should be added to home screen.
+ 64 bit TARGET : "widgetaarch64" widget should be added to home screen.
+ 32 bit EMULATOR : "widgetx86" widget should be added to home screen.
+ 64 bit EMULATOR : "widgetx86_64" widget should be added to home screen. </pre_condition>
<steps>
<step order="1">
<step_desc>press [Run] button in the test case.</step_desc>
<?xml version="1.0" encoding="UTF-8" standalone="no"?>
-<manifest xmlns="http://tizen.org/ns/packages" api-version="3.0" package="apiwidserv" version="1.0.0">
+<manifest xmlns="http://tizen.org/ns/packages" api-version="2.4" package="apiwidserv" version="1.0.0">
<profile name="mobile"/>
- <widget-application appid="apiwidserv.widget3" exec="widget3" main="true" update-period="0">
- <label>widget3</label>
+ <widget-application appid="apiwidserv.widgetx86" exec="widgetx86" main="false" update-period="0">
+ <label>widgetx86</label>
<icon>icon.png</icon>
<support-size preview="preview.png">4x4</support-size>
</widget-application>
-</manifest>
\ No newline at end of file
+ <widget-application appid="apiwidserv.widgetaarch64" exec="widgetaarch64" main="false" update-period="0">
+ <label>widgetaarch64</label>
+ <icon>icon.png</icon>
+ <support-size preview="preview.png">4x4</support-size>
+ </widget-application>
+ <widget-application appid="apiwidserv.widgetarm" exec="widgetarm" main="true" update-period="0">
+ <label>widgetarm</label>
+ <icon>icon.png</icon>
+ <support-size preview="preview.png">4x4</support-size>
+ </widget-application>
+ <widget-application appid="apiwidserv.widgetx86_64" exec="widgetx86_64" main="false" update-period="0">
+ <label>widgetx86_64</label>
+ <icon>icon.png</icon>
+ <support-size preview="preview.png">4x4</support-size>
+ </widget-application>
+</manifest>
//==== SPEC_URL TBD
//==== PRIORITY P1
//==== EXECUTION_TYPE manual
-//==== PRE "widget3" widget should be added to home screen.
+//==== PRE 32 bit TARGET : "widgetarm" widget should be added to home screen.
+//==== 64 bit TARGET : "widgetaarch64" widget should be added to home screen.
+//==== 32 bit EMULATOR : "widgetx86" widget should be added to home screen.
+//==== 64 bit EMULATOR : "widgetx86_64" widget should be added to home screen.
//==== STEP press [Run] button in the test case.
//==== EXPECT test case is passed.
//==== ONLOAD_DELAY 120
t.done();
});
- id = "apiwidserv.widget3";
+ if(tizen.systeminfo.getCapability("http://tizen.org/feature/platform.core.cpu.arch.armv7")){
+ if(tizen.systeminfo.getCapability("http://tizen.org/feature/platform.core.cpu.arch") === 'aarch64'){
+ id = "apiwidserv.widgetaarch64";
+ console.log(id);
+ }else{
+ id = "apiwidserv.widgetarm";
+ console.log(id);
+ }
+ }
+ else if(tizen.systeminfo.getCapability("http://tizen.org/feature/platform.core.cpu.arch.x86")){
+ if(tizen.systeminfo.getCapability("http://tizen.org/feature/platform.core.cpu.arch") === 'x86_64'){
+ id = "apiwidserv.widgetx86_64";
+ console.log(id);
+ }else{
+ id = "apiwidserv.widgetx86";
+ console.log(id);
+ }
+ }
+
myWidget = tizen.widgetservice.getWidget(id);
watchId = myWidget.addStateChangeListener(widgetChangeCb);
- alert("Go to home screen to delete 'test' widget before press [OK] button");
+ alert("Go to home screen to delete the added widget before press [OK] button");
});
</script>
//==== SPEC_URL TBD
//==== PRIORITY P1
//==== EXECUTION_TYPE manual
-//==== PRE "widget3" widget should be added to home screen.
+//==== PRE 32 bit TARGET : "widgetarm" widget should be added to home screen.
+//==== 64 bit TARGET : "widgetaarch64" widget should be added to home screen.
+//==== 32 bit EMULATOR : "widgetx86" widget should be added to home screen.
+//==== 64 bit EMULATOR : "widgetx86_64" widget should be added to home screen.
//==== STEP press [Run] button in the test case.
//==== EXPECT test case is passed.
//==== ONLOAD_DELAY 90
wdInstance.getContent(contentSuccessCb, contentErrorCb);
});
- id = "apiwidserv.widget3";
+ if(tizen.systeminfo.getCapability("http://tizen.org/feature/platform.core.cpu.arch.armv7")){
+ if(tizen.systeminfo.getCapability("http://tizen.org/feature/platform.core.cpu.arch") === 'aarch64'){
+ id = "apiwidserv.widgetaarch64";
+ console.log(id);
+ }else{
+ id = "apiwidserv.widgetarm";
+ console.log(id);
+ }
+ }
+ else if(tizen.systeminfo.getCapability("http://tizen.org/feature/platform.core.cpu.arch.x86")){
+ if(tizen.systeminfo.getCapability("http://tizen.org/feature/platform.core.cpu.arch") === 'x86_64'){
+ id = "apiwidserv.widgetx86_64";
+ console.log(id);
+ }else{
+ id = "apiwidserv.widgetx86";
+ console.log(id);
+ }
+ }
+
myWidget = tizen.widgetservice.getWidget(id);
myWidget.getInstances(widgetSuccessCb, widgetErrorCb);
});
//==== SPEC_URL TBD
//==== PRIORITY P1
//==== EXECUTION_TYPE manual
-//==== PRE "widget3" widget should be added to home screen.
+//==== PRE 32 bit TARGET : "widgetarm" widget should be added to home screen.
+//==== 64 bit TARGET : "widgetaarch64" widget should be added to home screen.
+//==== 32 bit EMULATOR : "widgetx86" widget should be added to home screen.
+//==== 64 bit EMULATOR : "widgetx86_64" widget should be added to home screen.
//==== STEP press [Run] button in the test case.
//==== EXPECT test case is passed.
//==== ONLOAD_DELAY 90
t.done();
});
- id = "apiwidserv.widget3";
+ if(tizen.systeminfo.getCapability("http://tizen.org/feature/platform.core.cpu.arch.armv7")){
+ if(tizen.systeminfo.getCapability("http://tizen.org/feature/platform.core.cpu.arch") === 'aarch64'){
+ id = "apiwidserv.widgetaarch64";
+ console.log(id);
+ }else{
+ id = "apiwidserv.widgetarm";
+ console.log(id);
+ }
+ }
+ else if(tizen.systeminfo.getCapability("http://tizen.org/feature/platform.core.cpu.arch.x86")){
+ if(tizen.systeminfo.getCapability("http://tizen.org/feature/platform.core.cpu.arch") === 'x86_64'){
+ id = "apiwidserv.widgetx86_64";
+ console.log(id);
+ }else{
+ id = "apiwidserv.widgetx86";
+ console.log(id);
+ }
+ }
+
myWidget = tizen.widgetservice.getWidget(id);
myWidget.getInstances(widgetSuccessCb, widgetErrorCb);
});
//==== SPEC_URL TBD
//==== PRIORITY P0
//==== EXECUTION_TYPE manual
-//==== PRE "widget3" widget should be added to home screen.
+//==== PRE 32 bit TARGET : "widgetarm" widget should be added to home screen.
+//==== 64 bit TARGET : "widgetaarch64" widget should be added to home screen.
+//==== 32 bit EMULATOR : "widgetx86" widget should be added to home screen.
+//==== 64 bit EMULATOR : "widgetx86_64" widget should be added to home screen.
//==== STEP press [Run] button in the test case.
//==== EXPECT test case is passed.
//==== ONLOAD_DELAY 90
t.done();
});
- id = "apiwidserv.widget3";
+ if(tizen.systeminfo.getCapability("http://tizen.org/feature/platform.core.cpu.arch.armv7")){
+ if(tizen.systeminfo.getCapability("http://tizen.org/feature/platform.core.cpu.arch") === 'aarch64'){
+ id = "apiwidserv.widgetaarch64";
+ console.log(id);
+ }else{
+ id = "apiwidserv.widgetarm";
+ console.log(id);
+ }
+ }
+ else if(tizen.systeminfo.getCapability("http://tizen.org/feature/platform.core.cpu.arch.x86")){
+ if(tizen.systeminfo.getCapability("http://tizen.org/feature/platform.core.cpu.arch") === 'x86_64'){
+ id = "apiwidserv.widgetx86_64";
+ console.log(id);
+ }else{
+ id = "apiwidserv.widgetx86";
+ console.log(id);
+ }
+ }
+
myWidget = tizen.widgetservice.getWidget(id);
myWidget.getInstances(widgetSuccessCb, widgetErrorCb);
});
//==== SPEC_URL TBD
//==== PRIORITY P2
//==== EXECUTION_TYPE manual
-//==== PRE "widget3" widget should be added to home screen.
+//==== PRE 32 bit TARGET : "widgetarm" widget should be added to home screen.
+//==== 64 bit TARGET : "widgetaarch64" widget should be added to home screen.
+//==== 32 bit EMULATOR : "widgetx86" widget should be added to home screen.
+//==== 64 bit EMULATOR : "widgetx86_64" widget should be added to home screen.
//==== STEP press [Run] button in the test case.
//==== EXPECT test case is passed.
//==== ONLOAD_DELAY 90
t.done();
});
- id = "apiwidserv.widget3";
+ if(tizen.systeminfo.getCapability("http://tizen.org/feature/platform.core.cpu.arch.armv7")){
+ if(tizen.systeminfo.getCapability("http://tizen.org/feature/platform.core.cpu.arch") === 'aarch64'){
+ id = "apiwidserv.widgetaarch64";
+ console.log(id);
+ }else{
+ id = "apiwidserv.widgetarm";
+ console.log(id);
+ }
+ }
+ else if(tizen.systeminfo.getCapability("http://tizen.org/feature/platform.core.cpu.arch.x86")){
+ if(tizen.systeminfo.getCapability("http://tizen.org/feature/platform.core.cpu.arch") === 'x86_64'){
+ id = "apiwidserv.widgetx86_64";
+ console.log(id);
+ }else{
+ id = "apiwidserv.widgetx86";
+ console.log(id);
+ }
+ }
+
myWidget = tizen.widgetservice.getWidget(id);
myWidget.getInstances(widgetSuccessCb, widgetErrorCb);
});
//==== SPEC_URL TBD
//==== PRIORITY P3
//==== EXECUTION_TYPE manual
-//==== PRE "widget3" widget should be added to home screen.
+//==== PRE 32 bit TARGET : "widgetarm" widget should be added to home screen.
+//==== 64 bit TARGET : "widgetaarch64" widget should be added to home screen.
+//==== 32 bit EMULATOR : "widgetx86" widget should be added to home screen.
+//==== 64 bit EMULATOR : "widgetx86_64" widget should be added to home screen.
//==== STEP press [Run] button in the test case.
//==== EXPECT test case is passed.
//==== ONLOAD_DELAY 90
t.done();
});
- id = "apiwidserv.widget3";
+ if(tizen.systeminfo.getCapability("http://tizen.org/feature/platform.core.cpu.arch.armv7")){
+ if(tizen.systeminfo.getCapability("http://tizen.org/feature/platform.core.cpu.arch") === 'aarch64'){
+ id = "apiwidserv.widgetaarch64";
+ console.log(id);
+ }else{
+ id = "apiwidserv.widgetarm";
+ console.log(id);
+ }
+ }
+ else if(tizen.systeminfo.getCapability("http://tizen.org/feature/platform.core.cpu.arch.x86")){
+ if(tizen.systeminfo.getCapability("http://tizen.org/feature/platform.core.cpu.arch") === 'x86_64'){
+ id = "apiwidserv.widgetx86_64";
+ console.log(id);
+ }else{
+ id = "apiwidserv.widgetx86";
+ console.log(id);
+ }
+ }
+
myWidget = tizen.widgetservice.getWidget(id);
myWidget.getInstances(widgetSuccessCb, widgetErrorCb);
});
//==== SPEC_URL TBD
//==== PRIORITY P1
//==== EXECUTION_TYPE manual
-//==== PRE "widget3" widget should be added to home screen.
+//==== PRE 32 bit TARGET : "widgetarm" widget should be added to home screen.
+//==== 64 bit TARGET : "widgetaarch64" widget should be added to home screen.
+//==== 32 bit EMULATOR : "widgetx86" widget should be added to home screen.
+//==== 64 bit EMULATOR : "widgetx86_64" widget should be added to home screen.
//==== STEP press [Run] button in the test case.
//==== EXPECT test case is passed.
//==== ONLOAD_DELAY 90
retVal = wdInstance.getContent(contentSuccessCb, contentErrorCb);
});
- id = "apiwidserv.widget3";
+ if(tizen.systeminfo.getCapability("http://tizen.org/feature/platform.core.cpu.arch.armv7")){
+ if(tizen.systeminfo.getCapability("http://tizen.org/feature/platform.core.cpu.arch") === 'aarch64'){
+ id = "apiwidserv.widgetaarch64";
+ console.log(id);
+ }else{
+ id = "apiwidserv.widgetarm";
+ console.log(id);
+ }
+ }
+ else if(tizen.systeminfo.getCapability("http://tizen.org/feature/platform.core.cpu.arch.x86")){
+ if(tizen.systeminfo.getCapability("http://tizen.org/feature/platform.core.cpu.arch") === 'x86_64'){
+ id = "apiwidserv.widgetx86_64";
+ console.log(id);
+ }else{
+ id = "apiwidserv.widgetx86";
+ console.log(id);
+ }
+ }
+
myWidget = tizen.widgetservice.getWidget(id);
myWidget.getInstances(widgetSuccessCb, widgetErrorCb);
});
//==== SPEC_URL TBD
//==== PRIORITY P2
//==== EXECUTION_TYPE manual
-//==== PRE "widget3" widget should be added to home screen.
+//==== PRE 32 bit TARGET : "widgetarm" widget should be added to home screen.
+//==== 64 bit TARGET : "widgetaarch64" widget should be added to home screen.
+//==== 32 bit EMULATOR : "widgetx86" widget should be added to home screen.
+//==== 64 bit EMULATOR : "widgetx86_64" widget should be added to home screen.
//==== STEP press [Run] button in the test case.
//==== EXPECT test case is passed.
//==== ONLOAD_DELAY 90
t.done();
});
- id = "apiwidserv.widget3";
+ if(tizen.systeminfo.getCapability("http://tizen.org/feature/platform.core.cpu.arch.armv7")){
+ if(tizen.systeminfo.getCapability("http://tizen.org/feature/platform.core.cpu.arch") === 'aarch64'){
+ id = "apiwidserv.widgetaarch64";
+ console.log(id);
+ }else{
+ id = "apiwidserv.widgetarm";
+ console.log(id);
+ }
+ }
+ else if(tizen.systeminfo.getCapability("http://tizen.org/feature/platform.core.cpu.arch.x86")){
+ if(tizen.systeminfo.getCapability("http://tizen.org/feature/platform.core.cpu.arch") === 'x86_64'){
+ id = "apiwidserv.widgetx86_64";
+ console.log(id);
+ }else{
+ id = "apiwidserv.widgetx86";
+ console.log(id);
+ }
+ }
+
myWidget = tizen.widgetservice.getWidget(id);
myWidget.getInstances(widgetSuccessCb, widgetErrorCb);
});
//==== SPEC_URL TBD
//==== PRIORITY P2
//==== EXECUTION_TYPE manual
-//==== PRE "widget3" widget should be added to home screen.
+//==== PRE 32 bit TARGET : "widgetarm" widget should be added to home screen.
+//==== 64 bit TARGET : "widgetaarch64" widget should be added to home screen.
+//==== 32 bit EMULATOR : "widgetx86" widget should be added to home screen.
+//==== 64 bit EMULATOR : "widgetx86_64" widget should be added to home screen.
//==== STEP press [Run] button in the test case.
//==== EXPECT test case is passed.
//==== ONLOAD_DELAY 90
t.done();
});
- id = "apiwidserv.widget3";
+ if(tizen.systeminfo.getCapability("http://tizen.org/feature/platform.core.cpu.arch.armv7")){
+ if(tizen.systeminfo.getCapability("http://tizen.org/feature/platform.core.cpu.arch") === 'aarch64'){
+ id = "apiwidserv.widgetaarch64";
+ console.log(id);
+ }else{
+ id = "apiwidserv.widgetarm";
+ console.log(id);
+ }
+ }
+ else if(tizen.systeminfo.getCapability("http://tizen.org/feature/platform.core.cpu.arch.x86")){
+ if(tizen.systeminfo.getCapability("http://tizen.org/feature/platform.core.cpu.arch") === 'x86_64'){
+ id = "apiwidserv.widgetx86_64";
+ console.log(id);
+ }else{
+ id = "apiwidserv.widgetx86";
+ console.log(id);
+ }
+ }
+
myWidget = tizen.widgetservice.getWidget(id);
myWidget.getInstances(widgetSuccessCb, widgetErrorCb);
});
//==== SPEC_URL TBD
//==== PRIORITY P0
//==== EXECUTION_TYPE manual
-//==== PRE "widget3" widget should be added to home screen.
+//==== PRE 32 bit TARGET : "widgetarm" widget should be added to home screen.
+//==== 64 bit TARGET : "widgetaarch64" widget should be added to home screen.
+//==== 32 bit EMULATOR : "widgetx86" widget should be added to home screen.
+//==== 64 bit EMULATOR : "widgetx86_64" widget should be added to home screen.
//==== STEP press [Run] button in the test case.
//==== EXPECT test case is passed.
//==== ONLOAD_DELAY 90
t.done();
});
- id = "apiwidserv.widget3";
+ if(tizen.systeminfo.getCapability("http://tizen.org/feature/platform.core.cpu.arch.armv7")){
+ if(tizen.systeminfo.getCapability("http://tizen.org/feature/platform.core.cpu.arch") === 'aarch64'){
+ id = "apiwidserv.widgetaarch64";
+ console.log(id);
+ }else{
+ id = "apiwidserv.widgetarm";
+ console.log(id);
+ }
+ }
+ else if(tizen.systeminfo.getCapability("http://tizen.org/feature/platform.core.cpu.arch.x86")){
+ if(tizen.systeminfo.getCapability("http://tizen.org/feature/platform.core.cpu.arch") === 'x86_64'){
+ id = "apiwidserv.widgetx86_64";
+ console.log(id);
+ }else{
+ id = "apiwidserv.widgetx86";
+ console.log(id);
+ }
+ }
+
myWidget = tizen.widgetservice.getWidget(id);
myWidget.getInstances(widgetSuccessCb, widgetErrorCb);
});
//==== SPEC_URL TBD
//==== PRIORITY P2
//==== EXECUTION_TYPE manual
-//==== PRE "widget3" widget should be added to home screen.
+//==== PRE 32 bit TARGET : "widgetarm" widget should be added to home screen.
+//==== 64 bit TARGET : "widgetaarch64" widget should be added to home screen.
+//==== 32 bit EMULATOR : "widgetx86" widget should be added to home screen.
+//==== 64 bit EMULATOR : "widgetx86_64" widget should be added to home screen.
//==== STEP press [Run] button in the test case.
//==== EXPECT test case is passed.
//==== ONLOAD_DELAY 90
t.done();
});
- id = "apiwidserv.widget3";
+ if(tizen.systeminfo.getCapability("http://tizen.org/feature/platform.core.cpu.arch.armv7")){
+ if(tizen.systeminfo.getCapability("http://tizen.org/feature/platform.core.cpu.arch") === 'aarch64'){
+ id = "apiwidserv.widgetaarch64";
+ console.log(id);
+ }else{
+ id = "apiwidserv.widgetarm";
+ console.log(id);
+ }
+ }
+ else if(tizen.systeminfo.getCapability("http://tizen.org/feature/platform.core.cpu.arch.x86")){
+ if(tizen.systeminfo.getCapability("http://tizen.org/feature/platform.core.cpu.arch") === 'x86_64'){
+ id = "apiwidserv.widgetx86_64";
+ console.log(id);
+ }else{
+ id = "apiwidserv.widgetx86";
+ console.log(id);
+ }
+ }
+
myWidget = tizen.widgetservice.getWidget(id);
myWidget.getInstances(widgetSuccessCb, widgetErrorCb);
});
//==== SPEC_URL TBD
//==== PRIORITY P2
//==== EXECUTION_TYPE manual
-//==== PRE "widget3" widget should be added to home screen.
+//==== PRE 32 bit TARGET : "widgetarm" widget should be added to home screen.
+//==== 64 bit TARGET : "widgetaarch64" widget should be added to home screen.
+//==== 32 bit EMULATOR : "widgetx86" widget should be added to home screen.
+//==== 64 bit EMULATOR : "widgetx86_64" widget should be added to home screen.
//==== STEP press [Run] button in the test case.
//==== EXPECT test case is passed.
//==== ONLOAD_DELAY 90
t.done();
});
- id = "apiwidserv.widget3";
+ if(tizen.systeminfo.getCapability("http://tizen.org/feature/platform.core.cpu.arch.armv7")){
+ if(tizen.systeminfo.getCapability("http://tizen.org/feature/platform.core.cpu.arch") === 'aarch64'){
+ id = "apiwidserv.widgetaarch64";
+ console.log(id);
+ }else{
+ id = "apiwidserv.widgetarm";
+ console.log(id);
+ }
+ }
+ else if(tizen.systeminfo.getCapability("http://tizen.org/feature/platform.core.cpu.arch.x86")){
+ if(tizen.systeminfo.getCapability("http://tizen.org/feature/platform.core.cpu.arch") === 'x86_64'){
+ id = "apiwidserv.widgetx86_64";
+ console.log(id);
+ }else{
+ id = "apiwidserv.widgetx86";
+ console.log(id);
+ }
+ }
+
myWidget = tizen.widgetservice.getWidget(id);
myWidget.getInstances(widgetSuccessCb, widgetErrorCb);
});
//==== SPEC_URL TBD
//==== PRIORITY P2
//==== EXECUTION_TYPE manual
-//==== PRE "widget3" widget should be added to home screen.
+//==== PRE 32 bit TARGET : "widgetarm" widget should be added to home screen.
+//==== 64 bit TARGET : "widgetaarch64" widget should be added to home screen.
+//==== 32 bit EMULATOR : "widgetx86" widget should be added to home screen.
+//==== 64 bit EMULATOR : "widgetx86_64" widget should be added to home screen.
//==== STEP press [Run] button in the test case.
//==== EXPECT test case is passed.
//==== ONLOAD_DELAY 90
t.done();
});
- id = "apiwidserv.widget3";
+ if(tizen.systeminfo.getCapability("http://tizen.org/feature/platform.core.cpu.arch.armv7")){
+ if(tizen.systeminfo.getCapability("http://tizen.org/feature/platform.core.cpu.arch") === 'aarch64'){
+ id = "apiwidserv.widgetaarch64";
+ console.log(id);
+ }else{
+ id = "apiwidserv.widgetarm";
+ console.log(id);
+ }
+ }
+ else if(tizen.systeminfo.getCapability("http://tizen.org/feature/platform.core.cpu.arch.x86")){
+ if(tizen.systeminfo.getCapability("http://tizen.org/feature/platform.core.cpu.arch") === 'x86_64'){
+ id = "apiwidserv.widgetx86_64";
+ console.log(id);
+ }else{
+ id = "apiwidserv.widgetx86";
+ console.log(id);
+ }
+ }
+
myWidget = tizen.widgetservice.getWidget(id);
myWidget.getInstances(widgetSuccessCb, widgetErrorCb);
});
//==== SPEC_URL TBD
//==== PRIORITY P1
//==== EXECUTION_TYPE manual
-//==== PRE "widget3" widget should be added to home screen.
+//==== PRE 32 bit TARGET : "widgetarm" widget should be added to home screen.
+//==== 64 bit TARGET : "widgetaarch64" widget should be added to home screen.
+//==== 32 bit EMULATOR : "widgetx86" widget should be added to home screen.
+//==== 64 bit EMULATOR : "widgetx86_64" widget should be added to home screen.
//==== STEP press [Run] button in the test case.
//==== EXPECT test case is passed.
//==== ONLOAD_DELAY 90
t.done();
});
- id = "apiwidserv.widget3";
+ if(tizen.systeminfo.getCapability("http://tizen.org/feature/platform.core.cpu.arch.armv7")){
+ if(tizen.systeminfo.getCapability("http://tizen.org/feature/platform.core.cpu.arch") === 'aarch64'){
+ id = "apiwidserv.widgetaarch64";
+ console.log(id);
+ }else{
+ id = "apiwidserv.widgetarm";
+ console.log(id);
+ }
+ }
+ else if(tizen.systeminfo.getCapability("http://tizen.org/feature/platform.core.cpu.arch.x86")){
+ if(tizen.systeminfo.getCapability("http://tizen.org/feature/platform.core.cpu.arch") === 'x86_64'){
+ id = "apiwidserv.widgetx86_64";
+ console.log(id);
+ }else{
+ id = "apiwidserv.widgetx86";
+ console.log(id);
+ }
+ }
+
myWidget = tizen.widgetservice.getWidget(id);
myWidget.getInstances(widgetSuccessCb, widgetErrorCb);
});
//==== SPEC_URL TBD
//==== PRIORITY P1
//==== EXECUTION_TYPE manual
-//==== PRE "widget3" widget should be added to home screen.
+//==== PRE 32 bit TARGET : "widgetarm" widget should be added to home screen.
+//==== 64 bit TARGET : "widgetaarch64" widget should be added to home screen.
+//==== 32 bit EMULATOR : "widgetx86" widget should be added to home screen.
+//==== 64 bit EMULATOR : "widgetx86_64" widget should be added to home screen.
//==== STEP press [Run] button in the test case.
//==== EXPECT test case is passed.
//==== ONLOAD_DELAY 90
t.done();
});
- id = "apiwidserv.widget3";
+ if(tizen.systeminfo.getCapability("http://tizen.org/feature/platform.core.cpu.arch.armv7")){
+ if(tizen.systeminfo.getCapability("http://tizen.org/feature/platform.core.cpu.arch") === 'aarch64'){
+ id = "apiwidserv.widgetaarch64";
+ console.log(id);
+ }else{
+ id = "apiwidserv.widgetarm";
+ console.log(id);
+ }
+ }
+ else if(tizen.systeminfo.getCapability("http://tizen.org/feature/platform.core.cpu.arch.x86")){
+ if(tizen.systeminfo.getCapability("http://tizen.org/feature/platform.core.cpu.arch") === 'x86_64'){
+ id = "apiwidserv.widgetx86_64";
+ console.log(id);
+ }else{
+ id = "apiwidserv.widgetx86";
+ console.log(id);
+ }
+ }
+
myWidget = tizen.widgetservice.getWidget(id);
data = {
data1 : 'test1',
//==== SPEC_URL TBD
//==== PRIORITY P2
//==== EXECUTION_TYPE manual
-//==== PRE "widget3" widget should be added to home screen.
+//==== PRE 32 bit TARGET : "widgetarm" widget should be added to home screen.
+//==== 64 bit TARGET : "widgetaarch64" widget should be added to home screen.
+//==== 32 bit EMULATOR : "widgetx86" widget should be added to home screen.
+//==== 64 bit EMULATOR : "widgetx86_64" widget should be added to home screen.
//==== STEP press [Run] button in the test case.
//==== EXPECT test case is passed.
//==== ONLOAD_DELAY 90
t.done();
});
- id = "apiwidserv.widget3";
+ if(tizen.systeminfo.getCapability("http://tizen.org/feature/platform.core.cpu.arch.armv7")){
+ if(tizen.systeminfo.getCapability("http://tizen.org/feature/platform.core.cpu.arch") === 'aarch64'){
+ id = "apiwidserv.widgetaarch64";
+ console.log(id);
+ }else{
+ id = "apiwidserv.widgetarm";
+ console.log(id);
+ }
+ }
+ else if(tizen.systeminfo.getCapability("http://tizen.org/feature/platform.core.cpu.arch.x86")){
+ if(tizen.systeminfo.getCapability("http://tizen.org/feature/platform.core.cpu.arch") === 'x86_64'){
+ id = "apiwidserv.widgetx86_64";
+ console.log(id);
+ }else{
+ id = "apiwidserv.widgetx86";
+ console.log(id);
+ }
+ }
+
myWidget = tizen.widgetservice.getWidget(id);
myWidget.getInstances(widgetSuccessCb, widgetErrorCb);
});
//==== SPEC_URL TBD
//==== PRIORITY P0
//==== EXECUTION_TYPE manual
-//==== PRE "widget3" widget should be added to home screen.
+//==== PRE 32 bit TARGET : "widgetarm" widget should be added to home screen.
+//==== 64 bit TARGET : "widgetaarch64" widget should be added to home screen.
+//==== 32 bit EMULATOR : "widgetx86" widget should be added to home screen.
+//==== 64 bit EMULATOR : "widgetx86_64" widget should be added to home screen.
//==== STEP press [Run] button in the test case.
//==== EXPECT test case is passed.
//==== ONLOAD_DELAY 90
t.done();
});
- id = "apiwidserv.widget3";
+ if(tizen.systeminfo.getCapability("http://tizen.org/feature/platform.core.cpu.arch.armv7")){
+ if(tizen.systeminfo.getCapability("http://tizen.org/feature/platform.core.cpu.arch") === 'aarch64'){
+ id = "apiwidserv.widgetaarch64";
+ console.log(id);
+ }else{
+ id = "apiwidserv.widgetarm";
+ console.log(id);
+ }
+ }
+ else if(tizen.systeminfo.getCapability("http://tizen.org/feature/platform.core.cpu.arch.x86")){
+ if(tizen.systeminfo.getCapability("http://tizen.org/feature/platform.core.cpu.arch") === 'x86_64'){
+ id = "apiwidserv.widgetx86_64";
+ console.log(id);
+ }else{
+ id = "apiwidserv.widgetx86";
+ console.log(id);
+ }
+ }
+
myWidget = tizen.widgetservice.getWidget(id);
myWidget.getInstances(widgetSuccessCb, widgetErrorCb);
});
//==== SPEC_URL TBD
//==== PRIORITY P2
//==== EXECUTION_TYPE manual
-//==== PRE "widget3" widget should be added to home screen.
+//==== PRE 32 bit TARGET : "widgetarm" widget should be added to home screen.
+//==== 64 bit TARGET : "widgetaarch64" widget should be added to home screen.
+//==== 32 bit EMULATOR : "widgetx86" widget should be added to home screen.
+//==== 64 bit EMULATOR : "widgetx86_64" widget should be added to home screen.
//==== STEP press [Run] button in the test case.
//==== EXPECT test case is passed.
//==== ONLOAD_DELAY 90
t.done();
});
- id = "apiwidserv.widget3";
+ if(tizen.systeminfo.getCapability("http://tizen.org/feature/platform.core.cpu.arch.armv7")){
+ if(tizen.systeminfo.getCapability("http://tizen.org/feature/platform.core.cpu.arch") === 'aarch64'){
+ id = "apiwidserv.widgetaarch64";
+ console.log(id);
+ }else{
+ id = "apiwidserv.widgetarm";
+ console.log(id);
+ }
+ }
+ else if(tizen.systeminfo.getCapability("http://tizen.org/feature/platform.core.cpu.arch.x86")){
+ if(tizen.systeminfo.getCapability("http://tizen.org/feature/platform.core.cpu.arch") === 'x86_64'){
+ id = "apiwidserv.widgetx86_64";
+ console.log(id);
+ }else{
+ id = "apiwidserv.widgetx86";
+ console.log(id);
+ }
+ }
+
myWidget = tizen.widgetservice.getWidget(id);
myWidget.getInstances(widgetSuccessCb, widgetErrorCb);
});
//==== SPEC_URL TBD
//==== PRIORITY P1
//==== EXECUTION_TYPE manual
-//==== PRE "widget3" widget should be added to home screen.
+//==== PRE 32 bit TARGET : "widgetarm" widget should be added to home screen.
+//==== 64 bit TARGET : "widgetaarch64" widget should be added to home screen.
+//==== 32 bit EMULATOR : "widgetx86" widget should be added to home screen.
+//==== 64 bit EMULATOR : "widgetx86_64" widget should be added to home screen.
//==== STEP press [Run] button in the test case.
//==== EXPECT test case is passed.
//==== ONLOAD_DELAY 90
t.done();
});
- id = "apiwidserv.widget3";
+ if(tizen.systeminfo.getCapability("http://tizen.org/feature/platform.core.cpu.arch.armv7")){
+ if(tizen.systeminfo.getCapability("http://tizen.org/feature/platform.core.cpu.arch") === 'aarch64'){
+ id = "apiwidserv.widgetaarch64";
+ console.log(id);
+ }else{
+ id = "apiwidserv.widgetarm";
+ console.log(id);
+ }
+ }
+ else if(tizen.systeminfo.getCapability("http://tizen.org/feature/platform.core.cpu.arch.x86")){
+ if(tizen.systeminfo.getCapability("http://tizen.org/feature/platform.core.cpu.arch") === 'x86_64'){
+ id = "apiwidserv.widgetx86_64";
+ console.log(id);
+ }else{
+ id = "apiwidserv.widgetx86";
+ console.log(id);
+ }
+ }
+
myWidget = tizen.widgetservice.getWidget(id);
myWidget.getInstances(widgetSuccessCb, widgetErrorCb);
});
//==== SPEC_URL TBD
//==== PRIORITY P1
//==== EXECUTION_TYPE manual
-//==== PRE "widget3" widget should be added to home screen.
+//==== PRE 32 bit TARGET : "widgetarm" widget should be added to home screen.
+//==== 64 bit TARGET : "widgetaarch64" widget should be added to home screen.
+//==== 32 bit EMULATOR : "widgetx86" widget should be added to home screen.
+//==== 64 bit EMULATOR : "widgetx86_64" widget should be added to home screen.
//==== STEP press [Run] button in the test case.
//==== EXPECT test case is passed.
//==== ONLOAD_DELAY 90
t.done();
});
- id = "apiwidserv.widget3";
+ if(tizen.systeminfo.getCapability("http://tizen.org/feature/platform.core.cpu.arch.armv7")){
+ if(tizen.systeminfo.getCapability("http://tizen.org/feature/platform.core.cpu.arch") === 'aarch64'){
+ id = "apiwidserv.widgetaarch64";
+ console.log(id);
+ }else{
+ id = "apiwidserv.widgetarm";
+ console.log(id);
+ }
+ }
+ else if(tizen.systeminfo.getCapability("http://tizen.org/feature/platform.core.cpu.arch.x86")){
+ if(tizen.systeminfo.getCapability("http://tizen.org/feature/platform.core.cpu.arch") === 'x86_64'){
+ id = "apiwidserv.widgetx86_64";
+ console.log(id);
+ }else{
+ id = "apiwidserv.widgetx86";
+ console.log(id);
+ }
+ }
+
myWidget = tizen.widgetservice.getWidget(id);
myWidget.getInstances(widgetSuccessCb, widgetErrorCb);
});
//==== TEST_CRITERIA MR
test(function () {
- var pkgId= "apiwidserv", id = "apiwidserv.widget3", widgetId;
+ var pkgId= "apiwidserv", id, widgetId;
+ id = "apiwidserv.widgetarm";
widgetId = tizen.widgetservice.getPrimaryWidgetId(pkgId);
assert_type(widgetId, "string", "widget should be string");
assert_equals(widgetId, id, "widgetId should be equal to id.");
//==== TEST_CRITERIA MR
test(function () {
- var id = "apiwidserv.widget3", myWidget;
+ var id, myWidget;
+
+ if(tizen.systeminfo.getCapability("http://tizen.org/feature/platform.core.cpu.arch.armv7")){
+ if(tizen.systeminfo.getCapability("http://tizen.org/feature/platform.core.cpu.arch") === 'aarch64'){
+ id = "apiwidserv.widgetaarch64";
+ console.log(id);
+ }else{
+ id = "apiwidserv.widgetarm";
+ console.log(id);
+ }
+ }
+ else if(tizen.systeminfo.getCapability("http://tizen.org/feature/platform.core.cpu.arch.x86")){
+ if(tizen.systeminfo.getCapability("http://tizen.org/feature/platform.core.cpu.arch") === 'x86_64'){
+ id = "apiwidserv.widgetx86_64";
+ console.log(id);
+ }else{
+ id = "apiwidserv.widgetx86";
+ console.log(id);
+ }
+ }
myWidget = tizen.widgetservice.getWidget(id);
assert_type(myWidget, "object", "widget should be an object");
//==== TEST_CRITERIA OBX
test(function () {
- var id = "apiwidserv.widget3", myWidget, wdVariant;
+ var id, myWidget, wdVariant;
+
+ if(tizen.systeminfo.getCapability("http://tizen.org/feature/platform.core.cpu.arch.armv7")){
+ if(tizen.systeminfo.getCapability("http://tizen.org/feature/platform.core.cpu.arch") === 'aarch64'){
+ id = "apiwidserv.widgetaarch64";
+ console.log(id);
+ }else{
+ id = "apiwidserv.widgetarm";
+ console.log(id);
+ }
+ }
+ else if(tizen.systeminfo.getCapability("http://tizen.org/feature/platform.core.cpu.arch.x86")){
+ if(tizen.systeminfo.getCapability("http://tizen.org/feature/platform.core.cpu.arch") === 'x86_64'){
+ id = "apiwidserv.widgetx86_64";
+ console.log(id);
+ }else{
+ id = "apiwidserv.widgetx86";
+ console.log(id);
+ }
+ }
myWidget = tizen.widgetservice.getWidget(id);
wdVariant = myWidget.getVariant("4x4");
//==== TEST_CRITERIA AE AT ARO
test(function () {
- var id = "apiwidserv.widget3", myWidget, wdVariant;
+ var id, myWidget, wdVariant;
+
+ if(tizen.systeminfo.getCapability("http://tizen.org/feature/platform.core.cpu.arch.armv7")){
+ if(tizen.systeminfo.getCapability("http://tizen.org/feature/platform.core.cpu.arch") === 'aarch64'){
+ id = "apiwidserv.widgetaarch64";
+ console.log(id);
+ }else{
+ id = "apiwidserv.widgetarm";
+ console.log(id);
+ }
+ }
+ else if(tizen.systeminfo.getCapability("http://tizen.org/feature/platform.core.cpu.arch.x86")){
+ if(tizen.systeminfo.getCapability("http://tizen.org/feature/platform.core.cpu.arch") === 'x86_64'){
+ id = "apiwidserv.widgetx86_64";
+ console.log(id);
+ }else{
+ id = "apiwidserv.widgetx86";
+ console.log(id);
+ }
+ }
myWidget = tizen.widgetservice.getWidget(id);
wdVariant = myWidget.getVariant("4x4");
//==== TEST_CRITERIA AE AT ARO
test(function () {
- var id = "apiwidserv.widget3", myWidget, wdVariant;
+ var id, myWidget, wdVariant;
+
+ if(tizen.systeminfo.getCapability("http://tizen.org/feature/platform.core.cpu.arch.armv7")){
+ if(tizen.systeminfo.getCapability("http://tizen.org/feature/platform.core.cpu.arch") === 'aarch64'){
+ id = "apiwidserv.widgetaarch64";
+ console.log(id);
+ }else{
+ id = "apiwidserv.widgetarm";
+ console.log(id);
+ }
+ }
+ else if(tizen.systeminfo.getCapability("http://tizen.org/feature/platform.core.cpu.arch.x86")){
+ if(tizen.systeminfo.getCapability("http://tizen.org/feature/platform.core.cpu.arch") === 'x86_64'){
+ id = "apiwidserv.widgetx86_64";
+ console.log(id);
+ }else{
+ id = "apiwidserv.widgetx86";
+ console.log(id);
+ }
+ }
myWidget = tizen.widgetservice.getWidget(id);
wdVariant = myWidget.getVariant("4x4");
//==== TEST_CRITERIA AE AT ARO
test(function () {
- var id = "apiwidserv.widget3", myWidget, wdVariant;
+ var id, myWidget, wdVariant;
+
+ if(tizen.systeminfo.getCapability("http://tizen.org/feature/platform.core.cpu.arch.armv7")){
+ if(tizen.systeminfo.getCapability("http://tizen.org/feature/platform.core.cpu.arch") === 'aarch64'){
+ id = "apiwidserv.widgetaarch64";
+ console.log(id);
+ }else{
+ id = "apiwidserv.widgetarm";
+ console.log(id);
+ }
+ }
+ else if(tizen.systeminfo.getCapability("http://tizen.org/feature/platform.core.cpu.arch.x86")){
+ if(tizen.systeminfo.getCapability("http://tizen.org/feature/platform.core.cpu.arch") === 'x86_64'){
+ id = "apiwidserv.widgetx86_64";
+ console.log(id);
+ }else{
+ id = "apiwidserv.widgetx86";
+ console.log(id);
+ }
+ }
myWidget = tizen.widgetservice.getWidget(id);
wdVariant = myWidget.getVariant("4x4");
//==== TEST_CRITERIA AE AT ARO
test(function () {
- var id = "apiwidserv.widget3", myWidget, wdVariant;
+ var id, myWidget, wdVariant;
+
+ if(tizen.systeminfo.getCapability("http://tizen.org/feature/platform.core.cpu.arch.armv7")){
+ if(tizen.systeminfo.getCapability("http://tizen.org/feature/platform.core.cpu.arch") === 'aarch64'){
+ id = "apiwidserv.widgetaarch64";
+ console.log(id);
+ }else{
+ id = "apiwidserv.widgetarm";
+ console.log(id);
+ }
+ }
+ else if(tizen.systeminfo.getCapability("http://tizen.org/feature/platform.core.cpu.arch.x86")){
+ if(tizen.systeminfo.getCapability("http://tizen.org/feature/platform.core.cpu.arch") === 'x86_64'){
+ id = "apiwidserv.widgetx86_64";
+ console.log(id);
+ }else{
+ id = "apiwidserv.widgetx86";
+ console.log(id);
+ }
+ }
myWidget = tizen.widgetservice.getWidget(id);
wdVariant = myWidget.getVariant("4x4");
//==== TEST_CRITERIA AE AT ARO
test(function () {
- var id = "apiwidserv.widget3", myWidget, wdVariant;
+ var id, myWidget, wdVariant;
+
+ if(tizen.systeminfo.getCapability("http://tizen.org/feature/platform.core.cpu.arch.armv7")){
+ if(tizen.systeminfo.getCapability("http://tizen.org/feature/platform.core.cpu.arch") === 'aarch64'){
+ id = "apiwidserv.widgetaarch64";
+ console.log(id);
+ }else{
+ id = "apiwidserv.widgetarm";
+ console.log(id);
+ }
+ }
+ else if(tizen.systeminfo.getCapability("http://tizen.org/feature/platform.core.cpu.arch.x86")){
+ if(tizen.systeminfo.getCapability("http://tizen.org/feature/platform.core.cpu.arch") === 'x86_64'){
+ id = "apiwidserv.widgetx86_64";
+ console.log(id);
+ }else{
+ id = "apiwidserv.widgetx86";
+ console.log(id);
+ }
+ }
myWidget = tizen.widgetservice.getWidget(id);
wdVariant = myWidget.getVariant("4x4");
//==== TEST_CRITERIA AE AT ARO AVL
test(function () {
- var id = "apiwidserv.widget3", myWidget, wdVariant, sizeTypeRange;
+ var id, myWidget, wdVariant, sizeTypeRange;
+
+ if(tizen.systeminfo.getCapability("http://tizen.org/feature/platform.core.cpu.arch.armv7")){
+ if(tizen.systeminfo.getCapability("http://tizen.org/feature/platform.core.cpu.arch") === 'aarch64'){
+ id = "apiwidserv.widgetaarch64";
+ console.log(id);
+ }else{
+ id = "apiwidserv.widgetarm";
+ console.log(id);
+ }
+ }
+ else if(tizen.systeminfo.getCapability("http://tizen.org/feature/platform.core.cpu.arch.x86")){
+ if(tizen.systeminfo.getCapability("http://tizen.org/feature/platform.core.cpu.arch") === 'x86_64'){
+ id = "apiwidserv.widgetx86_64";
+ console.log(id);
+ }else{
+ id = "apiwidserv.widgetx86";
+ console.log(id);
+ }
+ }
myWidget = tizen.widgetservice.getWidget(id);
wdVariant = myWidget.getVariant("4x4");
//==== TEST_CRITERIA AE AT ARO
test(function () {
- var id = "apiwidserv.widget3", myWidget, wdVariant;
+ var id, myWidget, wdVariant;
+
+ if(tizen.systeminfo.getCapability("http://tizen.org/feature/platform.core.cpu.arch.armv7")){
+ if(tizen.systeminfo.getCapability("http://tizen.org/feature/platform.core.cpu.arch") === 'aarch64'){
+ id = "apiwidserv.widgetaarch64";
+ console.log(id);
+ }else{
+ id = "apiwidserv.widgetarm";
+ console.log(id);
+ }
+ }
+ else if(tizen.systeminfo.getCapability("http://tizen.org/feature/platform.core.cpu.arch.x86")){
+ if(tizen.systeminfo.getCapability("http://tizen.org/feature/platform.core.cpu.arch") === 'x86_64'){
+ id = "apiwidserv.widgetx86_64";
+ console.log(id);
+ }else{
+ id = "apiwidserv.widgetx86";
+ console.log(id);
+ }
+ }
myWidget = tizen.widgetservice.getWidget(id);
wdVariant = myWidget.getVariant("4x4");
t.done();
});
- id = "apiwidserv.widget3";
+ if(tizen.systeminfo.getCapability("http://tizen.org/feature/platform.core.cpu.arch.armv7")){
+ if(tizen.systeminfo.getCapability("http://tizen.org/feature/platform.core.cpu.arch") === 'aarch64'){
+ id = "apiwidserv.widgetaarch64";
+ console.log(id);
+ }else{
+ id = "apiwidserv.widgetarm";
+ console.log(id);
+ }
+ }
+ else if(tizen.systeminfo.getCapability("http://tizen.org/feature/platform.core.cpu.arch.x86")){
+ if(tizen.systeminfo.getCapability("http://tizen.org/feature/platform.core.cpu.arch") === 'x86_64'){
+ id = "apiwidserv.widgetx86_64";
+ console.log(id);
+ }else{
+ id = "apiwidserv.widgetx86";
+ console.log(id);
+ }
+ }
+
myWidget = tizen.widgetservice.getWidget(id);
myWidget.getVariants(widgetSuccessCb);
});
//==== SPEC_URL TBD
//==== PRIORITY P1
//==== EXECUTION_TYPE manual
-//==== PRE "widget3" widget should be added to home screen.
+//==== PRE 32 bit TARGET : "widgetarm" widget should be added to home screen.
+//==== 64 bit TARGET : "widgetaarch64" widget should be added to home screen.
+//==== 32 bit EMULATOR : "widgetx86" widget should be added to home screen.
+//==== 64 bit EMULATOR : "widgetx86_64" widget should be added to home screen.
//==== STEP press [Run] button in the test case.
//==== EXPECT test case is passed.
//==== ONLOAD_DELAY 120
t.done();
});
- id = "apiwidserv.widget3";
+ if(tizen.systeminfo.getCapability("http://tizen.org/feature/platform.core.cpu.arch.armv7")){
+ if(tizen.systeminfo.getCapability("http://tizen.org/feature/platform.core.cpu.arch") === 'aarch64'){
+ id = "apiwidserv.widgetaarch64";
+ console.log(id);
+ }else{
+ id = "apiwidserv.widgetarm";
+ console.log(id);
+ }
+ }
+ else if(tizen.systeminfo.getCapability("http://tizen.org/feature/platform.core.cpu.arch.x86")){
+ if(tizen.systeminfo.getCapability("http://tizen.org/feature/platform.core.cpu.arch") === 'x86_64'){
+ id = "apiwidserv.widgetx86_64";
+ console.log(id);
+ }else{
+ id = "apiwidserv.widgetx86";
+ console.log(id);
+ }
+ }
+
myWidget = tizen.widgetservice.getWidget(id);
watchId = myWidget.addStateChangeListener(widgetChangeCb);
- alert("Go to home screen to delete 'test' widget before press [OK] button");
+ alert("Go to home screen to delete the added widget before press [OK] button");
});
</script>
test(function () {
var callback, i, conversionTable, exceptionName, id, myWidget;
- id = "apiwidserv.widget3";
+ if(tizen.systeminfo.getCapability("http://tizen.org/feature/platform.core.cpu.arch.armv7")){
+ if(tizen.systeminfo.getCapability("http://tizen.org/feature/platform.core.cpu.arch") === 'aarch64'){
+ id = "apiwidserv.widgetaarch64";
+ console.log(id);
+ }else{
+ id = "apiwidserv.widgetarm";
+ console.log(id);
+ }
+ }
+ else if(tizen.systeminfo.getCapability("http://tizen.org/feature/platform.core.cpu.arch.x86")){
+ if(tizen.systeminfo.getCapability("http://tizen.org/feature/platform.core.cpu.arch") === 'x86_64'){
+ id = "apiwidserv.widgetx86_64";
+ console.log(id);
+ }else{
+ id = "apiwidserv.widgetx86";
+ console.log(id);
+ }
+ }
+
myWidget = tizen.widgetservice.getWidget(id);
conversionTable = getTypeConversionExceptions("functionObject", false);
for (i = 0; i < conversionTable.length; i++) {
test(function () {
var callback, i, incorrectListener, exceptionName, id, myWidget;
- id = "apiwidserv.widget3";
+ if(tizen.systeminfo.getCapability("http://tizen.org/feature/platform.core.cpu.arch.armv7")){
+ if(tizen.systeminfo.getCapability("http://tizen.org/feature/platform.core.cpu.arch") === 'aarch64'){
+ id = "apiwidserv.widgetaarch64";
+ console.log(id);
+ }else{
+ id = "apiwidserv.widgetarm";
+ console.log(id);
+ }
+ }
+ else if(tizen.systeminfo.getCapability("http://tizen.org/feature/platform.core.cpu.arch.x86")){
+ if(tizen.systeminfo.getCapability("http://tizen.org/feature/platform.core.cpu.arch") === 'x86_64'){
+ id = "apiwidserv.widgetx86_64";
+ console.log(id);
+ }else{
+ id = "apiwidserv.widgetx86";
+ console.log(id);
+ }
+ }
+
myWidget = tizen.widgetservice.getWidget(id);
incorrectListener = getListenerConversionExceptions(["onchange"]);
for(i = 0; i < incorrectListener.length; i++) {
//==== TEST_CRITERIA ME
test(function () {
- var id = "apiwidserv.widget3", myWidget;
+ if(tizen.systeminfo.getCapability("http://tizen.org/feature/platform.core.cpu.arch.armv7")){
+ var id = "apiwidserv.widgetarm", myWidget;
+ }
+ else if(tizen.systeminfo.getCapability("http://tizen.org/feature/platform.core.cpu.arch.x86")){
+ var id = "apiwidserv.widgetx86", myWidget;
+ }
myWidget = tizen.widgetservice.getWidget(id);
check_method_exists(myWidget, "addStateChangeListener");
//==== TEST_CRITERIA MMA
test(function () {
- var id = "apiwidserv.widget3", myWidget;
+ if(tizen.systeminfo.getCapability("http://tizen.org/feature/platform.core.cpu.arch.armv7")){
+ var id = "apiwidserv.widgetarm", myWidget;
+ }
+ else if(tizen.systeminfo.getCapability("http://tizen.org/feature/platform.core.cpu.arch.x86")){
+ var id = "apiwidserv.widgetx86", myWidget;
+ }
myWidget = tizen.widgetservice.getWidget(id);
assert_throws(TYPE_MISMATCH_EXCEPTION, function () {
//==== TEST_CRITERIA AE AT ARO
test(function () {
- var id = "apiwidserv.widget3", myWidget;
+ if(tizen.systeminfo.getCapability("http://tizen.org/feature/platform.core.cpu.arch.armv7")){
+ var id = "apiwidserv.widgetarm", myWidget;
+ }
+ else if(tizen.systeminfo.getCapability("http://tizen.org/feature/platform.core.cpu.arch.x86")){
+ var id = "apiwidserv.widgetx86", myWidget;
+ }
myWidget = tizen.widgetservice.getWidget(id);
check_readonly(myWidget, "applicationId", myWidget.applicationId, "string", "org.tizen.contacts");
//==== TEST_CRITERIA OBX
test(function () {
- var id = "apiwidserv.widget3", myWidget;
+ if(tizen.systeminfo.getCapability("http://tizen.org/feature/platform.core.cpu.arch.armv7")){
+ var id = "apiwidserv.widgetarm", myWidget;
+ }
+ else if(tizen.systeminfo.getCapability("http://tizen.org/feature/platform.core.cpu.arch.x86")){
+ var id = "apiwidserv.widgetx86", myWidget;
+ }
myWidget = tizen.widgetservice.getWidget(id);
check_extensibility(myWidget);
//==== SPEC_URL TBD
//==== PRIORITY P1
//==== EXECUTION_TYPE manual
-//==== PRE "widget3" widget should be added to home screen.
+//==== PRE 32 bit TARGET : "widgetarm" widget should be added to home screen.
+//==== 64 bit TARGET : "widgetaarch64" widget should be added to home screen.
+//==== 32 bit EMULATOR : "widgetx86" widget should be added to home screen.
+//==== 64 bit EMULATOR : "widgetx86_64" widget should be added to home screen.
//==== STEP press [Run] button in the test case.
//==== EXPECT test case is passed.
//==== ONLOAD_DELAY 90
t.done();
});
- id = "apiwidserv.widget3";
+ if(tizen.systeminfo.getCapability("http://tizen.org/feature/platform.core.cpu.arch.armv7")){
+ if(tizen.systeminfo.getCapability("http://tizen.org/feature/platform.core.cpu.arch") === 'aarch64'){
+ id = "apiwidserv.widgetaarch64";
+ console.log(id);
+ }else{
+ id = "apiwidserv.widgetarm";
+ console.log(id);
+ }
+ }
+ else if(tizen.systeminfo.getCapability("http://tizen.org/feature/platform.core.cpu.arch.x86")){
+ if(tizen.systeminfo.getCapability("http://tizen.org/feature/platform.core.cpu.arch") === 'x86_64'){
+ id = "apiwidserv.widgetx86_64";
+ console.log(id);
+ }else{
+ id = "apiwidserv.widgetx86";
+ console.log(id);
+ }
+ }
+
myWidget = tizen.widgetservice.getWidget(id);
retVal = myWidget.getInstances(widgetSuccessCb);
});
assert_unreached("successCallback should not be invoked");
});
- id = "apiwidserv.widget3";
+ if(tizen.systeminfo.getCapability("http://tizen.org/feature/platform.core.cpu.arch.armv7")){
+ if(tizen.systeminfo.getCapability("http://tizen.org/feature/platform.core.cpu.arch") === 'aarch64'){
+ id = "apiwidserv.widgetaarch64";
+ console.log(id);
+ }else{
+ id = "apiwidserv.widgetarm";
+ console.log(id);
+ }
+ }
+ else if(tizen.systeminfo.getCapability("http://tizen.org/feature/platform.core.cpu.arch.x86")){
+ if(tizen.systeminfo.getCapability("http://tizen.org/feature/platform.core.cpu.arch") === 'x86_64'){
+ id = "apiwidserv.widgetx86_64";
+ console.log(id);
+ }else{
+ id = "apiwidserv.widgetx86";
+ console.log(id);
+ }
+ }
+
myWidget = tizen.widgetservice.getWidget(id);
conversionTable = getTypeConversionExceptions("functionObject", true);
assert_unreached("successCallback should not be invoked");
});
- id = "apiwidserv.widget3";
+ if(tizen.systeminfo.getCapability("http://tizen.org/feature/platform.core.cpu.arch.armv7")){
+ if(tizen.systeminfo.getCapability("http://tizen.org/feature/platform.core.cpu.arch") === 'aarch64'){
+ id = "apiwidserv.widgetaarch64";
+ console.log(id);
+ }else{
+ id = "apiwidserv.widgetarm";
+ console.log(id);
+ }
+ }
+ else if(tizen.systeminfo.getCapability("http://tizen.org/feature/platform.core.cpu.arch.x86")){
+ if(tizen.systeminfo.getCapability("http://tizen.org/feature/platform.core.cpu.arch") === 'x86_64'){
+ id = "apiwidserv.widgetx86_64";
+ console.log(id);
+ }else{
+ id = "apiwidserv.widgetx86";
+ console.log(id);
+ }
+ }
+
myWidget = tizen.widgetservice.getWidget(id);
assert_throws(TYPE_MISMATCH_EXCEPTION, function () {
assert_unreached("successCallback should not be invoked");
});
- id = "apiwidserv.widget3";
+ if(tizen.systeminfo.getCapability("http://tizen.org/feature/platform.core.cpu.arch.armv7")){
+ if(tizen.systeminfo.getCapability("http://tizen.org/feature/platform.core.cpu.arch") === 'aarch64'){
+ id = "apiwidserv.widgetaarch64";
+ console.log(id);
+ }else{
+ id = "apiwidserv.widgetarm";
+ console.log(id);
+ }
+ }
+ else if(tizen.systeminfo.getCapability("http://tizen.org/feature/platform.core.cpu.arch.x86")){
+ if(tizen.systeminfo.getCapability("http://tizen.org/feature/platform.core.cpu.arch") === 'x86_64'){
+ id = "apiwidserv.widgetx86_64";
+ console.log(id);
+ }else{
+ id = "apiwidserv.widgetx86";
+ console.log(id);
+ }
+ }
+
myWidget = tizen.widgetservice.getWidget(id);
myWidget.getInstances(widgetSuccessCb, widgetErrorCb);
});
//==== TEST_CRITERIA ME
test(function () {
- var id = "apiwidserv.widget3", myWidget;
+ if(tizen.systeminfo.getCapability("http://tizen.org/feature/platform.core.cpu.arch.armv7")){
+ var id = "apiwidserv.widgetarm", myWidget;
+ }
+ else if(tizen.systeminfo.getCapability("http://tizen.org/feature/platform.core.cpu.arch.x86")){
+ var id = "apiwidserv.widgetx86", myWidget;
+ }
myWidget = tizen.widgetservice.getWidget(id);
check_method_exists(myWidget, "getInstances");
//==== TEST_CRITERIA MMA
test(function () {
- var id = "apiwidserv.widget3", myWidget;
+ if(tizen.systeminfo.getCapability("http://tizen.org/feature/platform.core.cpu.arch.armv7")){
+ var id = "apiwidserv.widgetarm", myWidget;
+ }
+ else if(tizen.systeminfo.getCapability("http://tizen.org/feature/platform.core.cpu.arch.x86")){
+ var id = "apiwidserv.widgetx86", myWidget;
+ }
myWidget = tizen.widgetservice.getWidget(id);
assert_throws(TYPE_MISMATCH_EXCEPTION, function () {
var t = async_test(document.title, {timeout: 90000}), i, conversionTable, id, myWidget;
t.step(function () {
- id = "apiwidserv.widget3";
+ if(tizen.systeminfo.getCapability("http://tizen.org/feature/platform.core.cpu.arch.armv7")){
+ if(tizen.systeminfo.getCapability("http://tizen.org/feature/platform.core.cpu.arch") === 'aarch64'){
+ id = "apiwidserv.widgetaarch64";
+ console.log(id);
+ }else{
+ id = "apiwidserv.widgetarm";
+ console.log(id);
+ }
+ }
+ else if(tizen.systeminfo.getCapability("http://tizen.org/feature/platform.core.cpu.arch.x86")){
+ if(tizen.systeminfo.getCapability("http://tizen.org/feature/platform.core.cpu.arch") === 'x86_64'){
+ id = "apiwidserv.widgetx86_64";
+ console.log(id);
+ }else{
+ id = "apiwidserv.widgetx86";
+ console.log(id);
+ }
+ }
+
myWidget = tizen.widgetservice.getWidget(id);
conversionTable = getTypeConversionExceptions("functionObject", false);
})
};
- id = "apiwidserv.widget3";
+ if(tizen.systeminfo.getCapability("http://tizen.org/feature/platform.core.cpu.arch.armv7")){
+ if(tizen.systeminfo.getCapability("http://tizen.org/feature/platform.core.cpu.arch") === 'aarch64'){
+ id = "apiwidserv.widgetaarch64";
+ console.log(id);
+ }else{
+ id = "apiwidserv.widgetarm";
+ console.log(id);
+ }
+ }
+ else if(tizen.systeminfo.getCapability("http://tizen.org/feature/platform.core.cpu.arch.x86")){
+ if(tizen.systeminfo.getCapability("http://tizen.org/feature/platform.core.cpu.arch") === 'x86_64'){
+ id = "apiwidserv.widgetx86_64";
+ console.log(id);
+ }else{
+ id = "apiwidserv.widgetx86";
+ console.log(id);
+ }
+ }
+
myWidget = tizen.widgetservice.getWidget(id);
assert_throws(TYPE_MISMATCH_EXCEPTION, function () {
//==== SPEC_URL TBD
//==== PRIORITY P1
//==== EXECUTION_TYPE manual
-//==== PRE "widget3" widget should be added to home screen.
+//==== PRE 32 bit TARGET : "widgetarm" widget should be added to home screen.
+//==== 64 bit TARGET : "widgetaarch64" widget should be added to home screen.
+//==== 32 bit EMULATOR : "widgetx86" widget should be added to home screen.
+//==== 64 bit EMULATOR : "widgetx86_64" widget should be added to home screen.
//==== STEP press [Run] button in the test case.
//==== EXPECT test case is passed.
//==== ONLOAD_DELAY 90
t.done();
});
- id = "apiwidserv.widget3";
+ if(tizen.systeminfo.getCapability("http://tizen.org/feature/platform.core.cpu.arch.armv7")){
+ if(tizen.systeminfo.getCapability("http://tizen.org/feature/platform.core.cpu.arch") === 'aarch64'){
+ id = "apiwidserv.widgetaarch64";
+ console.log(id);
+ }else{
+ id = "apiwidserv.widgetarm";
+ console.log(id);
+ }
+ }
+ else if(tizen.systeminfo.getCapability("http://tizen.org/feature/platform.core.cpu.arch.x86")){
+ if(tizen.systeminfo.getCapability("http://tizen.org/feature/platform.core.cpu.arch") === 'x86_64'){
+ id = "apiwidserv.widgetx86_64";
+ console.log(id);
+ }else{
+ id = "apiwidserv.widgetx86";
+ console.log(id);
+ }
+ }
+
myWidget = tizen.widgetservice.getWidget(id);
retVal = myWidget.getInstances(widgetSuccessCb, widgetErrorCb);
});
//==== TEST_CRITERIA MR MMINA
test(function () {
- var id = "apiwidserv.widget3", myWidget, retVal;
+ var id, myWidget, retVal;
+
+ if(tizen.systeminfo.getCapability("http://tizen.org/feature/platform.core.cpu.arch.armv7")){
+ if(tizen.systeminfo.getCapability("http://tizen.org/feature/platform.core.cpu.arch") === 'aarch64'){
+ id = "apiwidserv.widgetaarch64";
+ console.log(id);
+ }else{
+ id = "apiwidserv.widgetarm";
+ console.log(id);
+ }
+ }
+ else if(tizen.systeminfo.getCapability("http://tizen.org/feature/platform.core.cpu.arch.x86")){
+ if(tizen.systeminfo.getCapability("http://tizen.org/feature/platform.core.cpu.arch") === 'x86_64'){
+ id = "apiwidserv.widgetx86_64";
+ console.log(id);
+ }else{
+ id = "apiwidserv.widgetx86";
+ console.log(id);
+ }
+ }
myWidget = tizen.widgetservice.getWidget(id);
retVal = myWidget.getName();
//==== TEST_CRITERIA ME
test(function () {
- var id = "apiwidserv.widget3", myWidget;
+ if(tizen.systeminfo.getCapability("http://tizen.org/feature/platform.core.cpu.arch.armv7")){
+ var id = "apiwidserv.widgetarm", myWidget;
+ }
+ else if(tizen.systeminfo.getCapability("http://tizen.org/feature/platform.core.cpu.arch.x86")){
+ var id = "apiwidserv.widgetx86", myWidget;
+ }
myWidget = tizen.widgetservice.getWidget(id);
check_method_exists(myWidget, "getName");
//==== TEST_CRITERIA MOA MR
test(function () {
- var id = "apiwidserv.widget3", myWidget, retVal;
+ var id, myWidget, retVal;
+
+ if(tizen.systeminfo.getCapability("http://tizen.org/feature/platform.core.cpu.arch.armv7")){
+ if(tizen.systeminfo.getCapability("http://tizen.org/feature/platform.core.cpu.arch") === 'aarch64'){
+ id = "apiwidserv.widgetaarch64";
+ console.log(id);
+ }else{
+ id = "apiwidserv.widgetarm";
+ console.log(id);
+ }
+ }
+ else if(tizen.systeminfo.getCapability("http://tizen.org/feature/platform.core.cpu.arch.x86")){
+ if(tizen.systeminfo.getCapability("http://tizen.org/feature/platform.core.cpu.arch") === 'x86_64'){
+ id = "apiwidserv.widgetx86_64";
+ console.log(id);
+ }else{
+ id = "apiwidserv.widgetx86";
+ console.log(id);
+ }
+ }
myWidget = tizen.widgetservice.getWidget(id);
retVal = myWidget.getName("en-us");
//==== TEST_CRITERIA MR
test(function () {
- var id = "apiwidserv.widget3", myWidget, retVal;
+ var id, myWidget, retVal;
+
+ if(tizen.systeminfo.getCapability("http://tizen.org/feature/platform.core.cpu.arch.armv7")){
+ if(tizen.systeminfo.getCapability("http://tizen.org/feature/platform.core.cpu.arch") === 'aarch64'){
+ id = "apiwidserv.widgetaarch64";
+ console.log(id);
+ }else{
+ id = "apiwidserv.widgetarm";
+ console.log(id);
+ }
+ }
+ else if(tizen.systeminfo.getCapability("http://tizen.org/feature/platform.core.cpu.arch.x86")){
+ if(tizen.systeminfo.getCapability("http://tizen.org/feature/platform.core.cpu.arch") === 'x86_64'){
+ id = "apiwidserv.widgetx86_64";
+ console.log(id);
+ }else{
+ id = "apiwidserv.widgetx86";
+ console.log(id);
+ }
+ }
myWidget = tizen.widgetservice.getWidget(id);
retVal = myWidget.getVariant("4x4");
//==== TEST_CRITERIA ME
test(function () {
- var id = "apiwidserv.widget3", myWidget;
+ var id, myWidget;
+
+ if(tizen.systeminfo.getCapability("http://tizen.org/feature/platform.core.cpu.arch.armv7")){
+ if(tizen.systeminfo.getCapability("http://tizen.org/feature/platform.core.cpu.arch") === 'aarch64'){
+ id = "apiwidserv.widgetaarch64";
+ console.log(id);
+ }else{
+ id = "apiwidserv.widgetarm";
+ console.log(id);
+ }
+ }
+ else if(tizen.systeminfo.getCapability("http://tizen.org/feature/platform.core.cpu.arch.x86")){
+ if(tizen.systeminfo.getCapability("http://tizen.org/feature/platform.core.cpu.arch") === 'x86_64'){
+ id = "apiwidserv.widgetx86_64";
+ console.log(id);
+ }else{
+ id = "apiwidserv.widgetx86";
+ console.log(id);
+ }
+ }
myWidget = tizen.widgetservice.getWidget(id);
check_method_exists(myWidget, "getVariant");
//==== TEST_CRITERIA MC
test(function () {
- var id = "apiwidserv.widget3", myWidget, i, conversionTable;
+ var id, myWidget, i, conversionTable;
+
+ if(tizen.systeminfo.getCapability("http://tizen.org/feature/platform.core.cpu.arch.armv7")){
+ if(tizen.systeminfo.getCapability("http://tizen.org/feature/platform.core.cpu.arch") === 'aarch64'){
+ id = "apiwidserv.widgetaarch64";
+ console.log(id);
+ }else{
+ id = "apiwidserv.widgetarm";
+ console.log(id);
+ }
+ }
+ else if(tizen.systeminfo.getCapability("http://tizen.org/feature/platform.core.cpu.arch.x86")){
+ if(tizen.systeminfo.getCapability("http://tizen.org/feature/platform.core.cpu.arch") === 'x86_64'){
+ id = "apiwidserv.widgetx86_64";
+ console.log(id);
+ }else{
+ id = "apiwidserv.widgetx86";
+ console.log(id);
+ }
+ }
myWidget = tizen.widgetservice.getWidget(id);
conversionTable = getTypeConversionExceptions("enum", false);
t.done();
});
- id = "apiwidserv.widget3";
+ if(tizen.systeminfo.getCapability("http://tizen.org/feature/platform.core.cpu.arch.armv7")){
+ if(tizen.systeminfo.getCapability("http://tizen.org/feature/platform.core.cpu.arch") === 'aarch64'){
+ id = "apiwidserv.widgetaarch64";
+ console.log(id);
+ }else{
+ id = "apiwidserv.widgetarm";
+ console.log(id);
+ }
+ }
+ else if(tizen.systeminfo.getCapability("http://tizen.org/feature/platform.core.cpu.arch.x86")){
+ if(tizen.systeminfo.getCapability("http://tizen.org/feature/platform.core.cpu.arch") === 'x86_64'){
+ id = "apiwidserv.widgetx86_64";
+ console.log(id);
+ }else{
+ id = "apiwidserv.widgetx86";
+ console.log(id);
+ }
+ }
+
myWidget = tizen.widgetservice.getWidget(id);
retVal = myWidget.getVariants(widgetSuccessCb);
});
assert_unreached("successCallback should not be invoked");
});
- id = "apiwidserv.widget3";
+ if(tizen.systeminfo.getCapability("http://tizen.org/feature/platform.core.cpu.arch.armv7")){
+ if(tizen.systeminfo.getCapability("http://tizen.org/feature/platform.core.cpu.arch") === 'aarch64'){
+ id = "apiwidserv.widgetaarch64";
+ console.log(id);
+ }else{
+ id = "apiwidserv.widgetarm";
+ console.log(id);
+ }
+ }
+ else if(tizen.systeminfo.getCapability("http://tizen.org/feature/platform.core.cpu.arch.x86")){
+ if(tizen.systeminfo.getCapability("http://tizen.org/feature/platform.core.cpu.arch") === 'x86_64'){
+ id = "apiwidserv.widgetx86_64";
+ console.log(id);
+ }else{
+ id = "apiwidserv.widgetx86";
+ console.log(id);
+ }
+ }
+
myWidget = tizen.widgetservice.getWidget(id);
conversionTable = getTypeConversionExceptions("functionObject", true);
assert_unreached("successCallback should not be invoked");
});
- id = "apiwidserv.widget3";
+ if(tizen.systeminfo.getCapability("http://tizen.org/feature/platform.core.cpu.arch.armv7")){
+ if(tizen.systeminfo.getCapability("http://tizen.org/feature/platform.core.cpu.arch") === 'aarch64'){
+ id = "apiwidserv.widgetaarch64";
+ console.log(id);
+ }else{
+ id = "apiwidserv.widgetarm";
+ console.log(id);
+ }
+ }
+ else if(tizen.systeminfo.getCapability("http://tizen.org/feature/platform.core.cpu.arch.x86")){
+ if(tizen.systeminfo.getCapability("http://tizen.org/feature/platform.core.cpu.arch") === 'x86_64'){
+ id = "apiwidserv.widgetx86_64";
+ console.log(id);
+ }else{
+ id = "apiwidserv.widgetx86";
+ console.log(id);
+ }
+ }
+
myWidget = tizen.widgetservice.getWidget(id);
assert_throws(TYPE_MISMATCH_EXCEPTION, function () {
//==== TEST_CRITERIA ME
test(function () {
- var id = "apiwidserv.widget3", myWidget;
+ var id, myWidget;
+
+ if(tizen.systeminfo.getCapability("http://tizen.org/feature/platform.core.cpu.arch.armv7")){
+ if(tizen.systeminfo.getCapability("http://tizen.org/feature/platform.core.cpu.arch") === 'aarch64'){
+ id = "apiwidserv.widgetaarch64";
+ console.log(id);
+ }else{
+ id = "apiwidserv.widgetarm";
+ console.log(id);
+ }
+ }
+ else if(tizen.systeminfo.getCapability("http://tizen.org/feature/platform.core.cpu.arch.x86")){
+ if(tizen.systeminfo.getCapability("http://tizen.org/feature/platform.core.cpu.arch") === 'x86_64'){
+ id = "apiwidserv.widgetx86_64";
+ console.log(id);
+ }else{
+ id = "apiwidserv.widgetx86";
+ console.log(id);
+ }
+ }
myWidget = tizen.widgetservice.getWidget(id);
check_method_exists(myWidget, "getVariants");
//==== TEST_CRITERIA MMA
test(function () {
- var id = "apiwidserv.widget3", myWidget;
+ var id, myWidget;
+
+ if(tizen.systeminfo.getCapability("http://tizen.org/feature/platform.core.cpu.arch.armv7")){
+ if(tizen.systeminfo.getCapability("http://tizen.org/feature/platform.core.cpu.arch") === 'aarch64'){
+ id = "apiwidserv.widgetaarch64";
+ console.log(id);
+ }else{
+ id = "apiwidserv.widgetarm";
+ console.log(id);
+ }
+ }
+ else if(tizen.systeminfo.getCapability("http://tizen.org/feature/platform.core.cpu.arch.x86")){
+ if(tizen.systeminfo.getCapability("http://tizen.org/feature/platform.core.cpu.arch") === 'x86_64'){
+ id = "apiwidserv.widgetx86_64";
+ console.log(id);
+ }else{
+ id = "apiwidserv.widgetx86";
+ console.log(id);
+ }
+ }
myWidget = tizen.widgetservice.getWidget(id);
assert_throws(TYPE_MISMATCH_EXCEPTION, function () {
var t = async_test(document.title, {timeout: 90000}), i, conversionTable, id, myWidget;
t.step(function () {
- id = "apiwidserv.widget3";
+ if(tizen.systeminfo.getCapability("http://tizen.org/feature/platform.core.cpu.arch.armv7")){
+ if(tizen.systeminfo.getCapability("http://tizen.org/feature/platform.core.cpu.arch") === 'aarch64'){
+ id = "apiwidserv.widgetaarch64";
+ console.log(id);
+ }else{
+ id = "apiwidserv.widgetarm";
+ console.log(id);
+ }
+ }
+ else if(tizen.systeminfo.getCapability("http://tizen.org/feature/platform.core.cpu.arch.x86")){
+ if(tizen.systeminfo.getCapability("http://tizen.org/feature/platform.core.cpu.arch") === 'x86_64'){
+ id = "apiwidserv.widgetx86_64";
+ console.log(id);
+ }else{
+ id = "apiwidserv.widgetx86";
+ console.log(id);
+ }
+ }
+
myWidget = tizen.widgetservice.getWidget(id);
conversionTable = getTypeConversionExceptions("functionObject", false);
})
};
- id = "apiwidserv.widget3";
+ if(tizen.systeminfo.getCapability("http://tizen.org/feature/platform.core.cpu.arch.armv7")){
+ if(tizen.systeminfo.getCapability("http://tizen.org/feature/platform.core.cpu.arch") === 'aarch64'){
+ id = "apiwidserv.widgetaarch64";
+ console.log(id);
+ }else{
+ id = "apiwidserv.widgetarm";
+ console.log(id);
+ }
+ }
+ else if(tizen.systeminfo.getCapability("http://tizen.org/feature/platform.core.cpu.arch.x86")){
+ if(tizen.systeminfo.getCapability("http://tizen.org/feature/platform.core.cpu.arch") === 'x86_64'){
+ id = "apiwidserv.widgetx86_64";
+ console.log(id);
+ }else{
+ id = "apiwidserv.widgetx86";
+ console.log(id);
+ }
+ }
+
myWidget = tizen.widgetservice.getWidget(id);
assert_throws(TYPE_MISMATCH_EXCEPTION, function () {
t.done();
});
- id = "apiwidserv.widget3";
+ if(tizen.systeminfo.getCapability("http://tizen.org/feature/platform.core.cpu.arch.armv7")){
+ if(tizen.systeminfo.getCapability("http://tizen.org/feature/platform.core.cpu.arch") === 'aarch64'){
+ id = "apiwidserv.widgetaarch64";
+ console.log(id);
+ }else{
+ id = "apiwidserv.widgetarm";
+ console.log(id);
+ }
+ }
+ else if(tizen.systeminfo.getCapability("http://tizen.org/feature/platform.core.cpu.arch.x86")){
+ if(tizen.systeminfo.getCapability("http://tizen.org/feature/platform.core.cpu.arch") === 'x86_64'){
+ id = "apiwidserv.widgetx86_64";
+ console.log(id);
+ }else{
+ id = "apiwidserv.widgetx86";
+ console.log(id);
+ }
+ }
+
myWidget = tizen.widgetservice.getWidget(id);
retVal = myWidget.getVariants(widgetSuccessCb, widgetErrorCb);
});
//==== TEST_CRITERIA AE AT ARO
test(function () {
- var id = "apiwidserv.widget3", myWidget;
+ var id, myWidget;
+
+ if(tizen.systeminfo.getCapability("http://tizen.org/feature/platform.core.cpu.arch.armv7")){
+ if(tizen.systeminfo.getCapability("http://tizen.org/feature/platform.core.cpu.arch") === 'aarch64'){
+ id = "apiwidserv.widgetaarch64";
+ console.log(id);
+ }else{
+ id = "apiwidserv.widgetarm";
+ console.log(id);
+ }
+ }
+ else if(tizen.systeminfo.getCapability("http://tizen.org/feature/platform.core.cpu.arch.x86")){
+ if(tizen.systeminfo.getCapability("http://tizen.org/feature/platform.core.cpu.arch") === 'x86_64'){
+ id = "apiwidserv.widgetx86_64";
+ console.log(id);
+ }else{
+ id = "apiwidserv.widgetx86";
+ console.log(id);
+ }
+ }
myWidget = tizen.widgetservice.getWidget(id);
check_readonly(myWidget, "id", id, "string", "org.tizen.contacts.widget");
//==== TEST_CRITERIA AE AT ARO
test(function () {
- var id = "apiwidserv.widget3", myWidget;
+ var id, myWidget;
+
+ if(tizen.systeminfo.getCapability("http://tizen.org/feature/platform.core.cpu.arch.armv7")){
+ if(tizen.systeminfo.getCapability("http://tizen.org/feature/platform.core.cpu.arch") === 'aarch64'){
+ id = "apiwidserv.widgetaarch64";
+ console.log(id);
+ }else{
+ id = "apiwidserv.widgetarm";
+ console.log(id);
+ }
+ }
+ else if(tizen.systeminfo.getCapability("http://tizen.org/feature/platform.core.cpu.arch.x86")){
+ if(tizen.systeminfo.getCapability("http://tizen.org/feature/platform.core.cpu.arch") === 'x86_64'){
+ id = "apiwidserv.widgetx86_64";
+ console.log(id);
+ }else{
+ id = "apiwidserv.widgetx86";
+ console.log(id);
+ }
+ }
myWidget = tizen.widgetservice.getWidget(id);
check_readonly(myWidget, "noDisplay", myWidget.noDisplay, "boolean", !myWidget.noDisplay);
//==== TEST_CRITERIA AE AT ARO
test(function () {
- var id = "apiwidserv.widget3", myWidget;
+ var id, myWidget;
+
+ if(tizen.systeminfo.getCapability("http://tizen.org/feature/platform.core.cpu.arch.armv7")){
+ if(tizen.systeminfo.getCapability("http://tizen.org/feature/platform.core.cpu.arch") === 'aarch64'){
+ id = "apiwidserv.widgetaarch64";
+ console.log(id);
+ }else{
+ id = "apiwidserv.widgetarm";
+ console.log(id);
+ }
+ }
+ else if(tizen.systeminfo.getCapability("http://tizen.org/feature/platform.core.cpu.arch.x86")){
+ if(tizen.systeminfo.getCapability("http://tizen.org/feature/platform.core.cpu.arch") === 'x86_64'){
+ id = "apiwidserv.widgetx86_64";
+ console.log(id);
+ }else{
+ id = "apiwidserv.widgetx86";
+ console.log(id);
+ }
+ }
myWidget = tizen.widgetservice.getWidget(id);
check_readonly(myWidget, "packageId", myWidget.packageId, "string", "org.tizen.contacts");
//==== SPEC_URL TBD
//==== PRIORITY P1
//==== EXECUTION_TYPE manual
-//==== PRE "widget3" widget should be added to home screen.
+//==== PRE 32 bit TARGET : "widgetarm" widget should be added to home screen.
+//==== 64 bit TARGET : "widgetaarch64" widget should be added to home screen.
+//==== 32 bit EMULATOR : "widgetx86" widget should be added to home screen.
+//==== 64 bit EMULATOR : "widgetx86_64" widget should be added to home screen.
//==== STEP press [Run] button in the test case.
//==== EXPECT test case is passed.
//==== ONLOAD_DELAY 120
t.done();
});
- id = "apiwidserv.widget3";
+ if(tizen.systeminfo.getCapability("http://tizen.org/feature/platform.core.cpu.arch.armv7")){
+ if(tizen.systeminfo.getCapability("http://tizen.org/feature/platform.core.cpu.arch") === 'aarch64'){
+ id = "apiwidserv.widgetaarch64";
+ console.log(id);
+ }else{
+ id = "apiwidserv.widgetarm";
+ console.log(id);
+ }
+ }
+ else if(tizen.systeminfo.getCapability("http://tizen.org/feature/platform.core.cpu.arch.x86")){
+ if(tizen.systeminfo.getCapability("http://tizen.org/feature/platform.core.cpu.arch") === 'x86_64'){
+ id = "apiwidserv.widgetx86_64";
+ console.log(id);
+ }else{
+ id = "apiwidserv.widgetx86";
+ console.log(id);
+ }
+ }
+
myWidget = tizen.widgetservice.getWidget(id);
watchId = myWidget.addStateChangeListener(widgetChangeCb);
- alert("Go to home screen to delete 'test' widget before press [OK] button");
+ alert("Go to home screen to delete the added widget before press [OK] button");
});
</script>
//==== TEST_CRITERIA ME
test(function () {
- var id = "apiwidserv.widget3", myWidget;
+ var id, myWidget;
+
+ if(tizen.systeminfo.getCapability("http://tizen.org/feature/platform.core.cpu.arch.armv7")){
+ if(tizen.systeminfo.getCapability("http://tizen.org/feature/platform.core.cpu.arch") === 'aarch64'){
+ id = "apiwidserv.widgetaarch64";
+ console.log(id);
+ }else{
+ id = "apiwidserv.widgetarm";
+ console.log(id);
+ }
+ }
+ else if(tizen.systeminfo.getCapability("http://tizen.org/feature/platform.core.cpu.arch.x86")){
+ if(tizen.systeminfo.getCapability("http://tizen.org/feature/platform.core.cpu.arch") === 'x86_64'){
+ id = "apiwidserv.widgetx86_64";
+ console.log(id);
+ }else{
+ id = "apiwidserv.widgetx86";
+ console.log(id);
+ }
+ }
myWidget = tizen.widgetservice.getWidget(id);
check_method_exists(myWidget, "removeStateChangeListener");
//==== TEST_CRITERIA AE AT ARO
test(function () {
- var id = "apiwidserv.widget3", myWidget;
+ var id, myWidget;
+
+ if(tizen.systeminfo.getCapability("http://tizen.org/feature/platform.core.cpu.arch.armv7")){
+ if(tizen.systeminfo.getCapability("http://tizen.org/feature/platform.core.cpu.arch") === 'aarch64'){
+ id = "apiwidserv.widgetaarch64";
+ console.log(id);
+ }else{
+ id = "apiwidserv.widgetarm";
+ console.log(id);
+ }
+ }
+ else if(tizen.systeminfo.getCapability("http://tizen.org/feature/platform.core.cpu.arch.x86")){
+ if(tizen.systeminfo.getCapability("http://tizen.org/feature/platform.core.cpu.arch") === 'x86_64'){
+ id = "apiwidserv.widgetx86_64";
+ console.log(id);
+ }else{
+ id = "apiwidserv.widgetx86";
+ console.log(id);
+ }
+ }
+
myWidget = tizen.widgetservice.getWidget(id);
check_readonly(myWidget, "setupApplicationId", myWidget.setupApplicationId, "string", "org.tizen.contacts");
}, document.title);