//==== SPEC Tizen Web API:Social:Calendar:CalendarAttendee:constructor C
//==== SPEC_URL https://developer.tizen.org/help/topic/org.tizen.web.device.apireference/tizen/calendar.html
//==== TEST_CRITERIA CONSTRM CONSTRA
-test(function (){
- var attendee_init, attendee;
- attendee_init = {name:"attendee1",
+test(function () {
+ var attendeeInit, attendee;
+ attendeeInit = {name:"attendee1",
role: "CHAIR",
group: "",
status: "ACCEPTED",
delegatorURI: "",
delegateURI: ""};
- attendee = new tizen.CalendarAttendee("mailto:attendee2@domain.com", attendee_init);
- assert_equals(attendee.uri, "mailto:attendee2@domain.com");
- assert_equals(attendee.name, attendee_init.name);
- assert_equals(attendee.role, attendee_init.role);
- assert_equals(attendee.group, attendee_init.group);
- assert_equals(attendee.status, attendee_init.status);
- assert_equals(attendee.RSVP, attendee_init.RSVP);
- assert_equals(attendee.type, attendee_init.type);
- assert_equals(attendee.delegatorURI, attendee_init.delegatorURI);
- assert_equals(attendee.delegateURI, attendee_init.delegateURI);
+ attendee = new tizen.CalendarAttendee("mailto:attendee2@domain.com", attendeeInit);
+ assert_equals(attendee.uri, "mailto:attendee2@domain.com", "Incorrect uri");
+ assert_equals(attendee.name, attendeeInit.name, "Incorrect name");
+ assert_equals(attendee.role, attendeeInit.role, "Incorrect role");
+ assert_equals(attendee.group, attendeeInit.group, "Incorrect group");
+ assert_equals(attendee.status, attendeeInit.status, "Incorrect status");
+ assert_equals(attendee.RSVP, attendeeInit.RSVP, "Incorrect RSVP");
+ assert_equals(attendee.type, attendeeInit.type, "Incorrect type");
+ assert_equals(attendee.delegatorURI, attendeeInit.delegatorURI, "Incorrect delegatorURI");
+ assert_equals(attendee.delegateURI, attendeeInit.delegateURI, "Incorrect delegateURI");
}, document.title);
</script>
//==== SPEC_URL https://developer.tizen.org/help/topic/org.tizen.web.device.apireference/tizen/calendar.html
//==== TEST_CRITERIA AE AT ASG
test(function () {
-
- var attendee_init, uri, calendarAttendee, contactRef;
+ var attendeeInit, uri, calendarAttendee, contactRef;
contactRef = new tizen.ContactRef("1", "2");
contactRef = ensureContactRefIsValid(contactRef);
- attendee_init = {
+ attendeeInit = {
name:"attendee1",
role: "CHAIR",
group: "group1",
uri = "mailto:attendee2@domain.com";
- calendarAttendee = new tizen.CalendarAttendee(uri, attendee_init);
+ calendarAttendee = new tizen.CalendarAttendee(uri, attendeeInit);
assert_own_property(calendarAttendee, "contactRef",
"CalendarAttendee does not own contactRef property.");
//==== SPEC_URL https://developer.tizen.org/help/topic/org.tizen.web.device.apireference/tizen/calendar.html
//==== TEST_CRITERIA AE AT ASG
test(function () {
-
- var attendee_init, uri, calendarAttendee, contactRef;
+ var attendeeInit, uri, calendarAttendee, contactRef;
contactRef = new tizen.ContactRef("1", "2");
contactRef = ensureContactRefIsValid(contactRef);
- attendee_init = {
+ attendeeInit = {
name:"attendee1",
role: "CHAIR",
group: "group1",
uri = "mailto:attendee2@domain.com";
- calendarAttendee = new tizen.CalendarAttendee(uri, attendee_init);
+ calendarAttendee = new tizen.CalendarAttendee(uri, attendeeInit);
assert_own_property(calendarAttendee, "delegateURI" , "CalendarAttendee does not own delegateURI property.");
- check_attribute(calendarAttendee, "delegateURI", attendee_init.delegateURI, "string", "mailto:delegate2@domain.com");
+ check_attribute(calendarAttendee, "delegateURI", attendeeInit.delegateURI, "string", "mailto:delegate2@domain.com");
}, document.title);
</script>
//==== SPEC_URL https://developer.tizen.org/help/topic/org.tizen.web.device.apireference/tizen/calendar.html
//==== TEST_CRITERIA AE AT ASG
test(function () {
-
- var attendee_init, uri, calendarAttendee, contactRef;
+ var attendeeInit, uri, calendarAttendee, contactRef;
contactRef = new tizen.ContactRef("1", "2");
contactRef = ensureContactRefIsValid(contactRef);
- attendee_init = {
+ attendeeInit = {
name:"attendee1",
role: "CHAIR",
group: "group1",
uri = "mailto:attendee2@domain.com";
- calendarAttendee = new tizen.CalendarAttendee(uri, attendee_init);
+ calendarAttendee = new tizen.CalendarAttendee(uri, attendeeInit);
assert_own_property(calendarAttendee, "delegatorURI" , "CalendarAttendee does not own delegatorURI property.");
- check_attribute(calendarAttendee, "delegatorURI", attendee_init.delegatorURI, "string", "mailto:delegator2@domain.com");
+ check_attribute(calendarAttendee, "delegatorURI", attendeeInit.delegatorURI, "string", "mailto:delegator2@domain.com");
}, document.title);
</script>
//==== SPEC_URL https://developer.tizen.org/help/topic/org.tizen.web.device.apireference/tizen/calendar.html
//==== TEST_CRITERIA AE AT ASG
test(function () {
-
- var attendee_init, uri, calendarAttendee, contactRef;
+ var attendeeInit, uri, calendarAttendee, contactRef;
contactRef = new tizen.ContactRef("1", "2");
contactRef = ensureContactRefIsValid(contactRef);
- attendee_init = {
+ attendeeInit = {
name:"attendee1",
role: "CHAIR",
group: "group1",
uri = "mailto:attendee2@domain.com";
- calendarAttendee = new tizen.CalendarAttendee(uri, attendee_init);
+ calendarAttendee = new tizen.CalendarAttendee(uri, attendeeInit);
assert_own_property(calendarAttendee, "group" , "CalendarAttendee does not own group property.");
- check_attribute(calendarAttendee, "group", attendee_init.group, "string", "invalid");
+ check_attribute(calendarAttendee, "group", attendeeInit.group, "string", "invalid");
}, document.title);
</script>
//==== TEST_CRITERIA AE AT ASG
test(function () {
- var attendee_init, uri, calendarAttendee, contactRef;
+ var attendeeInit, uri, calendarAttendee, contactRef;
contactRef = new tizen.ContactRef("1", "2");
contactRef = ensureContactRefIsValid(contactRef);
- attendee_init = {
+ attendeeInit = {
name:"attendee1",
role: "CHAIR",
group: "group1",
uri = "mailto:attendee2@domain.com";
- calendarAttendee = new tizen.CalendarAttendee(uri, attendee_init);
+ calendarAttendee = new tizen.CalendarAttendee(uri, attendeeInit);
assert_own_property(calendarAttendee, "name" , "CalendarAttendee does not own name property.");
- check_attribute(calendarAttendee, "name", attendee_init.name, "string", "invalid");
+ check_attribute(calendarAttendee, "name", attendeeInit.name, "string", "invalid");
}, document.title);
</script>
//==== SPEC_URL https://developer.tizen.org/help/topic/org.tizen.web.device.apireference/tizen/calendar.html
//==== TEST_CRITERIA AE AT ASG AN
test(function () {
-
- var attendee_init, uri, calendarAttendee, contactRef;
+ var attendeeInit, uri, calendarAttendee, contactRef;
contactRef = new tizen.ContactRef("1", "2");
contactRef = ensureContactRefIsValid(contactRef);
- attendee_init = {
+ attendeeInit = {
name:"attendee1",
role: "CHAIR",
group: "group1",
uri = "mailto:attendee2@domain.com";
- calendarAttendee = new tizen.CalendarAttendee(uri, attendee_init);
+ calendarAttendee = new tizen.CalendarAttendee(uri, attendeeInit);
check_attribute(calendarAttendee, "uri", uri, "string",
"mailto:attendee2013@domain.com");
//==== SPEC_URL https://developer.tizen.org/help/topic/org.tizen.web.device.apireference/tizen/calendar.html
//==== TEST_CRITERIA CBOA CBT
var t = async_test(document.title, {timeout: 10000}),
- watcher, event_init, calendar, ev, watcherId;
+ watcher, eventInit, calendar, ev, watcherId;
setup({timeout: 10000});
t.step(function () {
calendar = tizen.calendar.getDefaultCalendar("EVENT");
watcherId = calendar.addChangeListener(watcher);
- event_init = {
+ eventInit = {
description:"HTML5 Introduction",
summary:"HTML5 Webinar ",
startDate: new tizen.TZDate(2011, 3, 30, 10, 0),
location:"Huesca"
};
- ev = new tizen.CalendarEvent(event_init);
+ ev = new tizen.CalendarEvent(eventInit);
calendar.add(ev);
});
<body>
<div id="log"></div>
<script type="text/javascript">
-
-
//==== TEST: CalendarEventId_constructor
//==== LABEL Check if instance of CalendarEventId is created correctly by constructor
//==== SPEC Tizen Web API:Social:Calendar:CalendarEventId:constructor C
assert_type(eventId.uid, "string", "Event id constructor uid test.");
assert_type(eventId.rid, "string", "Event id constructor rid test.");
- assert_equals(eventId.uid, "777");
- assert_equals(eventId.rid, "888");
+ assert_equals(eventId.uid, "777", "Incorrect uid");
+ assert_equals(eventId.rid, "888", "Incorrect rid");
eventId = new tizen.CalendarEventId("777", null);
assert_type(eventId, "object", "EventId constructor nullable test.");
//==== TEST_CRITERIA CONSTRM CONSTRA
test(function (){
- var event_init, calendar, ev;
+ var eventInit, calendar, ev;
- event_init = {description:"HTML5 Introduction",
+ eventInit = {description:"HTML5 Introduction",
summary:"HTML5 Webinar ",
startDate: new tizen.TZDate(2011, 3, 30, 10, 0),
duration: new tizen.TimeDuration(1, "HOURS"),
location:"Huesca"};
calendar = tizen.calendar.getDefaultCalendar("EVENT");
- ev = new tizen.CalendarEvent(event_init);
+ ev = new tizen.CalendarEvent(eventInit);
calendar.add(ev);
assert_not_equals(ev.id, null, "id should exist");
- assert_equals(ev.description, event_init.description, "descriptions should be equal");
- assert_equals(ev.summary, event_init.summary, "summaries should be equal");
- assert_true(ev.startDate.equalsTo(event_init.startDate), "dates should be equal");
- assert_true(ev.duration.equalsTo(event_init.duration), "dates should be equal");
- assert_equals(ev.location, event_init.location, "locations should be equal");
+ assert_equals(ev.description, eventInit.description, "descriptions should be equal");
+ assert_equals(ev.summary, eventInit.summary, "summaries should be equal");
+ assert_true(ev.startDate.equalsTo(eventInit.startDate), "dates should be equal");
+ assert_true(ev.duration.equalsTo(eventInit.duration), "dates should be equal");
+ assert_equals(ev.location, eventInit.location, "locations should be equal");
cleanup(calendar);
}, document.title);
//==== SPEC_URL https://developer.tizen.org/help/topic/org.tizen.web.device.apireference/tizen/calendar.html
//==== TEST_CRITERIA CBOA CBT
var t = async_test(document.title),
- onsuccess, event_init, calendar, ev;
+ onsuccess, eventInit, calendar, ev;
t.step(function () {
onsuccess = t.step_func(function (items) {
cleanup(calendar);
t.done();
});
- event_init = {description: "HTML5 Introduction",
+ eventInit = {description: "HTML5 Introduction",
summary: "HTML5 Webinar ",
startDate: new tizen.TZDate(2011, 3, 30, 10, 0),
duration: new tizen.TimeDuration(1, "HOURS"),
location: "Huesca"};
calendar = tizen.calendar.getDefaultCalendar("EVENT");
- ev = new tizen.CalendarEvent(event_init);
+ ev = new tizen.CalendarEvent(eventInit);
calendar.add(ev);
calendar.find(onsuccess);
});
//==== SPEC_URL https://developer.tizen.org/help/topic/org.tizen.web.device.apireference/tizen/calendar.html
//==== TEST_CRITERIA AE AT ASG AN
test(function () {
- var calendarItem, event_init, attendee, alarm, duration;
+ var calendarItem, eventInit, attendee, alarm, duration;
alarm = new tizen.CalendarAlarm(new tizen.TimeDuration(30, "MINS"), "SOUND");
attendee = new tizen.CalendarAttendee("mailto:bob@domain.com", {role: "CHAIR", RSVP: true});
- event_init = {
+ eventInit = {
description:"HTML5 Introduction",
summary:"HTML5 Webinar ",
duration: new tizen.TimeDuration(1, "HOURS"),
attendees: [attendee]
};
- calendarItem = new tizen.CalendarEvent(event_init);
+ calendarItem = new tizen.CalendarEvent(eventInit);
assert_own_property(calendarItem, "alarms",
"CalendarItem does not own alarms property.");
assert_type(calendarItem.alarms, "array",
//==== SPEC_URL https://developer.tizen.org/help/topic/org.tizen.web.device.apireference/tizen/calendar.html
//==== TEST_CRITERIA AE AT ASG AN ADV
test(function () {
- var calendarItem, event_init, attendee, alarm;
+ var calendarItem, eventInit, attendee, alarm;
alarm = new tizen.CalendarAlarm(new tizen.TimeDuration(30, "MINS"), "SOUND");
attendee = new tizen.CalendarAttendee("mailto:bob@domain.com", {role: "CHAIR", RSVP: true});
- event_init = {
+ eventInit = {
description:"HTML5 Introduction",
summary:"HTML5 Webinar ",
duration: new tizen.TimeDuration(1, "HOURS"),
alarms: [alarm]
};
- calendarItem = new tizen.CalendarEvent(event_init);
+ calendarItem = new tizen.CalendarEvent(eventInit);
assert_own_property(calendarItem, "attendees",
"CalendarItem does not own attendees property.");
assert_type(calendarItem.attendees, "array",
//==== SPEC_URL https://developer.tizen.org/help/topic/org.tizen.web.device.apireference/tizen/calendar.html
//==== TEST_CRITERIA AE AT ARO ADV
test(function () {
- var calendarItem, event_init, attendee, alarm, calendar;
+ var calendarItem, eventInit, attendee, alarm, calendar;
alarm = new tizen.CalendarAlarm(new tizen.TimeDuration(30, "MINS"), "SOUND");
attendee = new tizen.CalendarAttendee("mailto:bob@domain.com", {role: "CHAIR", RSVP: true});
calendar = tizen.calendar.getDefaultCalendar("EVENT");
- event_init = {
+ eventInit = {
description:"HTML5 Introduction",
summary:"HTML5 Webinar ",
duration: new tizen.TimeDuration(1, "HOURS"),
attendees: [attendee]
};
- calendarItem = new tizen.CalendarEvent(event_init);
+ calendarItem = new tizen.CalendarEvent(eventInit);
check_readonly(calendarItem, "calendarId", null, "object", "5");
calendar.add(calendarItem);
//==== SPEC_URL https://developer.tizen.org/help/topic/org.tizen.web.device.apireference/tizen/calendar.html
//==== TEST_CRITERIA AE AT ASG AN ADV
test(function () {
- var calendarItem, event_init, attendee, alarm;
+ var calendarItem, eventInit, attendee, alarm;
alarm = new tizen.CalendarAlarm(new tizen.TimeDuration(30, "MINS"), "SOUND");
attendee = new tizen.CalendarAttendee("mailto:bob@domain.com", {role: "CHAIR", RSVP: true});
- event_init = {
+ eventInit = {
description:"HTML5 Introduction",
summary:"HTML5 Webinar ",
duration: new tizen.TimeDuration(1, "HOURS"),
attendees: [attendee]
};
- calendarItem = new tizen.CalendarEvent(event_init);
+ calendarItem = new tizen.CalendarEvent(eventInit);
assert_own_property(calendarItem, "categories",
"CalendarItem does not own categories property.");
assert_type(calendarItem.categories, "array",
//==== SPEC_URL https://developer.tizen.org/help/topic/org.tizen.web.device.apireference/tizen/calendar.html
//==== TEST_CRITERIA MNA MR
test(function () {
- var event_init, calendar, ev, ev_clone;
+ var eventInit, calendar, ev, evClone;
- event_init = {
+ eventInit = {
description:"HTML5 Introduction",
summary:"HTML5 Webinar ",
startDate: new tizen.TZDate(2011, 3, 30, 10, 0),
};
calendar = tizen.calendar.getDefaultCalendar("EVENT");
- ev = new tizen.CalendarEvent(event_init);
+ ev = new tizen.CalendarEvent(eventInit);
calendar.add(ev);
assert_not_equals(ev.id, null, "Event should have its identifier different from null.");
- ev_clone = ev.clone();
- assert_equals(ev_clone.id, null, "Clone event should have its identifier null.");
+ evClone = ev.clone();
+ assert_equals(evClone.id, null, "Clone event should have its identifier null.");
- calendar.add(ev_clone);
- assert_not_equals(ev_clone.id, null,
+ calendar.add(evClone);
+ assert_not_equals(evClone.id, null,
"After adding to calendar clone event should have its identifier diferent from null.");
- assert_not_equals(ev_clone.id.uid, ev.id.uid,
+ assert_not_equals(evClone.id.uid, ev.id.uid,
"Clone event and original event should have different id.uid");
- assert_equalsEvents(ev_clone, ev);
+ assert_equalsEvents(evClone, ev);
cleanup(calendar);
}, document.title);
//==== SPEC_URL https://developer.tizen.org/help/topic/org.tizen.web.device.apireference/tizen/calendar.html
//==== TEST_CRITERIA ME
test(function () {
- var calendarItem, event_init, attendee, alarm;
+ var calendarItem, eventInit, attendee, alarm;
alarm = new tizen.CalendarAlarm(new tizen.TimeDuration(30, "MINS"), "SOUND");
attendee = new tizen.CalendarAttendee("mailto:bob@domain.com", {role: "CHAIR", RSVP: true});
- event_init = {description:"HTML5 Introduction",
+ eventInit = {description:"HTML5 Introduction",
summary:"HTML5 Webinar ",
duration: new tizen.TimeDuration(1, "HOURS"),
location:"Huesca",
attendees: [attendee]
};
- calendarItem = new tizen.CalendarEvent(event_init);
+ calendarItem = new tizen.CalendarEvent(eventInit);
assert_true("clone" in calendarItem, "No clone method in calendarItem");
check_method_exists(calendarItem, "clone");
}, document.title);
<div id="log"></div>
<script type="text/javascript">
//==== TEST: CalendarItem_convertToString
-//==== LABEL Check CalendarEvent method: convertToString
+//==== LABEL Check if CalendarItem.convertToString method works properly
//==== SPEC Tizen Web API:Social:Calendar:CalendarItem:convertToString M
//==== SPEC_URL https://developer.tizen.org/help/topic/org.tizen.web.device.apireference/tizen/calendar.html
//==== TEST_CRITERIA MMINA
-test(function (){
- var event_init, ev, eventStr;
- event_init = {description:"HTML5 Introduction",
+test(function () {
+ var eventInit, ev, eventStr;
+ eventInit = {description:"HTML5 Introduction",
summary:"HTML5 Webinar ",
startDate: new tizen.TZDate(2011, 3, 30, 10, 0),
duration: new tizen.TimeDuration(1, "HOURS"),
location:"Huesca"};
- ev = new tizen.CalendarEvent(event_init);
+ ev = new tizen.CalendarEvent(eventInit);
eventStr = ev.convertToString("ICALENDAR_20");
- assert_not_equals(eventStr.length, 0);
+ assert_not_equals(eventStr.length, 0, "Incorrect output from convertToString() method");
}, document.title);
</script>
//==== SPEC_URL https://developer.tizen.org/help/topic/org.tizen.web.device.apireference/tizen/calendar.html
//==== TEST_CRITERIA ME
test(function () {
- var calendarItem, event_init, attendee, alarm;
+ var calendarItem, eventInit, attendee, alarm;
alarm = new tizen.CalendarAlarm(new tizen.TimeDuration(30, "MINS"), "SOUND");
attendee = new tizen.CalendarAttendee("mailto:bob@domain.com", {role: "CHAIR", RSVP: true});
- event_init = {description:"HTML5 Introduction",
+ eventInit = {description:"HTML5 Introduction",
summary:"HTML5 Webinar ",
duration: new tizen.TimeDuration(1, "HOURS"),
location:"Huesca",
attendees: [attendee]
};
- calendarItem = new tizen.CalendarEvent(event_init);
+ calendarItem = new tizen.CalendarEvent(eventInit);
assert_true("convertToString" in calendarItem, "No convertToString method in calendarItem");
check_method_exists(calendarItem, "convertToString");
}, document.title);
//==== SPEC_URL https://developer.tizen.org/help/topic/org.tizen.web.device.apireference/tizen/calendar.html
//==== TEST_CRITERIA AE AT ASG ADV
test(function () {
- var calendarItem, event_init, attendee, alarm;
+ var calendarItem, eventInit, attendee, alarm;
alarm = new tizen.CalendarAlarm(new tizen.TimeDuration(30, "MINS"), "SOUND");
attendee = new tizen.CalendarAttendee("mailto:bob@domain.com", {role: "CHAIR", RSVP: true});
- event_init = {
+ eventInit = {
summary:"HTML5 Webinar ",
duration: new tizen.TimeDuration(1, "HOURS"),
location:"Huesca",
attendees: [attendee]
};
- calendarItem = new tizen.CalendarEvent(event_init);
+ calendarItem = new tizen.CalendarEvent(eventInit);
check_attribute(calendarItem, "description", "", "string", "invalid");
}, document.title);
//==== SPEC_URL https://developer.tizen.org/help/topic/org.tizen.web.device.apireference/tizen/calendar.html
//==== TEST_CRITERIA AE AT ASG ADV
test(function () {
- var calendarItem, event_init, attendee, alarm, duration;
+ var calendarItem, eventInit, attendee, alarm, duration;
alarm = new tizen.CalendarAlarm(new tizen.TimeDuration(30, "MINS"), "SOUND");
attendee = new tizen.CalendarAttendee("mailto:bob@domain.com", {role: "CHAIR", RSVP: true});
- event_init = {
+ eventInit = {
description:"HTML5 Introduction",
summary:"HTML5 Webinar ",
location:"Huesca",
attendees: [attendee]
};
- calendarItem = new tizen.CalendarEvent(event_init);
+ calendarItem = new tizen.CalendarEvent(eventInit);
assert_own_property(calendarItem, "duration",
"CalendarItem does not own duration property.");
assert_equals(calendarItem.duration, null,
//==== SPEC_URL https://developer.tizen.org/help/topic/org.tizen.web.device.apireference/tizen/calendar.html
//==== TEST_CRITERIA AE AT ASG
test(function () {
- var calendarItem, event_init, attendee, alarm;
+ var calendarItem, eventInit, attendee, alarm;
alarm = new tizen.CalendarAlarm(new tizen.TimeDuration(30, "MINS"), "SOUND");
attendee = new tizen.CalendarAttendee("mailto:bob@domain.com", {role: "CHAIR", RSVP: true});
- event_init = {
+ eventInit = {
description:"HTML5 Introduction",
summary:"HTML5 Webinar ",
duration: new tizen.TimeDuration(1, "HOURS"),
attendees: [attendee]
};
- calendarItem = new tizen.CalendarEvent(event_init);
+ calendarItem = new tizen.CalendarEvent(eventInit);
assert_own_property(calendarItem, "geolocation", "CalendarItem does not own geolocation property.");
- assert_equals(calendarItem.geolocation.toString(), event_init.geolocation.toString(),
+ assert_equals(calendarItem.geolocation.toString(), eventInit.geolocation.toString(),
"calendarItem.geolocation should have init value.");
assert_true(calendarItem.geolocation instanceof tizen.SimpleCoordinates,
"calendarItem.geolocation should be type of SimpleCoordinates");
//==== SPEC_URL https://developer.tizen.org/help/topic/org.tizen.web.device.apireference/tizen/calendar.html
//==== TEST_CRITERIA AE AT ASG AN ADV
test(function () {
- var calendarItem, event_init, attendee, alarm;
+ var calendarItem, eventInit, attendee, alarm;
alarm = new tizen.CalendarAlarm(new tizen.TimeDuration(30, "MINS"), "SOUND");
attendee = new tizen.CalendarAttendee("mailto:bob@domain.com", {role: "CHAIR", RSVP: true});
- event_init = {
+ eventInit = {
description:"HTML5 Introduction",
summary:"HTML5 Webinar ",
duration: new tizen.TimeDuration(1, "HOURS"),
attendees: [attendee]
};
- calendarItem = new tizen.CalendarEvent(event_init);
+ calendarItem = new tizen.CalendarEvent(eventInit);
check_attribute(calendarItem, "isAllDay", false, "Boolean", true);
calendarItem.isAllDay = null;
assert_not_equals(calendarItem.isAllDay, null,
//==== SPEC_URL https://developer.tizen.org/help/topic/org.tizen.web.device.apireference/tizen/calendar.html
//==== TEST_CRITERIA AE AT ARO
test(function () {
- var calendar, calendarItem, event_init, attendee, alarm,
+ var calendar, calendarItem, eventInit, attendee, alarm,
lastModificationDate, beforeValue, getCalendarItem;
alarm = new tizen.CalendarAlarm(new tizen.TimeDuration(30, "MINS"), "SOUND");
attendee = new tizen.CalendarAttendee("mailto:bob@domain.com", {role: "CHAIR", RSVP: true});
calendar = tizen.calendar.getDefaultCalendar("EVENT");
- event_init = {
+ eventInit = {
description:"HTML5 Introduction",
summary:"HTML5 Webinar ",
duration: new tizen.TimeDuration(1, "HOURS"),
attendees: [attendee]
};
- calendarItem = new tizen.CalendarEvent(event_init);
+ calendarItem = new tizen.CalendarEvent(eventInit);
calendar.add(calendarItem);
calendarItem.startDate = new tizen.TZDate(2013, 3, 30, 9, 0);
calendar.update(calendarItem);
//==== SPEC_URL https://developer.tizen.org/help/topic/org.tizen.web.device.apireference/tizen/calendar.html
//==== TEST_CRITERIA AE AT ASG
test(function () {
- var calendarItem, event_init, attendee, alarm;
+ var calendarItem, eventInit, attendee, alarm;
alarm = new tizen.CalendarAlarm(new tizen.TimeDuration(30, "MINS"), "SOUND");
attendee = new tizen.CalendarAttendee("mailto:bob@domain.com", {role: "CHAIR", RSVP: true});
- event_init = {description:"HTML5 Introduction",
+ eventInit = {description:"HTML5 Introduction",
summary:"HTML5 Webinar ",
duration: new tizen.TimeDuration(1, "HOURS"),
location:"Huesca",
attendees: [attendee]
};
- calendarItem = new tizen.CalendarEvent(event_init);
+ calendarItem = new tizen.CalendarEvent(eventInit);
assert_own_property(calendarItem, "location", "CalendarItem does not own location property.");
- check_attribute(calendarItem, "location", event_init.location, "string", "invalid");
+ check_attribute(calendarItem, "location", eventInit.location, "string", "invalid");
}, document.title);
</script>
//==== SPEC_URL https://developer.tizen.org/help/topic/org.tizen.web.device.apireference/tizen/calendar.html
//==== TEST_CRITERIA AE AT ASG
test(function () {
- var calendarItem, event_init, attendee, alarm;
+ var calendarItem, eventInit, attendee, alarm;
alarm = new tizen.CalendarAlarm(new tizen.TimeDuration(30, "MINS"), "SOUND");
attendee = new tizen.CalendarAttendee("mailto:bob@domain.com", {role: "CHAIR", RSVP: true});
- event_init = {description:"HTML5 Introduction",
+ eventInit = {description:"HTML5 Introduction",
summary:"HTML5 Webinar ",
duration: new tizen.TimeDuration(1, "HOURS"),
location:"Huesca",
attendees: [attendee]
};
- calendarItem = new tizen.CalendarEvent(event_init);
+ calendarItem = new tizen.CalendarEvent(eventInit);
assert_own_property(calendarItem, "organizer", "CalendarItem does not own organizer property.");
- check_attribute(calendarItem, "organizer", event_init.organizer, "string", "invalid");
+ check_attribute(calendarItem, "organizer", eventInit.organizer, "string", "invalid");
}, document.title);
</script>
//==== SPEC_URL https://developer.tizen.org/help/topic/org.tizen.web.device.apireference/tizen/calendar.html
//==== TEST_CRITERIA AE AT ASG AN ADV
test(function () {
- var calendarItem, event_init, attendee, alarm;
+ var calendarItem, eventInit, attendee, alarm;
alarm = new tizen.CalendarAlarm(new tizen.TimeDuration(30, "MINS"), "SOUND");
attendee = new tizen.CalendarAttendee("mailto:bob@domain.com", {role: "CHAIR", RSVP: true});
- event_init = {
+ eventInit = {
description:"HTML5 Introduction",
summary:"HTML5 Webinar ",
duration: new tizen.TimeDuration(1, "HOURS"),
attendees: [attendee]
};
- calendarItem = new tizen.CalendarEvent(event_init);
+ calendarItem = new tizen.CalendarEvent(eventInit);
check_attribute(calendarItem, "priority", "LOW", "string", "MEDIUM");
calendarItem.priority = null;
assert_equals(calendarItem.priority, "MEDIUM",
//==== SPEC_URL https://developer.tizen.org/help/topic/org.tizen.web.device.apireference/tizen/calendar.html
//==== TEST_CRITERIA AE AT ASG ADV
test(function () {
- var calendarItem, event_init, attendee, alarm, startDate;
+ var calendarItem, eventInit, attendee, alarm, startDate;
alarm = new tizen.CalendarAlarm(new tizen.TimeDuration(30, "MINS"), "SOUND");
attendee = new tizen.CalendarAttendee("mailto:bob@domain.com", {role: "CHAIR", RSVP: true});
- event_init = {
+ eventInit = {
description:"HTML5 Introduction",
summary:"HTML5 Webinar ",
duration: new tizen.TimeDuration(1, "HOURS"),
attendees: [attendee]
};
- calendarItem = new tizen.CalendarEvent(event_init);
+ calendarItem = new tizen.CalendarEvent(eventInit);
assert_own_property(calendarItem, "startDate",
"CalendarItem does not own startDate property.");
assert_equals(calendarItem.startDate, null,
//==== SPEC_URL https://developer.tizen.org/help/topic/org.tizen.web.device.apireference/tizen/calendar.html
//==== TEST_CRITERIA AE AT ASG ADV AN
test(function () {
- var calendarItem, event_init, attendee, alarm;
+ var calendarItem, eventInit, attendee, alarm;
alarm = new tizen.CalendarAlarm(new tizen.TimeDuration(30, "MINS"), "SOUND");
attendee = new tizen.CalendarAttendee("mailto:bob@domain.com", {role: "CHAIR", RSVP: true});
- event_init = {
+ eventInit = {
description:"HTML5 Introduction",
summary:"HTML5 Webinar ",
duration: new tizen.TimeDuration(1, "HOURS"),
attendees: [attendee]
};
- calendarItem = new tizen.CalendarEvent(event_init);
+ calendarItem = new tizen.CalendarEvent(eventInit);
check_attribute(calendarItem, "status", "CONFIRMED", "string", "TENTATIVE");
calendarItem.status = null;
assert_equals(calendarItem.status, "TENTATIVE",
//==== SPEC_URL https://developer.tizen.org/help/topic/org.tizen.web.device.apireference/tizen/calendar.html
//==== TEST_CRITERIA AE AT ASG
test(function () {
- var calendarItem, event_init, attendee, alarm;
+ var calendarItem, eventInit, attendee, alarm;
alarm = new tizen.CalendarAlarm(new tizen.TimeDuration(30, "MINS"), "SOUND");
attendee = new tizen.CalendarAttendee("mailto:bob@domain.com", {role: "CHAIR", RSVP: true});
- event_init = {description:"HTML5 Introduction",
+ eventInit = {description:"HTML5 Introduction",
summary:"HTML5 Webinar ",
duration: new tizen.TimeDuration(1, "HOURS"),
location:"Huesca",
attendees: [attendee]
};
- calendarItem = new tizen.CalendarEvent(event_init);
+ calendarItem = new tizen.CalendarEvent(eventInit);
assert_own_property(calendarItem, "summary", "CalendarItem does not own summary property.");
- check_attribute(calendarItem, "summary", event_init.summary, "string", "invalid");
+ check_attribute(calendarItem, "summary", eventInit.summary, "string", "invalid");
}, document.title);
</script>
//==== SPEC_URL https://developer.tizen.org/help/topic/org.tizen.web.device.apireference/tizen/calendar.html
//==== TEST_CRITERIA AE AT ASG ADV AN
test(function () {
- var calendarItem, event_init, attendee, alarm;
+ var calendarItem, eventInit, attendee, alarm;
alarm = new tizen.CalendarAlarm(new tizen.TimeDuration(30, "MINS"), "SOUND");
attendee = new tizen.CalendarAttendee("mailto:bob@domain.com", {role: "CHAIR", RSVP: true});
- event_init = {
+ eventInit = {
description:"HTML5 Introduction",
summary:"HTML5 Webinar ",
duration: new tizen.TimeDuration(1, "HOURS"),
attendees: [attendee]
};
- calendarItem = new tizen.CalendarEvent(event_init);
+ calendarItem = new tizen.CalendarEvent(eventInit);
check_attribute(calendarItem, "visibility", "PUBLIC", "string", "PRIVATE");
calendarItem.visibility = null;
assert_equals(calendarItem.visibility, "PRIVATE",
//==== TEST: CalendarManager_getCalendars_with_errorCallback
-//==== LABEL Check whether all available 'EVENT' type calendars are listed correctly
+//==== LABEL Check CalendarManager.getCalendars works properly for EVENT type with and without error callback
//==== SPEC Tizen Web API:Social:Calendar:CalendarManager:getCalendars M
//==== SPEC_URL https://developer.tizen.org/help/topic/org.tizen.web.device.apireference/tizen/calendar.html
//==== TEST_CRITERIA MOA
-var t = async_test(document.title), succCount, self, onGetCalendarsSuccessCB, onGetCalendarsErrorCB;
+var t = async_test(document.title), succCount = 2, onGetCalendarsSuccessCB, onGetCalendarsErrorCB;
t.step(function () {
- succCount = 2;
- self = this;
-
- onGetCalendarsSuccessCB = self.step_func(function (response) {
- assert_true(response.length > 0, "Found calendars");
- if (--succCount === 0) {
- return self.done();
+ onGetCalendarsSuccessCB = t.step_func(function (response) {
+ assert_greater_than(response.length, 0, "No calendar received");
+ succCount--;
+ if (succCount === 0) {
+ t.done();
}
});
- onGetCalendarsErrorCB = self.step_func(function (response) {
- assert_unreached("getCalendars error callback");
+ onGetCalendarsErrorCB = t.step_func(function (error) {
+ assert_unreached("getCalendars() error callback: name:" + error.name + ", msg:" + error.message);
});
tizen.calendar.getCalendars("EVENT", onGetCalendarsSuccessCB, onGetCalendarsErrorCB);
//==== SPEC_URL https://developer.tizen.org/help/topic/org.tizen.web.device.apireference/tizen/calendar.html
//==== TEST_CRITERIA CONSTRM CONSTRA
test(function () {
- var exp1, recurrenceRule_init, recurrenceRule;
+ var exp1, recurrenceRuleInit, recurrenceRule;
exp1 = new tizen.TZDate(2011, 11, 30, 12, 40, 0, 0);
- recurrenceRule_init = { interval: 2,
+ recurrenceRuleInit = { interval: 2,
occurrenceCount: 10,
daysOfTheWeek: ["MO", "TU"],
setPositions: [-1, -2],
exceptions:[exp1] };
- recurrenceRule = new tizen.CalendarRecurrenceRule("DAILY", recurrenceRule_init);
+ recurrenceRule = new tizen.CalendarRecurrenceRule("DAILY", recurrenceRuleInit);
assert_true(recurrenceRule.frequency in RecurrenceRuleFrequency, "frequency check");
assert_equals(recurrenceRule.frequency, "DAILY", "frequency attribute should be set to DAILY");
assert_equals(recurrenceRule.interval, 2, "interval");
//==== SPEC_URL https://developer.tizen.org/help/topic/org.tizen.web.device.apireference/tizen/calendar.html
//==== TEST_CRITERIA CONSTRM CONSTRA
test(function (){
- var ev, task_init;
- task_init = { description:"HTML5 Introduction",
+ var ev, taskInit;
+ taskInit = { description:"HTML5 Introduction",
summary:"HTML5 Webinar ",
startDate: new tizen.TZDate(2012, 3, 30, 10, 0),
dueDate: new tizen.TZDate(2012, 5, 30, 10, 0),
location:"Huesca" };
- ev = new tizen.CalendarTask(task_init);
+ ev = new tizen.CalendarTask(taskInit);
- assert_equals(ev.description, task_init.description, "descriptions should be equal");
- assert_equals(ev.summary, task_init.summary, "summaries should be equal");
- assert_true(ev.startDate.equalsTo(task_init.startDate), "dates should be equal");
- assert_true(ev.dueDate.equalsTo(task_init.dueDate), "dates should be equal");
- assert_equals(ev.location, task_init.location, "locations should be equal");
+ assert_equals(ev.description, taskInit.description, "descriptions should be equal");
+ assert_equals(ev.summary, taskInit.summary, "summaries should be equal");
+ assert_true(ev.startDate.equalsTo(taskInit.startDate), "dates should be equal");
+ assert_true(ev.dueDate.equalsTo(taskInit.dueDate), "dates should be equal");
+ assert_equals(ev.location, taskInit.location, "locations should be equal");
}, document.title);
</script>
<div id="log"></div>
<script type="text/javascript">
//==== TEST: Calendar_CalendarAlarm_attri_absoluteDate
-//==== LABEL Calendar_CalendarAlarm_attri_absoluteDate
+//==== LABEL Check attribute absoluteDate of CalendarAlarm
//==== SPEC Tizen Web API:Social:Calendar:CalendarAlarm:absoluteDate A
//==== SPEC_URL https://developer.tizen.org/help/topic/org.tizen.web.device.apireference/tizen/calendar.html
//==== TEST_CRITERIA
test(function () {
- var event_init = {
+ var eventInit = {
startDate: new tizen.TZDate(2011, 3, 30, 10, 0),
duration: new tizen.TimeDuration(1, "HOURS"),
alarms: [new tizen.CalendarAlarm(new tizen.TZDate(2011, 3, 30, 10, 0), "SOUND")]
},
- ev = new tizen.CalendarEvent(event_init);
+ ev = new tizen.CalendarEvent(eventInit);
assert_not_equals(ev.alarms[0].absoluteDate, null, "AbsoluteDate should not be null");
}, document.title);
<div id="log"></div>
<script type="text/javascript">
//==== TEST: Calendar_CalendarAlarm_attri_before
-//==== LABEL Calendar_CalendarAlarm_attri_before
+//==== LABEL Check attribute before of CalendarAlarm
//==== SPEC Tizen Web API:Social:Calendar:CalendarAlarm:before A
//==== SPEC_URL https://developer.tizen.org/help/topic/org.tizen.web.device.apireference/tizen/calendar.html
//==== TEST_CRITERIA
test(function () {
- var event_init = {
+ var eventInit = {
startDate: new tizen.TZDate(2011, 3, 30, 10, 0),
duration: new tizen.TimeDuration(1, "HOURS"),
alarms: [new tizen.CalendarAlarm(new tizen.TimeDuration(30, "MINS"), "SOUND")]
},
- ev = new tizen.CalendarEvent(event_init);
+ ev = new tizen.CalendarEvent(eventInit);
assert_not_equals(ev.alarms[0].before, null, "Before should not be null");
}, document.title);
<div id="log"></div>
<script type="text/javascript">
//==== TEST: Calendar_CalendarAlarm_attri_description
-//==== LABEL Calendar_CalendarAlarm_attri_description
+//==== LABEL Check attribute description of CalendarAlarm
//==== SPEC Tizen Web API:Social:Calendar:CalendarAlarm:description A
//==== SPEC_URL https://developer.tizen.org/help/topic/org.tizen.web.device.apireference/tizen/calendar.html
//==== TEST_CRITERIA AT
test(function () {
- var event_init = {
+ var eventInit = {
startDate: new tizen.TZDate(2011, 3, 30, 10, 0),
duration: new tizen.TimeDuration(1, "HOURS"),
alarms: [new tizen.CalendarAlarm(new tizen.TimeDuration(30, "MINS"), "SOUND", "desc")]
},
- ev = new tizen.CalendarEvent(event_init);
+ ev = new tizen.CalendarEvent(eventInit);
assert_equals(ev.alarms[0].description, "desc", "Description has wrong value.");
}, document.title);
<div id="log"></div>
<script type="text/javascript">
//==== TEST: Calendar_CalendarAlarm_attri_method
-//==== LABEL Calendar_CalendarAlarm_attri_method
+//==== LABEL Check attribute method of CalendarAlarm
//==== SPEC Tizen Web API:Social:Calendar:CalendarAlarm:method A
//==== SPEC_URL https://developer.tizen.org/help/topic/org.tizen.web.device.apireference/tizen/calendar.html
//==== TEST_CRITERIA AT
test(function () {
- var event_init = {
+ var eventInit = {
startDate: new tizen.TZDate(2011, 3, 30, 10, 0),
duration: new tizen.TimeDuration(1, "HOURS"),
alarms: [new tizen.CalendarAlarm(new tizen.TimeDuration(30, "MINS"), "SOUND")]
},
- ev = new tizen.CalendarEvent(event_init);
+ ev = new tizen.CalendarEvent(eventInit);
assert_equals(ev.alarms[0].method, "SOUND", "Method has wrong value.");
}, document.title);
//==== SPEC_URL https://developer.tizen.org/help/topic/org.tizen.web.device.apireference/tizen/calendar.html
//==== TEST_CRITERIA CONSTRM CONSTRA
-var init_uri, event_init, default_attendee, attendee1, ev;
+var initUri, eventInit, defaultAttendee, attendee1, ev;
test(function () {
- init_uri = "mailto:attendee1@domain.com";
- event_init = {
+ initUri = "mailto:attendee1@domain.com";
+ eventInit = {
description:"HTML5 Introduction",
summary:"HTML5 Webinar ",
startDate: new tizen.TZDate(2011, 3, 30, 10, 0),
duration: new tizen.TimeDuration(1, "HOURS"),
location:"Huesca"
};
- default_attendee = {
+ defaultAttendee = {
name:"",
role:"REQ_PARTICIPANT",
status: "PENDING",
RSVP:false,
type: "INDIVIDUAL"
};
- attendee1 = new tizen.CalendarAttendee(init_uri);
- ev = new tizen.CalendarEvent(event_init);
+ attendee1 = new tizen.CalendarAttendee(initUri);
+ ev = new tizen.CalendarEvent(eventInit);
ev.attendees = [attendee1];
assert_equals(ev.attendees.length, 1, "There should be an attendee.");
- assert_equals(ev.attendees[0].uri, init_uri, "Uri has wrong value.");
+ assert_equals(ev.attendees[0].uri, initUri, "Uri has wrong value.");
}, document.title);
</script>
<div id="log"></div>
<script type="text/javascript">
//==== TEST: Calendar_CalendarEvent_attri_alarms
-//==== LABEL Calendar_CalendarEvent_attri_alarms
+//==== LABEL Check attribute alarms of CalendarEvent
//==== SPEC Tizen Web API:Social:Calendar:CalendarItem:alarms A
//==== SPEC_URL https://developer.tizen.org/help/topic/org.tizen.web.device.apireference/tizen/calendar.html
//==== TEST_CRITERIA AE
-var event_init, ev;
+var eventInit, ev;
test(function () {
- event_init = {
+ eventInit = {
startDate: new tizen.TZDate(2011, 3, 30, 10, 0),
duration: new tizen.TimeDuration(1, "HOURS")
};
- ev = new tizen.CalendarEvent(event_init);
+ ev = new tizen.CalendarEvent(eventInit);
assert_true("alarms" in ev, "ev.alarms not exist");
}, document.title);
<div id="log"></div>
<script type="text/javascript">
//==== TEST: Calendar_CalendarEvent_attri_attendees
-//==== LABEL Calendar_CalendarEvent_attri_attendees
+//==== LABEL Check attribute attendees of CalendarEvent
//==== SPEC Tizen Web API:Social:Calendar:CalendarItem:attendees A
//==== SPEC_URL https://developer.tizen.org/help/topic/org.tizen.web.device.apireference/tizen/calendar.html
//==== TEST_CRITERIA
-var event_init, ev;
+var eventInit, ev;
test(function () {
- event_init = {
+ eventInit = {
startDate: new tizen.TZDate(2011, 3, 30, 10, 0),
duration: new tizen.TimeDuration(1, "HOURS")
};
- ev = new tizen.CalendarEvent(event_init);
+ ev = new tizen.CalendarEvent(eventInit);
assert_equals(Object.prototype.toString.call(ev.attendees),
"[object Array]", "The attendees attribute is set to an empty array");
}, document.title);
<div id="log"></div>
<script type="text/javascript">
//==== TEST: Calendar_CalendarEvent_attri_availability
-//==== LABEL Calendar_CalendarEvent_attri_availability
+//==== LABEL Check attribute availability of CalendarEvent
//==== SPEC Tizen Web API:Social:Calendar:CalendarEvent:availability A
//==== SPEC_URL https://developer.tizen.org/help/topic/org.tizen.web.device.apireference/tizen/calendar.html
//==== TEST_CRITERIA AT ADV
-var event_init, ev;
+var eventInit, ev;
test(function () {
- event_init = {
+ eventInit = {
startDate: new tizen.TZDate(2011, 3, 30, 10, 0),
duration: new tizen.TimeDuration(1, "HOURS")
};
- ev = new tizen.CalendarEvent(event_init);
+ ev = new tizen.CalendarEvent(eventInit);
assert_equals(ev.availability, "BUSY", "The default should be BUSY");
}, document.title);
<div id="log"></div>
<script type="text/javascript">
//==== TEST: Calendar_CalendarEvent_attri_categories
-//==== LABEL Calendar_CalendarEvent_attri_categories
+//==== LABEL Check attribute categories of CalendarEvent
//==== SPEC Tizen Web API:Social:Calendar:CalendarItem:categories A
//==== SPEC_URL https://developer.tizen.org/help/topic/org.tizen.web.device.apireference/tizen/calendar.html
//==== TEST_CRITERIA
-var event_init, ev;
+var eventInit, ev;
test(function () {
- event_init = {
+ eventInit = {
startDate: new tizen.TZDate(2011, 3, 30, 10, 0),
duration: new tizen.TimeDuration(1, "HOURS")
};
- ev = new tizen.CalendarEvent(event_init);
+ ev = new tizen.CalendarEvent(eventInit);
assert_equals(Object.prototype.toString.call(ev.categories),
"[object Array]", "By default, this attribute is set to an empty array");
<div id="log"></div>
<script type="text/javascript">
//==== TEST: Calendar_CalendarEvent_attri_description
-//==== LABEL Calendar_CalendarEvent_attri_description
+//==== LABEL Check attribute description of CalendarEvent
//==== SPEC Tizen Web API:Social:Calendar:CalendarItem:description A
//==== SPEC_URL https://developer.tizen.org/help/topic/org.tizen.web.device.apireference/tizen/calendar.html
//==== TEST_CRITERIA AT
-var event_init, ev;
+var eventInit, ev;
test(function () {
- event_init = {
+ eventInit = {
description: "Calendar event",
startDate: new tizen.TZDate(2011, 3, 30, 10, 0),
duration: new tizen.TimeDuration(1, "HOURS")
};
- ev = new tizen.CalendarEvent(event_init);
+ ev = new tizen.CalendarEvent(eventInit);
assert_equals(ev.description, "Calendar event",
"CalendarEvent description has wrong value.");
}, document.title);
<div id="log"></div>
<script type="text/javascript">
//==== TEST: Calendar_CalendarEvent_attri_duration
-//==== LABEL Calendar_CalendarEvent_attri_duration
+//==== LABEL Check attribute duration of CalendarEvent
//==== SPEC Tizen Web API:Social:Calendar:CalendarItem:duration A
//==== SPEC_URL https://developer.tizen.org/help/topic/org.tizen.web.device.apireference/tizen/calendar.html
//==== TEST_CRITERIA
-var event_init, ev, eq;
+var eventInit, ev, eq;
test(function () {
- event_init = {
+ eventInit = {
startDate: new tizen.TZDate(2011, 3, 30, 10, 0),
duration: new tizen.TimeDuration(1, "HOURS")
};
- ev = new tizen.CalendarEvent(event_init);
+ ev = new tizen.CalendarEvent(eventInit);
eq = new tizen.TimeDuration(1, "HOURS");
assert_true(ev.duration.equalsTo(eq), "Durations should be equal");
}, document.title);
<div id="log"></div>
<script type="text/javascript">
//==== TEST: Calendar_CalendarEvent_attri_endDate
-//==== LABEL Calendar_CalendarEvent_attri_endDate
+//==== LABEL Check attribute endDate of CalendarEvent
//==== SPEC Tizen Web API:Social:Calendar:CalendarEvent:endDate A
//==== SPEC_URL https://developer.tizen.org/help/topic/org.tizen.web.device.apireference/tizen/calendar.html
//==== TEST_CRITERIA
-var event_init, ev;
+var eventInit, ev;
test(function () {
- event_init = {
+ eventInit = {
startDate: new tizen.TZDate(2011, 3, 30, 10, 0),
endDate: new tizen.TZDate(2011, 3, 30, 11, 0)
};
- ev = new tizen.CalendarEvent(event_init);
- assert_true(ev.endDate.equalsTo(event_init.endDate),
+ ev = new tizen.CalendarEvent(eventInit);
+ assert_true(ev.endDate.equalsTo(eventInit.endDate),
"End dates should be equal.");
}, document.title);
<div id="log"></div>
<script type="text/javascript">
//==== TEST: Calendar_CalendarEvent_attri_geolocation
-//==== LABEL Calendar_CalendarEvent_attri_geolocation
+//==== LABEL Check attribute geolocation of CalendarEvent
//==== SPEC Tizen Web API:Social:Calendar:CalendarItem:geolocation A
//==== SPEC_URL https://developer.tizen.org/help/topic/org.tizen.web.device.apireference/tizen/calendar.html
//==== TEST_CRITERIA AE
-var event_init, ev;
+var eventInit, ev;
test(function () {
- event_init = {
+ eventInit = {
startDate: new tizen.TZDate(2011, 3, 30, 10, 0),
duration: new tizen.TimeDuration(1, "HOURS")
};
- ev = new tizen.CalendarEvent(event_init);
+ ev = new tizen.CalendarEvent(eventInit);
assert_true("geolocation" in ev, "The geolocation attribute not exist.");
}, document.title);
<div id="log"></div>
<script type="text/javascript">
//==== TEST: Calendar_CalendarEvent_attri_id
-//==== LABEL Calendar_CalendarEvent_attri_id
+//==== LABEL Check attribute id of CalendarEvent
//==== SPEC Tizen Web API:Social:Calendar:CalendarItem:id A
//==== SPEC_URL https://developer.tizen.org/help/topic/org.tizen.web.device.apireference/tizen/calendar.html
//==== TEST_CRITERIA AE
-var event_init, ev;
+var eventInit, ev;
test(function () {
- event_init = {
+ eventInit = {
startDate: new tizen.TZDate(2011, 3, 30, 10, 0),
duration: new tizen.TimeDuration(1, "HOURS")
};
- ev = new tizen.CalendarEvent(event_init);
+ ev = new tizen.CalendarEvent(eventInit);
assert_true("id" in ev, "The id attribute not exist.");
}, document.title);
<div id="log"></div>
<script type="text/javascript">
//==== TEST: Calendar_CalendarEvent_attri_isAllDay
-//==== LABEL Calendar_CalendarEvent_attri_isAllDay
+//==== LABEL Check attribute isAllDay of CalendarEvent
//==== SPEC Tizen Web API:Social:Calendar:CalendarItem:isAllDay A
//==== SPEC_URL https://developer.tizen.org/help/topic/org.tizen.web.device.apireference/tizen/calendar.html
//==== TEST_CRITERIA ADV
-var event_init, ev;
+var eventInit, ev;
test(function () {
- event_init = {
+ eventInit = {
startDate: new tizen.TZDate(2011, 3, 30, 10, 0),
duration: new tizen.TimeDuration(1, "HOURS")
};
- ev = new tizen.CalendarEvent(event_init);
+ ev = new tizen.CalendarEvent(eventInit);
assert_false(ev.isAllDay, "default value of isAllDay should be false");
}, document.title);
<div id="log"></div>
<script type="text/javascript">
//==== TEST: Calendar_CalendarEvent_attri_isDetached
-//==== LABEL Calendar_CalendarEvent_attri_isDetached
+//==== LABEL Check attribute isDetached of CalendarEvent
//==== SPEC Tizen Web API:Social:Calendar:CalendarEvent:isDetached A
//==== SPEC_URL https://developer.tizen.org/help/topic/org.tizen.web.device.apireference/tizen/calendar.html
//==== TEST_CRITERIA AE
-var event_init, ev;
+var eventInit, ev;
test(function () {
- event_init = {
+ eventInit = {
startDate: new tizen.TZDate(2011, 3, 30, 10, 0),
duration: new tizen.TimeDuration(1, "HOURS")
};
- ev = new tizen.CalendarEvent(event_init);
+ ev = new tizen.CalendarEvent(eventInit);
assert_true("isDetached" in ev, "isDetached attribute not exist");
}, document.title);
<div id="log"></div>
<script type="text/javascript">
//==== TEST: Calendar_CalendarEvent_attri_lastModificationDate
-//==== LABEL Calendar_CalendarEvent_attri_lastModificationDate
+//==== LABEL Check attribute lastModificationDate of CalendarEvent
//==== SPEC Tizen Web API:Social:Calendar:CalendarItem:lastModificationDate A
//==== SPEC_URL https://developer.tizen.org/help/topic/org.tizen.web.device.apireference/tizen/calendar.html
//==== TEST_CRITERIA
-var event_init, ev;
+var eventInit, ev;
test(function () {
- event_init = {
+ eventInit = {
startDate: new tizen.TZDate(2011, 3, 30, 10, 0),
duration: new tizen.TimeDuration(1, "HOURS")
};
- ev = new tizen.CalendarEvent(event_init);
+ ev = new tizen.CalendarEvent(eventInit);
assert_equals(ev.lastModificationDate, null,
"lastModificationDate should be null");
}, document.title);
<div id="log"></div>
<script type="text/javascript">
//==== TEST: Calendar_CalendarEvent_attri_location
-//==== LABEL Calendar_CalendarEvent_attri_location
+//==== LABEL Check attribute location of CalendarEvent
//==== SPEC Tizen Web API:Social:Calendar:CalendarItem:location A
//==== SPEC_URL https://developer.tizen.org/help/topic/org.tizen.web.device.apireference/tizen/calendar.html
//==== TEST_CRITERIA AT ADV
-var event_init, ev;
+var eventInit, ev;
test(function () {
- event_init = {
+ eventInit = {
startDate: new tizen.TZDate(2011, 3, 30, 10, 0),
duration: new tizen.TimeDuration(1, "HOURS")
};
- ev = new tizen.CalendarEvent(event_init);
+ ev = new tizen.CalendarEvent(eventInit);
assert_equals(ev.location, "",
"The default value for location attribute should be an empty string");
}, document.title);
<div id="log"></div>
<script type="text/javascript">
//==== TEST: Calendar_CalendarEvent_attri_organizer
-//==== LABEL Calendar_CalendarEvent_attri_organizer
+//==== LABEL Check attribute organizer of CalendarEvent
//==== SPEC Tizen Web API:Social:Calendar:CalendarItem:organizer A
//==== SPEC_URL https://developer.tizen.org/help/topic/org.tizen.web.device.apireference/tizen/calendar.html
//==== TEST_CRITERIA AT ADV
-var event_init, ev;
+var eventInit, ev;
test(function () {
- event_init = {
+ eventInit = {
startDate: new tizen.TZDate(2011, 3, 30, 10, 0),
duration: new tizen.TimeDuration(1, "HOURS")
};
- ev = new tizen.CalendarEvent(event_init);
+ ev = new tizen.CalendarEvent(eventInit);
assert_equals(ev.organizer, "",
"By default, organizer is initialized to an empty string");
}, document.title);
<div id="log"></div>
<script type="text/javascript">
//==== TEST: Calendar_CalendarEvent_attri_priority
-//==== LABEL Calendar_CalendarEvent_attri_priority
+//==== LABEL Check attribute priority of CalendarEvent
//==== SPEC Tizen Web API:Social:Calendar:CalendarItem:priority A
//==== SPEC_URL https://developer.tizen.org/help/topic/org.tizen.web.device.apireference/tizen/calendar.html
//==== TEST_CRITERIA AT ADV
-var event_init, ev;
+var eventInit, ev;
test(function () {
- event_init = {
+ eventInit = {
startDate: new tizen.TZDate(2011, 3, 30, 10, 0),
duration: new tizen.TimeDuration(1, "HOURS")
};
- ev = new tizen.CalendarEvent(event_init);
+ ev = new tizen.CalendarEvent(eventInit);
assert_equals(ev.priority, "LOW",
"The default value of priority should be LOW.");
}, document.title);
<div id="log"></div>
<script type="text/javascript">
//==== TEST: Calendar_CalendarEvent_attri_recurrenceRule
-//==== LABEL Calendar_CalendarEvent_attri_recurrenceRule
+//==== LABEL Check attribute recurrenceRule of CalendarEvent
//==== SPEC Tizen Web API:Social:Calendar:CalendarEvent:recurrenceRule A
//==== SPEC_URL https://developer.tizen.org/help/topic/org.tizen.web.device.apireference/tizen/calendar.html
//==== TEST_CRITERIA AE
-var event_init, ev;
+var eventInit, ev;
test(function () {
- event_init = {
+ eventInit = {
startDate: new tizen.TZDate(2011, 3, 30, 10, 0),
duration: new tizen.TimeDuration(1, "HOURS")
};
- ev = new tizen.CalendarEvent(event_init);
+ ev = new tizen.CalendarEvent(eventInit);
assert_true("recurrenceRule" in ev, "recurrenceRule attribute not exist");
}, document.title);
<div id="log"></div>
<script type="text/javascript">
//==== TEST: Calendar_CalendarEvent_attri_startDate
-//==== LABEL Calendar_CalendarEvent_attri_startDate
+//==== LABEL Check attribute startDate of CalendarEvent
//==== SPEC Tizen Web API:Social:Calendar:CalendarItem:startDate A
//==== SPEC_URL https://developer.tizen.org/help/topic/org.tizen.web.device.apireference/tizen/calendar.html
//==== TEST_CRITERIA ADV
-var event_init, ev;
+var eventInit, ev;
test(function () {
- event_init = {
+ eventInit = {
duration: new tizen.TimeDuration(1, "HOURS")
};
- ev = new tizen.CalendarEvent(event_init);
+ ev = new tizen.CalendarEvent(eventInit);
assert_equals(ev.startDate, null, "startDate should be null by default");
}, document.title);
<div id="log"></div>
<script type="text/javascript">
//==== TEST: Calendar_CalendarEvent_attri_status
-//==== LABEL Calendar_CalendarEvent_attri_status
+//==== LABEL Check attribute status of CalendarEvent
//==== SPEC Tizen Web API:Social:Calendar:CalendarItem:status A
//==== SPEC_URL https://developer.tizen.org/help/topic/org.tizen.web.device.apireference/tizen/calendar.html
//==== TEST_CRITERIA AT ADV
-var event_init, ev;
+var eventInit, ev;
test(function () {
- event_init = {
+ eventInit = {
startDate: new tizen.TZDate(2011, 3, 30, 10, 0),
duration: new tizen.TimeDuration(1, "HOURS")
};
- ev = new tizen.CalendarEvent(event_init);
+ ev = new tizen.CalendarEvent(eventInit);
assert_equals(ev.status, "CONFIRMED",
"The default value of status should be 'CONFIRMED'");
}, document.title);
<div id="log"></div>
<script type="text/javascript">
//==== TEST: Calendar_CalendarEvent_attri_summary
-//==== LABEL Calendar_CalendarEvent_attri_summary
+//==== LABEL Check attribute summary of CalendarEvent
//==== SPEC Tizen Web API:Social:Calendar:CalendarItem:summary A
//==== SPEC_URL https://developer.tizen.org/help/topic/org.tizen.web.device.apireference/tizen/calendar.html
//==== TEST_CRITERIA AT ADV
-var event_init, ev;
+var eventInit, ev;
test(function () {
- event_init = {
+ eventInit = {
startDate: new tizen.TZDate(2011, 3, 30, 10, 0),
duration: new tizen.TimeDuration(1, "HOURS")
};
- ev = new tizen.CalendarEvent(event_init);
+ ev = new tizen.CalendarEvent(eventInit);
assert_equals(ev.summary, "",
"The default value of summary should be an empty string");
}, document.title);
<div id="log"></div>
<script type="text/javascript">
//==== TEST: Calendar_CalendarEvent_attri_visibility
-//==== LABEL Calendar_CalendarEvent_attri_visibility
+//==== LABEL Check attribute visibility of CalendarEvent
//==== SPEC Tizen Web API:Social:Calendar:CalendarItem:visibility A
//==== SPEC_URL https://developer.tizen.org/help/topic/org.tizen.web.device.apireference/tizen/calendar.html
//==== TEST_CRITERIA AT ADV
-var event_init, ev;
+var eventInit, ev;
test(function () {
- event_init = {
+ eventInit = {
startDate: new tizen.TZDate(2011, 3, 30, 10, 0),
duration: new tizen.TimeDuration(1, "HOURS")
};
- ev = new tizen.CalendarEvent(event_init);
+ ev = new tizen.CalendarEvent(eventInit);
assert_equals(ev.visibility, "PUBLIC",
"The default value for visibility attribute should be PUBLIC");
}, document.title);
//==== TEST_CRITERIA
test(function () {
- var event_init = {description:"HTML5 Introduction",
+ var eventInit = {description:"HTML5 Introduction",
summary:"HTML5 Webinar ",
startDate: new tizen.TZDate(2011, 3, 30, 10, 0),
duration: new tizen.TimeDuration(1, "HOURS"),
location:"Huesca"},
- ev = new tizen.CalendarEvent(event_init);
+ ev = new tizen.CalendarEvent(eventInit);
ev.isAllDay = false;
ev.duration = new tizen.TimeDuration(1, "HOURS"),
//==== TEST_CRITERIA
test(function () {
- var event_init = {
+ var eventInit = {
description:"HTML5 Introduction",
summary:"HTML5 Webinar ",
startDate: new tizen.TZDate(2011, 3, 30, 10, 0),
duration: new tizen.TimeDuration(1, "HOURS"),
location:"Huesca"
},
- ev = new tizen.CalendarEvent(event_init);
+ ev = new tizen.CalendarEvent(eventInit);
ev.location = "Dalian";
ev.geolocation = new tizen.SimpleCoordinates(60.175, 24.934);
//==== TEST_CRITERIA
test(function () {
- var event_init = {
+ var eventInit = {
description:"HTML5 Introduction",
summary:"HTML5 Webinar",
location:"Huesca"
},
- ev = new tizen.CalendarEvent(event_init);
+ ev = new tizen.CalendarEvent(eventInit);
ev.startDate = new tizen.TZDate(2012, 10, 1, 10, 0);
ev.organizer = "Mr. Jones";
//==== TEST_CRITERIA
test(function () {
- var event_init = {description:"HTML5 Introduction",
+ var eventInit = {description:"HTML5 Introduction",
summary:"HTML5 Webinar ",
startDate: new tizen.TZDate(2011, 3, 30, 10, 0),
duration: new tizen.TimeDuration(1, "HOURS"),
location:"Huesca"},
- ev = new tizen.CalendarEvent(event_init);
+ ev = new tizen.CalendarEvent(eventInit);
ev.summary = "check if set attribute value successful after create ev";
ev.geolocation = new tizen.SimpleCoordinates(60.175, 24.934);
test(function () {
- var default_calendar = tizen.calendar.getDefaultCalendar("EVENT"),
- calendar = tizen.calendar.getCalendar("EVENT", default_calendar.id);
- assert_not_equals(calendar, null);
- assert_equals(calendar.id, default_calendar.id, "calendar id returned is the default one");
+ var defaultCalendar = tizen.calendar.getDefaultCalendar("EVENT"),
+ calendar = tizen.calendar.getCalendar("EVENT", defaultCalendar.id);
+ assert_not_equals(calendar, null, "Incorrect calendar");
+ assert_equals(calendar.id, defaultCalendar.id, "calendar id returned is not the default one");
}, document.title);
</script>
//==== SPEC_URL https://developer.tizen.org/help/topic/org.tizen.web.device.apireference/tizen/calendar.html
//==== TEST_CRITERIA MMINA
-var t = async_test(document.title),
- calendarListCB, default_calendar;
+var t = async_test(document.title), calendarListCB, defaultCalendar;
t.step(function (){
- calendarListCB=t.step_func(function (calendars){
- assert_not_equals(calendars, null);
- assert_true(calendars.length > 0, "calendar.length is not more than 0");
- assert_equals(calendars[0].id, default_calendar.id, "first calendar returned is the default one");
+ calendarListCB = t.step_func(function (calendars) {
+ assert_not_equals(calendars, null, "Incorrect calendars");
+ assert_greater_than(calendars.length, 0, "Received empty calendars array");
+ assert_equals(calendars[0].id, defaultCalendar.id, "first calendar returned is not the default one");
+
t.done();
});
- default_calendar = tizen.calendar.getDefaultCalendar("EVENT");
+
+ defaultCalendar = tizen.calendar.getDefaultCalendar("EVENT");
tizen.calendar.getCalendars("EVENT", calendarListCB);
});
<div id="log"></div>
<script type="text/javascript">
//==== TEST: Calendar_CalendarTask_attri_completedDate
-//==== LABEL Calendar_CalendarTask_attri_completedDate
+//==== LABEL Check attribute completedDate of CalendarTask
//==== SPEC Tizen Web API:Social:Calendar:CalendarTask:completedDate A
//==== SPEC_URL https://developer.tizen.org/help/topic/org.tizen.web.device.apireference/tizen/calendar.html
//==== TEST_CRITERIA
-var task_init, ev;
-test(function (){
- task_init = {description:"HTML5 Introduction",
+var taskInit, ev;
+test(function () {
+ taskInit = {description:"HTML5 Introduction",
summary:"HTML5 Webinar ",
startDate: new tizen.TZDate(2011, 3, 30, 10, 0),
dueDate: new tizen.TZDate(2011, 5, 30, 10, 0),
completedDate: new tizen.TZDate(2011, 4, 30, 10, 0),
location:"Huesca"};
- ev = new tizen.CalendarTask(task_init);
- assert_true(ev.completedDate.equalsTo(task_init.completedDate));
+ ev = new tizen.CalendarTask(taskInit);
+ assert_true(ev.completedDate.equalsTo(taskInit.completedDate), "Incorrect completedDate");
}, document.title);
</script>
//==== SPEC_URL https://developer.tizen.org/help/topic/org.tizen.web.device.apireference/tizen/calendar.html
//==== TEST_CRITERIA MAST MMINA MR
-var t = async_test(document.title), event_init, watcher,
+var t = async_test(document.title), eventInit, watcher,
calendar, watcherId = null, ev;
t.step(function () {
- event_init = {description:"HTML5 Introduction",
+ eventInit = {description:"HTML5 Introduction",
summary:"HTML5 Webinar",
startDate: new tizen.TZDate(2011, 3, 30, 10, 0),
duration: new tizen.TimeDuration(1, "HOURS"),
watcher = {
onitemsadded: function (items) {
assert_equals(items.length, 1, "There should be item added.");
- assert_type(watcherId, "number", "watcherId should be number");
+ assert_type(watcherId, "long", "watcherId should be number");
calendar.removeChangeListener(watcherId);
cleanup(calendar);
t.done();
};
calendar = tizen.calendar.getDefaultCalendar("EVENT");
watcherId = calendar.addChangeListener(watcher);
- ev = new tizen.CalendarEvent(event_init);
+ ev = new tizen.CalendarEvent(eventInit);
calendar.add(ev);
});
};
listener = taskCalendar.addChangeListener(watcher, onError);
- assert_type(listener, "number", "Check the listener id type.");
+ assert_type(listener, "long", "Check the listener id type.");
listenerArrayTask.push(listener);
listener = taskCalendar.addChangeListener(watcher);
//==== SPEC_URL https://developer.tizen.org/help/topic/org.tizen.web.device.apireference/tizen/calendar.html
//==== TEST_CRITERIA MAST MMINA
-var event_init, calendar, ev, beforeValue = null;
+var eventInit, calendar, ev, beforeValue = null;
test(function () {
- event_init = {
+ eventInit = {
description:"HTML5 Introduction",
summary:"HTML5 Webinar ",
startDate: new tizen.TZDate(2011, 3, 30, 10, 0),
location:"Huesca"
};
calendar = tizen.calendar.getDefaultCalendar("EVENT");
- ev = new tizen.CalendarEvent(event_init);
+ ev = new tizen.CalendarEvent(eventInit);
beforeValue = ev.id;
calendar.add(ev);
//==== SPEC Tizen Web API:Social:Calendar:Calendar:find M
//==== SPEC_URL https://developer.tizen.org/help/topic/org.tizen.web.device.apireference/tizen/calendar.html
//==== TEST_CRITERIA MMINA MR
-var t = async_test(document.title), eventSearchSuccessCallback, event_init,
+var t = async_test(document.title), eventSearchSuccessCallback, eventInit,
calendar, ev, returnedValue = null;
t.step(function (){
eventSearchSuccessCallback = t.step_func(function (events) {
assert_not_equals(events.length, 0, "Find() should find event.");
t.done();
});
- event_init = {description:"HTML5 Introduction",
+ eventInit = {description:"HTML5 Introduction",
summary:"HTML5 Webinar ",
startDate: new tizen.TZDate(2011, 3, 30, 10, 0),
duration: new tizen.TimeDuration(1, "HOURS"),
location:"Huesca"};
calendar = tizen.calendar.getDefaultCalendar("EVENT");
- ev = new tizen.CalendarEvent(event_init);
+ ev = new tizen.CalendarEvent(eventInit);
calendar.add(ev);
returnedValue = calendar.find(eventSearchSuccessCallback);
});
<div id="log"></div>
<script type="text/javascript">
-
//==== TEST: Calendar_find_event_usage
//==== LABEL Check if find() method correctly finds CalendarItem objects matching the supplied filter (checked for event calendar)
//==== SPEC Tizen Web API:Social:Calendar:Calendar:find M
//==== PRIORITY P1
//==== TEST_CRITERIA MOA
var t = async_test(document.title, {"timeout": 30000}), succCount = 10,
- onFindSuccessCB, onFindErrorCB, filter, sortMode, today_begin, today_end,
+ onFindSuccessCB, onFindErrorCB, filter, sortMode, todayBegin, todayEnd,
firstFilter, secondFilter, eventCalendar = tizen.calendar.getDefaultCalendar("EVENT");
t.step(function () {
onFindSuccessCB = t.step_func(function (items) {
- if (--succCount === 0) {
+ succCount--;
+ if (succCount === 0) {
t.done();
}
});
eventCalendar.find(onFindSuccessCB, null, null, null, 1);
- today_begin = new tizen.TZDate(2012, 2, 1, 10, 0);
- today_end = new tizen.TZDate(2012, 2, 31, 10, 0);
- filter = new tizen.AttributeRangeFilter("startDate", today_begin, today_end);
+ todayBegin = new tizen.TZDate(2012, 2, 1, 10, 0);
+ todayEnd = new tizen.TZDate(2012, 2, 31, 10, 0);
+ filter = new tizen.AttributeRangeFilter("startDate", todayBegin, todayEnd);
eventCalendar.find(onFindSuccessCB, onFindErrorCB, filter);
firstFilter = new tizen.AttributeFilter("summary", "CONTAINS", "summary");
//==== SPEC_URL https://developer.tizen.org/help/topic/org.tizen.web.device.apireference/tizen/calendar.html
//==== TEST_CRITERIA
-var event_init, ev, calendar, ev1;
+var eventInit, ev, calendar, ev1;
test(function () {
- event_init = {
+ eventInit = {
description:"HTML5 Introduction",
summary:"HTML5 Webinar ",
startDate: new tizen.TZDate(2011, 3, 30, 10, 0),
duration: new tizen.TimeDuration(1, "HOURS"),
location:"Huesca"
};
- ev = new tizen.CalendarEvent(event_init);
+ ev = new tizen.CalendarEvent(eventInit);
calendar = tizen.calendar.getDefaultCalendar("EVENT");
calendar.add(ev);
ev1 = calendar.get(ev.id);
<body>
<div id="log"></div>
<script>
-
//==== TEST: Calendar_removeBatch_with_successCallback
//==== LABEL Check whether 'removeBatch' method correctly deletes several task items from the CalendarTask object asynchronously with successCallback
//==== SPEC Tizen Web API:Social:Calendar:Calendar:removeBatch M
//==== SPEC_URL https://developer.tizen.org/help/topic/org.tizen.web.device.apireference/tizen/calendar.html
//==== TEST_CRITERIA MOA MR
-var t = async_test(document.title), calendar, ev1,
- ev2, ev_1, ev_2, successCallback, returnedValue = null;
+var t = async_test(document.title), calendar, eventInit1,
+ eventInit2, ev1, ev2, successCallback, returnedValue = null;
t.step(function () {
successCallback = t.step_func(function () {
assert_equals(returnedValue, undefined, "Incorect returned value from removeBatch()");
cleanup(calendar);
t.done();
});
- ev1 = {description:"HTML5 Introduction",
+ eventInit1 = {description:"HTML5 Introduction",
summary:"HTML5 Webinar ",
startDate: new tizen.TZDate(2011, 3, 30, 10, 0),
duration: new tizen.TimeDuration(1, "HOURS"),
location:"Huesca"};
- ev2 = {description:"HTML5 Introduction",
+ eventInit2 = {description:"HTML5 Introduction",
summary:"HTML5 Webinar ",
startDate: new tizen.TZDate(2011, 3, 30, 10, 0),
duration: new tizen.TimeDuration(1, "HOURS"),
location:"Huesca"};
calendar = tizen.calendar.getDefaultCalendar("EVENT");
- ev_1 = new tizen.CalendarEvent(ev1);
- calendar.add(ev_1);
- ev_2 = new tizen.CalendarEvent(ev2);
- calendar.add(ev_2);
+ ev1 = new tizen.CalendarEvent(eventInit1);
+ calendar.add(ev1);
+ ev2 = new tizen.CalendarEvent(eventInit2);
+ calendar.add(ev2);
- returnedValue = calendar.removeBatch([ev_1.id, ev_2.id], successCallback);
+ returnedValue = calendar.removeBatch([ev1.id, ev2.id], successCallback);
});
</script>
//==== SPEC Tizen Web API:Social:Calendar:Calendar:update M
//==== SPEC_URL https://developer.tizen.org/help/topic/org.tizen.web.device.apireference/tizen/calendar.html
//==== TEST_CRITERIA MOA MR
-var event_init, calendar, ev, ev_get, description, returnedValue;
+var eventInit, calendar, ev, evGet, description, returnedValue;
test(function () {
description = "Description Warsaw " + Math.random() + new Date().getTime();
- event_init = {
+ eventInit = {
description: description,
summary: "HTML5 Webinar ",
startDate: new tizen.TZDate(2011, 3, 30, 10, 0),
})
};
- ev = new tizen.CalendarEvent(event_init);
+ ev = new tizen.CalendarEvent(eventInit);
calendar = tizen.calendar.getDefaultCalendar("EVENT");
calendar.add(ev);
- ev_get = calendar.get(ev.id);
- ev_get.summary = "updated summary not all instances";
- returnedValue = calendar.update(ev_get, false);
+ evGet = calendar.get(ev.id);
+ evGet.summary = "updated summary not all instances";
+ returnedValue = calendar.update(evGet, false);
assert_equals(returnedValue, undefined,
"Incorect returned value from update method");
- ev_get = calendar.get(ev.id);
- assert_equals(ev_get.summary, "updated summary not all instances", "Bad event summary");
+ evGet = calendar.get(ev.id);
+ assert_equals(evGet.summary, "updated summary not all instances", "Bad event summary");
cleanup(calendar);
}, document.title);
//==== SPEC Tizen Web API:Social:Calendar:Calendar:update M
//==== SPEC_URL https://developer.tizen.org/help/topic/org.tizen.web.device.apireference/tizen/calendar.html
//==== TEST_CRITERIA MOA MAST MR
-var t = async_test(document.title, {timeout: 90000}), event_init, calendar, ev,
- i, ev_get, successCallback, errorCallback, description, filter,
+var t = async_test(document.title, {timeout: 90000}), eventInit, calendar, ev,
+ i, evGet, successCallback, errorCallback, description, filter,
returnedValue;
setup({timeout: 90000});
t.step(function () {
description = "Description Warsaw " + Math.random() + new Date().getTime();
- event_init = {
+ eventInit = {
description: description,
summary: "HTML5 Webinar ",
startDate: new tizen.TZDate(2011, 3, 30, 10, 0),
})
};
- ev = new tizen.CalendarEvent(event_init);
+ ev = new tizen.CalendarEvent(eventInit);
calendar = tizen.calendar.getDefaultCalendar("EVENT");
calendar.add(ev);
- ev_get = calendar.get(ev.id);
- ev_get.summary = "updated summary";
- returnedValue = calendar.update(ev_get, true);
+ evGet = calendar.get(ev.id);
+ evGet.summary = "updated summary";
+ returnedValue = calendar.update(evGet, true);
assert_equals(returnedValue, undefined,
"Incorect returned value from update method");
<test_definition>
<suite name="tct-calendar-tizen-tests" launcher="WRTLauncher" category="Tizen Web Device APIs">
<set name="Calendar">
- <testcase purpose="Calendar_CalendarAlarm_attri_description" type="compliance" status="approved" component="TizenAPI/Social/Calendar" execution_type="auto" priority="P1" id="Calendar_CalendarAlarm_attri_description">
+ <testcase purpose="Check attribute description of CalendarAlarm" type="compliance" status="approved" component="TizenAPI/Social/Calendar" execution_type="auto" priority="P1" id="Calendar_CalendarAlarm_attri_description">
<description>
<test_script_entry>/opt/tct-calendar-tizen-tests/calendar/Calendar_CalendarAlarm_attri_description.html</test_script_entry>
</description>
</spec>
</specs>
</testcase>
- <testcase purpose="Calendar_CalendarEvent_attri_geolocation" type="compliance" status="approved" component="TizenAPI/Social/Calendar" execution_type="auto" priority="P1" id="Calendar_CalendarEvent_attri_geolocation">
+ <testcase purpose="Check attribute geolocation of CalendarEvent" type="compliance" status="approved" component="TizenAPI/Social/Calendar" execution_type="auto" priority="P1" id="Calendar_CalendarEvent_attri_geolocation">
<description>
<test_script_entry>/opt/tct-calendar-tizen-tests/calendar/Calendar_CalendarEvent_attri_geolocation.html</test_script_entry>
</description>
</spec>
</specs>
</testcase>
- <testcase purpose="Calendar_CalendarEvent_attri_location" type="compliance" status="approved" component="TizenAPI/Social/Calendar" execution_type="auto" priority="P1" id="Calendar_CalendarEvent_attri_location">
+ <testcase purpose="Check attribute location of CalendarEvent" type="compliance" status="approved" component="TizenAPI/Social/Calendar" execution_type="auto" priority="P1" id="Calendar_CalendarEvent_attri_location">
<description>
<test_script_entry>/opt/tct-calendar-tizen-tests/calendar/Calendar_CalendarEvent_attri_location.html</test_script_entry>
</description>
</spec>
</specs>
</testcase>
- <testcase purpose="Calendar_CalendarEvent_attri_endDate" type="compliance" status="approved" component="TizenAPI/Social/Calendar" execution_type="auto" priority="P1" id="Calendar_CalendarEvent_attri_endDate">
+ <testcase purpose="Check attribute endDate of CalendarEvent" type="compliance" status="approved" component="TizenAPI/Social/Calendar" execution_type="auto" priority="P1" id="Calendar_CalendarEvent_attri_endDate">
<description>
<test_script_entry>/opt/tct-calendar-tizen-tests/calendar/Calendar_CalendarEvent_attri_endDate.html</test_script_entry>
</description>
</spec>
</specs>
</testcase>
- <testcase purpose="Calendar_CalendarEvent_attri_attendees" type="compliance" status="approved" component="TizenAPI/Social/Calendar" execution_type="auto" priority="P1" id="Calendar_CalendarEvent_attri_attendees">
+ <testcase purpose="Check attribute attendees of CalendarEvent" type="compliance" status="approved" component="TizenAPI/Social/Calendar" execution_type="auto" priority="P1" id="Calendar_CalendarEvent_attri_attendees">
<description>
<test_script_entry>/opt/tct-calendar-tizen-tests/calendar/Calendar_CalendarEvent_attri_attendees.html</test_script_entry>
</description>
</spec>
</specs>
</testcase>
- <testcase purpose="Calendar_CalendarEvent_attri_isDetached" type="compliance" status="approved" component="TizenAPI/Social/Calendar" execution_type="auto" priority="P1" id="Calendar_CalendarEvent_attri_isDetached">
+ <testcase purpose="Check attribute isDetached of CalendarEvent" type="compliance" status="approved" component="TizenAPI/Social/Calendar" execution_type="auto" priority="P1" id="Calendar_CalendarEvent_attri_isDetached">
<description>
<test_script_entry>/opt/tct-calendar-tizen-tests/calendar/Calendar_CalendarEvent_attri_isDetached.html</test_script_entry>
</description>
</spec>
</specs>
</testcase>
- <testcase purpose="Calendar_CalendarEvent_attri_status" type="compliance" status="approved" component="TizenAPI/Social/Calendar" execution_type="auto" priority="P1" id="Calendar_CalendarEvent_attri_status">
+ <testcase purpose="Check attribute status of CalendarEvent" type="compliance" status="approved" component="TizenAPI/Social/Calendar" execution_type="auto" priority="P1" id="Calendar_CalendarEvent_attri_status">
<description>
<test_script_entry>/opt/tct-calendar-tizen-tests/calendar/Calendar_CalendarEvent_attri_status.html</test_script_entry>
</description>
</spec>
</specs>
</testcase>
- <testcase purpose="Calendar_CalendarEvent_attri_duration" type="compliance" status="approved" component="TizenAPI/Social/Calendar" execution_type="auto" priority="P1" id="Calendar_CalendarEvent_attri_duration">
+ <testcase purpose="Check attribute duration of CalendarEvent" type="compliance" status="approved" component="TizenAPI/Social/Calendar" execution_type="auto" priority="P1" id="Calendar_CalendarEvent_attri_duration">
<description>
<test_script_entry>/opt/tct-calendar-tizen-tests/calendar/Calendar_CalendarEvent_attri_duration.html</test_script_entry>
</description>
</spec>
</specs>
</testcase>
- <testcase purpose="Calendar_CalendarEvent_attri_recurrenceRule" type="compliance" status="approved" component="TizenAPI/Social/Calendar" execution_type="auto" priority="P1" id="Calendar_CalendarEvent_attri_recurrenceRule">
+ <testcase purpose="Check attribute recurrenceRule of CalendarEvent" type="compliance" status="approved" component="TizenAPI/Social/Calendar" execution_type="auto" priority="P1" id="Calendar_CalendarEvent_attri_recurrenceRule">
<description>
<test_script_entry>/opt/tct-calendar-tizen-tests/calendar/Calendar_CalendarEvent_attri_recurrenceRule.html</test_script_entry>
</description>
</spec>
</specs>
</testcase>
- <testcase purpose="Calendar_CalendarEvent_attri_summary" type="compliance" status="approved" component="TizenAPI/Social/Calendar" execution_type="auto" priority="P1" id="Calendar_CalendarEvent_attri_summary">
+ <testcase purpose="Check attribute summary of CalendarEvent" type="compliance" status="approved" component="TizenAPI/Social/Calendar" execution_type="auto" priority="P1" id="Calendar_CalendarEvent_attri_summary">
<description>
<test_script_entry>/opt/tct-calendar-tizen-tests/calendar/Calendar_CalendarEvent_attri_summary.html</test_script_entry>
</description>
</spec>
</specs>
</testcase>
- <testcase purpose="Calendar_CalendarEvent_attri_alarms" type="compliance" status="approved" component="TizenAPI/Social/Calendar" execution_type="auto" priority="P1" id="Calendar_CalendarEvent_attri_alarms">
+ <testcase purpose="Check attribute alarms of CalendarEvent" type="compliance" status="approved" component="TizenAPI/Social/Calendar" execution_type="auto" priority="P1" id="Calendar_CalendarEvent_attri_alarms">
<description>
<test_script_entry>/opt/tct-calendar-tizen-tests/calendar/Calendar_CalendarEvent_attri_alarms.html</test_script_entry>
</description>
</spec>
</specs>
</testcase>
- <testcase purpose="Calendar_CalendarEvent_attri_isAllDay" type="compliance" status="approved" component="TizenAPI/Social/Calendar" execution_type="auto" priority="P1" id="Calendar_CalendarEvent_attri_isAllDay">
+ <testcase purpose="Check attribute isAllDay of CalendarEvent" type="compliance" status="approved" component="TizenAPI/Social/Calendar" execution_type="auto" priority="P1" id="Calendar_CalendarEvent_attri_isAllDay">
<description>
<test_script_entry>/opt/tct-calendar-tizen-tests/calendar/Calendar_CalendarEvent_attri_isAllDay.html</test_script_entry>
</description>
</spec>
</specs>
</testcase>
- <testcase purpose="Calendar_CalendarAlarm_attri_method" type="compliance" status="approved" component="TizenAPI/Social/Calendar" execution_type="auto" priority="P1" id="Calendar_CalendarAlarm_attri_method">
+ <testcase purpose="Check attribute method of CalendarAlarm" type="compliance" status="approved" component="TizenAPI/Social/Calendar" execution_type="auto" priority="P1" id="Calendar_CalendarAlarm_attri_method">
<description>
<test_script_entry>/opt/tct-calendar-tizen-tests/calendar/Calendar_CalendarAlarm_attri_method.html</test_script_entry>
</description>
</spec>
</specs>
</testcase>
- <testcase purpose="Calendar_CalendarEvent_attri_organizer" type="compliance" status="approved" component="TizenAPI/Social/Calendar" execution_type="auto" priority="P1" id="Calendar_CalendarEvent_attri_organizer">
+ <testcase purpose="Check attribute organizer of CalendarEvent" type="compliance" status="approved" component="TizenAPI/Social/Calendar" execution_type="auto" priority="P1" id="Calendar_CalendarEvent_attri_organizer">
<description>
<test_script_entry>/opt/tct-calendar-tizen-tests/calendar/Calendar_CalendarEvent_attri_organizer.html</test_script_entry>
</description>
</spec>
</specs>
</testcase>
- <testcase purpose="Calendar_CalendarEvent_attri_categories" type="compliance" status="approved" component="TizenAPI/Social/Calendar" execution_type="auto" priority="P1" id="Calendar_CalendarEvent_attri_categories">
+ <testcase purpose="Check attribute categories of CalendarEvent" type="compliance" status="approved" component="TizenAPI/Social/Calendar" execution_type="auto" priority="P1" id="Calendar_CalendarEvent_attri_categories">
<description>
<test_script_entry>/opt/tct-calendar-tizen-tests/calendar/Calendar_CalendarEvent_attri_categories.html</test_script_entry>
</description>
</spec>
</specs>
</testcase>
- <testcase purpose="Calendar_CalendarAlarm_attri_before" type="compliance" status="approved" component="TizenAPI/Social/Calendar" execution_type="auto" priority="P1" id="Calendar_CalendarAlarm_attri_before">
+ <testcase purpose="Check attribute before of CalendarAlarm" type="compliance" status="approved" component="TizenAPI/Social/Calendar" execution_type="auto" priority="P1" id="Calendar_CalendarAlarm_attri_before">
<description>
<test_script_entry>/opt/tct-calendar-tizen-tests/calendar/Calendar_CalendarAlarm_attri_before.html</test_script_entry>
</description>
</spec>
</specs>
</testcase>
- <testcase purpose="Calendar_CalendarEvent_attri_startDate" type="compliance" status="approved" component="TizenAPI/Social/Calendar" execution_type="auto" priority="P1" id="Calendar_CalendarEvent_attri_startDate">
+ <testcase purpose="Check attribute startDate of CalendarEvent" type="compliance" status="approved" component="TizenAPI/Social/Calendar" execution_type="auto" priority="P1" id="Calendar_CalendarEvent_attri_startDate">
<description>
<test_script_entry>/opt/tct-calendar-tizen-tests/calendar/Calendar_CalendarEvent_attri_startDate.html</test_script_entry>
</description>
</spec>
</specs>
</testcase>
- <testcase purpose="Calendar_CalendarEvent_attri_lastModificationDate" type="compliance" status="approved" component="TizenAPI/Social/Calendar" execution_type="auto" priority="P1" id="Calendar_CalendarEvent_attri_lastModificationDate">
+ <testcase purpose="Check attribute lastModificationDate of CalendarEvent" type="compliance" status="approved" component="TizenAPI/Social/Calendar" execution_type="auto" priority="P1" id="Calendar_CalendarEvent_attri_lastModificationDate">
<description>
<test_script_entry>/opt/tct-calendar-tizen-tests/calendar/Calendar_CalendarEvent_attri_lastModificationDate.html</test_script_entry>
</description>
</spec>
</specs>
</testcase>
- <testcase purpose="Calendar_CalendarAlarm_attri_absoluteDate" type="compliance" status="approved" component="TizenAPI/Social/Calendar" execution_type="auto" priority="P1" id="Calendar_CalendarAlarm_attri_absoluteDate">
+ <testcase purpose="Check attribute absoluteDate of CalendarAlarm" type="compliance" status="approved" component="TizenAPI/Social/Calendar" execution_type="auto" priority="P1" id="Calendar_CalendarAlarm_attri_absoluteDate">
<description>
<test_script_entry>/opt/tct-calendar-tizen-tests/calendar/Calendar_CalendarAlarm_attri_absoluteDate.html</test_script_entry>
</description>
</spec>
</specs>
</testcase>
- <testcase purpose="Calendar_CalendarEvent_attri_priority" type="compliance" status="approved" component="TizenAPI/Social/Calendar" execution_type="auto" priority="P1" id="Calendar_CalendarEvent_attri_priority">
+ <testcase purpose="Check attribute priority of CalendarEvent" type="compliance" status="approved" component="TizenAPI/Social/Calendar" execution_type="auto" priority="P1" id="Calendar_CalendarEvent_attri_priority">
<description>
<test_script_entry>/opt/tct-calendar-tizen-tests/calendar/Calendar_CalendarEvent_attri_priority.html</test_script_entry>
</description>
</spec>
</specs>
</testcase>
- <testcase purpose="Calendar_CalendarEvent_attri_description" type="compliance" status="approved" component="TizenAPI/Social/Calendar" execution_type="auto" priority="P1" id="Calendar_CalendarEvent_attri_description">
+ <testcase purpose="Check attribute description of CalendarEvent" type="compliance" status="approved" component="TizenAPI/Social/Calendar" execution_type="auto" priority="P1" id="Calendar_CalendarEvent_attri_description">
<description>
<test_script_entry>/opt/tct-calendar-tizen-tests/calendar/Calendar_CalendarEvent_attri_description.html</test_script_entry>
</description>
</spec>
</specs>
</testcase>
- <testcase purpose="Calendar_CalendarTask_attri_completedDate" type="compliance" status="approved" component="TizenAPI/Social/Calendar" execution_type="auto" priority="P1" id="Calendar_CalendarTask_attri_completedDate">
+ <testcase purpose="Check attribute completedDate of CalendarTask" type="compliance" status="approved" component="TizenAPI/Social/Calendar" execution_type="auto" priority="P1" id="Calendar_CalendarTask_attri_completedDate">
<description>
<test_script_entry>/opt/tct-calendar-tizen-tests/calendar/Calendar_CalendarTask_attri_completedDate.html</test_script_entry>
</description>
</spec>
</specs>
</testcase>
- <testcase purpose="Calendar_CalendarEvent_attri_availability" type="compliance" status="approved" component="TizenAPI/Social/Calendar" execution_type="auto" priority="P1" id="Calendar_CalendarEvent_attri_availability">
+ <testcase purpose="Check attribute availability of CalendarEvent" type="compliance" status="approved" component="TizenAPI/Social/Calendar" execution_type="auto" priority="P1" id="Calendar_CalendarEvent_attri_availability">
<description>
<test_script_entry>/opt/tct-calendar-tizen-tests/calendar/Calendar_CalendarEvent_attri_availability.html</test_script_entry>
</description>
</spec>
</specs>
</testcase>
- <testcase purpose="Calendar_CalendarEvent_attri_visibility" type="compliance" status="approved" component="TizenAPI/Social/Calendar" execution_type="auto" priority="P1" id="Calendar_CalendarEvent_attri_visibility">
+ <testcase purpose="Check attribute visibility of CalendarEvent" type="compliance" status="approved" component="TizenAPI/Social/Calendar" execution_type="auto" priority="P1" id="Calendar_CalendarEvent_attri_visibility">
<description>
<test_script_entry>/opt/tct-calendar-tizen-tests/calendar/Calendar_CalendarEvent_attri_visibility.html</test_script_entry>
</description>
</spec>
</specs>
</testcase>
- <testcase purpose="Calendar_CalendarEvent_attri_id" type="compliance" status="approved" component="TizenAPI/Social/Calendar" execution_type="auto" priority="P1" id="Calendar_CalendarEvent_attri_id">
+ <testcase purpose="Check attribute id of CalendarEvent" type="compliance" status="approved" component="TizenAPI/Social/Calendar" execution_type="auto" priority="P1" id="Calendar_CalendarEvent_attri_id">
<description>
<test_script_entry>/opt/tct-calendar-tizen-tests/calendar/Calendar_CalendarEvent_attri_id.html</test_script_entry>
</description>
</spec>
</specs>
</testcase>
- <testcase purpose="Check CalendarEvent method: convertToString" type="compliance" status="approved" component="TizenAPI/Social/Calendar" execution_type="auto" priority="P1" id="CalendarItem_convertToString">
+ <testcase purpose="Check if CalendarItem.convertToString method works properly" type="compliance" status="approved" component="TizenAPI/Social/Calendar" execution_type="auto" priority="P1" id="CalendarItem_convertToString">
<description>
<test_script_entry>/opt/tct-calendar-tizen-tests/calendar/CalendarItem_convertToString.html</test_script_entry>
</description>
</spec>
</specs>
</testcase>
- <testcase purpose="Check whether all available 'EVENT' type calendars are listed correctly" type="compliance" status="approved" component="TizenAPI/Social/Calendar" execution_type="auto" priority="P1" id="CalendarManager_getCalendars_with_errorCallback">
+ <testcase purpose="Check CalendarManager.getCalendars works properly for EVENT type with and without error callback" type="compliance" status="approved" component="TizenAPI/Social/Calendar" execution_type="auto" priority="P1" id="CalendarManager_getCalendars_with_errorCallback">
<description>
<test_script_entry>/opt/tct-calendar-tizen-tests/calendar/CalendarManager_getCalendars_with_errorCallback.html</test_script_entry>
</description>
<test_definition>
<suite name="tct-calendar-tizen-tests" launcher="WRTLauncher" category="Tizen Web Device APIs">
<set name="Calendar">
- <testcase purpose="Calendar_CalendarAlarm_attri_description" component="TizenAPI/Social/Calendar" execution_type="auto" id="Calendar_CalendarAlarm_attri_description">
+ <testcase purpose="Check attribute description of CalendarAlarm" component="TizenAPI/Social/Calendar" execution_type="auto" id="Calendar_CalendarAlarm_attri_description">
<description>
<test_script_entry>/opt/tct-calendar-tizen-tests/calendar/Calendar_CalendarAlarm_attri_description.html</test_script_entry>
</description>
<test_script_entry>/opt/tct-calendar-tizen-tests/calendar/Calendar_CalendarManager_getCalendars_event.html</test_script_entry>
</description>
</testcase>
- <testcase purpose="Calendar_CalendarEvent_attri_geolocation" component="TizenAPI/Social/Calendar" execution_type="auto" id="Calendar_CalendarEvent_attri_geolocation">
+ <testcase purpose="Check attribute geolocation of CalendarEvent" component="TizenAPI/Social/Calendar" execution_type="auto" id="Calendar_CalendarEvent_attri_geolocation">
<description>
<test_script_entry>/opt/tct-calendar-tizen-tests/calendar/Calendar_CalendarEvent_attri_geolocation.html</test_script_entry>
</description>
<test_script_entry>/opt/tct-calendar-tizen-tests/calendar/Calendar_CalendarManager_getCalendarDefault_event.html</test_script_entry>
</description>
</testcase>
- <testcase purpose="Calendar_CalendarEvent_attri_location" component="TizenAPI/Social/Calendar" execution_type="auto" id="Calendar_CalendarEvent_attri_location">
+ <testcase purpose="Check attribute location of CalendarEvent" component="TizenAPI/Social/Calendar" execution_type="auto" id="Calendar_CalendarEvent_attri_location">
<description>
<test_script_entry>/opt/tct-calendar-tizen-tests/calendar/Calendar_CalendarEvent_attri_location.html</test_script_entry>
</description>
<test_script_entry>/opt/tct-calendar-tizen-tests/calendar/Calendar_CalendarRecurrenceRule_attri_daysOfTheWeek.html</test_script_entry>
</description>
</testcase>
- <testcase purpose="Calendar_CalendarEvent_attri_endDate" component="TizenAPI/Social/Calendar" execution_type="auto" id="Calendar_CalendarEvent_attri_endDate">
+ <testcase purpose="Check attribute endDate of CalendarEvent" component="TizenAPI/Social/Calendar" execution_type="auto" id="Calendar_CalendarEvent_attri_endDate">
<description>
<test_script_entry>/opt/tct-calendar-tizen-tests/calendar/Calendar_CalendarEvent_attri_endDate.html</test_script_entry>
</description>
</testcase>
- <testcase purpose="Calendar_CalendarEvent_attri_attendees" component="TizenAPI/Social/Calendar" execution_type="auto" id="Calendar_CalendarEvent_attri_attendees">
+ <testcase purpose="Check attribute attendees of CalendarEvent" component="TizenAPI/Social/Calendar" execution_type="auto" id="Calendar_CalendarEvent_attri_attendees">
<description>
<test_script_entry>/opt/tct-calendar-tizen-tests/calendar/Calendar_CalendarEvent_attri_attendees.html</test_script_entry>
</description>
</testcase>
- <testcase purpose="Calendar_CalendarEvent_attri_isDetached" component="TizenAPI/Social/Calendar" execution_type="auto" id="Calendar_CalendarEvent_attri_isDetached">
+ <testcase purpose="Check attribute isDetached of CalendarEvent" component="TizenAPI/Social/Calendar" execution_type="auto" id="Calendar_CalendarEvent_attri_isDetached">
<description>
<test_script_entry>/opt/tct-calendar-tizen-tests/calendar/Calendar_CalendarEvent_attri_isDetached.html</test_script_entry>
</description>
</testcase>
- <testcase purpose="Calendar_CalendarEvent_attri_status" component="TizenAPI/Social/Calendar" execution_type="auto" id="Calendar_CalendarEvent_attri_status">
+ <testcase purpose="Check attribute status of CalendarEvent" component="TizenAPI/Social/Calendar" execution_type="auto" id="Calendar_CalendarEvent_attri_status">
<description>
<test_script_entry>/opt/tct-calendar-tizen-tests/calendar/Calendar_CalendarEvent_attri_status.html</test_script_entry>
</description>
</testcase>
- <testcase purpose="Calendar_CalendarEvent_attri_duration" component="TizenAPI/Social/Calendar" execution_type="auto" id="Calendar_CalendarEvent_attri_duration">
+ <testcase purpose="Check attribute duration of CalendarEvent" component="TizenAPI/Social/Calendar" execution_type="auto" id="Calendar_CalendarEvent_attri_duration">
<description>
<test_script_entry>/opt/tct-calendar-tizen-tests/calendar/Calendar_CalendarEvent_attri_duration.html</test_script_entry>
</description>
<test_script_entry>/opt/tct-calendar-tizen-tests/calendar/Calendar_CalendarAttendee_constructor_default.html</test_script_entry>
</description>
</testcase>
- <testcase purpose="Calendar_CalendarEvent_attri_recurrenceRule" component="TizenAPI/Social/Calendar" execution_type="auto" id="Calendar_CalendarEvent_attri_recurrenceRule">
+ <testcase purpose="Check attribute recurrenceRule of CalendarEvent" component="TizenAPI/Social/Calendar" execution_type="auto" id="Calendar_CalendarEvent_attri_recurrenceRule">
<description>
<test_script_entry>/opt/tct-calendar-tizen-tests/calendar/Calendar_CalendarEvent_attri_recurrenceRule.html</test_script_entry>
</description>
</testcase>
- <testcase purpose="Calendar_CalendarEvent_attri_summary" component="TizenAPI/Social/Calendar" execution_type="auto" id="Calendar_CalendarEvent_attri_summary">
+ <testcase purpose="Check attribute summary of CalendarEvent" component="TizenAPI/Social/Calendar" execution_type="auto" id="Calendar_CalendarEvent_attri_summary">
<description>
<test_script_entry>/opt/tct-calendar-tizen-tests/calendar/Calendar_CalendarEvent_attri_summary.html</test_script_entry>
</description>
<test_script_entry>/opt/tct-calendar-tizen-tests/calendar/Calendar_CalendarAlarm_constructor_TimeDuration.html</test_script_entry>
</description>
</testcase>
- <testcase purpose="Calendar_CalendarEvent_attri_alarms" component="TizenAPI/Social/Calendar" execution_type="auto" id="Calendar_CalendarEvent_attri_alarms">
+ <testcase purpose="Check attribute alarms of CalendarEvent" component="TizenAPI/Social/Calendar" execution_type="auto" id="Calendar_CalendarEvent_attri_alarms">
<description>
<test_script_entry>/opt/tct-calendar-tizen-tests/calendar/Calendar_CalendarEvent_attri_alarms.html</test_script_entry>
</description>
</testcase>
- <testcase purpose="Calendar_CalendarEvent_attri_isAllDay" component="TizenAPI/Social/Calendar" execution_type="auto" id="Calendar_CalendarEvent_attri_isAllDay">
+ <testcase purpose="Check attribute isAllDay of CalendarEvent" component="TizenAPI/Social/Calendar" execution_type="auto" id="Calendar_CalendarEvent_attri_isAllDay">
<description>
<test_script_entry>/opt/tct-calendar-tizen-tests/calendar/Calendar_CalendarEvent_attri_isAllDay.html</test_script_entry>
</description>
</testcase>
- <testcase purpose="Calendar_CalendarAlarm_attri_method" component="TizenAPI/Social/Calendar" execution_type="auto" id="Calendar_CalendarAlarm_attri_method">
+ <testcase purpose="Check attribute method of CalendarAlarm" component="TizenAPI/Social/Calendar" execution_type="auto" id="Calendar_CalendarAlarm_attri_method">
<description>
<test_script_entry>/opt/tct-calendar-tizen-tests/calendar/Calendar_CalendarAlarm_attri_method.html</test_script_entry>
</description>
</testcase>
- <testcase purpose="Calendar_CalendarEvent_attri_organizer" component="TizenAPI/Social/Calendar" execution_type="auto" id="Calendar_CalendarEvent_attri_organizer">
+ <testcase purpose="Check attribute organizer of CalendarEvent" component="TizenAPI/Social/Calendar" execution_type="auto" id="Calendar_CalendarEvent_attri_organizer">
<description>
<test_script_entry>/opt/tct-calendar-tizen-tests/calendar/Calendar_CalendarEvent_attri_organizer.html</test_script_entry>
</description>
</testcase>
- <testcase purpose="Calendar_CalendarEvent_attri_categories" component="TizenAPI/Social/Calendar" execution_type="auto" id="Calendar_CalendarEvent_attri_categories">
+ <testcase purpose="Check attribute categories of CalendarEvent" component="TizenAPI/Social/Calendar" execution_type="auto" id="Calendar_CalendarEvent_attri_categories">
<description>
<test_script_entry>/opt/tct-calendar-tizen-tests/calendar/Calendar_CalendarEvent_attri_categories.html</test_script_entry>
</description>
<test_script_entry>/opt/tct-calendar-tizen-tests/calendar/Calendar_CalendarRecurrenceRule_attri_occurrenceCount.html</test_script_entry>
</description>
</testcase>
- <testcase purpose="Calendar_CalendarAlarm_attri_before" component="TizenAPI/Social/Calendar" execution_type="auto" id="Calendar_CalendarAlarm_attri_before">
+ <testcase purpose="Check attribute before of CalendarAlarm" component="TizenAPI/Social/Calendar" execution_type="auto" id="Calendar_CalendarAlarm_attri_before">
<description>
<test_script_entry>/opt/tct-calendar-tizen-tests/calendar/Calendar_CalendarAlarm_attri_before.html</test_script_entry>
</description>
</testcase>
- <testcase purpose="Calendar_CalendarEvent_attri_startDate" component="TizenAPI/Social/Calendar" execution_type="auto" id="Calendar_CalendarEvent_attri_startDate">
+ <testcase purpose="Check attribute startDate of CalendarEvent" component="TizenAPI/Social/Calendar" execution_type="auto" id="Calendar_CalendarEvent_attri_startDate">
<description>
<test_script_entry>/opt/tct-calendar-tizen-tests/calendar/Calendar_CalendarEvent_attri_startDate.html</test_script_entry>
</description>
<test_script_entry>/opt/tct-calendar-tizen-tests/calendar/Calendar_CalendarRecurrenceRule_attri_untilDate.html</test_script_entry>
</description>
</testcase>
- <testcase purpose="Calendar_CalendarEvent_attri_lastModificationDate" component="TizenAPI/Social/Calendar" execution_type="auto" id="Calendar_CalendarEvent_attri_lastModificationDate">
+ <testcase purpose="Check attribute lastModificationDate of CalendarEvent" component="TizenAPI/Social/Calendar" execution_type="auto" id="Calendar_CalendarEvent_attri_lastModificationDate">
<description>
<test_script_entry>/opt/tct-calendar-tizen-tests/calendar/Calendar_CalendarEvent_attri_lastModificationDate.html</test_script_entry>
</description>
<test_script_entry>/opt/tct-calendar-tizen-tests/calendar/CalendarRecurrenceRule_constructor.html</test_script_entry>
</description>
</testcase>
- <testcase purpose="Calendar_CalendarAlarm_attri_absoluteDate" component="TizenAPI/Social/Calendar" execution_type="auto" id="Calendar_CalendarAlarm_attri_absoluteDate">
+ <testcase purpose="Check attribute absoluteDate of CalendarAlarm" component="TizenAPI/Social/Calendar" execution_type="auto" id="Calendar_CalendarAlarm_attri_absoluteDate">
<description>
<test_script_entry>/opt/tct-calendar-tizen-tests/calendar/Calendar_CalendarAlarm_attri_absoluteDate.html</test_script_entry>
</description>
</testcase>
- <testcase purpose="Calendar_CalendarEvent_attri_priority" component="TizenAPI/Social/Calendar" execution_type="auto" id="Calendar_CalendarEvent_attri_priority">
+ <testcase purpose="Check attribute priority of CalendarEvent" component="TizenAPI/Social/Calendar" execution_type="auto" id="Calendar_CalendarEvent_attri_priority">
<description>
<test_script_entry>/opt/tct-calendar-tizen-tests/calendar/Calendar_CalendarEvent_attri_priority.html</test_script_entry>
</description>
<test_script_entry>/opt/tct-calendar-tizen-tests/calendar/Calendar_add_Event.html</test_script_entry>
</description>
</testcase>
- <testcase purpose="Calendar_CalendarEvent_attri_description" component="TizenAPI/Social/Calendar" execution_type="auto" id="Calendar_CalendarEvent_attri_description">
+ <testcase purpose="Check attribute description of CalendarEvent" component="TizenAPI/Social/Calendar" execution_type="auto" id="Calendar_CalendarEvent_attri_description">
<description>
<test_script_entry>/opt/tct-calendar-tizen-tests/calendar/Calendar_CalendarEvent_attri_description.html</test_script_entry>
</description>
</testcase>
- <testcase purpose="Calendar_CalendarTask_attri_completedDate" component="TizenAPI/Social/Calendar" execution_type="auto" id="Calendar_CalendarTask_attri_completedDate">
+ <testcase purpose="Check attribute completedDate of CalendarTask" component="TizenAPI/Social/Calendar" execution_type="auto" id="Calendar_CalendarTask_attri_completedDate">
<description>
<test_script_entry>/opt/tct-calendar-tizen-tests/calendar/Calendar_CalendarTask_attri_completedDate.html</test_script_entry>
</description>
<test_script_entry>/opt/tct-calendar-tizen-tests/calendar/Calendar_CalendarRecurrenceRule_attri_frequency.html</test_script_entry>
</description>
</testcase>
- <testcase purpose="Calendar_CalendarEvent_attri_availability" component="TizenAPI/Social/Calendar" execution_type="auto" id="Calendar_CalendarEvent_attri_availability">
+ <testcase purpose="Check attribute availability of CalendarEvent" component="TizenAPI/Social/Calendar" execution_type="auto" id="Calendar_CalendarEvent_attri_availability">
<description>
<test_script_entry>/opt/tct-calendar-tizen-tests/calendar/Calendar_CalendarEvent_attri_availability.html</test_script_entry>
</description>
</testcase>
- <testcase purpose="Calendar_CalendarEvent_attri_visibility" component="TizenAPI/Social/Calendar" execution_type="auto" id="Calendar_CalendarEvent_attri_visibility">
+ <testcase purpose="Check attribute visibility of CalendarEvent" component="TizenAPI/Social/Calendar" execution_type="auto" id="Calendar_CalendarEvent_attri_visibility">
<description>
<test_script_entry>/opt/tct-calendar-tizen-tests/calendar/Calendar_CalendarEvent_attri_visibility.html</test_script_entry>
</description>
</testcase>
- <testcase purpose="Calendar_CalendarEvent_attri_id" component="TizenAPI/Social/Calendar" execution_type="auto" id="Calendar_CalendarEvent_attri_id">
+ <testcase purpose="Check attribute id of CalendarEvent" component="TizenAPI/Social/Calendar" execution_type="auto" id="Calendar_CalendarEvent_attri_id">
<description>
<test_script_entry>/opt/tct-calendar-tizen-tests/calendar/Calendar_CalendarEvent_attri_id.html</test_script_entry>
</description>
<test_script_entry>/opt/tct-calendar-tizen-tests/calendar/CalendarItem_clone_extra_argument.html</test_script_entry>
</description>
</testcase>
- <testcase purpose="Check CalendarEvent method: convertToString" component="TizenAPI/Social/Calendar" execution_type="auto" id="CalendarItem_convertToString">
+ <testcase purpose="Check if CalendarItem.convertToString method works properly" component="TizenAPI/Social/Calendar" execution_type="auto" id="CalendarItem_convertToString">
<description>
<test_script_entry>/opt/tct-calendar-tizen-tests/calendar/CalendarItem_convertToString.html</test_script_entry>
</description>
<test_script_entry>/opt/tct-calendar-tizen-tests/calendar/CalendarManager_getCalendars_type_TypeMismatch.html</test_script_entry>
</description>
</testcase>
- <testcase purpose="Check whether all available 'EVENT' type calendars are listed correctly" component="TizenAPI/Social/Calendar" execution_type="auto" id="CalendarManager_getCalendars_with_errorCallback">
+ <testcase purpose="Check CalendarManager.getCalendars works properly for EVENT type with and without error callback" component="TizenAPI/Social/Calendar" execution_type="auto" id="CalendarManager_getCalendars_with_errorCallback">
<description>
<test_script_entry>/opt/tct-calendar-tizen-tests/calendar/CalendarManager_getCalendars_with_errorCallback.html</test_script_entry>
</description>