</description>
</testcase>
</set>
+ <set name="Time_tv" type="js">
+ <capabilities>
+ <capability name="http://tizen.org/feature/profile"><value>TV</value></capability>
+ </capabilities>
+ <testcase purpose="Check if method getDateFormat of TimeUtil works properly." component="Tizen Device APIs/System/Time" execution_type="auto" priority="P1" id="TimeUtil_getDateFormat_tv">
+ <description>
+ <test_script_entry>/opt/tct-time-tizen-tests/time/TimeUtil_getDateFormat_tv.html</test_script_entry>
+ </description>
+ </testcase>
+ </set>
</suite>
-</test_definition>
\ No newline at end of file
+</test_definition>
//==== PRIORITY P1
//==== TEST_CRITERIA MOA MR
test(function () {
- var returnedValue, shortformat = true;
+ var returnedValue, def = "m/d/y", shortformat = true;
returnedValue = tizen.time.getDateFormat(shortformat);
assert_type(returnedValue, "string", "Timezone type");
- assert_equals(returnedValue, getShortDateFormat(DATE_FORMAT), "Date format");
+ assert_equals(returnedValue, def, "Date format");
}, document.title);
</script>
--- /dev/null
+<!DOCTYPE html>
+<!--
+Copyright (c) 2013 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:
+ Beata Koziarek <b.koziarek@samsung.com>
+ Lin Guo <lin87.guo@samsung.com>
+
+-->
+<html>
+<head>
+<title>TimeUtil_getDateFormat_tv</title>
+<meta charset="utf-8"/>
+<script type="text/javascript" src="support/unitcommon.js"></script>
+<script type="text/javascript" src="support/time_common.js"></script>
+</head>
+
+<body>
+<div id="log"></div>
+<script>
+//==== TEST: TimeUtil_getDateFormat_tv
+//==== LABEL Check if method getDateFormat of TimeUtil works properly.
+//==== SPEC: Tizen Web API:System:Time:TimeUtil:getDateFormat M
+//==== SPEC_URL https://developer.tizen.org/help/topic/org.tizen.web.device.apireference/tizen/time.html
+//==== PRIORITY P1
+//==== TEST_CRITERIA MOA MR
+test(function () {
+ var returnedValue, shortformat = true;
+ returnedValue = tizen.time.getDateFormat(shortformat);
+ assert_type(returnedValue, "string", "Timezone type");
+ assert_equals(returnedValue, getShortDateFormat(DATE_FORMAT), "Date format");
+}, document.title);
+
+</script>
+</body>
+</html>