</spec>
</specs>
</testcase>
+ <testcase purpose="Check if getCaptionValue method works properly when key is CAPTION_STYLE_KEY" type="compliance" status="approved" component="TizenAPI/TBD/TVInfo" execution_type="auto" priority="P1" id="TVInfoManager_getCaptionValue_captionStyle">
+ <description>
+ <test_script_entry>/opt/tct-tv-info-tizen-tests/tv-info/TVInfoManager_getCaptionValue_captionStyle.html</test_script_entry>
+ </description>
+ <specs>
+ <spec>
+ <spec_assertion interface="TVInfoManager" element_type="method" element_name="getCaptionValue" specification="TVInfo" section="TBD" category="Tizen Device API Specifications"/>
+ <spec_url>https://developer.tizen.org/help/topic/org.tizen.web.device.apireference/tizen/tvinfo.html</spec_url>
+ <spec_statement>TBD</spec_statement>
+ </spec>
+ </specs>
+ </testcase>
<testcase purpose="Check if getCaptionValue method works properly when key is CAPTION_EDGE_COLOR_KEY" type="compliance" status="approved" component="TizenAPI/TBD/TVInfo" execution_type="auto" priority="P1" id="TVInfoManager_getCaptionValue_edgeColor">
<description>
<test_script_entry>/opt/tct-tv-info-tizen-tests/tv-info/TVInfoManager_getCaptionValue_edgeColor.html</test_script_entry>
<test_script_entry>/opt/tct-tv-info-tizen-tests/tv-info/TVInfoManager_getCaptionValue_bgOpacity.html</test_script_entry>
</description>
</testcase>
+ <testcase purpose="Check if getCaptionValue method works properly when key is CAPTION_STYLE_KEY" component="TizenAPI/TBD/TVInfo" execution_type="auto" priority="P1" id="TVInfoManager_getCaptionValue_captionStyle">
+ <description>
+ <test_script_entry>/opt/tct-tv-info-tizen-tests/tv-info/TVInfoManager_getCaptionValue_captionStyle.html</test_script_entry>
+ </description>
+ </testcase>
<testcase purpose="Check if getCaptionValue method works properly when key is CAPTION_EDGE_COLOR_KEY" component="TizenAPI/TBD/TVInfo" execution_type="auto" priority="P1" id="TVInfoManager_getCaptionValue_edgeColor">
<description>
<test_script_entry>/opt/tct-tv-info-tizen-tests/tv-info/TVInfoManager_getCaptionValue_edgeColor.html</test_script_entry>
--- /dev/null
+<!DOCTYPE html>
+<!--
+Copyright (c) 2020 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:
+ Zhongyuan Yuan <zy123.yuan@samsung.com>
+
+-->
+<html>
+<head>
+<title>TVInfoManager_getCaptionValue_captionStyle</title>
+<meta charset="utf-8"/>
+<script src="support/unitcommon.js"></script>
+<script src="support/tv-info_common.js"></script>
+</head>
+<body>
+<div id="log"></div>
+<script>
+//==== TEST: TVInfoManager_getCaptionValue_captionStyle
+//==== LABEL Check if getCaptionValue method works properly when key is CAPTION_STYLE_KEY
+//==== SPEC Tizen Web API:TBD:TVInfo:TVInfoManager:getCaptionValue M
+//==== SPEC_URL TBD
+//==== PRIORITY P1
+//==== TEST_CRITERIA MR
+
+test(function () {
+ var captionStyleValue = tizen.tvinfo.getCaptionValue("CAPTION_STYLE_KEY");
+ assert_in_array(captionStyleValue, CAPTION_STYLE_VALUE, "Incorrect value of CaptionStyle");
+ assert_type(captionStyleValue, "string", "captionStyleValue should be a string");
+}, document.title);
+
+</script>
+</body>
+</html>
/*
-Copyright (c) 2015 Samsung Electronics Co., Ltd.
+Copyright (c) 2020 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.
"CAPTION_OPACITY_TRANSPARENT", "CAPTION_OPACITY_DEFAULT"];
var EDGE_TYPE_VALUE = ["CAPTION_EDGE_NONE", "CAPTION_EDGE_RAISED", "CAPTION_EDGE_DEPRESSED", "CAPTION_EDGE_UNIFORM",
"CAPTION_EDGE_DROP_SHADOWED"];
+var CAPTION_STYLE_VALUE = ["CAPTION_STYLE_DEFAULT", "CAPTION_STYLE_BOLD", "CAPTION_STYLE_ITALIC"];