[common][systeminfo][TWDAPI-223, add SERVICE_COUNTRY property for TV] 61/206861/4
authorqunfang.lin <qunfang.lin@samsung.com>
Wed, 29 May 2019 01:40:36 +0000 (09:40 +0800)
committerqunfang.lin <qunfang.lin@samsung.com>
Sat, 15 Jun 2019 03:11:48 +0000 (11:11 +0800)
Change-Id: I1b7d944c9f487ab94e84b8b33c512a3bd7966da9
Signed-off-by: qunfang.lin <qunfang.lin@samsung.com>
common/tct-systeminfo-tizen-tests/systeminfo/SystemInfoServiceCountry_extend.html [new file with mode: 0755]
common/tct-systeminfo-tizen-tests/systeminfo/SystemInfoServiceCountry_notexist.html [new file with mode: 0755]
common/tct-systeminfo-tizen-tests/systeminfo/SystemInfoServiceCountry_serviceCountry_attribute.html [new file with mode: 0755]
common/tct-systeminfo-tizen-tests/tests.full.xml
common/tct-systeminfo-tizen-tests/tests.xml

diff --git a/common/tct-systeminfo-tizen-tests/systeminfo/SystemInfoServiceCountry_extend.html b/common/tct-systeminfo-tizen-tests/systeminfo/SystemInfoServiceCountry_extend.html
new file mode 100755 (executable)
index 0000000..2d08038
--- /dev/null
@@ -0,0 +1,61 @@
+<!DOCTYPE html>
+<!--
+Copyright (c) 2019 Samsung Electronics Co., Ltd.
+
+Licensed under the Apache License, Version 2.0 (the License);
+you may not use this file except in compliance with the License.
+You may obtain a copy of the License at
+
+    http://www.apache.org/licenses/LICENSE-2.0
+
+Unless required by applicable law or agreed to in writing, software
+distributed under the License is distributed on an "AS IS" BASIS,
+WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+See the License for the specific language governing permissions and
+limitations under the License.
+
+Authors:
+        Qunfang Lin <qunfang.lin@samsung.com>
+
+-->
+
+<html>
+<head>
+<title>SystemInfoServiceCountry_extend</title>
+<meta charset="utf-8"/>
+<script src="support/unitcommon.js"></script>
+</head>
+<body>
+<div id="log"></div>
+<script>
+//==== TEST: SystemInfoServiceCountry_extend
+//==== PRIORITY P3
+//==== LABEL Check if instance of SystemInfoServiceCountry interface can be extended with new property
+//==== ONLOAD_DELAY 90
+//==== SPEC Tizen Web API:System:SystemInfo:SystemInfoServiceCountry:SystemInfoServiceCountry U
+//==== SPEC_URL https://developer.tizen.org/help/topic/org.tizen.web.device.apireference/tizen/systeminfo.html
+//==== TEST_CRITERIA OBX
+
+setup({timeout: 90000});
+
+var t = async_test(document.title, {timeout: 90000}), getPropertyValueSuccess,
+    getPropertyValueError;
+
+t.step(function () {
+    getPropertyValueSuccess = t.step_func(function (property) {
+        check_extensibility(property);
+        t.done();
+    });
+
+    getPropertyValueError = t.step_func(function (error) {
+        assert_unreached("getPropertyValue() error callback invoked: name: " +
+            error.name + ", msg: " + error.message);
+    });
+
+    tizen.systeminfo.getPropertyValue("SERVICE_COUNTRY", getPropertyValueSuccess,
+        getPropertyValueError);
+});
+
+</script>
+</body>
+</html>
diff --git a/common/tct-systeminfo-tizen-tests/systeminfo/SystemInfoServiceCountry_notexist.html b/common/tct-systeminfo-tizen-tests/systeminfo/SystemInfoServiceCountry_notexist.html
new file mode 100755 (executable)
index 0000000..185a862
--- /dev/null
@@ -0,0 +1,43 @@
+<!DOCTYPE html>
+<!--
+Copyright (c) 2019 Samsung Electronics Co., Ltd.
+
+Licensed under the Apache License, Version 2.0 (the License);
+you may not use this file except in compliance with the License.
+You may obtain a copy of the License at
+
+    http://www.apache.org/licenses/LICENSE-2.0
+
+Unless required by applicable law or agreed to in writing, software
+distributed under the License is distributed on an "AS IS" BASIS,
+WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+See the License for the specific language governing permissions and
+limitations under the License.
+
+Author:
+        Qunfang Lin <qunfang.lin@samsung.com>
+
+-->
+<html>
+<head>
+<title>SystemInfoServiceCountry_notexist</title>
+<meta charset="utf-8"/>
+<script src="support/unitcommon.js"></script>>
+</head>
+<body>
+<div id="log"></div>
+<script>
+//==== TEST: SystemInfoServiceCountry_notexist
+//==== LABEL Check if interface SystemInfoServiceCountry exists, it should not.
+//==== SPEC Tizen Web API:System:SystemInfo:SystemInfoServiceCountry:SystemInfoServiceCountry U
+//==== SPEC_URL https://developer.tizen.org/help/topic/org.tizen.web.device.apireference/tizen/systeminfo.html
+//==== PRIORITY P3
+//==== TEST_CRITERIA NIO
+
+test(function () {
+    check_no_interface_object("SystemInfoServiceCountry");
+}, document.title);
+
+</script>
+</body>
+</html>
diff --git a/common/tct-systeminfo-tizen-tests/systeminfo/SystemInfoServiceCountry_serviceCountry_attribute.html b/common/tct-systeminfo-tizen-tests/systeminfo/SystemInfoServiceCountry_serviceCountry_attribute.html
new file mode 100755 (executable)
index 0000000..7e1c3a1
--- /dev/null
@@ -0,0 +1,60 @@
+<!DOCTYPE html>
+<!--
+Copyright (c) 2019 Samsung Electronics Co., Ltd.
+
+Licensed under the Apache License, Version 2.0 (the License);
+you may not use this file except in compliance with the License.
+You may obtain a copy of the License at
+
+    http://www.apache.org/licenses/LICENSE-2.0
+
+Unless required by applicable law or agreed to in writing, software
+distributed under the License is distributed on an "AS IS" BASIS,
+WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+See the License for the specific language governing permissions and
+limitations under the License.
+
+Authors:
+        Qunfang Lin <qunfang.lin@samsung.com>
+
+-->
+<html>
+<head>
+<title>SystemInfoServiceCountry_serviceCountry_attribute</title>
+<meta charset="utf-8"/>
+<script src="support/unitcommon.js"></script>
+</head>
+<body>
+<div id="log"></div>
+<script>
+//==== TEST: SystemInfoServiceCountry_serviceCountry_attribute
+//==== LABEL Check if attribute serviceCountry of SystemInfoServiceCountry exists, has type DOMString and is readonly
+//==== ONLOAD_DELAY 90
+//==== SPEC Tizen Web API:System:SystemInfo:SystemInfoServiceCountry:serviceCountry A
+//==== SPEC_URL https://developer.tizen.org/help/topic/org.tizen.web.device.apireference/tizen/systeminfo.html
+//==== TEST_CRITERIA AE AT ARO
+
+setup({timeout: 90000});
+
+var t = async_test(document.title, {timeout: 90000}),
+    getPropertyValueSuccess, getPropertyValueError;
+
+t.step(function () {
+    getPropertyValueSuccess = t.step_func(function (property) {
+        assert_own_property(property, "serviceCountry", "SystemInfoServiceCountry does not own serviceCountry property.");
+        check_readonly(property, "serviceCountry", property.serviceCountry, "string", "New");
+        t.done();
+    });
+
+    getPropertyValueError = t.step_func(function (error) {
+        assert_unreached("getPropertyValue() error callback invoked: name: " +
+            error.name + ", msg: " + error.message);
+    });
+
+    tizen.systeminfo.getPropertyValue("SERVICE_COUNTRY", getPropertyValueSuccess,
+        getPropertyValueError);
+});
+
+</script>
+</body>
+</html>
index 94140ad49da5deb183b27e1ffc11876161149b31..1c60b51d195be8912329fd693b46c852824990fd 100755 (executable)
         </specs>
       </testcase>
     </set>
