3c727ecacb64f2a1b8b85dcb287c12ee103e4b7f
[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         Karol Surma <k.surma@samsung.com>
22 -->
23 <html>
24
25 <head>
26 <title>CalendarEvent_expandRecurrence_successCallback_invalid_cb</title>
27 <meta charset="utf-8">
28 <script type="text/javascript" src="support/unitcommon.js"></script>
29 <script type="text/javascript" src="support/calendar_common.js"></script>
30 </head>
31
32 <body>
33 <div id="log"></div>
34 <script type="text/javascript">
35
36
37 //==== TEST: CalendarEvent_expandRecurrence_successCallback_invalid_cb
38 //==== LABEL Check argument successCallback invalid callback
39 //==== PRIORITY: P2
40 //==== SPEC Tizen Web API:Social:Calendar:CalendarEvent:expandRecurrence M
41 //==== SPEC_URL https://developer.tizen.org/help/topic/org.tizen.web.device.apireference/tizen/calendar.html
42 //==== TEST_CRITERIA MTCB
43 test(function () {
44     var startDate, endDate, ev;
45     endDate = new tizen.TZDate(2012, 0, 31);
46     startDate = new tizen.TZDate(2012, 0, 0);
47     ev = new tizen.CalendarEvent({
48         description: "Study",
49         summary: "review",
50         startDate: new tizen.TZDate(2012, 0, 4, 14, 0),
51         duration: new tizen.TimeDuration(3600, "SECS"),
52         recurrenceRule: new tizen.CalendarRecurrenceRule("DAILY", {
53             occurrenceCount: 5
54         })
55     });
56
57     assert_throws(TYPE_MISMATCH_EXCEPTION, function () {
58         ev.expandRecurrence(startDate, endDate, {onsuccess: function (){}});
59     });
60
61 }, document.title);
62
63 </script>
64 </body>
65 </html>