7b56bf19b8cbee5243f11e84e29012a9cb7f33d7
[test/tct/web/api.git] /
1 <!DOCTYPE html>
2 <!--
3
4 Copyright (c) 2013 Samsung Electronics Co., Ltd.
5
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
9
10     http://www.apache.org/licenses/LICENSE-2.0
11
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.
17
18
19
20 Authors:
21     Andrzej Krolikowski <a.krolikowsk@samsung.com>
22 -->
23 <html lang="en">
24 <head>
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>
29 </head>
30
31 <body>
32 <div id="log"></div>
33 <script>
34
35 //==== TEST: MessageStorage_removeConversations_missarg_TypeMismatch
36 //==== LABEL MessageStorage.removeConversations () WRONG argument(s)
37 //==== PRIORITY P2
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});
43
44 var this_test = async_test("MessageStorage_removeConversations_missarg_TypeMismatch", {timeout: 90000});
45 this_test.step(function () {
46     var service = null, onSuccess;
47
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];
52             assert_throws({
53                 name: TYPE_MISMATCH_ERR
54             }, function () {
55                 service.messageStorage.removeConversations();
56             });
57         } else {
58             assert_unreached("list of services is empty");
59         }
60         return this_test.done();
61     });
62
63     tizen.messaging.getMessageServices("messaging.sms", onSuccess);
64 });
65
66 </script>
67 </body>
68 </html>