-    <set name="SystemInfoVideoSource_TV" type="js">
+    <set name="SystemInfoWindowAPI_TV" type="js">
       <capabilities>
         <capability name="http://tizen.org/feature/profile"><value>TV</value></capability>
         <capability name="http://tizen.org/feature/tv.pip"/>
       </capabilities>
+      <testcase purpose="Check if interface SystemInfoServiceCountry exists, it should not." type="compliance" status="approved" component="TizenAPI/System/SystemInfo" execution_type="auto" priority="P3" id="SystemInfoServiceCountry_notexist">
+        <description>
+          <test_script_entry>/opt/tct-systeminfo-tizen-tests/systeminfo/SystemInfoServiceCountry_notexist.html</test_script_entry>
+        </description>
+        <specs>
+          <spec>
+            <spec_assertion interface="SystemInfoServiceCountry" usage="true" specification="SystemInfo" section="System" category="Tizen Device API Specifications"/>
+            <spec_url>https://developer.tizen.org/help/topic/org.tizen.web.device.apireference/tizen/systeminfo.html</spec_url>
+            <spec_statement>TBD</spec_statement>
+          </spec>
+        </specs>
+      </testcase>
+      <testcase purpose="Check if instance of SystemInfoServiceCountry interface can be extended with new property" type="compliance" status="approved" component="TizenAPI/System/SystemInfo" execution_type="auto" priority="P3" id="SystemInfoServiceCountry_extend">
+        <description>
+          <test_script_entry>/opt/tct-systeminfo-tizen-tests/systeminfo/SystemInfoServiceCountry_extend.html</test_script_entry>
+        </description>
+        <specs>
+          <spec>
+            <spec_assertion interface="SystemInfoServiceCountry" usage="true" specification="SystemInfo" section="System" category="Tizen Device API Specifications"/>
+            <spec_url>https://developer.tizen.org/help/topic/org.tizen.web.device.apireference/tizen/systeminfo.html</spec_url>
+            <spec_statement>TBD</spec_statement>
+          </spec>
+        </specs>
+      </testcase>
+      <testcase purpose="Check if attribute id of SystemInfoServiceCountry exists, has type unsigned short and is readonly" type="compliance" status="approved" component="TizenAPI/System/SystemInfo" execution_type="auto" priority="P1" id="SystemInfoServiceCountry_serviceCountry_attribute">
+        <description>
+          <test_script_entry>/opt/tct-systeminfo-tizen-tests/systeminfo/SystemInfoServiceCountry_serviceCountry_attribute.html</test_script_entry>
+        </description>
+        <specs>
+          <spec>
+            <spec_assertion interface="SystemInfoServiceCountry" element_type="attribute" element_name="profile" specification="SystemInfo" section="System" category="Tizen Device API Specifications"/>
+            <spec_url>https://developer.tizen.org/help/topic/org.tizen.web.device.apireference/tizen/systeminfo.html</spec_url>
+            <spec_statement>TBD</spec_statement>
+          </spec>
+        </specs>
+      </testcase>
       <testcase purpose="Check if interface SystemInfoVideoSource exists, it should not." type="compliance" status="approved" component="TizenAPI/System/SystemInfo" execution_type="auto" priority="P3" id="SystemInfoVideoSource_notexist">
         <description>
           <test_script_entry>/opt/tct-systeminfo-tizen-tests/systeminfo/SystemInfoVideoSource_notexist.html</test_script_entry>
