From: mengli.zhang Date: Fri, 20 Jan 2017 18:53:20 +0000 (-0500) Subject: [mobile][widgetservice][sync test case from suprem] X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=0bef35a9de07c8c432b6f34610d628d3b3dfd6c8;p=test%2Ftct%2Fweb%2Fapi.git [mobile][widgetservice][sync test case from suprem] Change-Id: Ib7872791a14c277610061e934c5a13e30a04b43c Signed-off-by: mengli.zhang --- diff --git a/mobile/tct-widgetservice-tizen-tests/bin/widget3 b/mobile/tct-widgetservice-tizen-tests/bin/widget3 deleted file mode 100644 index 7b5e0ccee..000000000 Binary files a/mobile/tct-widgetservice-tizen-tests/bin/widget3 and /dev/null differ diff --git a/mobile/tct-widgetservice-tizen-tests/bin/widgetaarch64 b/mobile/tct-widgetservice-tizen-tests/bin/widgetaarch64 new file mode 100755 index 000000000..d520e91e0 Binary files /dev/null and b/mobile/tct-widgetservice-tizen-tests/bin/widgetaarch64 differ diff --git a/mobile/tct-widgetservice-tizen-tests/bin/widgetarm b/mobile/tct-widgetservice-tizen-tests/bin/widgetarm new file mode 100644 index 000000000..bbf5c874c Binary files /dev/null and b/mobile/tct-widgetservice-tizen-tests/bin/widgetarm differ diff --git a/mobile/tct-widgetservice-tizen-tests/bin/widgetx86 b/mobile/tct-widgetservice-tizen-tests/bin/widgetx86 new file mode 100755 index 000000000..935f3abd6 Binary files /dev/null and b/mobile/tct-widgetservice-tizen-tests/bin/widgetx86 differ diff --git a/mobile/tct-widgetservice-tizen-tests/bin/widgetx86_64 b/mobile/tct-widgetservice-tizen-tests/bin/widgetx86_64 new file mode 100755 index 000000000..55bb17d92 Binary files /dev/null and b/mobile/tct-widgetservice-tizen-tests/bin/widgetx86_64 differ diff --git a/mobile/tct-widgetservice-tizen-tests/inst.wgt.py b/mobile/tct-widgetservice-tizen-tests/inst.wgt.py index ae722388c..5e4c91713 100644 --- a/mobile/tct-widgetservice-tizen-tests/inst.wgt.py +++ b/mobile/tct-widgetservice-tizen-tests/inst.wgt.py @@ -20,7 +20,15 @@ tct_parser = ConfigParser.ConfigParser() 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 @@ -116,7 +124,7 @@ def uninstPKGs(): 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 @@ -145,7 +153,7 @@ def instPKGs(): 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: @@ -187,7 +195,7 @@ def main(): sys.exit(1) if not PARAMETERS.user: - PARAMETERS.user = "owner" + PARAMETERS.user = EXECUTION_MODE_30 if not PARAMETERS.mode: PARAMETERS.mode = "SDB" @@ -205,6 +213,8 @@ def main(): print "No device provided" sys.exit(1) + userCheck() + user_info = getUSERID() re_code = user_info[0] if re_code == 0 : diff --git a/mobile/tct-widgetservice-tizen-tests/tests.full.xml b/mobile/tct-widgetservice-tizen-tests/tests.full.xml index 23f483eed..b08d7aeff 100644 --- a/mobile/tct-widgetservice-tizen-tests/tests.full.xml +++ b/mobile/tct-widgetservice-tizen-tests/tests.full.xml @@ -44,7 +44,10 @@ - "widget3" widget should be added to home screen. + 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. press [Run] button in the test case. @@ -75,7 +78,10 @@ - "widget3" widget should be added to home screen. + 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. press [Run] button in the test case. @@ -94,7 +100,10 @@ - "widget3" widget should be added to home screen. + 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. press [Run] button in the test case. @@ -113,7 +122,10 @@ - "widget3" widget should be added to home screen. + 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. press [Run] button in the test case. @@ -132,7 +144,10 @@ - "widget3" widget should be added to home screen. + 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. press [Run] button in the test case. @@ -151,7 +166,10 @@ - "widget3" widget should be added to home screen. + 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. press [Run] button in the test case. @@ -170,7 +188,10 @@ - "widget3" widget should be added to home screen. + 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. press [Run] button in the test case. @@ -189,7 +210,10 @@ - "widget3" widget should be added to home screen. + 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. press [Run] button in the test case. @@ -208,7 +232,10 @@ - "widget3" widget should be added to home screen. + 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. press [Run] button in the test case. @@ -227,7 +254,10 @@ - "widget3" widget should be added to home screen. + 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. press [Run] button in the test case. @@ -246,7 +276,10 @@ - "widget3" widget should be added to home screen. + 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. press [Run] button in the test case. @@ -265,7 +298,10 @@ - "widget3" widget should be added to home screen. + 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. press [Run] button in the test case. @@ -284,7 +320,10 @@ - "widget3" widget should be added to home screen. + 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. press [Run] button in the test case. @@ -303,7 +342,10 @@ - "widget3" widget should be added to home screen. + 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. press [Run] button in the test case. @@ -334,7 +376,10 @@ - "widget3" widget should be added to home screen. + 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. press [Run] button in the test case. @@ -353,7 +398,10 @@ - "widget3" widget should be added to home screen. + 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. press [Run] button in the test case. @@ -372,7 +420,10 @@ - "widget3" widget should be added to home screen. + 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. press [Run] button in the test case. @@ -391,7 +442,10 @@ - "widget3" widget should be added to home screen. + 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. press [Run] button in the test case. @@ -410,7 +464,10 @@ - "widget3" widget should be added to home screen. + 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. press [Run] button in the test case. @@ -441,7 +498,10 @@ - "widget3" widget should be added to home screen. + 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. press [Run] button in the test case. @@ -904,7 +964,10 @@ - "widget3" widget should be added to home screen. + 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. press [Run] button in the test case. @@ -995,7 +1058,10 @@ - "widget3" widget should be added to home screen. + 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. press [Run] button in the test case. @@ -1098,7 +1164,10 @@ - "widget3" widget should be added to home screen. + 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. press [Run] button in the test case. @@ -1333,7 +1402,10 @@ - "widget3" widget should be added to home screen. + 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. press [Run] button in the test case. diff --git a/mobile/tct-widgetservice-tizen-tests/tests.xml b/mobile/tct-widgetservice-tizen-tests/tests.xml index 809201971..c38e5ea64 100644 --- a/mobile/tct-widgetservice-tizen-tests/tests.xml +++ b/mobile/tct-widgetservice-tizen-tests/tests.xml @@ -23,7 +23,10 @@ - "widget3" widget should be added to home screen. + 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. press [Run] button in the test case. @@ -40,7 +43,10 @@ - "widget3" widget should be added to home screen. + 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. press [Run] button in the test case. @@ -52,7 +58,10 @@ - "widget3" widget should be added to home screen. + 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. press [Run] button in the test case. @@ -64,7 +73,10 @@ - "widget3" widget should be added to home screen. + 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. press [Run] button in the test case. @@ -76,7 +88,10 @@ - "widget3" widget should be added to home screen. + 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. press [Run] button in the test case. @@ -88,7 +103,10 @@ - "widget3" widget should be added to home screen. + 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. press [Run] button in the test case. @@ -100,7 +118,10 @@ - "widget3" widget should be added to home screen. + 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. press [Run] button in the test case. @@ -112,7 +133,10 @@ - "widget3" widget should be added to home screen. + 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. press [Run] button in the test case. @@ -124,7 +148,10 @@ - "widget3" widget should be added to home screen. + 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. press [Run] button in the test case. @@ -136,7 +163,10 @@ - "widget3" widget should be added to home screen. + 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. press [Run] button in the test case. @@ -148,7 +178,10 @@ - "widget3" widget should be added to home screen. + 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. press [Run] button in the test case. @@ -160,7 +193,10 @@ - "widget3" widget should be added to home screen. + 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. press [Run] button in the test case. @@ -172,7 +208,10 @@ - "widget3" widget should be added to home screen. + 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. press [Run] button in the test case. @@ -184,7 +223,10 @@ - "widget3" widget should be added to home screen. + 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. press [Run] button in the test case. @@ -201,7 +243,10 @@ - "widget3" widget should be added to home screen. + 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. press [Run] button in the test case. @@ -213,7 +258,10 @@ - "widget3" widget should be added to home screen. + 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. press [Run] button in the test case. @@ -225,7 +273,10 @@ - "widget3" widget should be added to home screen. + 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. press [Run] button in the test case. @@ -237,7 +288,10 @@ - "widget3" widget should be added to home screen. + 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. press [Run] button in the test case. @@ -249,7 +303,10 @@ - "widget3" widget should be added to home screen. + 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. press [Run] button in the test case. @@ -266,7 +323,10 @@ - "widget3" widget should be added to home screen. + 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. press [Run] button in the test case. @@ -463,7 +523,10 @@ - "widget3" widget should be added to home screen. + 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. press [Run] button in the test case. @@ -505,7 +568,10 @@ - "widget3" widget should be added to home screen. + 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. press [Run] button in the test case. @@ -552,7 +618,10 @@ - "widget3" widget should be added to home screen. + 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. press [Run] button in the test case. @@ -654,7 +723,10 @@ - "widget3" widget should be added to home screen. + 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. press [Run] button in the test case. diff --git a/mobile/tct-widgetservice-tizen-tests/tizen-manifest.xml b/mobile/tct-widgetservice-tizen-tests/tizen-manifest.xml index 686bc509e..cadd4508e 100644 --- a/mobile/tct-widgetservice-tizen-tests/tizen-manifest.xml +++ b/mobile/tct-widgetservice-tizen-tests/tizen-manifest.xml @@ -1,9 +1,24 @@ - + - - + + icon.png 4x4 - \ No newline at end of file + + + icon.png + 4x4 + + + + icon.png + 4x4 + + + + icon.png + 4x4 + + diff --git a/mobile/tct-widgetservice-tizen-tests/widgetservice/WidgetChangeCallback_onchange.html b/mobile/tct-widgetservice-tizen-tests/widgetservice/WidgetChangeCallback_onchange.html index 158df9891..074f7c4b0 100644 --- a/mobile/tct-widgetservice-tizen-tests/widgetservice/WidgetChangeCallback_onchange.html +++ b/mobile/tct-widgetservice-tizen-tests/widgetservice/WidgetChangeCallback_onchange.html @@ -33,7 +33,10 @@ Authors: //==== 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 @@ -63,10 +66,28 @@ t.step(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); 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"); }); diff --git a/mobile/tct-widgetservice-tizen-tests/widgetservice/WidgetContentCallback_onsuccess.html b/mobile/tct-widgetservice-tizen-tests/widgetservice/WidgetContentCallback_onsuccess.html index 97096598a..d443379b1 100644 --- a/mobile/tct-widgetservice-tizen-tests/widgetservice/WidgetContentCallback_onsuccess.html +++ b/mobile/tct-widgetservice-tizen-tests/widgetservice/WidgetContentCallback_onsuccess.html @@ -33,7 +33,10 @@ Authors: //==== 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 @@ -65,7 +68,25 @@ t.step(function () { 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); }); diff --git a/mobile/tct-widgetservice-tizen-tests/widgetservice/WidgetInstance_changeUpdatePeriod.html b/mobile/tct-widgetservice-tizen-tests/widgetservice/WidgetInstance_changeUpdatePeriod.html index 2afaf2d47..cd4343607 100644 --- a/mobile/tct-widgetservice-tizen-tests/widgetservice/WidgetInstance_changeUpdatePeriod.html +++ b/mobile/tct-widgetservice-tizen-tests/widgetservice/WidgetInstance_changeUpdatePeriod.html @@ -33,7 +33,10 @@ Authors: //==== 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 @@ -55,7 +58,25 @@ t.step(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); myWidget.getInstances(widgetSuccessCb, widgetErrorCb); }); diff --git a/mobile/tct-widgetservice-tizen-tests/widgetservice/WidgetInstance_changeUpdatePeriod_exist.html b/mobile/tct-widgetservice-tizen-tests/widgetservice/WidgetInstance_changeUpdatePeriod_exist.html index 1560cb439..f574b22b2 100644 --- a/mobile/tct-widgetservice-tizen-tests/widgetservice/WidgetInstance_changeUpdatePeriod_exist.html +++ b/mobile/tct-widgetservice-tizen-tests/widgetservice/WidgetInstance_changeUpdatePeriod_exist.html @@ -33,7 +33,10 @@ Authors: //==== 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 @@ -54,7 +57,25 @@ t.step(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); myWidget.getInstances(widgetSuccessCb, widgetErrorCb); }); diff --git a/mobile/tct-widgetservice-tizen-tests/widgetservice/WidgetInstance_changeUpdatePeriod_seconds_invalid.html b/mobile/tct-widgetservice-tizen-tests/widgetservice/WidgetInstance_changeUpdatePeriod_seconds_invalid.html index 9c73d9745..45d701b21 100644 --- a/mobile/tct-widgetservice-tizen-tests/widgetservice/WidgetInstance_changeUpdatePeriod_seconds_invalid.html +++ b/mobile/tct-widgetservice-tizen-tests/widgetservice/WidgetInstance_changeUpdatePeriod_seconds_invalid.html @@ -33,7 +33,10 @@ Authors: //==== 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 @@ -56,7 +59,25 @@ t.step(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); myWidget.getInstances(widgetSuccessCb, widgetErrorCb); }); diff --git a/mobile/tct-widgetservice-tizen-tests/widgetservice/WidgetInstance_extend.html b/mobile/tct-widgetservice-tizen-tests/widgetservice/WidgetInstance_extend.html index 5fd24da7d..c1a2244ca 100644 --- a/mobile/tct-widgetservice-tizen-tests/widgetservice/WidgetInstance_extend.html +++ b/mobile/tct-widgetservice-tizen-tests/widgetservice/WidgetInstance_extend.html @@ -33,7 +33,10 @@ Authors: //==== 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 @@ -54,7 +57,25 @@ t.step(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); myWidget.getInstances(widgetSuccessCb, widgetErrorCb); }); diff --git a/mobile/tct-widgetservice-tizen-tests/widgetservice/WidgetInstance_getContent.html b/mobile/tct-widgetservice-tizen-tests/widgetservice/WidgetInstance_getContent.html index 1a117f4b0..efab3eead 100644 --- a/mobile/tct-widgetservice-tizen-tests/widgetservice/WidgetInstance_getContent.html +++ b/mobile/tct-widgetservice-tizen-tests/widgetservice/WidgetInstance_getContent.html @@ -33,7 +33,10 @@ Authors: //==== 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 @@ -63,7 +66,25 @@ t.step(function () { 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); }); diff --git a/mobile/tct-widgetservice-tizen-tests/widgetservice/WidgetInstance_getContent_errorCallback_TypeMismatch.html b/mobile/tct-widgetservice-tizen-tests/widgetservice/WidgetInstance_getContent_errorCallback_TypeMismatch.html index bae9f49e7..3bd577bd3 100644 --- a/mobile/tct-widgetservice-tizen-tests/widgetservice/WidgetInstance_getContent_errorCallback_TypeMismatch.html +++ b/mobile/tct-widgetservice-tizen-tests/widgetservice/WidgetInstance_getContent_errorCallback_TypeMismatch.html @@ -33,7 +33,10 @@ Authors: //==== 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 @@ -64,7 +67,25 @@ t.step(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); myWidget.getInstances(widgetSuccessCb, widgetErrorCb); }); diff --git a/mobile/tct-widgetservice-tizen-tests/widgetservice/WidgetInstance_getContent_errorCallback_invalid_cb.html b/mobile/tct-widgetservice-tizen-tests/widgetservice/WidgetInstance_getContent_errorCallback_invalid_cb.html index 9f9b3710b..9d67751b7 100644 --- a/mobile/tct-widgetservice-tizen-tests/widgetservice/WidgetInstance_getContent_errorCallback_invalid_cb.html +++ b/mobile/tct-widgetservice-tizen-tests/widgetservice/WidgetInstance_getContent_errorCallback_invalid_cb.html @@ -33,7 +33,10 @@ Authors: //==== 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 @@ -67,7 +70,25 @@ t.step(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); myWidget.getInstances(widgetSuccessCb, widgetErrorCb); }); diff --git a/mobile/tct-widgetservice-tizen-tests/widgetservice/WidgetInstance_getContent_exist.html b/mobile/tct-widgetservice-tizen-tests/widgetservice/WidgetInstance_getContent_exist.html index e254b6911..5648c42d9 100644 --- a/mobile/tct-widgetservice-tizen-tests/widgetservice/WidgetInstance_getContent_exist.html +++ b/mobile/tct-widgetservice-tizen-tests/widgetservice/WidgetInstance_getContent_exist.html @@ -33,7 +33,10 @@ Authors: //==== 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 @@ -54,7 +57,25 @@ t.step(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); myWidget.getInstances(widgetSuccessCb, widgetErrorCb); }); diff --git a/mobile/tct-widgetservice-tizen-tests/widgetservice/WidgetInstance_getContent_misarg.html b/mobile/tct-widgetservice-tizen-tests/widgetservice/WidgetInstance_getContent_misarg.html index d8256ffae..4d7d1ffba 100644 --- a/mobile/tct-widgetservice-tizen-tests/widgetservice/WidgetInstance_getContent_misarg.html +++ b/mobile/tct-widgetservice-tizen-tests/widgetservice/WidgetInstance_getContent_misarg.html @@ -33,7 +33,10 @@ Authors: //==== 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 @@ -56,7 +59,25 @@ t.step(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); myWidget.getInstances(widgetSuccessCb, widgetErrorCb); }); diff --git a/mobile/tct-widgetservice-tizen-tests/widgetservice/WidgetInstance_getContent_successCallback_TypeMismatch.html b/mobile/tct-widgetservice-tizen-tests/widgetservice/WidgetInstance_getContent_successCallback_TypeMismatch.html index 99576ee45..039a2f475 100644 --- a/mobile/tct-widgetservice-tizen-tests/widgetservice/WidgetInstance_getContent_successCallback_TypeMismatch.html +++ b/mobile/tct-widgetservice-tizen-tests/widgetservice/WidgetInstance_getContent_successCallback_TypeMismatch.html @@ -33,7 +33,10 @@ Authors: //==== 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 @@ -64,7 +67,25 @@ t.step(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); myWidget.getInstances(widgetSuccessCb, widgetErrorCb); }); diff --git a/mobile/tct-widgetservice-tizen-tests/widgetservice/WidgetInstance_getContent_successCallback_invalid_cb.html b/mobile/tct-widgetservice-tizen-tests/widgetservice/WidgetInstance_getContent_successCallback_invalid_cb.html index a3f846fbd..e3b666e75 100644 --- a/mobile/tct-widgetservice-tizen-tests/widgetservice/WidgetInstance_getContent_successCallback_invalid_cb.html +++ b/mobile/tct-widgetservice-tizen-tests/widgetservice/WidgetInstance_getContent_successCallback_invalid_cb.html @@ -33,7 +33,10 @@ Authors: //==== 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 @@ -67,7 +70,25 @@ t.step(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); myWidget.getInstances(widgetSuccessCb, widgetErrorCb); }); diff --git a/mobile/tct-widgetservice-tizen-tests/widgetservice/WidgetInstance_id_attribute.html b/mobile/tct-widgetservice-tizen-tests/widgetservice/WidgetInstance_id_attribute.html index ddc001c7f..9711a0e8a 100644 --- a/mobile/tct-widgetservice-tizen-tests/widgetservice/WidgetInstance_id_attribute.html +++ b/mobile/tct-widgetservice-tizen-tests/widgetservice/WidgetInstance_id_attribute.html @@ -33,7 +33,10 @@ Authors: //==== 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 @@ -54,7 +57,25 @@ t.step(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); myWidget.getInstances(widgetSuccessCb, widgetErrorCb); }); diff --git a/mobile/tct-widgetservice-tizen-tests/widgetservice/WidgetInstance_sendContent.html b/mobile/tct-widgetservice-tizen-tests/widgetservice/WidgetInstance_sendContent.html index d189710ca..f2336d414 100644 --- a/mobile/tct-widgetservice-tizen-tests/widgetservice/WidgetInstance_sendContent.html +++ b/mobile/tct-widgetservice-tizen-tests/widgetservice/WidgetInstance_sendContent.html @@ -33,7 +33,10 @@ Authors: //==== 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 @@ -56,7 +59,25 @@ t.step(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); data = { data1 : 'test1', diff --git a/mobile/tct-widgetservice-tizen-tests/widgetservice/WidgetInstance_sendContent_data_TypeMismatch.html b/mobile/tct-widgetservice-tizen-tests/widgetservice/WidgetInstance_sendContent_data_TypeMismatch.html index b10be8c7c..8d80e64c7 100644 --- a/mobile/tct-widgetservice-tizen-tests/widgetservice/WidgetInstance_sendContent_data_TypeMismatch.html +++ b/mobile/tct-widgetservice-tizen-tests/widgetservice/WidgetInstance_sendContent_data_TypeMismatch.html @@ -33,7 +33,10 @@ Authors: //==== 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 @@ -60,7 +63,25 @@ t.step(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); myWidget.getInstances(widgetSuccessCb, widgetErrorCb); }); diff --git a/mobile/tct-widgetservice-tizen-tests/widgetservice/WidgetInstance_sendContent_exist.html b/mobile/tct-widgetservice-tizen-tests/widgetservice/WidgetInstance_sendContent_exist.html index f8d1675a0..d01029821 100644 --- a/mobile/tct-widgetservice-tizen-tests/widgetservice/WidgetInstance_sendContent_exist.html +++ b/mobile/tct-widgetservice-tizen-tests/widgetservice/WidgetInstance_sendContent_exist.html @@ -33,7 +33,10 @@ Authors: //==== 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 @@ -54,7 +57,25 @@ t.step(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); myWidget.getInstances(widgetSuccessCb, widgetErrorCb); }); diff --git a/mobile/tct-widgetservice-tizen-tests/widgetservice/WidgetInstance_sendContent_misarg.html b/mobile/tct-widgetservice-tizen-tests/widgetservice/WidgetInstance_sendContent_misarg.html index 9e40616e5..4b5fa3907 100644 --- a/mobile/tct-widgetservice-tizen-tests/widgetservice/WidgetInstance_sendContent_misarg.html +++ b/mobile/tct-widgetservice-tizen-tests/widgetservice/WidgetInstance_sendContent_misarg.html @@ -33,7 +33,10 @@ Authors: //==== 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 @@ -56,7 +59,25 @@ t.step(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); myWidget.getInstances(widgetSuccessCb, widgetErrorCb); }); diff --git a/mobile/tct-widgetservice-tizen-tests/widgetservice/WidgetInstance_widget_attribute.html b/mobile/tct-widgetservice-tizen-tests/widgetservice/WidgetInstance_widget_attribute.html index 9c9bd706c..01ced8eb2 100644 --- a/mobile/tct-widgetservice-tizen-tests/widgetservice/WidgetInstance_widget_attribute.html +++ b/mobile/tct-widgetservice-tizen-tests/widgetservice/WidgetInstance_widget_attribute.html @@ -33,7 +33,10 @@ Authors: //==== 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 @@ -57,7 +60,25 @@ t.step(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); myWidget.getInstances(widgetSuccessCb, widgetErrorCb); }); diff --git a/mobile/tct-widgetservice-tizen-tests/widgetservice/WidgetInstancesCallback_onsuccess.html b/mobile/tct-widgetservice-tizen-tests/widgetservice/WidgetInstancesCallback_onsuccess.html index 8e86db2f1..ea8a4ea31 100644 --- a/mobile/tct-widgetservice-tizen-tests/widgetservice/WidgetInstancesCallback_onsuccess.html +++ b/mobile/tct-widgetservice-tizen-tests/widgetservice/WidgetInstancesCallback_onsuccess.html @@ -33,7 +33,10 @@ Authors: //==== 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 @@ -54,7 +57,25 @@ t.step(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); myWidget.getInstances(widgetSuccessCb, widgetErrorCb); }); diff --git a/mobile/tct-widgetservice-tizen-tests/widgetservice/WidgetServiceManager_getPrimaryWidgetId.html b/mobile/tct-widgetservice-tizen-tests/widgetservice/WidgetServiceManager_getPrimaryWidgetId.html index 63cf67c10..4f1132cfc 100644 --- a/mobile/tct-widgetservice-tizen-tests/widgetservice/WidgetServiceManager_getPrimaryWidgetId.html +++ b/mobile/tct-widgetservice-tizen-tests/widgetservice/WidgetServiceManager_getPrimaryWidgetId.html @@ -35,8 +35,9 @@ Authors: //==== 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."); diff --git a/mobile/tct-widgetservice-tizen-tests/widgetservice/WidgetServiceManager_getWidget.html b/mobile/tct-widgetservice-tizen-tests/widgetservice/WidgetServiceManager_getWidget.html index 97b57923b..c364d5801 100644 --- a/mobile/tct-widgetservice-tizen-tests/widgetservice/WidgetServiceManager_getWidget.html +++ b/mobile/tct-widgetservice-tizen-tests/widgetservice/WidgetServiceManager_getWidget.html @@ -35,7 +35,26 @@ Authors: //==== 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"); diff --git a/mobile/tct-widgetservice-tizen-tests/widgetservice/WidgetVariant_extend.html b/mobile/tct-widgetservice-tizen-tests/widgetservice/WidgetVariant_extend.html index b4d972b2a..7c5c95175 100644 --- a/mobile/tct-widgetservice-tizen-tests/widgetservice/WidgetVariant_extend.html +++ b/mobile/tct-widgetservice-tizen-tests/widgetservice/WidgetVariant_extend.html @@ -35,7 +35,26 @@ Authors: //==== 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"); diff --git a/mobile/tct-widgetservice-tizen-tests/widgetservice/WidgetVariant_height_attribute.html b/mobile/tct-widgetservice-tizen-tests/widgetservice/WidgetVariant_height_attribute.html index 860c71be2..e5b2ca08d 100644 --- a/mobile/tct-widgetservice-tizen-tests/widgetservice/WidgetVariant_height_attribute.html +++ b/mobile/tct-widgetservice-tizen-tests/widgetservice/WidgetVariant_height_attribute.html @@ -35,7 +35,26 @@ Authors: //==== 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"); diff --git a/mobile/tct-widgetservice-tizen-tests/widgetservice/WidgetVariant_needsFrame_attribute.html b/mobile/tct-widgetservice-tizen-tests/widgetservice/WidgetVariant_needsFrame_attribute.html index f79630b52..acb6e7c22 100644 --- a/mobile/tct-widgetservice-tizen-tests/widgetservice/WidgetVariant_needsFrame_attribute.html +++ b/mobile/tct-widgetservice-tizen-tests/widgetservice/WidgetVariant_needsFrame_attribute.html @@ -35,7 +35,26 @@ Authors: //==== 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"); diff --git a/mobile/tct-widgetservice-tizen-tests/widgetservice/WidgetVariant_needsMouseEvents_attribute.html b/mobile/tct-widgetservice-tizen-tests/widgetservice/WidgetVariant_needsMouseEvents_attribute.html index c35e4b15c..4a147144c 100644 --- a/mobile/tct-widgetservice-tizen-tests/widgetservice/WidgetVariant_needsMouseEvents_attribute.html +++ b/mobile/tct-widgetservice-tizen-tests/widgetservice/WidgetVariant_needsMouseEvents_attribute.html @@ -35,7 +35,26 @@ Authors: //==== 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"); diff --git a/mobile/tct-widgetservice-tizen-tests/widgetservice/WidgetVariant_needsTouchEffect_attribute.html b/mobile/tct-widgetservice-tizen-tests/widgetservice/WidgetVariant_needsTouchEffect_attribute.html index 2ca6fea01..6cb4e046d 100644 --- a/mobile/tct-widgetservice-tizen-tests/widgetservice/WidgetVariant_needsTouchEffect_attribute.html +++ b/mobile/tct-widgetservice-tizen-tests/widgetservice/WidgetVariant_needsTouchEffect_attribute.html @@ -35,7 +35,26 @@ Authors: //==== 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"); diff --git a/mobile/tct-widgetservice-tizen-tests/widgetservice/WidgetVariant_previewImagePath_attribute.html b/mobile/tct-widgetservice-tizen-tests/widgetservice/WidgetVariant_previewImagePath_attribute.html index bb0dc00e9..3536e4f38 100644 --- a/mobile/tct-widgetservice-tizen-tests/widgetservice/WidgetVariant_previewImagePath_attribute.html +++ b/mobile/tct-widgetservice-tizen-tests/widgetservice/WidgetVariant_previewImagePath_attribute.html @@ -35,7 +35,26 @@ Authors: //==== 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"); diff --git a/mobile/tct-widgetservice-tizen-tests/widgetservice/WidgetVariant_sizeType_attribute.html b/mobile/tct-widgetservice-tizen-tests/widgetservice/WidgetVariant_sizeType_attribute.html index 33fb00e19..eeadc604d 100644 --- a/mobile/tct-widgetservice-tizen-tests/widgetservice/WidgetVariant_sizeType_attribute.html +++ b/mobile/tct-widgetservice-tizen-tests/widgetservice/WidgetVariant_sizeType_attribute.html @@ -35,7 +35,26 @@ Authors: //==== 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"); diff --git a/mobile/tct-widgetservice-tizen-tests/widgetservice/WidgetVariant_width_attribute.html b/mobile/tct-widgetservice-tizen-tests/widgetservice/WidgetVariant_width_attribute.html index ba5ad8453..5ad1f4800 100644 --- a/mobile/tct-widgetservice-tizen-tests/widgetservice/WidgetVariant_width_attribute.html +++ b/mobile/tct-widgetservice-tizen-tests/widgetservice/WidgetVariant_width_attribute.html @@ -35,7 +35,26 @@ Authors: //==== 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"); diff --git a/mobile/tct-widgetservice-tizen-tests/widgetservice/WidgetVariantsCallback_onsuccess.html b/mobile/tct-widgetservice-tizen-tests/widgetservice/WidgetVariantsCallback_onsuccess.html index 962832700..a1e7ccafe 100644 --- a/mobile/tct-widgetservice-tizen-tests/widgetservice/WidgetVariantsCallback_onsuccess.html +++ b/mobile/tct-widgetservice-tizen-tests/widgetservice/WidgetVariantsCallback_onsuccess.html @@ -45,7 +45,25 @@ t.step(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); myWidget.getVariants(widgetSuccessCb); }); diff --git a/mobile/tct-widgetservice-tizen-tests/widgetservice/Widget_addStateChangeListener.html b/mobile/tct-widgetservice-tizen-tests/widgetservice/Widget_addStateChangeListener.html index d96aa68d0..decb8f846 100644 --- a/mobile/tct-widgetservice-tizen-tests/widgetservice/Widget_addStateChangeListener.html +++ b/mobile/tct-widgetservice-tizen-tests/widgetservice/Widget_addStateChangeListener.html @@ -34,7 +34,10 @@ Authors: //==== 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 @@ -57,10 +60,28 @@ t.step(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); 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"); }); diff --git a/mobile/tct-widgetservice-tizen-tests/widgetservice/Widget_addStateChangeListener_callback_TypeMismatch.html b/mobile/tct-widgetservice-tizen-tests/widgetservice/Widget_addStateChangeListener_callback_TypeMismatch.html index f1fd9819c..69c11d0e6 100644 --- a/mobile/tct-widgetservice-tizen-tests/widgetservice/Widget_addStateChangeListener_callback_TypeMismatch.html +++ b/mobile/tct-widgetservice-tizen-tests/widgetservice/Widget_addStateChangeListener_callback_TypeMismatch.html @@ -38,7 +38,25 @@ Authors: 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++) { diff --git a/mobile/tct-widgetservice-tizen-tests/widgetservice/Widget_addStateChangeListener_callback_invalid_cb.html b/mobile/tct-widgetservice-tizen-tests/widgetservice/Widget_addStateChangeListener_callback_invalid_cb.html index 63827fd4b..c698280a6 100644 --- a/mobile/tct-widgetservice-tizen-tests/widgetservice/Widget_addStateChangeListener_callback_invalid_cb.html +++ b/mobile/tct-widgetservice-tizen-tests/widgetservice/Widget_addStateChangeListener_callback_invalid_cb.html @@ -38,7 +38,25 @@ Authors: 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++) { diff --git a/mobile/tct-widgetservice-tizen-tests/widgetservice/Widget_addStateChangeListener_exist.html b/mobile/tct-widgetservice-tizen-tests/widgetservice/Widget_addStateChangeListener_exist.html index 977248d09..76dc569f4 100644 --- a/mobile/tct-widgetservice-tizen-tests/widgetservice/Widget_addStateChangeListener_exist.html +++ b/mobile/tct-widgetservice-tizen-tests/widgetservice/Widget_addStateChangeListener_exist.html @@ -36,7 +36,12 @@ Authors: //==== 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"); diff --git a/mobile/tct-widgetservice-tizen-tests/widgetservice/Widget_addStateChangeListener_misarg.html b/mobile/tct-widgetservice-tizen-tests/widgetservice/Widget_addStateChangeListener_misarg.html index 3b822e87d..04bb609b2 100644 --- a/mobile/tct-widgetservice-tizen-tests/widgetservice/Widget_addStateChangeListener_misarg.html +++ b/mobile/tct-widgetservice-tizen-tests/widgetservice/Widget_addStateChangeListener_misarg.html @@ -36,7 +36,12 @@ Authors: //==== 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 () { diff --git a/mobile/tct-widgetservice-tizen-tests/widgetservice/Widget_applicationId_attribute.html b/mobile/tct-widgetservice-tizen-tests/widgetservice/Widget_applicationId_attribute.html index 6e0aa6969..423dcb2d2 100644 --- a/mobile/tct-widgetservice-tizen-tests/widgetservice/Widget_applicationId_attribute.html +++ b/mobile/tct-widgetservice-tizen-tests/widgetservice/Widget_applicationId_attribute.html @@ -35,7 +35,12 @@ Authors: //==== 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"); diff --git a/mobile/tct-widgetservice-tizen-tests/widgetservice/Widget_extend.html b/mobile/tct-widgetservice-tizen-tests/widgetservice/Widget_extend.html index 29b7b148c..679fe6979 100644 --- a/mobile/tct-widgetservice-tizen-tests/widgetservice/Widget_extend.html +++ b/mobile/tct-widgetservice-tizen-tests/widgetservice/Widget_extend.html @@ -35,7 +35,12 @@ Authors: //==== 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); diff --git a/mobile/tct-widgetservice-tizen-tests/widgetservice/Widget_getInstances.html b/mobile/tct-widgetservice-tizen-tests/widgetservice/Widget_getInstances.html index a31ab6f77..5197d1427 100644 --- a/mobile/tct-widgetservice-tizen-tests/widgetservice/Widget_getInstances.html +++ b/mobile/tct-widgetservice-tizen-tests/widgetservice/Widget_getInstances.html @@ -33,7 +33,10 @@ Authors: //==== 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 @@ -49,7 +52,25 @@ t.step(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.getInstances(widgetSuccessCb); }); diff --git a/mobile/tct-widgetservice-tizen-tests/widgetservice/Widget_getInstances_errorCallback_TypeMismatch.html b/mobile/tct-widgetservice-tizen-tests/widgetservice/Widget_getInstances_errorCallback_TypeMismatch.html index cac1a4e6b..8954841e7 100644 --- a/mobile/tct-widgetservice-tizen-tests/widgetservice/Widget_getInstances_errorCallback_TypeMismatch.html +++ b/mobile/tct-widgetservice-tizen-tests/widgetservice/Widget_getInstances_errorCallback_TypeMismatch.html @@ -43,7 +43,25 @@ t.step(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); conversionTable = getTypeConversionExceptions("functionObject", true); diff --git a/mobile/tct-widgetservice-tizen-tests/widgetservice/Widget_getInstances_errorCallback_invalid_cb.html b/mobile/tct-widgetservice-tizen-tests/widgetservice/Widget_getInstances_errorCallback_invalid_cb.html index f0e1059c1..5cea5dfaf 100644 --- a/mobile/tct-widgetservice-tizen-tests/widgetservice/Widget_getInstances_errorCallback_invalid_cb.html +++ b/mobile/tct-widgetservice-tizen-tests/widgetservice/Widget_getInstances_errorCallback_invalid_cb.html @@ -49,7 +49,25 @@ t.step(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); assert_throws(TYPE_MISMATCH_EXCEPTION, function () { diff --git a/mobile/tct-widgetservice-tizen-tests/widgetservice/Widget_getInstances_errorCallback_invoked_NotFoundError.html b/mobile/tct-widgetservice-tizen-tests/widgetservice/Widget_getInstances_errorCallback_invoked_NotFoundError.html index 060733096..8d1ed2e77 100644 --- a/mobile/tct-widgetservice-tizen-tests/widgetservice/Widget_getInstances_errorCallback_invoked_NotFoundError.html +++ b/mobile/tct-widgetservice-tizen-tests/widgetservice/Widget_getInstances_errorCallback_invoked_NotFoundError.html @@ -48,7 +48,25 @@ t.step(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); }); diff --git a/mobile/tct-widgetservice-tizen-tests/widgetservice/Widget_getInstances_exist.html b/mobile/tct-widgetservice-tizen-tests/widgetservice/Widget_getInstances_exist.html index e051114b1..47c6b193a 100644 --- a/mobile/tct-widgetservice-tizen-tests/widgetservice/Widget_getInstances_exist.html +++ b/mobile/tct-widgetservice-tizen-tests/widgetservice/Widget_getInstances_exist.html @@ -35,7 +35,12 @@ Authors: //==== 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"); diff --git a/mobile/tct-widgetservice-tizen-tests/widgetservice/Widget_getInstances_misarg.html b/mobile/tct-widgetservice-tizen-tests/widgetservice/Widget_getInstances_misarg.html index aab6e9a3b..fd030bc46 100644 --- a/mobile/tct-widgetservice-tizen-tests/widgetservice/Widget_getInstances_misarg.html +++ b/mobile/tct-widgetservice-tizen-tests/widgetservice/Widget_getInstances_misarg.html @@ -35,7 +35,12 @@ Authors: //==== 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 () { diff --git a/mobile/tct-widgetservice-tizen-tests/widgetservice/Widget_getInstances_successCallback_TypeMismatch.html b/mobile/tct-widgetservice-tizen-tests/widgetservice/Widget_getInstances_successCallback_TypeMismatch.html index 677b3a192..a3df3b4b5 100644 --- a/mobile/tct-widgetservice-tizen-tests/widgetservice/Widget_getInstances_successCallback_TypeMismatch.html +++ b/mobile/tct-widgetservice-tizen-tests/widgetservice/Widget_getInstances_successCallback_TypeMismatch.html @@ -39,7 +39,25 @@ setup({timeout: 90000}); 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); diff --git a/mobile/tct-widgetservice-tizen-tests/widgetservice/Widget_getInstances_successCallback_invalid_cb.html b/mobile/tct-widgetservice-tizen-tests/widgetservice/Widget_getInstances_successCallback_invalid_cb.html index 6dd8d45e5..3343c2ca5 100644 --- a/mobile/tct-widgetservice-tizen-tests/widgetservice/Widget_getInstances_successCallback_invalid_cb.html +++ b/mobile/tct-widgetservice-tizen-tests/widgetservice/Widget_getInstances_successCallback_invalid_cb.html @@ -45,7 +45,25 @@ 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); assert_throws(TYPE_MISMATCH_EXCEPTION, function () { diff --git a/mobile/tct-widgetservice-tizen-tests/widgetservice/Widget_getInstances_with_errorCallback.html b/mobile/tct-widgetservice-tizen-tests/widgetservice/Widget_getInstances_with_errorCallback.html index 9aeb16e9e..1fd4b230c 100644 --- a/mobile/tct-widgetservice-tizen-tests/widgetservice/Widget_getInstances_with_errorCallback.html +++ b/mobile/tct-widgetservice-tizen-tests/widgetservice/Widget_getInstances_with_errorCallback.html @@ -33,7 +33,10 @@ Authors: //==== 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 @@ -53,7 +56,25 @@ t.step(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.getInstances(widgetSuccessCb, widgetErrorCb); }); diff --git a/mobile/tct-widgetservice-tizen-tests/widgetservice/Widget_getName.html b/mobile/tct-widgetservice-tizen-tests/widgetservice/Widget_getName.html index 26be29dbe..399d44938 100644 --- a/mobile/tct-widgetservice-tizen-tests/widgetservice/Widget_getName.html +++ b/mobile/tct-widgetservice-tizen-tests/widgetservice/Widget_getName.html @@ -35,7 +35,26 @@ Authors: //==== 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(); diff --git a/mobile/tct-widgetservice-tizen-tests/widgetservice/Widget_getName_exist.html b/mobile/tct-widgetservice-tizen-tests/widgetservice/Widget_getName_exist.html index 41b5cea1c..3defefdff 100644 --- a/mobile/tct-widgetservice-tizen-tests/widgetservice/Widget_getName_exist.html +++ b/mobile/tct-widgetservice-tizen-tests/widgetservice/Widget_getName_exist.html @@ -35,7 +35,12 @@ Authors: //==== 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"); diff --git a/mobile/tct-widgetservice-tizen-tests/widgetservice/Widget_getName_with_locale.html b/mobile/tct-widgetservice-tizen-tests/widgetservice/Widget_getName_with_locale.html index 44d9220a0..d497f988e 100644 --- a/mobile/tct-widgetservice-tizen-tests/widgetservice/Widget_getName_with_locale.html +++ b/mobile/tct-widgetservice-tizen-tests/widgetservice/Widget_getName_with_locale.html @@ -35,7 +35,26 @@ Authors: //==== 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"); diff --git a/mobile/tct-widgetservice-tizen-tests/widgetservice/Widget_getVariant.html b/mobile/tct-widgetservice-tizen-tests/widgetservice/Widget_getVariant.html index 379178b94..5440277b1 100644 --- a/mobile/tct-widgetservice-tizen-tests/widgetservice/Widget_getVariant.html +++ b/mobile/tct-widgetservice-tizen-tests/widgetservice/Widget_getVariant.html @@ -35,7 +35,26 @@ Authors: //==== 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"); diff --git a/mobile/tct-widgetservice-tizen-tests/widgetservice/Widget_getVariant_exist.html b/mobile/tct-widgetservice-tizen-tests/widgetservice/Widget_getVariant_exist.html index e96731be2..b8c205357 100644 --- a/mobile/tct-widgetservice-tizen-tests/widgetservice/Widget_getVariant_exist.html +++ b/mobile/tct-widgetservice-tizen-tests/widgetservice/Widget_getVariant_exist.html @@ -35,7 +35,26 @@ Authors: //==== 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"); diff --git a/mobile/tct-widgetservice-tizen-tests/widgetservice/Widget_getVariant_sizeType_TypeMismatch.html b/mobile/tct-widgetservice-tizen-tests/widgetservice/Widget_getVariant_sizeType_TypeMismatch.html index daf18f33a..c52f67d98 100644 --- a/mobile/tct-widgetservice-tizen-tests/widgetservice/Widget_getVariant_sizeType_TypeMismatch.html +++ b/mobile/tct-widgetservice-tizen-tests/widgetservice/Widget_getVariant_sizeType_TypeMismatch.html @@ -35,7 +35,26 @@ Authors: //==== 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); diff --git a/mobile/tct-widgetservice-tizen-tests/widgetservice/Widget_getVariants.html b/mobile/tct-widgetservice-tizen-tests/widgetservice/Widget_getVariants.html index 002d15168..31cb3dd4c 100644 --- a/mobile/tct-widgetservice-tizen-tests/widgetservice/Widget_getVariants.html +++ b/mobile/tct-widgetservice-tizen-tests/widgetservice/Widget_getVariants.html @@ -45,7 +45,25 @@ t.step(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); }); diff --git a/mobile/tct-widgetservice-tizen-tests/widgetservice/Widget_getVariants_errorCallback_TypeMismatch.html b/mobile/tct-widgetservice-tizen-tests/widgetservice/Widget_getVariants_errorCallback_TypeMismatch.html index 98a065453..af655c138 100644 --- a/mobile/tct-widgetservice-tizen-tests/widgetservice/Widget_getVariants_errorCallback_TypeMismatch.html +++ b/mobile/tct-widgetservice-tizen-tests/widgetservice/Widget_getVariants_errorCallback_TypeMismatch.html @@ -44,7 +44,25 @@ t.step(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); conversionTable = getTypeConversionExceptions("functionObject", true); diff --git a/mobile/tct-widgetservice-tizen-tests/widgetservice/Widget_getVariants_errorCallback_invalid_cb.html b/mobile/tct-widgetservice-tizen-tests/widgetservice/Widget_getVariants_errorCallback_invalid_cb.html index 43b542ff7..3c04da8b9 100644 --- a/mobile/tct-widgetservice-tizen-tests/widgetservice/Widget_getVariants_errorCallback_invalid_cb.html +++ b/mobile/tct-widgetservice-tizen-tests/widgetservice/Widget_getVariants_errorCallback_invalid_cb.html @@ -50,7 +50,25 @@ t.step(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); assert_throws(TYPE_MISMATCH_EXCEPTION, function () { diff --git a/mobile/tct-widgetservice-tizen-tests/widgetservice/Widget_getVariants_exist.html b/mobile/tct-widgetservice-tizen-tests/widgetservice/Widget_getVariants_exist.html index b4cd9ca3f..dd8068a4d 100644 --- a/mobile/tct-widgetservice-tizen-tests/widgetservice/Widget_getVariants_exist.html +++ b/mobile/tct-widgetservice-tizen-tests/widgetservice/Widget_getVariants_exist.html @@ -36,7 +36,26 @@ Authors: //==== 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"); diff --git a/mobile/tct-widgetservice-tizen-tests/widgetservice/Widget_getVariants_misarg.html b/mobile/tct-widgetservice-tizen-tests/widgetservice/Widget_getVariants_misarg.html index bd4ff4e1d..8ea9900f1 100644 --- a/mobile/tct-widgetservice-tizen-tests/widgetservice/Widget_getVariants_misarg.html +++ b/mobile/tct-widgetservice-tizen-tests/widgetservice/Widget_getVariants_misarg.html @@ -36,7 +36,26 @@ Authors: //==== 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 () { diff --git a/mobile/tct-widgetservice-tizen-tests/widgetservice/Widget_getVariants_successCallback_TypeMismatch.html b/mobile/tct-widgetservice-tizen-tests/widgetservice/Widget_getVariants_successCallback_TypeMismatch.html index 66d4888f3..c1658f5d3 100644 --- a/mobile/tct-widgetservice-tizen-tests/widgetservice/Widget_getVariants_successCallback_TypeMismatch.html +++ b/mobile/tct-widgetservice-tizen-tests/widgetservice/Widget_getVariants_successCallback_TypeMismatch.html @@ -40,7 +40,25 @@ setup({timeout: 90000}); 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); diff --git a/mobile/tct-widgetservice-tizen-tests/widgetservice/Widget_getVariants_successCallback_invalid_cb.html b/mobile/tct-widgetservice-tizen-tests/widgetservice/Widget_getVariants_successCallback_invalid_cb.html index b5ef4afbd..87931d42f 100644 --- a/mobile/tct-widgetservice-tizen-tests/widgetservice/Widget_getVariants_successCallback_invalid_cb.html +++ b/mobile/tct-widgetservice-tizen-tests/widgetservice/Widget_getVariants_successCallback_invalid_cb.html @@ -46,7 +46,25 @@ 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); assert_throws(TYPE_MISMATCH_EXCEPTION, function () { diff --git a/mobile/tct-widgetservice-tizen-tests/widgetservice/Widget_getVariants_with_errorCallback.html b/mobile/tct-widgetservice-tizen-tests/widgetservice/Widget_getVariants_with_errorCallback.html index 1402f656f..d037fec70 100644 --- a/mobile/tct-widgetservice-tizen-tests/widgetservice/Widget_getVariants_with_errorCallback.html +++ b/mobile/tct-widgetservice-tizen-tests/widgetservice/Widget_getVariants_with_errorCallback.html @@ -49,7 +49,25 @@ t.step(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); }); diff --git a/mobile/tct-widgetservice-tizen-tests/widgetservice/Widget_id_attribute.html b/mobile/tct-widgetservice-tizen-tests/widgetservice/Widget_id_attribute.html index 33f0c9b46..f50896fc4 100644 --- a/mobile/tct-widgetservice-tizen-tests/widgetservice/Widget_id_attribute.html +++ b/mobile/tct-widgetservice-tizen-tests/widgetservice/Widget_id_attribute.html @@ -35,7 +35,26 @@ Authors: //==== 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"); diff --git a/mobile/tct-widgetservice-tizen-tests/widgetservice/Widget_noDisplay_attribute.html b/mobile/tct-widgetservice-tizen-tests/widgetservice/Widget_noDisplay_attribute.html index 1efa5cea3..51592d206 100644 --- a/mobile/tct-widgetservice-tizen-tests/widgetservice/Widget_noDisplay_attribute.html +++ b/mobile/tct-widgetservice-tizen-tests/widgetservice/Widget_noDisplay_attribute.html @@ -35,7 +35,26 @@ Authors: //==== 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); diff --git a/mobile/tct-widgetservice-tizen-tests/widgetservice/Widget_packageId_attribute.html b/mobile/tct-widgetservice-tizen-tests/widgetservice/Widget_packageId_attribute.html index 4fa340992..823054720 100644 --- a/mobile/tct-widgetservice-tizen-tests/widgetservice/Widget_packageId_attribute.html +++ b/mobile/tct-widgetservice-tizen-tests/widgetservice/Widget_packageId_attribute.html @@ -35,7 +35,26 @@ Authors: //==== 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"); diff --git a/mobile/tct-widgetservice-tizen-tests/widgetservice/Widget_removeStateChangeListener.html b/mobile/tct-widgetservice-tizen-tests/widgetservice/Widget_removeStateChangeListener.html index 7690110cb..985d78e92 100644 --- a/mobile/tct-widgetservice-tizen-tests/widgetservice/Widget_removeStateChangeListener.html +++ b/mobile/tct-widgetservice-tizen-tests/widgetservice/Widget_removeStateChangeListener.html @@ -33,7 +33,10 @@ Authors: //==== 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 @@ -57,10 +60,28 @@ t.step(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); 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"); }); diff --git a/mobile/tct-widgetservice-tizen-tests/widgetservice/Widget_removeStateChangeListener_exist.html b/mobile/tct-widgetservice-tizen-tests/widgetservice/Widget_removeStateChangeListener_exist.html index 7476a42e0..8a8d7c550 100644 --- a/mobile/tct-widgetservice-tizen-tests/widgetservice/Widget_removeStateChangeListener_exist.html +++ b/mobile/tct-widgetservice-tizen-tests/widgetservice/Widget_removeStateChangeListener_exist.html @@ -35,7 +35,26 @@ Authors: //==== 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"); diff --git a/mobile/tct-widgetservice-tizen-tests/widgetservice/Widget_setupApplicationId_attribute.html b/mobile/tct-widgetservice-tizen-tests/widgetservice/Widget_setupApplicationId_attribute.html index 8e2466d3e..b76907012 100644 --- a/mobile/tct-widgetservice-tizen-tests/widgetservice/Widget_setupApplicationId_attribute.html +++ b/mobile/tct-widgetservice-tizen-tests/widgetservice/Widget_setupApplicationId_attribute.html @@ -35,7 +35,27 @@ Authors: //==== 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);