setup({timeout: 90000});
var t = async_test(document.title, {timeout: 90000}),
- getPropertyValueSuccess, getPropertyValueError;
+ getPropertyValueSuccess, getPropertyValueError, retValue = null;
t.step(function () {
- getPropertyValueSuccess = t.step_func(function (battery) {
- assert_not_equals(battery.level, null, "Failed to getPropertyValue");
+ getPropertyValueSuccess = t.step_func(function (cellular) {
+ assert_equals(retValue, undefined, "getPropertyValueArray returns wrong value");
t.done();
});
getPropertyValueError = t.step_func(function (error) {
error.name + ", msg: " + error.message);
});
- tizen.systeminfo.getPropertyValue("BATTERY", getPropertyValueSuccess, getPropertyValueError);
+ retValue = tizen.systeminfo.getPropertyValue("BUILD", getPropertyValueSuccess, getPropertyValueError);
});
</script>
</spec>
</specs>
</testcase>
- <testcase purpose="Check if SystemInfoBattery can have new property added" type="compliance" onload_delay="90" status="approved" component="TizenAPI/System/SystemInfo" execution_type="auto" priority="P3" id="SystemInfoBattery_extend">
- <description>
- <test_script_entry>/opt/tct-systeminfo-tizen-tests/systeminfo/SystemInfoBattery_extend.html</test_script_entry>
- </description>
- <specs>
- <spec>
- <spec_assertion interface="SystemInfoBattery" 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 attribute level in SystemInfoBattery" type="compliance" onload_delay="90" status="approved" component="TizenAPI/System/SystemInfo" execution_type="auto" priority="P1" id="SystemInfoBattery_level_attribute">
- <description>
- <test_script_entry>/opt/tct-systeminfo-tizen-tests/systeminfo/SystemInfoBattery_level_attribute.html</test_script_entry>
- </description>
- <specs>
- <spec>
- <spec_assertion interface="SystemInfoBattery" element_type="attribute" element_name="level" 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 attribute isCharging in SystemInfoBattery" type="compliance" onload_delay="90" status="approved" component="TizenAPI/System/SystemInfo" execution_type="auto" priority="P1" id="SystemInfoBattery_isCharging_attribute">
- <description>
- <test_script_entry>/opt/tct-systeminfo-tizen-tests/systeminfo/SystemInfoBattery_isCharging_attribute.html</test_script_entry>
- </description>
- <specs>
- <spec>
- <spec_assertion interface="SystemInfoBattery" element_type="attribute" element_name="isCharging" 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 interface SystemInfo can be extended with new property" type="compliance" status="approved" component="TizenAPI/System/SystemInfo" execution_type="auto" priority="P3" id="SystemInfo_extend">
<description>
<test_script_entry>/opt/tct-systeminfo-tizen-tests/systeminfo/SystemInfo_extend.html</test_script_entry>
</spec>
</specs>
</testcase>
- <testcase purpose="Check if SystemInfoBattery can have new property added" type="compliance" onload_delay="90" status="approved" component="TizenAPI/System/SystemInfo" execution_type="auto" priority="P3" id="SystemInfoBattery_extend">
- <description>
- <test_script_entry>/opt/tct-systeminfo-tizen-tests/systeminfo/SystemInfoBattery_extend.html</test_script_entry>
- </description>
- <specs>
- <spec>
- <spec_assertion interface="SystemInfoBattery" 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 attribute isCharging in SystemInfoBattery" type="compliance" onload_delay="90" status="approved" component="TizenAPI/System/SystemInfo" execution_type="auto" priority="P1" id="SystemInfoBattery_isCharging_attribute">
- <description>
- <test_script_entry>/opt/tct-systeminfo-tizen-tests/systeminfo/SystemInfoBattery_isCharging_attribute.html</test_script_entry>
- </description>
- <specs>
- <spec>
- <spec_assertion interface="SystemInfoBattery" element_type="attribute" element_name="isCharging" 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 interface SystemInfo can be extended with new property" type="compliance" status="approved" component="TizenAPI/System/SystemInfo" execution_type="auto" priority="P3" id="SystemInfo_extend">
<description>
<test_script_entry>/opt/tct-systeminfo-tizen-tests/systeminfo/SystemInfo_extend.html</test_script_entry>
</spec>
</specs>
</testcase>
- <testcase purpose="Check method SystemInfo_getPropertyValue with errorCallback" type="compliance" onload_delay="90" status="approved" component="TizenAPI/System/SystemInfo" execution_type="auto" priority="P1" id="SystemInfo_getPropertyValue_with_errorCallback">
- <description>
- <test_script_entry>/opt/tct-systeminfo-tizen-tests/systeminfo/SystemInfo_getPropertyValue_with_errorCallback.html</test_script_entry>
- </description>
- <specs>
- <spec>
- <spec_assertion interface="SystemInfo" element_type="method" element_name="getPropertyValue" 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 getPropertyValue throws exception when property is incorrect" type="compliance" onload_delay="90" status="approved" component="TizenAPI/System/SystemInfo" execution_type="auto" priority="P2" id="SystemInfo_getPropertyValue_property_TypeMismatch">
<description>
<test_script_entry>/opt/tct-systeminfo-tizen-tests/systeminfo/SystemInfo_getPropertyValue_property_TypeMismatch.html</test_script_entry>
</spec>
</specs>
</testcase>
- <testcase purpose="Check if getPropertyValue('BATTERY', successCB, errorCB) calls successCallback + results' attributes" type="compliance" onload_delay="90" status="approved" component="TizenAPI/System/SystemInfo" execution_type="auto" priority="P1" id="SystemInfoPropertySuccessCallback_onsuccess_Battery">
- <description>
- <test_script_entry>/opt/tct-systeminfo-tizen-tests/systeminfo/SystemInfoPropertySuccessCallback_onsuccess_Battery.html</test_script_entry>
- </description>
- <specs>
- <spec>
- <spec_assertion interface="SystemInfoPropertySuccessCallback" element_type="method" element_name="onsuccess" 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 getPropertyValue('BUILD', successCB, errorCB) calls successCallback + results' attributes" type="compliance" onload_delay="90" status="approved" component="TizenAPI/System/SystemInfo" execution_type="auto" priority="P1" id="SystemInfoPropertySuccessCallback_onsuccess_Build">
<description>
<test_script_entry>/opt/tct-systeminfo-tizen-tests/systeminfo/SystemInfoPropertySuccessCallback_onsuccess_Build.html</test_script_entry>
<test_script_entry>/opt/tct-systeminfo-tizen-tests/systeminfo/SystemInfoNetwork_networkType_attribute.html</test_script_entry>
</description>
</testcase>
- <testcase component="TizenAPI/System/SystemInfo" execution_type="auto" id="SystemInfoBattery_extend" onload_delay="90" priority="P3" purpose="Check if SystemInfoBattery can have new property added">
- <description>
- <test_script_entry>/opt/tct-systeminfo-tizen-tests/systeminfo/SystemInfoBattery_extend.html</test_script_entry>
- </description>
- </testcase>
- <testcase component="TizenAPI/System/SystemInfo" execution_type="auto" id="SystemInfoBattery_isCharging_attribute" onload_delay="90" priority="P1" purpose="Check attribute isCharging in SystemInfoBattery">
- <description>
- <test_script_entry>/opt/tct-systeminfo-tizen-tests/systeminfo/SystemInfoBattery_isCharging_attribute.html</test_script_entry>
- </description>
- </testcase>
<testcase component="TizenAPI/System/SystemInfo" execution_type="auto" id="SystemInfo_extend" priority="P3" purpose="Check if instance of interface SystemInfo can be extended with new property">
<description>
<test_script_entry>/opt/tct-systeminfo-tizen-tests/systeminfo/SystemInfo_extend.html</test_script_entry>
<test_script_entry>/opt/tct-systeminfo-tizen-tests/systeminfo/SystemInfo_getPropertyValue_successCallback_TypeMismatch.html</test_script_entry>
</description>
</testcase>
- <testcase component="TizenAPI/System/SystemInfo" execution_type="auto" id="SystemInfoPropertySuccessCallback_onsuccess_Battery" onload_delay="90" priority="P1" purpose="Check if getPropertyValue('BATTERY', successCB, errorCB) calls successCallback + results' attributes">
- <description>
- <test_script_entry>/opt/tct-systeminfo-tizen-tests/systeminfo/SystemInfoPropertySuccessCallback_onsuccess_Battery.html</test_script_entry>
- </description>
- </testcase>
<testcase component="TizenAPI/System/SystemInfo" execution_type="auto" id="SystemInfoPropertySuccessCallback_onsuccess_Build" onload_delay="90" priority="P1" purpose="Check if getPropertyValue('BUILD', successCB, errorCB) calls successCallback + results' attributes">
<description>
<test_script_entry>/opt/tct-systeminfo-tizen-tests/systeminfo/SystemInfoPropertySuccessCallback_onsuccess_Build.html</test_script_entry>