index f5d18e6a4824e24d7d8f136567d2cf7a4222e872..a2fcbcbbfe98f7c398cf88eecceee129bd9fd627 100755 (executable)
         </description>
       </testcase>
     </set>
-    <set name="SystemInfoVideoSource_TV" type="js">
+    <set name="SystemInfoWindowAPI_TV" type="js">
       <capabilities>
         <capability name="http://tizen.org/feature/profile"><value>TV</value></capability>
         <capability name="http://tizen.org/feature/tv.pip"/>
       </capabilities>
+      <testcase purpose="Check if interface SystemInfoServiceCountry exists, it should not." component="TizenAPI/System/SystemInfo" execution_type="auto" id="SystemInfoServiceCountry_notexist">
+        <description>
+          <test_script_entry>/opt/tct-systeminfo-tizen-tests/systeminfo/SystemInfoServiceCountry_notexist.html</test_script_entry>
+        </description>
+      </testcase>
+      <testcase purpose="Check if instance of SystemInfoServiceCountry interface can be extended with new property" component="TizenAPI/System/SystemInfo" execution_type="auto" id="SystemInfoServiceCountry_extend">
+        <description>
+          <test_script_entry>/opt/tct-systeminfo-tizen-tests/systeminfo/SystemInfoServiceCountry_extend.html</test_script_entry>
+        </description>
+      </testcase>
+      <testcase purpose="Check if attribute id of SystemInfoServiceCountry exists, has type DOMString and is readonly" component="TizenAPI/System/SystemInfo" execution_type="auto" id="SystemInfoServiceCountry_serviceCountry_attribute">
+        <description>
+          <test_script_entry>/opt/tct-systeminfo-tizen-tests/systeminfo/SystemInfoServiceCountry_serviceCountry_attribute.html</test_script_entry>
+        </description>
+      </testcase>
       <testcase purpose="Check if interface SystemInfoVideoSource exists, it should not." component="TizenAPI/System/SystemInfo" execution_type="auto" id="SystemInfoVideoSource_notexist">
         <description>
           <test_script_entry>/opt/tct-systeminfo-tizen-tests/systeminfo/SystemInfoVideoSource_notexist.html</test_script_entry>