[Calendar] various fixes, part 3
authorAndrzej Krolikowski <a.krolikowsk@samsung.com>
Mon, 14 Oct 2013 10:10:12 +0000 (12:10 +0200)
committerGerrit Code Review <gerrit@gerrit.vlan144.tizendev.org>
Mon, 14 Oct 2013 14:20:25 +0000 (14:20 +0000)
Change-Id: I647dab12200ab60990fbaad2ffa1e6e38c351fd5

77 files changed:
tct-calendar-tizen-tests/calendar/CalendarAttendee_constructor.html
tct-calendar-tizen-tests/calendar/CalendarAttendee_contactRef_attribute.html
tct-calendar-tizen-tests/calendar/CalendarAttendee_delegateURI_attribute.html
tct-calendar-tizen-tests/calendar/CalendarAttendee_delegatorURI_attribute.html
tct-calendar-tizen-tests/calendar/CalendarAttendee_group_attribute.html
tct-calendar-tizen-tests/calendar/CalendarAttendee_name_attribute.html
tct-calendar-tizen-tests/calendar/CalendarAttendee_uri_attribute.html
tct-calendar-tizen-tests/calendar/CalendarChangeCallback_onitemsadded.html
tct-calendar-tizen-tests/calendar/CalendarEventId_constructor.html
tct-calendar-tizen-tests/calendar/CalendarEvent_constructor_CalendarEventInit.html
tct-calendar-tizen-tests/calendar/CalendarItemArraySuccessCallback_onsuccess.html
tct-calendar-tizen-tests/calendar/CalendarItem_alarms_attribute.html
tct-calendar-tizen-tests/calendar/CalendarItem_attendees_attribute.html
tct-calendar-tizen-tests/calendar/CalendarItem_calendarId_attribute.html
tct-calendar-tizen-tests/calendar/CalendarItem_categories_attribute.html
tct-calendar-tizen-tests/calendar/CalendarItem_clone.html
tct-calendar-tizen-tests/calendar/CalendarItem_clone_exist.html
tct-calendar-tizen-tests/calendar/CalendarItem_convertToString.html
tct-calendar-tizen-tests/calendar/CalendarItem_convertToString_exist.html
tct-calendar-tizen-tests/calendar/CalendarItem_description_attribute.html
tct-calendar-tizen-tests/calendar/CalendarItem_duration_attribute.html
tct-calendar-tizen-tests/calendar/CalendarItem_geolocation_attribute.html
tct-calendar-tizen-tests/calendar/CalendarItem_isAllDay_attribute.html
tct-calendar-tizen-tests/calendar/CalendarItem_lastModificationDate_attribute.html
tct-calendar-tizen-tests/calendar/CalendarItem_location_attribute.html
tct-calendar-tizen-tests/calendar/CalendarItem_organizer_attribute.html
tct-calendar-tizen-tests/calendar/CalendarItem_priority_attribute.html
tct-calendar-tizen-tests/calendar/CalendarItem_startDate_attribute.html
tct-calendar-tizen-tests/calendar/CalendarItem_status_attribute.html
tct-calendar-tizen-tests/calendar/CalendarItem_summary_attribute.html
tct-calendar-tizen-tests/calendar/CalendarItem_visibility_attribute.html
tct-calendar-tizen-tests/calendar/CalendarManager_getCalendars_with_errorCallback.html
tct-calendar-tizen-tests/calendar/CalendarRecurrenceRule_constructor.html
tct-calendar-tizen-tests/calendar/CalendarTask_constructor_dictionary.html
tct-calendar-tizen-tests/calendar/Calendar_CalendarAlarm_attri_absoluteDate.html
tct-calendar-tizen-tests/calendar/Calendar_CalendarAlarm_attri_before.html
tct-calendar-tizen-tests/calendar/Calendar_CalendarAlarm_attri_description.html
tct-calendar-tizen-tests/calendar/Calendar_CalendarAlarm_attri_method.html
tct-calendar-tizen-tests/calendar/Calendar_CalendarAttendee_constructor_default.html
tct-calendar-tizen-tests/calendar/Calendar_CalendarEvent_attri_alarms.html
tct-calendar-tizen-tests/calendar/Calendar_CalendarEvent_attri_attendees.html
tct-calendar-tizen-tests/calendar/Calendar_CalendarEvent_attri_availability.html
tct-calendar-tizen-tests/calendar/Calendar_CalendarEvent_attri_categories.html
tct-calendar-tizen-tests/calendar/Calendar_CalendarEvent_attri_description.html
tct-calendar-tizen-tests/calendar/Calendar_CalendarEvent_attri_duration.html
tct-calendar-tizen-tests/calendar/Calendar_CalendarEvent_attri_endDate.html
tct-calendar-tizen-tests/calendar/Calendar_CalendarEvent_attri_geolocation.html
tct-calendar-tizen-tests/calendar/Calendar_CalendarEvent_attri_id.html
tct-calendar-tizen-tests/calendar/Calendar_CalendarEvent_attri_isAllDay.html
tct-calendar-tizen-tests/calendar/Calendar_CalendarEvent_attri_isDetached.html
tct-calendar-tizen-tests/calendar/Calendar_CalendarEvent_attri_lastModificationDate.html
tct-calendar-tizen-tests/calendar/Calendar_CalendarEvent_attri_location.html
tct-calendar-tizen-tests/calendar/Calendar_CalendarEvent_attri_organizer.html
tct-calendar-tizen-tests/calendar/Calendar_CalendarEvent_attri_priority.html
tct-calendar-tizen-tests/calendar/Calendar_CalendarEvent_attri_recurrenceRule.html
tct-calendar-tizen-tests/calendar/Calendar_CalendarEvent_attri_startDate.html
tct-calendar-tizen-tests/calendar/Calendar_CalendarEvent_attri_status.html
tct-calendar-tizen-tests/calendar/Calendar_CalendarEvent_attri_summary.html
tct-calendar-tizen-tests/calendar/Calendar_CalendarEvent_attri_visibility.html
tct-calendar-tizen-tests/calendar/Calendar_CalendarItem_set_isAllDay_duration_organizer.html
tct-calendar-tizen-tests/calendar/Calendar_CalendarItem_set_location_geolocation.html
tct-calendar-tizen-tests/calendar/Calendar_CalendarItem_set_startDate_organizer.html
tct-calendar-tizen-tests/calendar/Calendar_CalendarItem_set_summary_geolocation_priority.html
tct-calendar-tizen-tests/calendar/Calendar_CalendarManager_getCalendarDefault_event.html
tct-calendar-tizen-tests/calendar/Calendar_CalendarManager_getCalendars_event.html
tct-calendar-tizen-tests/calendar/Calendar_CalendarTask_attri_completedDate.html
tct-calendar-tizen-tests/calendar/Calendar_Calendar_addChangeListener.html
tct-calendar-tizen-tests/calendar/Calendar_addChangeListener.html
tct-calendar-tizen-tests/calendar/Calendar_add_Event.html
tct-calendar-tizen-tests/calendar/Calendar_find.html
tct-calendar-tizen-tests/calendar/Calendar_find_event_usage.html
tct-calendar-tizen-tests/calendar/Calendar_get_NotFoundError.html
tct-calendar-tizen-tests/calendar/Calendar_removeBatch_with_successCallback.html
tct-calendar-tizen-tests/calendar/Calendar_update_with_updateAllInstances_false.html
tct-calendar-tizen-tests/calendar/Calendar_update_with_updateAllInstances_true.html
tct-calendar-tizen-tests/tests.full.xml
tct-calendar-tizen-tests/tests.xml

