4 Copyright (c) 2013 Samsung Electronics Co., Ltd.
6 Licensed under the Apache License, Version 2.0 (the License);
7 you may not use this file except in compliance with the License.
8 You may obtain a copy of the License at
10 http://www.apache.org/licenses/LICENSE-2.0
12 Unless required by applicable law or agreed to in writing, software
13 distributed under the License is distributed on an "AS IS" BASIS,
14 WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
15 See the License for the specific language governing permissions and
16 limitations under the License.
21 Andrzej Krolikowski <a.krolikowsk@samsung.com>
28 <title>SystemSettingManager_getProperty_NOTIFICATION_EMAIL</title>
29 <script src="../resources/unitcommon.js"></script>
33 <script type="text/javascript">
35 //==== TEST: SystemSettingManager_getProperty_NOTIFICATION_EMAIL
36 //==== LABEL check if getProperty works for NOTIFICATION_EMAIL
37 //==== SPEC Tizen Web API:System:SystemSetting:SystemSettingManager:getProperty M
38 //==== SPEC_URL https://developer.tizen.org/help/topic/org.tizen.web.device.apireference/tizen/systemsetting.html
39 //==== TEST_CRITERIA MOA MR
40 var t = async_test("SystemSettingManager_getProperty_NOTIFICATION_EMAIL"),
41 successCallback, errorCallback, returnedValue = null;
44 successCallback = t.step_func(function (value) {
45 assert_type(value, "string", "Incorrect type.");
49 errorCallback = t.step_func(function (error) {
50 assert_unreached("Should not be here: " + error.name + ": " + error.message);
53 returnedValue = tizen.systemsetting.getProperty("NOTIFICATION_EMAIL", successCallback, errorCallback);
54 assert_equals(returnedValue, undefined, "Incorrect value returned from getProperty method.");