<test_script_entry test_script_expected_result="0"></test_script_entry>
</description>
</testcase>
- <testcase purpose="SystemSetting NotificationEmail Test" type="functional_positive" status="approved" component="behavior" execution_type="manual" priority="P0" id="SystemSettingNotificationEmail">
- <description>
- <pre_condition />
- <post_condition />
- <steps>
- <step order="1">
- <step_desc>0</step_desc>
- <expected>0</expected>
- </step>
- </steps>
- <test_script_entry test_script_expected_result="0"></test_script_entry>
- </description>
- </testcase>
<testcase purpose="Security Test" type="functional_positive" status="approved" component="behavior" execution_type="manual" priority="P0" id="Security">
<description>
<pre_condition />
<test_script_entry test_script_expected_result="0" />
</description>
</testcase>
- <testcase component="behavior" execution_type="manual" id="SystemSettingNotificationEmail" purpose="SystemSetting NotificationEmail Test">
- <description>
- <pre_condition />
- <steps>
- <step order="1">
- <step_desc>0</step_desc>
- <expected>0</expected>
- </step>
- </steps>
- <test_script_entry test_script_expected_result="0" />
- </description>
- </testcase>
<testcase component="behavior" execution_type="manual" id="Security" purpose="Security Test">
<description>
<pre_condition />
+++ /dev/null
-Copyright (c) 2012 Samsung Electronics Co., Ltd. All rights reserved.
-Copyright (c) 2012 Intel Corporation.
-Except as noted, this software is licensed under Apache License, Version 2 or BSD-3-Clause License.
-Please, see the LICENSE.Apache-2.0 file for Apache License, Version 2 terms and conditions
-or the LICENSE.BSD-3 file for BSD-3-Clause License.
+++ /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:
- Choi, Jongheon <j-h.choi@samsung.com>
-
--->
-<html>
-<head>
-<meta charset="utf-8" />
-<meta name="viewport" content="initial-scale=1.0, maximum-scale=1.0, width=device-width" />
-<link rel="stylesheet" type="text/css" href="../../css/jquery.mobile.css" />
-<script src="../../js/thirdparty/jquery.js"></script>
-<script src="../../js/thirdparty/jquery.mobile.js"></script>
-<script src="../../js/tests.js"></script>
-<script src="js/main.js"></script>
-</head>
-<body>
- <div data-role="page" id="main">
- <div data-role="header" data-position="fixed" data-tap-toggle="false">
- <h1 id="main_page_title">SystemSetting<br>(NotificationEmail)</h1>
- </div>
- <div id="content">
- <ul data-role="listview">
- <li data-role="list-divider">Set Alert tone</li>
- </ul>
- <ul data-role="listview" id="alerttone"></ul>
- <ul data-role="listview">
- <li data-role="list-divider">Get Alert tone</li>
- <li><div data-role="button" id="tone">Get Alert tone & Play Sound</div></li>
- </ul>
- <audio data-controls="true" style="width:100%;" id="MyAudio"></audio>
- </div>
- <div data-role="footer" data-position="fixed" data-tap-toggle="false">
- </div>
- <div data-role="popup" id="popup_info">
- <font style="font-size:85%">
- <p>Check if the email notification sound is successfully changed</p><br>
- <p>1. Click Set tone</p>
- <p>2. Send an email to an account that is registered to the device</p>
- <p>3. Check if the email notification sound is successfully changed</p>
- <p>4. Proceed the checking for other tones</p>
- </font>
- </div>
- </div>
-</body>
-</html>
+++ /dev/null
-/*
-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:
- Choi, Jongheon <j-h.choi@samsung.com>
-
-*/
-
-var path;
-
-$(document).delegate("#main", "pageinit", function() {
- $("#alerttone").delegate("li", "vclick", function() {
- path = $(this).data("url");
- setSystemProperty("NOTIFICATION_EMAIL", path, onNotiEmailSetSuccess);
- return false;
- });
- $("#tone").bind("vclick", function() {
- getSystemProperty("NOTIFICATION_EMAIL", onNotiEmailGetSuccess);
- return false;
- });
- fileAudio();
-});
-
-function onError(e) {
- alert("Error: " + e.message);
-}
-
-function onNotiEmailSetSuccess() {
- alert("Change of NORIFICATION_EMAIL alert tone");
-}
-
-function onNotiEmailGetSuccess(value) {
- alert("Sound(Get) path : " + value);
- var audio = document.getElementById("MyAudio");
- audio.src = value;
- audio.type = "audio/*";
- audio.play();
-}
-
-function setSystemProperty(property, path, onSuccess) {
- try {
- tizen.systemsetting.setProperty(property, path, onSuccess, onError);
- console.log(path);
- } catch (e) {
- console.log("Exception: " + e.message);
- }
-}
-
-function getSystemProperty(property, onSuccess) {
- try {
- tizen.systemsetting.getProperty(property, onSuccess, onError);
- } catch (e) {
- console.log("Exception: " + e.message);
- }
-}
-
-function fileAudio() {
- var documentsDir, length = 0, str = "";
- function onsuccess(files) {
- for (var i = 0; i < files.length; i++)
- {
- if(files[i].isFile == true)
- {
- var Url = files[i].toURI();
- Url = Url.replace("file:///", "/");
- str += '<li data-url="' + Url + '">' + files[i].name + '</li>';
- length++;
- if(length >= 9)
- break;
- }
- }
- if(length == 0)
- alert("Not found Sound files\nPlease add sound files.\nAdd Path: " + documentsDir.toURI() + "/");
- $("#alerttone").html(str).trigger("create").listview("refresh");
- }
-
- function onerror(error) {
- console.log("The error " + error.message + " occurred when listing the files in the selected folder");
- }
-
- tizen.filesystem.resolve(
- 'ringtones',
- function(dir){
- documentsDir = dir;
- dir.listFiles(onsuccess, onerror);
- }, function(e) {
- alert("Error " + e.message);
- }, "r"
- );
-}