From: Andrzej Krolikowski Date: Fri, 11 Oct 2013 17:16:20 +0000 (+0200) Subject: [Calendar] various fixes, part 2 X-Git-Tag: 2.2.1_release~63 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=8f740b08acb0f3c9c8d29b636cb8423bca930f69;p=test%2Ftct%2Fweb%2Fapi.git [Calendar] various fixes, part 2 Change-Id: I9e6bab97bb8bd70ef94a094f878936eb52d61fb8 --- diff --git a/tct-calendar-tizen-tests/calendar/CalendarAttendee_attribute_valid_CalendarTask.html b/tct-calendar-tizen-tests/calendar/CalendarAttendee_attribute_valid_CalendarTask.html index 2047e46ca..608bf8371 100644 --- a/tct-calendar-tizen-tests/calendar/CalendarAttendee_attribute_valid_CalendarTask.html +++ b/tct-calendar-tizen-tests/calendar/CalendarAttendee_attribute_valid_CalendarTask.html @@ -32,8 +32,6 @@ Authors:
diff --git a/tct-calendar-tizen-tests/calendar/Calendar_CalendarAlarm_constructor_TimeDuration.html b/tct-calendar-tizen-tests/calendar/Calendar_CalendarAlarm_constructor_TimeDuration.html index aac7a18b2..0648cc1ea 100644 --- a/tct-calendar-tizen-tests/calendar/Calendar_CalendarAlarm_constructor_TimeDuration.html +++ b/tct-calendar-tizen-tests/calendar/Calendar_CalendarAlarm_constructor_TimeDuration.html @@ -48,15 +48,14 @@ Authors: //==== SPEC_URL https://developer.tizen.org/help/topic/org.tizen.web.device.apireference/tizen/calendar.html //==== TEST_CRITERIA CONSTRM CONSTRA -var description = "CalendarAlarm constructor: timeDuration."; test(function () { var before = new tizen.TimeDuration(15, "MINS"), alarm = new tizen.CalendarAlarm(before, "DISPLAY", "description of DISPLAY"); - assert_equals(alarm.absoluteDate, null); - assert_true(alarm.before.equalsTo(before)); - assert_true(alarm.method in AlarmMethod); - assert_not_equals(alarm.description, null); + assert_equals(alarm.absoluteDate, null, "Incorrect absoluteDate"); + assert_true(alarm.before.equalsTo(before), "Incorrect before"); + assert_true(alarm.method in AlarmMethod, "Incorrect method"); + assert_not_equals(alarm.description, null, "Incorrect description"); }, document.title); diff --git a/tct-calendar-tizen-tests/calendar/Calendar_CalendarEvent_clone.html b/tct-calendar-tizen-tests/calendar/Calendar_CalendarEvent_clone.html index b8bc2d41b..91ce35908 100644 --- a/tct-calendar-tizen-tests/calendar/Calendar_CalendarEvent_clone.html +++ b/tct-calendar-tizen-tests/calendar/Calendar_CalendarEvent_clone.html @@ -47,22 +47,21 @@ Authors: //==== SPEC_URL https://developer.tizen.org/help/topic/org.tizen.web.device.apireference/tizen/calendar.html //==== TEST_CRITERIA MNA MR -var description = "CalendarEvent method: clone.", - event_init, calendar, ev, ev_clone; +var eventInit, calendar, ev, evClone; test(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"), location:"Huesca"}; calendar = tizen.calendar.getDefaultCalendar("EVENT"); - ev = new tizen.CalendarEvent(event_init); + ev = new tizen.CalendarEvent(eventInit); calendar.add(ev); - ev_clone = ev.clone(); - calendar.add(ev_clone); - assert_not_equals(ev_clone.id, null); - assert_not_equals(ev_clone.id.uid, ev.id.uid); - assert_equalsEvents(ev_clone, ev); + evClone = ev.clone(); + calendar.add(evClone); + assert_not_equals(evClone.id, null, "Incorrect id"); + assert_not_equals(evClone.id.uid, ev.id.uid, "Incorrect uid"); + assert_equalsEvents(evClone, ev); cleanup(calendar); }, document.title); diff --git a/tct-calendar-tizen-tests/calendar/Calendar_CalendarItem_set_attendees_geolocation_status.html b/tct-calendar-tizen-tests/calendar/Calendar_CalendarItem_set_attendees_geolocation_status.html index 4fce76799..845b78ea5 100644 --- a/tct-calendar-tizen-tests/calendar/Calendar_CalendarItem_set_attendees_geolocation_status.html +++ b/tct-calendar-tizen-tests/calendar/Calendar_CalendarItem_set_attendees_geolocation_status.html @@ -46,23 +46,22 @@ Authors: //==== SPEC_URL https://developer.tizen.org/help/topic/org.tizen.web.device.apireference/tizen/calendar.html //==== TEST_CRITERIA -var description = "set attri value:attendees & geolocation & status."; 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), attendee = new tizen.CalendarAttendee("mailto:bob@domain.com", {role: "CHAIR", RSVP: true}); ev.attendees = [attendee]; ev.geolocation = new tizen.SimpleCoordinates(60.175, 24.934); ev.status = "TENTATIVE"; - assert_not_equals(ev.attendees, null); - assert_not_equals(ev.geolocation, null); - assert_equals(ev.status, "TENTATIVE"); + assert_not_equals(ev.attendees, null, "Incorrect attendees"); + assert_not_equals(ev.geolocation, null, "Incorrect geolocation"); + assert_equals(ev.status, "TENTATIVE", "Incorrect status"); }, document.title); diff --git a/tct-calendar-tizen-tests/calendar/Calendar_CalendarItem_set_categories_visibility_priority.html b/tct-calendar-tizen-tests/calendar/Calendar_CalendarItem_set_categories_visibility_priority.html index 32f46a1ea..9322cf874 100644 --- a/tct-calendar-tizen-tests/calendar/Calendar_CalendarItem_set_categories_visibility_priority.html +++ b/tct-calendar-tizen-tests/calendar/Calendar_CalendarItem_set_categories_visibility_priority.html @@ -46,21 +46,20 @@ Authors: //==== SPEC_URL https://developer.tizen.org/help/topic/org.tizen.web.device.apireference/tizen/calendar.html //==== TEST_CRITERIA -var description = "set attri value:categories & visibility & priority."; 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.categories = ["Personal"]; ev.visibility = "PUBLIC"; ev.priority = "HIGH"; - assert_equals(ev.categories.toString(), "Personal"); - assert_equals(ev.visibility, "PUBLIC"); - assert_equals(ev.priority , "HIGH"); + assert_equals(ev.categories.toString(), "Personal", "Incorrect categories"); + assert_equals(ev.visibility, "PUBLIC", "Incorrect visibility"); + assert_equals(ev.priority , "HIGH", "Incorrect priority"); }, document.title); diff --git a/tct-calendar-tizen-tests/calendar/Calendar_CalendarItem_set_description_duration_geolocation.html b/tct-calendar-tizen-tests/calendar/Calendar_CalendarItem_set_description_duration_geolocation.html index fdaa7a0dd..1780b811c 100644 --- a/tct-calendar-tizen-tests/calendar/Calendar_CalendarItem_set_description_duration_geolocation.html +++ b/tct-calendar-tizen-tests/calendar/Calendar_CalendarItem_set_description_duration_geolocation.html @@ -46,21 +46,20 @@ Authors: //==== SPEC_URL https://developer.tizen.org/help/topic/org.tizen.web.device.apireference/tizen/calendar.html //==== TEST_CRITERIA -var description = "set attri value: description & duration & geolocation."; 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.description = "set a new description"; ev.duration = new tizen.TimeDuration(1, "HOURS"), ev.geolocation = new tizen.SimpleCoordinates(60.175, 24.934); - assert_equals(ev.description, "set a new description"); - assert_not_equals(ev.duration, null); - assert_not_equals(ev.geolocation, null); + assert_equals(ev.description, "set a new description", "Incorrect description"); + assert_not_equals(ev.duration, null, "Incorrect duration"); + assert_not_equals(ev.geolocation, null, "Incorrect geolocation"); }, document.title); diff --git a/tct-calendar-tizen-tests/calendar/Calendar_CalendarItem_set_description_isAllDay_organizer.html b/tct-calendar-tizen-tests/calendar/Calendar_CalendarItem_set_description_isAllDay_organizer.html index 6b71ff7a3..662812a62 100644 --- a/tct-calendar-tizen-tests/calendar/Calendar_CalendarItem_set_description_isAllDay_organizer.html +++ b/tct-calendar-tizen-tests/calendar/Calendar_CalendarItem_set_description_isAllDay_organizer.html @@ -46,21 +46,20 @@ Authors: //==== SPEC_URL https://developer.tizen.org/help/topic/org.tizen.web.device.apireference/tizen/calendar.html //==== TEST_CRITERIA -var description = "set attri value: description & isAllDay & organizer."; 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.description = "set a new description"; ev.isAllDay = false; ev.organizer = "Mr. Jones"; - assert_equals(ev.description, "set a new description"); - assert_equals(ev.isAllDay, false); - assert_equals(ev.organizer, "Mr. Jones"); + assert_equals(ev.description, "set a new description", "Incorrect description"); + assert_equals(ev.isAllDay, false, "Incorrect isAllDay"); + assert_equals(ev.organizer, "Mr. Jones", "Incorrect organizer"); }, document.title); diff --git a/tct-calendar-tizen-tests/calendar/Calendar_CalendarItem_set_description_progress_startDate.html b/tct-calendar-tizen-tests/calendar/Calendar_CalendarItem_set_description_progress_startDate.html index d43bee722..cede43883 100644 --- a/tct-calendar-tizen-tests/calendar/Calendar_CalendarItem_set_description_progress_startDate.html +++ b/tct-calendar-tizen-tests/calendar/Calendar_CalendarItem_set_description_progress_startDate.html @@ -46,21 +46,20 @@ Authors: //==== SPEC_URL https://developer.tizen.org/help/topic/org.tizen.web.device.apireference/tizen/calendar.html //==== TEST_CRITERIA -var description = "set attri value: description & progress & startDate."; test(function () { - var task_init = {description:"HTML5 Introduction", + var taskInit = {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.CalendarTask(task_init); + ev = new tizen.CalendarTask(taskInit); ev.description = "set a new description"; ev.progress = 0; ev.startDate = new tizen.TZDate(2012, 10, 1, 10, 0); - assert_equals(ev.description, "set a new description"); - assert_equals(ev.progress, 0); - assert_true(ev.startDate.equalsTo(new tizen.TZDate(2012, 10, 1, 10, 0))); + assert_equals(ev.description, "set a new description", "Incorrect description"); + assert_equals(ev.progress, 0, "Incorrect progress"); + assert_true(ev.startDate.equalsTo(new tizen.TZDate(2012, 10, 1, 10, 0)), "Incorrect startDate"); }, document.title); diff --git a/tct-calendar-tizen-tests/calendar/Calendar_CalendarItem_set_description_startDate_isAllDay.html b/tct-calendar-tizen-tests/calendar/Calendar_CalendarItem_set_description_startDate_isAllDay.html index 352a9fa52..dc8a59e96 100644 --- a/tct-calendar-tizen-tests/calendar/Calendar_CalendarItem_set_description_startDate_isAllDay.html +++ b/tct-calendar-tizen-tests/calendar/Calendar_CalendarItem_set_description_startDate_isAllDay.html @@ -46,20 +46,19 @@ Authors: //==== SPEC_URL https://developer.tizen.org/help/topic/org.tizen.web.device.apireference/tizen/calendar.html //==== TEST_CRITERIA -var description = "set attri value: description & startDate & isAllDay."; test(function () { - var event_init = {description:"HTML5 Introduction", + var eventInit = {description:"HTML5 Introduction", summary:"HTML5 Webinar ", duration: new tizen.TimeDuration(1, "HOURS"), location:"Huesca"}, - ev = new tizen.CalendarEvent(event_init); + ev = new tizen.CalendarEvent(eventInit); ev.description = "set a new description"; ev.startDate = new tizen.TZDate(2012, 10, 1, 10, 0); ev.isAllDay = false; - assert_equals(ev.description, "set a new description"); - assert_not_equals(ev.startDate, null); - assert_equals(ev.isAllDay, false); + assert_equals(ev.description, "set a new description", "Incorrect description"); + assert_not_equals(ev.startDate, null, "Incorrect startDate"); + assert_equals(ev.isAllDay, false, "Incorrect isAllDay"); }, document.title); diff --git a/tct-calendar-tizen-tests/calendar/Calendar_CalendarItem_set_description_status_startDate.html b/tct-calendar-tizen-tests/calendar/Calendar_CalendarItem_set_description_status_startDate.html index 864357bec..12d699c92 100644 --- a/tct-calendar-tizen-tests/calendar/Calendar_CalendarItem_set_description_status_startDate.html +++ b/tct-calendar-tizen-tests/calendar/Calendar_CalendarItem_set_description_status_startDate.html @@ -46,21 +46,20 @@ Authors: //==== SPEC_URL https://developer.tizen.org/help/topic/org.tizen.web.device.apireference/tizen/calendar.html //==== TEST_CRITERIA -var description = "set attri value: description & status & startDate."; 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.description = "set a new description"; ev.startDate = new tizen.TZDate(2012, 10, 1, 10, 0); ev.status = "TENTATIVE"; - assert_equals(ev.description, "set a new description"); - assert_equals(ev.status, "TENTATIVE"); - assert_true(ev.startDate.equalsTo(new tizen.TZDate(2012, 10, 1, 10, 0))); + assert_equals(ev.description, "set a new description", "Incorrect description"); + assert_equals(ev.status, "TENTATIVE", "Incorrect status"); + assert_true(ev.startDate.equalsTo(new tizen.TZDate(2012, 10, 1, 10, 0)), "Incorrect startDate"); }, document.title); diff --git a/tct-calendar-tizen-tests/calendar/Calendar_CalendarItem_set_description_summary_location.html b/tct-calendar-tizen-tests/calendar/Calendar_CalendarItem_set_description_summary_location.html index 0d1d35b30..5c7a564c7 100644 --- a/tct-calendar-tizen-tests/calendar/Calendar_CalendarItem_set_description_summary_location.html +++ b/tct-calendar-tizen-tests/calendar/Calendar_CalendarItem_set_description_summary_location.html @@ -46,21 +46,20 @@ Authors: //==== SPEC_URL https://developer.tizen.org/help/topic/org.tizen.web.device.apireference/tizen/calendar.html //==== TEST_CRITERIA -var description = "set attri value: description & summary & location."; 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.description = "set a new description"; ev.summary = "check if set attribute value successful after create ev"; ev.location = "Dalian"; - assert_equals(ev.description, "set a new description"); - assert_equals(ev.summary, "check if set attribute value successful after create ev"); - assert_equals(ev.location , "Dalian"); + assert_equals(ev.description, "set a new description", "Incorrect description"); + assert_equals(ev.summary, "check if set attribute value successful after create ev", "Incorrect summary"); + assert_equals(ev.location , "Dalian", "Incorrect location"); }, document.title); diff --git a/tct-calendar-tizen-tests/calendar/Calendar_CalendarItem_set_duration_location_priority.html b/tct-calendar-tizen-tests/calendar/Calendar_CalendarItem_set_duration_location_priority.html index b40229ea0..c50a1095b 100644 --- a/tct-calendar-tizen-tests/calendar/Calendar_CalendarItem_set_duration_location_priority.html +++ b/tct-calendar-tizen-tests/calendar/Calendar_CalendarItem_set_duration_location_priority.html @@ -46,20 +46,19 @@ Authors: //==== SPEC_URL https://developer.tizen.org/help/topic/org.tizen.web.device.apireference/tizen/calendar.html //==== TEST_CRITERIA -var description = "set attri value:duration & location & priority."; 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), location:"Huesca"}, - ev = new tizen.CalendarEvent(event_init); + ev = new tizen.CalendarEvent(eventInit); ev.duration = new tizen.TimeDuration(1, "HOURS"), ev.location = "Dalian"; ev.priority = "HIGH"; - assert_not_equals(ev.duration, null); - assert_equals(ev.location, "Dalian"); - assert_equals(ev.priority , "HIGH"); + assert_not_equals(ev.duration, null, "Incorrect duration"); + assert_equals(ev.location, "Dalian", "Incorrect location"); + assert_equals(ev.priority , "HIGH", "Incorrect priority"); }, document.title); diff --git a/tct-calendar-tizen-tests/calendar/Calendar_CalendarItem_set_geolocation_organizer_categories.html b/tct-calendar-tizen-tests/calendar/Calendar_CalendarItem_set_geolocation_organizer_categories.html index c2f57585e..35c7722c3 100644 --- a/tct-calendar-tizen-tests/calendar/Calendar_CalendarItem_set_geolocation_organizer_categories.html +++ b/tct-calendar-tizen-tests/calendar/Calendar_CalendarItem_set_geolocation_organizer_categories.html @@ -46,21 +46,20 @@ Authors: //==== SPEC_URL https://developer.tizen.org/help/topic/org.tizen.web.device.apireference/tizen/calendar.html //==== TEST_CRITERIA -var description = "set attri value: geolocation & organizer & categories."; 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.geolocation = new tizen.SimpleCoordinates(60.175, 24.934); ev.organizer = "Mr. Jones"; ev.categories = ["Personal"]; - assert_not_equals(ev.geolocation, null); - assert_equals(ev.organizer, "Mr. Jones"); - assert_not_equals(ev.categories, ""); + assert_not_equals(ev.geolocation, null, "Incorrect geolocation"); + assert_equals(ev.organizer, "Mr. Jones", "Incorrect organizer"); + assert_not_equals(ev.categories, "", "Incorrect categories"); }, document.title); diff --git a/tct-calendar-tizen-tests/calendar/Calendar_CalendarItem_set_geolocation_status.html b/tct-calendar-tizen-tests/calendar/Calendar_CalendarItem_set_geolocation_status.html index 43a9b42ea..1f04b39cb 100644 --- a/tct-calendar-tizen-tests/calendar/Calendar_CalendarItem_set_geolocation_status.html +++ b/tct-calendar-tizen-tests/calendar/Calendar_CalendarItem_set_geolocation_status.html @@ -46,20 +46,19 @@ Authors: //==== SPEC_URL https://developer.tizen.org/help/topic/org.tizen.web.device.apireference/tizen/calendar.html //==== TEST_CRITERIA -var description = "set attri value:geolocation & status."; 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.geolocation = new tizen.SimpleCoordinates(60.175, 24.934); ev.status = "TENTATIVE"; - assert_equals(ev.organizer, ""); - assert_not_equals(ev.geolocation, null); - assert_equals(ev.status, "TENTATIVE"); + assert_equals(ev.organizer, "", "Incorrect organizer"); + assert_not_equals(ev.geolocation, null, "Incorrect geolocation"); + assert_equals(ev.status, "TENTATIVE", "Incorrect status"); }, document.title); diff --git a/tct-calendar-tizen-tests/calendar/Calendar_CalendarItem_set_isAllDay_geolocation_priority.html b/tct-calendar-tizen-tests/calendar/Calendar_CalendarItem_set_isAllDay_geolocation_priority.html index 3f9eae6ea..ab4e11c96 100644 --- a/tct-calendar-tizen-tests/calendar/Calendar_CalendarItem_set_isAllDay_geolocation_priority.html +++ b/tct-calendar-tizen-tests/calendar/Calendar_CalendarItem_set_isAllDay_geolocation_priority.html @@ -46,20 +46,19 @@ Authors: //==== SPEC_URL https://developer.tizen.org/help/topic/org.tizen.web.device.apireference/tizen/calendar.html //==== TEST_CRITERIA -var description = "set attri value:isAllDay & geolocation & priority."; 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.geolocation = new tizen.SimpleCoordinates(60.175, 24.934); ev.priority = "MEDIUM"; - assert_equals(ev.isAllDay, false); - assert_not_equals(ev.geolocation, null); - assert_equals(ev.priority , "MEDIUM"); + assert_equals(ev.isAllDay, false, "Incorrect isAllDay"); + assert_not_equals(ev.geolocation, null, "Incorrect geolocation"); + assert_equals(ev.priority , "MEDIUM", "Incorrect priority"); }, document.title); diff --git a/tct-calendar-tizen-tests/calendar/Calendar_CalendarItem_set_isAllDay_priority_organizer.html b/tct-calendar-tizen-tests/calendar/Calendar_CalendarItem_set_isAllDay_priority_organizer.html index e1c4567fc..eb1a5569a 100644 --- a/tct-calendar-tizen-tests/calendar/Calendar_CalendarItem_set_isAllDay_priority_organizer.html +++ b/tct-calendar-tizen-tests/calendar/Calendar_CalendarItem_set_isAllDay_priority_organizer.html @@ -46,21 +46,20 @@ Authors: //==== SPEC_URL https://developer.tizen.org/help/topic/org.tizen.web.device.apireference/tizen/calendar.html //==== TEST_CRITERIA -var description = "set attri value:isAllDay & priority & organizer."; 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 = true; ev.priority = "LOW"; ev.organizer = "Mrs. Jones"; - assert_equals(ev.isAllDay, true); - assert_equals(ev.priority, "LOW"); - assert_equals(ev.organizer , "Mrs. Jones"); + assert_equals(ev.isAllDay, true, "Incorrect isAllDay"); + assert_equals(ev.priority, "LOW", "Incorrect priority"); + assert_equals(ev.organizer , "Mrs. Jones", "Incorrect organizer"); }, document.title); diff --git a/tct-calendar-tizen-tests/calendar/Calendar_CalendarItem_set_location_duration_organizer.html b/tct-calendar-tizen-tests/calendar/Calendar_CalendarItem_set_location_duration_organizer.html index debe3581f..189ba74a1 100644 --- a/tct-calendar-tizen-tests/calendar/Calendar_CalendarItem_set_location_duration_organizer.html +++ b/tct-calendar-tizen-tests/calendar/Calendar_CalendarItem_set_location_duration_organizer.html @@ -46,21 +46,20 @@ Authors: //==== SPEC_URL https://developer.tizen.org/help/topic/org.tizen.web.device.apireference/tizen/calendar.html //==== TEST_CRITERIA -var description = "set attri value: location & duration & organizer."; 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.location = "Dalian"; ev.duration = new tizen.TimeDuration(1, "HOURS"), ev.organizer = "Mr. Jones"; - assert_equals(ev.location, "Dalian"); - assert_not_equals(ev.duration, null); - assert_equals(ev.organizer, "Mr. Jones"); + assert_equals(ev.location, "Dalian", "Incorrect location"); + assert_not_equals(ev.duration, null, "Incorrect duration"); + assert_equals(ev.organizer, "Mr. Jones", "Incorrect organizer"); }, document.title); diff --git a/tct-calendar-tizen-tests/calendar/Calendar_CalendarItem_set_location_geolocation_categories.html b/tct-calendar-tizen-tests/calendar/Calendar_CalendarItem_set_location_geolocation_categories.html index ce73ba8e2..a7f1bfde6 100644 --- a/tct-calendar-tizen-tests/calendar/Calendar_CalendarItem_set_location_geolocation_categories.html +++ b/tct-calendar-tizen-tests/calendar/Calendar_CalendarItem_set_location_geolocation_categories.html @@ -46,21 +46,20 @@ Authors: //==== SPEC_URL https://developer.tizen.org/help/topic/org.tizen.web.device.apireference/tizen/calendar.html //==== TEST_CRITERIA -var description = "set attri value:location & geolocation & categories."; 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.location = "Huesca"; ev.geolocation = new tizen.SimpleCoordinates(60.175, 24.934); ev.categories = ["others"]; - assert_equals(ev.location, "Huesca"); - assert_not_equals(ev.geolocation, null); - assert_equals(ev.categories.toString() , "others"); + assert_equals(ev.location, "Huesca", "Incorrect location"); + assert_not_equals(ev.geolocation, null, "Incorrect geolocation"); + assert_equals(ev.categories.toString() , "others", "Incorrect categories"); }, document.title); diff --git a/tct-calendar-tizen-tests/calendar/Calendar_CalendarItem_set_location_organizer_priority.html b/tct-calendar-tizen-tests/calendar/Calendar_CalendarItem_set_location_organizer_priority.html index c8bf7b2f8..33a598224 100644 --- a/tct-calendar-tizen-tests/calendar/Calendar_CalendarItem_set_location_organizer_priority.html +++ b/tct-calendar-tizen-tests/calendar/Calendar_CalendarItem_set_location_organizer_priority.html @@ -46,21 +46,20 @@ Authors: //==== SPEC_URL https://developer.tizen.org/help/topic/org.tizen.web.device.apireference/tizen/calendar.html //==== TEST_CRITERIA -var description = "set attri value: location & organizer & priority."; 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.location = "Dalian"; ev.organizer = "Mr. Jones"; ev.priority = "HIGH"; - assert_equals(ev.location, "Dalian"); - assert_equals(ev.organizer, "Mr. Jones"); - assert_equals(ev.priority, "HIGH"); + assert_equals(ev.location, "Dalian", "Incorrect location"); + assert_equals(ev.organizer, "Mr. Jones", "Incorrect organizer"); + assert_equals(ev.priority, "HIGH", "Incorrect priority"); }, document.title); diff --git a/tct-calendar-tizen-tests/calendar/Calendar_CalendarItem_set_organizer_categories_visibility.html b/tct-calendar-tizen-tests/calendar/Calendar_CalendarItem_set_organizer_categories_visibility.html index 6af541ad0..87a68d9f9 100644 --- a/tct-calendar-tizen-tests/calendar/Calendar_CalendarItem_set_organizer_categories_visibility.html +++ b/tct-calendar-tizen-tests/calendar/Calendar_CalendarItem_set_organizer_categories_visibility.html @@ -46,21 +46,20 @@ Authors: //==== SPEC_URL https://developer.tizen.org/help/topic/org.tizen.web.device.apireference/tizen/calendar.html //==== TEST_CRITERIA -var description = "set attri value: organizer & categories & visibility."; 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.organizer = "Mr. Jones"; ev.categories = ["Personal"]; ev.visibility = "PUBLIC"; - assert_equals(ev.organizer, "Mr. Jones"); - assert_not_equals(ev.categories, ""); - assert_equals(ev.visibility, "PUBLIC"); + assert_equals(ev.organizer, "Mr. Jones", "Incorrect organizer"); + assert_not_equals(ev.categories, "", "Incorrect categories"); + assert_equals(ev.visibility, "PUBLIC", "Incorrect visibility"); }, document.title); diff --git a/tct-calendar-tizen-tests/calendar/Calendar_CalendarItem_set_organizer_priority.html b/tct-calendar-tizen-tests/calendar/Calendar_CalendarItem_set_organizer_priority.html index bb5aa79c9..7b96be2b0 100644 --- a/tct-calendar-tizen-tests/calendar/Calendar_CalendarItem_set_organizer_priority.html +++ b/tct-calendar-tizen-tests/calendar/Calendar_CalendarItem_set_organizer_priority.html @@ -46,20 +46,19 @@ Authors: //==== SPEC_URL https://developer.tizen.org/help/topic/org.tizen.web.device.apireference/tizen/calendar.html //==== TEST_CRITERIA -var description = "set attri value:organizer & priority."; 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.organizer = "Mr. Jones"; ev.priority = "LOW"; - assert_not_equals(ev, null); - assert_not_equals(ev.organizer, ""); - assert_equals(ev.priority , "LOW"); + assert_not_equals(ev, null, "Incorrect event"); + assert_not_equals(ev.organizer, "", "Incorrect organizer"); + assert_equals(ev.priority , "LOW", "Incorrect priority"); }, document.title); diff --git a/tct-calendar-tizen-tests/calendar/Calendar_CalendarItem_set_organizer_visibility_attendees.html b/tct-calendar-tizen-tests/calendar/Calendar_CalendarItem_set_organizer_visibility_attendees.html index 84b98c142..777ba169a 100644 --- a/tct-calendar-tizen-tests/calendar/Calendar_CalendarItem_set_organizer_visibility_attendees.html +++ b/tct-calendar-tizen-tests/calendar/Calendar_CalendarItem_set_organizer_visibility_attendees.html @@ -46,24 +46,23 @@ Authors: //==== SPEC_URL https://developer.tizen.org/help/topic/org.tizen.web.device.apireference/tizen/calendar.html //==== TEST_CRITERIA -var description = "set attri value: organizer & visibility & attendees.", - event_init, ev, attendee; +var eventInit, ev, attendee; test(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"), location:"Huesca"}, - ev = new tizen.CalendarEvent(event_init); + ev = new tizen.CalendarEvent(eventInit); ev.organizer = "Mr. Jones"; ev.visibility = "PUBLIC"; attendee = new tizen.CalendarAttendee("mailto:bob@domain.com", {role: "CHAIR", RSVP: true}); ev.attendees = [attendee]; - assert_equals(ev.organizer, "Mr. Jones"); - assert_equals(ev.visibility, "PUBLIC"); - assert_equals(ev.status, "CONFIRMED"); + assert_equals(ev.organizer, "Mr. Jones", "Incorrect organizer"); + assert_equals(ev.visibility, "PUBLIC", "Incorrect visibility"); + assert_equals(ev.status, "CONFIRMED", "Incorrect status"); }, document.title); diff --git a/tct-calendar-tizen-tests/calendar/Calendar_CalendarItem_set_progress_isAllDay_location.html b/tct-calendar-tizen-tests/calendar/Calendar_CalendarItem_set_progress_isAllDay_location.html index 91abf9089..43c072429 100644 --- a/tct-calendar-tizen-tests/calendar/Calendar_CalendarItem_set_progress_isAllDay_location.html +++ b/tct-calendar-tizen-tests/calendar/Calendar_CalendarItem_set_progress_isAllDay_location.html @@ -46,21 +46,20 @@ Authors: //==== SPEC_URL https://developer.tizen.org/help/topic/org.tizen.web.device.apireference/tizen/calendar.html //==== TEST_CRITERIA -var description = "set attri value: progress & isAllDay & location."; test(function () { - var task_init = {description:"HTML5 Introduction", + var taskInit = {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.CalendarTask(task_init); + ev = new tizen.CalendarTask(taskInit); ev.progress = 0; ev.isAllDay = true; ev.location = "Dalian"; - assert_equals(ev.progress, 0); - assert_equals(ev.isAllDay, true); - assert_equals(ev.location , "Dalian"); + assert_equals(ev.progress, 0, "Incorrect progress"); + assert_equals(ev.isAllDay, true, "Incorrect isAllDay"); + assert_equals(ev.location , "Dalian", "Incorrect location"); }, document.title); diff --git a/tct-calendar-tizen-tests/calendar/Calendar_CalendarItem_set_progress_status_attendees.html b/tct-calendar-tizen-tests/calendar/Calendar_CalendarItem_set_progress_status_attendees.html index d02689c8d..726997081 100644 --- a/tct-calendar-tizen-tests/calendar/Calendar_CalendarItem_set_progress_status_attendees.html +++ b/tct-calendar-tizen-tests/calendar/Calendar_CalendarItem_set_progress_status_attendees.html @@ -46,17 +46,16 @@ Authors: //==== SPEC_URL https://developer.tizen.org/help/topic/org.tizen.web.device.apireference/tizen/calendar.html //==== TEST_CRITERIA -var description = "set attri value: progress & status & attendees.", - task_init, ev, attendee; +var taskInit, ev, attendee; test(function () { - task_init = { + taskInit = { 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.CalendarTask(task_init); + ev = new tizen.CalendarTask(taskInit); ev.progress = 0; ev.status = "IN_PROCESS"; diff --git a/tct-calendar-tizen-tests/calendar/Calendar_CalendarItem_set_progress_visibility_organizer.html b/tct-calendar-tizen-tests/calendar/Calendar_CalendarItem_set_progress_visibility_organizer.html index c7fbf1f61..e66b4da6c 100644 --- a/tct-calendar-tizen-tests/calendar/Calendar_CalendarItem_set_progress_visibility_organizer.html +++ b/tct-calendar-tizen-tests/calendar/Calendar_CalendarItem_set_progress_visibility_organizer.html @@ -46,21 +46,20 @@ Authors: //==== SPEC_URL https://developer.tizen.org/help/topic/org.tizen.web.device.apireference/tizen/calendar.html //==== TEST_CRITERIA -var description = "set attri value: progress & visibility & organizer."; test(function () { - var task_init = {description:"HTML5 Introduction", + var taskInit = {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.CalendarTask(task_init); + ev = new tizen.CalendarTask(taskInit); ev.progress = 0; ev.organizer = "Mr. Jones"; ev.visibility = "PUBLIC"; - assert_equals(ev.progress, 0); - assert_equals(ev.organizer, "Mr. Jones"); - assert_equals(ev.visibility, "PUBLIC"); + assert_equals(ev.progress, 0, "Incorrect progress"); + assert_equals(ev.organizer, "Mr. Jones", "Incorrect organizer"); + assert_equals(ev.visibility, "PUBLIC", "Incorrect visibility"); }, document.title); diff --git a/tct-calendar-tizen-tests/calendar/Calendar_CalendarItem_set_startDate_categories_location.html b/tct-calendar-tizen-tests/calendar/Calendar_CalendarItem_set_startDate_categories_location.html index d43b1bd92..8a4001149 100644 --- a/tct-calendar-tizen-tests/calendar/Calendar_CalendarItem_set_startDate_categories_location.html +++ b/tct-calendar-tizen-tests/calendar/Calendar_CalendarItem_set_startDate_categories_location.html @@ -46,19 +46,18 @@ Authors: //==== SPEC_URL https://developer.tizen.org/help/topic/org.tizen.web.device.apireference/tizen/calendar.html //==== TEST_CRITERIA -var description = "set attri value:startDate & categories & location."; test(function () { - var event_init = {description:"HTML5 Introduction", + 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.categories = ["Personal"]; ev.location = "dalian"; - assert_not_equals(ev.startDate, null); - assert_not_equals(ev.categories, ""); - assert_equals(ev.location , "dalian"); + assert_not_equals(ev.startDate, null, "Incorrect startDate"); + assert_not_equals(ev.categories, "", "Incorrect categories"); + assert_equals(ev.location , "dalian", "Incorrect location"); }, document.title); diff --git a/tct-calendar-tizen-tests/calendar/Calendar_CalendarItem_set_startDate_duration.html b/tct-calendar-tizen-tests/calendar/Calendar_CalendarItem_set_startDate_duration.html index 490196d72..8e04ef8e9 100644 --- a/tct-calendar-tizen-tests/calendar/Calendar_CalendarItem_set_startDate_duration.html +++ b/tct-calendar-tizen-tests/calendar/Calendar_CalendarItem_set_startDate_duration.html @@ -46,18 +46,17 @@ Authors: //==== SPEC_URL https://developer.tizen.org/help/topic/org.tizen.web.device.apireference/tizen/calendar.html //==== TEST_CRITERIA -var description = "set attri value:startDate & duration."; test(function () { - var event_init = {description:"HTML5 Introduction", + 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.duration = new tizen.TimeDuration(1, "HOURS"), - assert_not_equals(ev, null); - assert_not_equals(ev.startDate, null); - assert_not_equals(ev.duration , null); + assert_not_equals(ev, null, "Incorrect event"); + assert_not_equals(ev.startDate, null, "Incorrect startDate"); + assert_not_equals(ev.duration , null, "Incorrect duration"); }, document.title); diff --git a/tct-calendar-tizen-tests/calendar/Calendar_CalendarItem_set_status_location_isAllDay.html b/tct-calendar-tizen-tests/calendar/Calendar_CalendarItem_set_status_location_isAllDay.html index d72a00077..0ff5cd271 100644 --- a/tct-calendar-tizen-tests/calendar/Calendar_CalendarItem_set_status_location_isAllDay.html +++ b/tct-calendar-tizen-tests/calendar/Calendar_CalendarItem_set_status_location_isAllDay.html @@ -46,21 +46,20 @@ Authors: //==== SPEC_URL https://developer.tizen.org/help/topic/org.tizen.web.device.apireference/tizen/calendar.html //==== TEST_CRITERIA -var description = "set attri value: status & location & isAllDay."; 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.location = "Dalian"; ev.status = "TENTATIVE"; ev.isAllDay = false; - assert_equals(ev.location, "Dalian"); - assert_equals(ev.status, "TENTATIVE"); - assert_equals(ev.isAllDay, false); + assert_equals(ev.location, "Dalian", "Incorrect location"); + assert_equals(ev.status, "TENTATIVE", "Incorrect status"); + assert_equals(ev.isAllDay, false, "Incorrect isAllDay"); }, document.title); diff --git a/tct-calendar-tizen-tests/calendar/Calendar_CalendarItem_set_status_visibility_attendees.html b/tct-calendar-tizen-tests/calendar/Calendar_CalendarItem_set_status_visibility_attendees.html index e07123081..fa49117db 100644 --- a/tct-calendar-tizen-tests/calendar/Calendar_CalendarItem_set_status_visibility_attendees.html +++ b/tct-calendar-tizen-tests/calendar/Calendar_CalendarItem_set_status_visibility_attendees.html @@ -46,24 +46,23 @@ Authors: //==== SPEC_URL https://developer.tizen.org/help/topic/org.tizen.web.device.apireference/tizen/calendar.html //==== TEST_CRITERIA -var description = "set attri value: status & visibility & attendees.", - event_init, ev, attendee; +var eventInit, ev, attendee; test(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"), location:"Huesca"}, - ev = new tizen.CalendarEvent(event_init); + ev = new tizen.CalendarEvent(eventInit); ev.status = "TENTATIVE"; ev.visibility = "PUBLIC"; attendee = new tizen.CalendarAttendee("mailto:bob@domain.com", {role: "CHAIR", RSVP: true}); ev.attendees = [attendee]; - assert_equals(ev.visibility, "PUBLIC"); - assert_not_equals(ev.attendees, null); - assert_equals(ev.status, "TENTATIVE"); + assert_equals(ev.visibility, "PUBLIC", "Incorrect visibility"); + assert_not_equals(ev.attendees, null, "Incorrect attendees"); + assert_equals(ev.status, "TENTATIVE", "Incorrect status"); }, document.title); diff --git a/tct-calendar-tizen-tests/calendar/Calendar_CalendarItem_set_status_visibility_categories.html b/tct-calendar-tizen-tests/calendar/Calendar_CalendarItem_set_status_visibility_categories.html index b5750f1b7..bd6caae85 100644 --- a/tct-calendar-tizen-tests/calendar/Calendar_CalendarItem_set_status_visibility_categories.html +++ b/tct-calendar-tizen-tests/calendar/Calendar_CalendarItem_set_status_visibility_categories.html @@ -46,21 +46,20 @@ Authors: //==== SPEC_URL https://developer.tizen.org/help/topic/org.tizen.web.device.apireference/tizen/calendar.html //==== TEST_CRITERIA -var description = "set attri value: status & visibility & categories."; 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.status = "TENTATIVE"; ev.visibility = "PUBLIC"; ev.categories = ["Personal"]; - assert_equals(ev.visibility, "PUBLIC"); - assert_not_equals(ev.attendees, null); - assert_not_equals(ev.categories, ""); + assert_equals(ev.visibility, "PUBLIC", "Incorrect visibility"); + assert_not_equals(ev.attendees, null, "Incorrect attendees"); + assert_not_equals(ev.categories, "", "Incorrect categories"); }, document.title); diff --git a/tct-calendar-tizen-tests/calendar/Calendar_CalendarItem_set_status_visibility_priority.html b/tct-calendar-tizen-tests/calendar/Calendar_CalendarItem_set_status_visibility_priority.html index f2da1c839..92dfc1382 100644 --- a/tct-calendar-tizen-tests/calendar/Calendar_CalendarItem_set_status_visibility_priority.html +++ b/tct-calendar-tizen-tests/calendar/Calendar_CalendarItem_set_status_visibility_priority.html @@ -46,21 +46,20 @@ Authors: //==== SPEC_URL https://developer.tizen.org/help/topic/org.tizen.web.device.apireference/tizen/calendar.html //==== TEST_CRITERIA -var description = "set attri value: status & visibility & priority."; 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.status = "TENTATIVE"; ev.visibility = "PUBLIC"; ev.priority = "HIGH"; - assert_equals(ev.visibility, "PUBLIC"); - assert_not_equals(ev.attendees, null); - assert_equals(ev.priority, "HIGH"); + assert_equals(ev.visibility, "PUBLIC", "Incorrect visibility"); + assert_not_equals(ev.attendees, null, "Incorrect attendees"); + assert_equals(ev.priority, "HIGH", "Incorrect priority"); }, document.title); diff --git a/tct-calendar-tizen-tests/calendar/Calendar_CalendarItem_set_summary_location_isAllDay.html b/tct-calendar-tizen-tests/calendar/Calendar_CalendarItem_set_summary_location_isAllDay.html index 6e9e7e6f9..28ecdfa43 100644 --- a/tct-calendar-tizen-tests/calendar/Calendar_CalendarItem_set_summary_location_isAllDay.html +++ b/tct-calendar-tizen-tests/calendar/Calendar_CalendarItem_set_summary_location_isAllDay.html @@ -46,21 +46,20 @@ Authors: //==== SPEC_URL https://developer.tizen.org/help/topic/org.tizen.web.device.apireference/tizen/calendar.html //==== TEST_CRITERIA -var description = "set attri value: summary & location & isAllDay."; 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.location = "Dalian"; ev.isAllDay = false; - assert_equals(ev.summary, "check if set attribute value successful after create ev"); - assert_equals(ev.location, "Dalian"); - assert_equals(ev.isAllDay, false); + assert_equals(ev.summary, "check if set attribute value successful after create ev", "Incorrect summary"); + assert_equals(ev.location, "Dalian", "Incorrect location"); + assert_equals(ev.isAllDay, false, "Incorrect isAllDay"); }, document.title); diff --git a/tct-calendar-tizen-tests/calendar/Calendar_CalendarItem_set_summary_priority.html b/tct-calendar-tizen-tests/calendar/Calendar_CalendarItem_set_summary_priority.html index 0cc388b5e..280238edc 100644 --- a/tct-calendar-tizen-tests/calendar/Calendar_CalendarItem_set_summary_priority.html +++ b/tct-calendar-tizen-tests/calendar/Calendar_CalendarItem_set_summary_priority.html @@ -46,23 +46,22 @@ Authors: //==== SPEC_URL https://developer.tizen.org/help/topic/org.tizen.web.device.apireference/tizen/calendar.html //==== TEST_CRITERIA -var description = "set attri value:summary & priority.", - event_init, ev, calendar; +var eventInit, ev, calendar; test(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"), location:"Huesca"}, - ev = new tizen.CalendarEvent(event_init), + ev = new tizen.CalendarEvent(eventInit), calendar = tizen.calendar.getDefaultCalendar("EVENT"); calendar.add(ev); ev.summary = "change some attribute value"; ev.priority = "HIGH"; - assert_not_equals(ev.id, null); - assert_equals(ev.summary, "change some attribute value"); - assert_equals(ev.priority , "HIGH"); + assert_not_equals(ev.id, null, "Incorrect id"); + assert_equals(ev.summary, "change some attribute value", "Incorrect summary"); + assert_equals(ev.priority , "HIGH", "Incorrect priority"); cleanup(calendar); }, document.title); diff --git a/tct-calendar-tizen-tests/calendar/Calendar_CalendarItem_set_summary_priority_isAllDay.html b/tct-calendar-tizen-tests/calendar/Calendar_CalendarItem_set_summary_priority_isAllDay.html index 21a27c337..201e480af 100644 --- a/tct-calendar-tizen-tests/calendar/Calendar_CalendarItem_set_summary_priority_isAllDay.html +++ b/tct-calendar-tizen-tests/calendar/Calendar_CalendarItem_set_summary_priority_isAllDay.html @@ -46,21 +46,20 @@ Authors: //==== SPEC_URL https://developer.tizen.org/help/topic/org.tizen.web.device.apireference/tizen/calendar.html //==== TEST_CRITERIA -var description = "set attri value: summary & priority & isAllDay."; 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 = "change some attribute value"; ev.priority = "HIGH"; ev.isAllDay = false; - assert_equals(ev.summary, "change some attribute value"); - assert_equals(ev.priority, "HIGH"); - assert_equals(ev.isAllDay, false); + assert_equals(ev.summary, "change some attribute value", "Incorrect summary"); + assert_equals(ev.priority, "HIGH", "Incorrect priority"); + assert_equals(ev.isAllDay, false, "Incorrect isAllDay"); }, document.title); diff --git a/tct-calendar-tizen-tests/calendar/Calendar_CalendarItem_set_visibility_status_priority.html b/tct-calendar-tizen-tests/calendar/Calendar_CalendarItem_set_visibility_status_priority.html index a18b1e6b8..54bf26cc4 100644 --- a/tct-calendar-tizen-tests/calendar/Calendar_CalendarItem_set_visibility_status_priority.html +++ b/tct-calendar-tizen-tests/calendar/Calendar_CalendarItem_set_visibility_status_priority.html @@ -46,20 +46,19 @@ Authors: //==== SPEC_URL https://developer.tizen.org/help/topic/org.tizen.web.device.apireference/tizen/calendar.html //==== TEST_CRITERIA -var description = "set attri value:visibility & status & priority."; 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.status = "TENTATIVE"; ev.priority = "MEDIUM"; - assert_equals(ev.visibility, "PUBLIC"); - assert_equals(ev.status, "TENTATIVE"); - assert_equals(ev.priority , "MEDIUM"); + assert_equals(ev.visibility, "PUBLIC", "Incorrect visibility"); + assert_equals(ev.status, "TENTATIVE", "Incorrect status"); + assert_equals(ev.priority , "MEDIUM", "Incorrect priority"); }, document.title); diff --git a/tct-calendar-tizen-tests/calendar/Calendar_CalendarManagerObject_attri_locationandsummary.html b/tct-calendar-tizen-tests/calendar/Calendar_CalendarManagerObject_attri_locationandsummary.html index ec053f1c7..c48008980 100644 --- a/tct-calendar-tizen-tests/calendar/Calendar_CalendarManagerObject_attri_locationandsummary.html +++ b/tct-calendar-tizen-tests/calendar/Calendar_CalendarManagerObject_attri_locationandsummary.html @@ -46,14 +46,13 @@ Authors: //==== SPEC_URL https://developer.tizen.org/help/topic/org.tizen.web.device.apireference/tizen/calendar.html //==== TEST_CRITERIA -var description = "set CalendarManagerObject attri value: calendar.summary and calendar.location."; test(function (){ - var default_calendar = tizen.calendar.getDefaultCalendar("EVENT"); - default_calendar.location = "Huesca"; - default_calendar.summary = "defined a new calendar"; - assert_not_equals(default_calendar, null); - assert_equals(default_calendar.location, "Huesca"); - assert_equals(default_calendar.summary, "defined a new calendar"); + var defaultCalendar = tizen.calendar.getDefaultCalendar("EVENT"); + defaultCalendar.location = "Huesca"; + defaultCalendar.summary = "defined a new calendar"; + assert_not_equals(defaultCalendar, null, "Incorrect defaultCalendar"); + assert_equals(defaultCalendar.location, "Huesca", "Incorrect location"); + assert_equals(defaultCalendar.summary, "defined a new calendar", "Incorrect summary"); }, document.title); diff --git a/tct-calendar-tizen-tests/calendar/Calendar_CalendarManager_getDefaultCalendar_event.html b/tct-calendar-tizen-tests/calendar/Calendar_CalendarManager_getDefaultCalendar_event.html index 4d14a14d9..57b89e420 100644 --- a/tct-calendar-tizen-tests/calendar/Calendar_CalendarManager_getDefaultCalendar_event.html +++ b/tct-calendar-tizen-tests/calendar/Calendar_CalendarManager_getDefaultCalendar_event.html @@ -48,10 +48,9 @@ Authors: //==== SPEC_URL https://developer.tizen.org/help/topic/org.tizen.web.device.apireference/tizen/calendar.html //==== TEST_CRITERIA MMINA -var description = "CalendarManager method getDefaultCalendar: event."; test(function (){ - var default_calendar = tizen.calendar.getDefaultCalendar("EVENT"); - assert_not_equals(default_calendar, null); + var defaultCalendar = tizen.calendar.getDefaultCalendar("EVENT"); + assert_not_equals(defaultCalendar, null, "Incorrect defaultCalendar"); }, document.title); diff --git a/tct-calendar-tizen-tests/calendar/Calendar_CalendarRecurrenceRule_attri_daysOfTheWeek.html b/tct-calendar-tizen-tests/calendar/Calendar_CalendarRecurrenceRule_attri_daysOfTheWeek.html index ad6a00194..3b12fbc10 100644 --- a/tct-calendar-tizen-tests/calendar/Calendar_CalendarRecurrenceRule_attri_daysOfTheWeek.html +++ b/tct-calendar-tizen-tests/calendar/Calendar_CalendarRecurrenceRule_attri_daysOfTheWeek.html @@ -42,21 +42,20 @@ Authors: