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>
25 <title>ITC_messaging</title>
26 <meta charset="utf-8">
27 <script type="text/javascript" src="../resources/unitcommon.js"></script>
28 <script type="text/javascript" src="support/messaging_common.js"></script>
35 //==== TEST: MessageStorage_removeConversations_missarg_TypeMismatch
36 //==== LABEL MessageStorage.removeConversations () WRONG argument(s)
38 //==== ONLOAD_DELAY 90
39 //==== SPEC Tizen Web API:Communication:Messaging:MessageStorage:removeConversations M
40 //==== SPEC_URL https://developer.tizen.org/help/topic/org.tizen.web.device.apireference/tizen/messaging.html#addFoldersChangeListeneridp519184
41 //==== TEST_CRITERIA MMA
42 setup({timeout: 90000});
44 var this_test = async_test("MessageStorage_removeConversations_missarg_TypeMismatch", {timeout: 90000});
45 this_test.step(function () {
46 var service = null, onSuccess;
48 onSuccess = this_test.step_func(function (services) {
49 assert_type(services, "array", "type of services is not Array");
50 if (services.length > 0) {
51 service = services[0];
53 name: TYPE_MISMATCH_ERR
55 service.messageStorage.removeConversations();
58 assert_unreached("list of services is empty");
60 return this_test.done();
63 tizen.messaging.getMessageServices("messaging.sms", onSuccess);