<link rel="author" title="Intel" href="http://www.intel.com"/>
<link rel="help" href="https://developer.tizen.org/help/topic/org.tizen.web.device.apireference/tizen/systeminfo.html"/>
<meta name="flags" content=""/>
- <meta name="assert" content="Check if the device supports a display resolution of 480x800 (WVGA) or 720x1280 (HD)"/>
+ <meta name="assert" content="Check if the device supports a display resolution of 480x800 (WVGA) or 720x1280 (HD), or a minimum resolution of 320x480 (HVGA)"/>
<meta charset="utf-8"/>
<script src="support/caps.js"></script>
</head>
<script>
//It is strongly recommended to use a display resolution of 480x800 (WVGA) or 720x1280 (HD) for a mobile device implementations.
//The Tizen reference implementation has only been validated with these two display resolutions
- test(function () {
- assert_true(is_caps_supported_by_system_info("screenSize480_800") || is_caps_supported_by_system_info("screenSize720_1280"), "The Tizen reference implementation has only been validated with these two display resolutions(480x800 (WVGA) or 720x1280 (HD))");
- }, document.title);
+ var t = async_test(document.title);
+ setup({timeout: 90000});
+ if (is_caps_supported_by_system_info("screenSize480_800") || is_caps_supported_by_system_info("screenSize720_1280")) {
+ t.done();
+ } else {
+ try {
+ tizen.systeminfo.getPropertyValue("DISPLAY", getPropertyValueSuccess, getPropertyValueError);
+ } catch (err) {
+ t.step(function () {
+ assert_unreached("Error message: " + err.message);
+ });
+ t.done();
+ }
+ }
+
+ function getPropertyValueSuccess(property){
+ t.step(function () {
+ assert_greater_than_equal(property.resolutionWidth, 320, "Display width is less than minimum screen width.");
+ assert_greater_than_equal(property.resolutionHeight, 480, "Display height is less than minimum screen height.");
+ });
+ t.done();
+ }
+
+ function getPropertyValueError(error){
+ t.step(function () {
+ assert_unreached("Error message: " + error.message);
+ });
+ t.done();
+ }
</script>
</body>
-</html>
\ No newline at end of file
+</html>
</spec>
</specs>
</testcase>
- <testcase purpose="Check if the device supports a display resolution of 480x800 (WVGA) or 720x1280 (HD)." type="compliance" status="approved" component="TizenAPI/System/SystemInfo" execution_type="auto" priority="P1" id="caps_displayresolution">
+ <testcase purpose="Check if the device supports a display resolution of 480x800 (WVGA) or 720x1280 (HD), or a minimum resolution of 320x480 (HVGA)." type="compliance" status="approved" component="TizenAPI/System/SystemInfo" execution_type="auto" priority="P1" id="caps_displayresolution">
<description>
<pre_condition/>
<post_condition/>
<steps>
<step order="1">
- <step_desc>Check if the device supports a display resolution of 480x800 (WVGA) or 720x1280 (HD).</step_desc>
- <expected>the device should support a display resolution of 480x800 (WVGA) or 720x1280 (HD).</expected>
+ <step_desc>Check if the device supports a display resolution of 480x800 (WVGA) or 720x1280 (HD), or a minimum resolution of 320x480 (HVGA).</step_desc>
+ <expected>Check if the device supports a display resolution of 480x800 (WVGA) or 720x1280 (HD), or a minimum resolution of 320x480 (HVGA).</expected>
</step>
</steps>
<test_script_entry>/opt/tct-capability-tests/capability/caps_displayresolution.html</test_script_entry>
<test_script_entry>/opt/tct-capability-tests/capability/caps_networking.html</test_script_entry>
</description>
</testcase>
- <testcase component="TizenAPI/System/SystemInfo" execution_type="auto" id="caps_displayresolution" purpose="Check if the device supports a display resolution of 480x800 (WVGA) or 720x1280 (HD).">
+ <testcase component="TizenAPI/System/SystemInfo" execution_type="auto" id="caps_displayresolution" purpose="Check if the device supports a display resolution of 480x800 (WVGA) or 720x1280 (HD), or a minimum resolution of 320x480 (HVGA).">
<description>
<test_script_entry>/opt/tct-capability-tests/capability/caps_displayresolution.html</test_script_entry>
</description>
</testcase>
</set>
</suite>
-</test_definition>
\ No newline at end of file
+</test_definition>