index 63c72e69d4e5451216e0343e364a26a1d706a6b0..07e41e107a6615dcf37979104ab4200d432f28f3 100644 (file)
@@ -47,9 +47,9 @@ Authors:
 //==== 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",
@@ -58,16 +58,16 @@ test(function (){
         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>
index e732ab83ca15c9ab78dc75427cfc583f46aefcd8..ca59a7e35e71d39998168237c441decb3bdbf3bb 100644 (file)
@@ -36,12 +36,11 @@ Authors:
 //==== 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",
@@ -55,7 +54,7 @@ test(function () {
 
     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.");
 
index 9211bc44d921dd2e15b512c6ddc2e7257b73e84e..2f73b3ddde0076a24a4ae25f0f3971446cfa669f 100644 (file)
@@ -36,13 +36,12 @@ Authors:
 //==== 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",
@@ -56,9 +55,9 @@ test(function () {
 
     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>
index 7e1b9162ff9d6f9765ae01af95826984e11149d9..49fb169ae3397d0592393e44136a4a8e5ab73223 100644 (file)
@@ -36,13 +36,12 @@ Authors:
 //==== 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",
@@ -56,9 +55,9 @@ test(function () {
 
     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>
index f434dc7aec4ec9b3b66e99ebfc68e85ab7f43dcb..2baf590574e89ce1a14033360f36b5ea7e4aec53 100644 (file)
@@ -36,13 +36,12 @@ Authors:
 //==== 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",
@@ -56,9 +55,9 @@ test(function () {
 
     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>
index 255e3c46409a93fbde36d7e0550cfcbc7cc1e69a..1b87bb95b1e352e7dd9b6765bf120352ba5a6231 100644 (file)
@@ -37,12 +37,12 @@ Authors:
 //==== 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",
@@ -56,9 +56,9 @@ test(function () {
 
     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>
index a6b05e125a1c643df8603193095a52996372f897..fc0bfd494ed84b4652f5769923a88739d042fbcf 100644 (file)
@@ -36,13 +36,12 @@ Authors:
 //==== 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",
@@ -56,7 +55,7 @@ test(function () {
 
     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");
index dc3f0dfc1f7e5e085ff6bdf656f37de63c61d4fb..e8adb2e3844f16266144cabfd315b104a2c494a1 100644 (file)
@@ -35,7 +35,7 @@ Authors:
 //==== 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 () {
@@ -90,7 +90,7 @@ 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),
@@ -98,7 +98,7 @@ t.step(function () {
         location:"Huesca"
     };
 
-    ev = new tizen.CalendarEvent(event_init);
+    ev = new tizen.CalendarEvent(eventInit);
     calendar.add(ev);
 });
 
index 288ee7da757e59a787990531938ad70dc4d52004..5f7f1597216cf561d02e76dc99b9e487be3d9c98 100644 (file)
@@ -32,8 +32,6 @@ Authors:
 <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
@@ -46,8 +44,8 @@ test(function () {
     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.");
index 5d8cf5d893a115ee7e897264ba1b66689b3cd967..c1c800302dfc57308fd0f5f28886fbc716841326 100644 (file)
@@ -48,23 +48,23 @@ Authors:
 //==== 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);
index f04a0f979621fb4c9660b25b45cb1fb7f0d3d292..8f056dbd523a2caf0603e8efee4956a69509499a 100644 (file)
@@ -48,7 +48,7 @@ Authors:
 //==== 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) {
@@ -77,13 +77,13 @@ t.step(function () {
         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);
 });
index 0a2e104e6eafd6ea9f20b9c26a1b82cd49a0163f..4a3e47f69c47d6cdc23f678b17fab3279147e19d 100644 (file)
@@ -36,12 +36,12 @@ Authors:
 //==== 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"),
@@ -57,7 +57,7 @@ test(function () {
         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",
index 296d5ffffcb708b81f61b2cc99a6db979b5b2156..2132fadb3e95b29f1a109c41ba80e511ac8fdc73 100644 (file)
@@ -36,12 +36,12 @@ Authors:
 //==== 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"),
@@ -56,7 +56,7 @@ test(function () {
         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",
index 1f13f9d2e920729ab11428afcb89e1e73dc84923..ddd8bc211db4a9e2770f025f74e76e39059fb831 100644 (file)
@@ -36,13 +36,13 @@ Authors:
 //==== 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"),
@@ -58,7 +58,7 @@ test(function () {
         attendees: [attendee]
     };
 
-    calendarItem = new tizen.CalendarEvent(event_init);
+    calendarItem = new tizen.CalendarEvent(eventInit);
     check_readonly(calendarItem, "calendarId", null, "object", "5");
 
     calendar.add(calendarItem);
index b7d334240af41c55464e8e6701f54d8d00bbf7c7..062a416a5798f8631ef46a0d8c25c55fa141e91e 100644 (file)
@@ -36,12 +36,12 @@ Authors:
 //==== 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"),
@@ -56,7 +56,7 @@ test(function () {
         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",
index 80b100e0aab283a332d4ef9432ba0ce833713028..c0102532052b76060833bfb0b08a78ed3bc6a6c4 100644 (file)
@@ -47,9 +47,9 @@ Authors:
 //==== 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),
@@ -58,20 +58,20 @@ test(function () {
     };
 
     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);
index a4407c486874735ec16b0a656c95d9f2e4248f98..dc372f57caad836317539b6de626197cb8dfd458 100644 (file)
@@ -36,12 +36,12 @@ Authors:
 //==== 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",
@@ -56,7 +56,7 @@ test(function () {
                               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);
index 0a1a04ae2c7d8a7961d28360c540f2c92d077eee..7372932931c20ce2b1455538696d2a8d6f2a9212 100644 (file)
@@ -42,20 +42,20 @@ Authors:
 <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>
index b4a625a9cf62c8baf81de80df22ed36e2342c20a..08360cda6f900fe3158890665eff31bb93dc0e2a 100644 (file)
@@ -36,12 +36,12 @@ Authors:
 //==== 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",
@@ -56,7 +56,7 @@ test(function () {
                               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);
index 5bb12f601971b359a4bd04d303da2f1d7fc5419a..e29fa7572c2014accfbe56a94ac14ad765106116 100644 (file)
@@ -36,12 +36,12 @@ Authors:
 //==== 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",
@@ -56,7 +56,7 @@ test(function () {
         attendees: [attendee]
     };
 
-    calendarItem = new tizen.CalendarEvent(event_init);
+    calendarItem = new tizen.CalendarEvent(eventInit);
     check_attribute(calendarItem, "description", "", "string", "invalid");
 }, document.title);
 
index 52c69452036104082df098a2667a06b778665837..1437a8e0f97b3e4928d780d6f504d30849eb9069 100644 (file)
@@ -36,12 +36,12 @@ Authors:
 //==== 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",
@@ -56,7 +56,7 @@ test(function () {
         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,
index 8a5dd841c0c0b92d9118af510f73127758f2ff79..9d5ab1541352ef832569ef16290e649d6209c8f5 100644 (file)
@@ -36,12 +36,12 @@ Authors:
 //==== 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"),
@@ -57,9 +57,9 @@ test(function () {
         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");
index 6fde7b8c0c6d1c7a4272dde5e2f5d968d965d23e..e599a2b75de508bcafc148fbfcb799bb9b4bb9f1 100644 (file)
@@ -36,12 +36,12 @@ Authors:
 //==== 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"),
@@ -56,7 +56,7 @@ test(function () {
         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,
index 51c96e411f940edab487cc10dac08f939632327a..e890d303fb7c139ef89c46e184affd616f9ca396 100644 (file)
@@ -36,14 +36,14 @@ Authors:
 //==== 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"),
@@ -59,7 +59,7 @@ test(function () {
         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);
index c9e291013e62a294b5a21860b43b01449afa486c..ffc280ecfebbcb0dfa5db6f9b9a2ec3834aa00ef 100644 (file)
@@ -36,12 +36,12 @@ Authors:
 //==== 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",
@@ -56,9 +56,9 @@ test(function () {
                               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>
index 2442f8693e3f6b18b520d56badfbdc2271934b61..67ab178dc1037938583a653e3beef7dc0bf0279e 100644 (file)
@@ -36,12 +36,12 @@ Authors:
 //==== 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",
@@ -56,9 +56,9 @@ test(function () {
                               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>
index 3967a11f083924a8c8f40466904bc72549678220..1558534f53df5348c2884e6824bc1edc28cf816f 100644 (file)
@@ -36,12 +36,12 @@ Authors:
 //==== 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"),
@@ -56,7 +56,7 @@ test(function () {
         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",
index 24f744f3d27f1adf780ed1f696e711a9252133b1..72c5fa5faa556151762dc73114be9c2c84ebc87a 100644 (file)
@@ -36,12 +36,12 @@ Authors:
 //==== 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"),
@@ -56,7 +56,7 @@ test(function () {
         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,
index 4dabfe4f653ac0e60fabc353516245ff72a08ada..6583b1d5954e3d3b34f33d3d7de718c5f9de7aeb 100644 (file)
@@ -36,12 +36,12 @@ Authors:
 //==== 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"),
@@ -56,7 +56,7 @@ test(function () {
         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",
index 76005d3d2c4f9086eb60a0c3c19082ce9b5ae060..277898a1d2341c958927b13d3ab8b3bed63a5801 100644 (file)
@@ -36,12 +36,12 @@ Authors:
 //==== 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",
@@ -56,9 +56,9 @@ test(function () {
                               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>
index 56574f5abf3010270ec42970bacd2843406777b5..d93a897147a2aae72de334956fb2fd7f9b9fdc8f 100644 (file)
@@ -36,12 +36,12 @@ Authors:
 //==== 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"),
@@ -57,7 +57,7 @@ test(function () {
         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",
index 760cdd1f567d1d9c59b581d8e51eef010786661e..327cfd626e223cfefd1bd42851cb88fe3ccd3e56 100644 (file)
@@ -35,24 +35,22 @@ Authors:
 
 
 //==== 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);
index c1ebfa17d92e9adc02ad6d85d9191ed7474db780..ea2532464e2022c852347cb6e14aad7a29a5aef5 100644 (file)
@@ -48,14 +48,14 @@ Authors:
 //==== 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");
index 1b3a28930e87a621ed65c71857f50cf53d8f3599..5b537f52f5e101fefab151faebed0b448c854f0a 100644 (file)
@@ -47,19 +47,19 @@ Authors:
 //==== 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>
index 022bceccce46528c4a3a3270208c76697866311b..b1e330eebc7946e9ab5fee6af6eb6f51288b3435 100644 (file)
@@ -42,18 +42,18 @@ Authors:
 <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);
index 0f2b450da144e80367f7493e8b67db5b54568bd9..321d888231ff484f9137ce64597fc9fece5a181d 100644 (file)
@@ -42,18 +42,18 @@ Authors:
 <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);
index 00ee92e6f8c34d90a48dc1b4735e277f5a5a1467..b798cc44b27ca59888822251ce7d59b531cb6260 100644 (file)
@@ -42,18 +42,18 @@ Authors:
 <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);
index 0c89a1b360ae48a87307d5fae0ba5f82eb14f993..3638a546cbda273ea4b44d333a4c20ea777ccc5e 100644 (file)
@@ -42,18 +42,18 @@ Authors:
 <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);
index ee34c49a6eef0d7ff83531f4338c474494236781..51c601f207c000083a858064505a42958d77ba33 100644 (file)
@@ -46,30 +46,30 @@ Authors:
 //==== 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>
index 30f45dd746760568b94f836cfc28cfa4a45a42a9..dee726bce7041b7b4390adcdf586053c774f8b02 100644 (file)
@@ -42,19 +42,19 @@ Authors:
 <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);
 
index bd43fbd0caefe7d47a84283d757e247f29d3b045..d4b0599cecd0188f9fe6ab8d0894d168be691184 100644 (file)
@@ -42,19 +42,19 @@ Authors:
 <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);
index 843707efc3afed91666159464de893aebf816502..b4bf82ee5c9bec15c88e1c42393e0b85277d2144 100644 (file)
@@ -42,18 +42,18 @@ Authors:
 <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);
 
index 4b861042f29afb3fa050db9fb863ce1dfdd2a559..97d015c3dfb3554bda650ad5b7c8e93275acc9f3 100644 (file)
@@ -42,18 +42,18 @@ Authors:
 <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");
 
index 6f1859a03e99e937982bdd0721eae2fb5d16db70..086d574aafb9b319c2d0651e131a554074f46972 100644 (file)
@@ -42,19 +42,19 @@ Authors:
 <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);
index c506b1413cd8f6bce7e598e0fda3287284abf004..f79895b4160ada47d53320aec5b9b39405a5a39b 100644 (file)
@@ -42,18 +42,18 @@ Authors:
 <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);
index 7a7c51f69301ea99af12683f40c9d452ad22d942..5cd64e3eb166cce2b3813800cabc97ad7f09d533 100644 (file)
@@ -42,20 +42,20 @@ Authors:
 <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);
 
index 2500e459c55a77abba3d21b342c3e96802bf19b1..94dd678369a6ab8655b37d55c1d01873ddf669a3 100644 (file)
@@ -42,19 +42,19 @@ Authors:
 <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);
 
index a9443cda54a8a35d860399a0f8de16b9ce730b81..ed5a4af5e238bb6b75f9746642505d2b03e2bb64 100644 (file)
@@ -42,19 +42,19 @@ Authors:
 <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);
 
index b40ebfcf19d9d8cedaa2aba6fdecaff31a99e747..19283f75611f28fdb3cd230b881bc1381df6291a 100644 (file)
@@ -42,18 +42,18 @@ Authors:
 <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);
 
index 4555ab770a39fc6cd51caecb2274baba78420d7e..5fb177510a92e621215fe8db7700c38bf0a89b20 100644 (file)
@@ -42,19 +42,19 @@ Authors:
 <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);
 
index 04eda7c75ffb2394c9e6695c251eebb176cd421c..ac7d674d817078e3750b58c3e4e693a4c8b6e026 100644 (file)
@@ -42,18 +42,18 @@ Authors:
 <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);
index 41f9e0deac277d6a93ee07eb2bd9d1b33080454c..257897f610f49060eb82f99f2922255ae74a560c 100644 (file)
@@ -42,19 +42,19 @@ Authors:
 <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);
index 78cc1ce03baf0c67c380596bc797f5781c04b4cb..e01935d86d5a54043cde55953198395ae6a5ca0c 100644 (file)
@@ -42,18 +42,18 @@ Authors:
 <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);
index 874e005a6905cfe3dca0a9607be058f1f842585f..7bc269c4161a666510be9fa37daf9852771ef4db 100644 (file)
@@ -42,18 +42,18 @@ Authors:
 <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);
index e148822c5d4bf045c46982269149058bc0e388a8..6e048a0efdb402ae41fc4c74e09afcf71f8ec495 100644 (file)
@@ -42,17 +42,17 @@ Authors:
 <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);
 
index 1b71bbe30bab348309ec8b5b815872130c9c2f63..4eddfecb3660b76c478468e5e2c9ac151e7ffdf6 100644 (file)
@@ -42,17 +42,17 @@ Authors:
 <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);
 
index aa5953386fbd2bf4b6b80876ccb9641a89d1f189..4385517cc32fe82f3fb236863ea79cda4caaf4ee 100644 (file)
@@ -42,18 +42,18 @@ Authors:
 <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);
index 2ace75702758b887f3c8be33e5d1f3c9080c6621..b7cedeb59c963d59c94a8395aa200e18b7003e25 100644 (file)
@@ -42,18 +42,18 @@ Authors:
 <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);
index 9ef22bb53c88e3dcf2e38d0107adc50611c19014..13975fe8392dccdbd5c393d102b3edd5d4eca1ef 100644 (file)
@@ -42,19 +42,19 @@ Authors:
 <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);
index c9593aa5f5df1328d6fc6903e288e01dcee8caa6..8be61a8e123d4ebd35a3e97ed6d166ee117e32ed 100644 (file)
@@ -47,12 +47,12 @@ Authors:
 //==== 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"),
index ca60de6c6e25a749b377b0a87b49621429055d03..8adc72073329aacc9f4e46b4504d3f9fef2f51e8 100644 (file)
@@ -47,14 +47,14 @@ Authors:
 //==== 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);
index 4ebff3d3a1e150722476a7a1851573aa031b8c0d..7ef124ba64e8333a55d3d9bfc013b6e8491896df 100644 (file)
@@ -47,12 +47,12 @@ Authors:
 //==== 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";
index 38759f2f45f7ed408b12d56362173d2260cb1d77..0b188af423bedc7b6946404eb0c480d66150eaaf 100644 (file)
@@ -47,12 +47,12 @@ Authors:
 //==== 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);
index c03902a488a14749d3e2c92b315c2960c56608cf..5aed7c33b8dcbc873b31b4e9407f147f1b72450e 100644 (file)
@@ -50,10 +50,10 @@ Authors:
 
 
 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>
index f82e30de3649ff965121a52abb8395b3208b720c..0cf4b0ca9bd3150dd0728c54394dce4c163651b5 100644 (file)
@@ -48,16 +48,17 @@ Authors:
 //==== 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);
 });
 
index bcaa259007098be78907d8019b185a37f08a3dbb..5d8379390204b7a9285b1696a6dac3c0fc794cc2 100644 (file)
@@ -43,22 +43,22 @@ Authors:
 <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>
index a65331e5ff8421998ca3e2cb06aef7b851da8dfb..b07f39d4921e04ca6115d42cad48bd52aad82273 100644 (file)
@@ -46,10 +46,10 @@ Authors:
 //==== 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"),
@@ -57,7 +57,7 @@ t.step(function () {
     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();
@@ -69,7 +69,7 @@ t.step(function () {
     };
     calendar = tizen.calendar.getDefaultCalendar("EVENT");
     watcherId = calendar.addChangeListener(watcher);
-    ev = new tizen.CalendarEvent(event_init);
+    ev = new tizen.CalendarEvent(eventInit);
     calendar.add(ev);
 });
 
index e31cc5899338038ddc3f5ca073468692b5801ff3..10ef9ad8b5a6c01e462ca563de9f2e8d716e50bc 100644 (file)
@@ -56,7 +56,7 @@ t.step(function () {
     };
 
     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);
index 6fb92756775ca71d59f2dee481906051574e0033..4ad54df7a24bd72c70489a33a87d1a91a6c06f5d 100644 (file)
@@ -47,9 +47,9 @@ Authors:
 //==== 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),
@@ -57,7 +57,7 @@ test(function () {
         location:"Huesca"
     };
     calendar = tizen.calendar.getDefaultCalendar("EVENT");
-    ev = new tizen.CalendarEvent(event_init);
+    ev = new tizen.CalendarEvent(eventInit);
     beforeValue = ev.id;
 
     calendar.add(ev);
index e0be5b3637e22cec0bcb6e1ced9bc970e3ed2733..7d57736c8114ad79153052ca69602b05877b1383 100644 (file)
@@ -47,7 +47,7 @@ Authors:
 //==== 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) {
@@ -55,13 +55,13 @@ t.step(function (){
         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);
 });
index 053dad599657883de35072a6b9bb53c0b2e5d94f..5a38b43623bac2a33cfd0ce877a74abf68ec349a 100644 (file)
@@ -35,7 +35,6 @@ Authors:
 <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
@@ -43,14 +42,15 @@ Authors:
 //==== 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();
         }
     });
@@ -70,9 +70,9 @@ t.step(function () {
 
     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");
index 01b09a55cb174d3fac477475aceaad36da70953d..b82e8d5541e6c04b7c6cce562375bc91b467877a 100644 (file)
@@ -46,16 +46,16 @@ Authors:
 //==== 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);
index 5c4d464adb4181e8ee1a2d2456a1aae6ffdaaefc..a66c0af633787a999ea49a7d0f1c5fd2c4dd529c 100644 (file)
@@ -33,37 +33,36 @@ Authors:
 <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>
index 002ab5fb6e93b3dc891d1e7c8287d87a9f06ee97..7c663e538c8c330f7e40d0fd568adaa37f5441b5 100644 (file)
@@ -34,12 +34,12 @@ Authors:
 //==== 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),
@@ -50,18 +50,18 @@ test(function () {
         })
     };
 
-    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);
 
index 9dd861a585fd50830a8875ab048cf8fd6cff2da2..638ae7ccacdea704172cb9e61ed6b610fc2c3624 100644 (file)
@@ -34,15 +34,15 @@ Authors:
 //==== 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),
@@ -53,13 +53,13 @@ t.step(function () {
         })
     };
 
-    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");
 
index 8135994d81f6ff1e308c4ddeb9c3e8b9cd044d1a..dadea644fa361ffd218bc3f8c5851c3714c8f183 100644 (file)
@@ -3,7 +3,7 @@
 <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>
@@ -27,7 +27,7 @@
           </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>
@@ -63,7 +63,7 @@
           </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>
@@ -87,7 +87,7 @@
           </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>
@@ -99,7 +99,7 @@
           </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>
index e2dda147384255bac3ee3d594f3f56cbbf0524d3..b4cceb88bf9c2e99aff5cb93bf865fd57f6b7645 100644 (file)
@@ -3,7 +3,7 @@
 <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>
@@ -13,7 +13,7 @@
           <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>
@@ -28,7 +28,7 @@
           <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>