+++ /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:
- Karol Surma <k.surma@samsung.com>
--->
-<html>
-
-<head>
-<title>Calendar_removeChangeListener_valid_argument</title>
-<meta charset="utf-8">
-<script type="text/javascript" src="support/unitcommon.js"></script>
-<script type="text/javascript" src="support/calendar_common.js"></script>
-</head>
-
-<body>
-<div id="log"></div>
-<script>
-//==== TEST: Calendar_removeChangeListener_valid_argument
-//==== LABEL Check whether subscription to receive notifications about the CalendarTask object changes is unset correctly
-//==== SPEC Tizen Web API:Social:Calendar:Calendar:removeChangeListener M
-//==== SPEC_URL https://developer.tizen.org/help/topic/org.tizen.web.device.apireference/tizen/calendar.html
-//==== TEST_CRITERIA MMINA
-
-test(function () {
- var listenerArrayEvent = [], listenerArrayTask = [], eventWatcher, taskWatcher,
- eventCalendar = tizen.calendar.getDefaultCalendar("EVENT"),
- taskCalendar = tizen.calendar.getDefaultCalendar("TASK");
-
- eventWatcher = {
- onitemsadded: function (events) {
- },
- onitemsupdated: function (events) {
- },
- onitemsremoved: function (ids) {
- }
- };
-
- taskWatcher = {
- onitemsadded: function (tasks) {
- },
- onitemsupdated: function (tasks) {
- },
- onitemsremoved: function (ids) {
- }
- };
-
- if (!listenerArrayTask.length) {
- listenerArrayTask.push(taskCalendar.addChangeListener(taskWatcher));
- }
-
- taskCalendar.removeChangeListener(listenerArrayTask[0]);
- listenerArrayEvent.shift();
-
- if (!listenerArrayEvent.length) {
- listenerArrayEvent.push(eventCalendar.addChangeListener(eventWatcher));
- }
- taskCalendar.removeChangeListener(listenerArrayTask[0], 1);
-
- taskCalendar.removeChangeListener(null);
- taskCalendar.removeChangeListener(undefined);
- taskCalendar.removeChangeListener("GG");
-}, document.title);
-
-</script>
-</body>
-</html>
</spec>
</specs>
</testcase>
- <testcase purpose="Check whether subscription to receive notifications about the CalendarTask object changes is unset correctly" type="compliance" status="approved" component="TizenAPI/Social/Calendar" execution_type="auto" priority="P1" id="Calendar_removeChangeListener_valid_argument">
- <description>
- <test_script_entry>/opt/tct-calendar-tizen-tests/calendar/Calendar_removeChangeListener_valid_argument.html</test_script_entry>
- </description>
- <specs>
- <spec>
- <spec_assertion interface="Calendar" element_type="method" element_name="removeChangeListener" specification="Calendar" section="Social" category="Tizen Device API Specifications"/>
- <spec_url>https://developer.tizen.org/help/topic/org.tizen.web.device.apireference/tizen/calendar.html</spec_url>
- <spec_statement>TBD</spec_statement>
- </spec>
- </specs>
- </testcase>
<testcase purpose="Check whether 'remove' method (task calendar) called with invalid arguments throws an exception" type="compliance" status="approved" component="TizenAPI/Social/Calendar" execution_type="auto" priority="P2" id="Calendar_remove_id_invalid_argument">
<description>
<test_script_entry>/opt/tct-calendar-tizen-tests/calendar/Calendar_remove_id_invalid_argument.html</test_script_entry>