From: Tomasz Kusmierz Date: Tue, 13 Aug 2013 14:29:36 +0000 (+0200) Subject: [Calendar] assigning value to an element of array issues X-Git-Tag: 2.2.1_release~114^2~107^2 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=f46f6e825e04f133e9eb1610440d53a001867cb2;p=test%2Ftct%2Fweb%2Fapi.git [Calendar] assigning value to an element of array issues Change-Id: I9058f5fc57d0e84d9d61bded60b18ed8ecfb4ad6 --- diff --git a/tct-calendar-tizen-tests/calendar/CalendarItem_alarms_attribute.html b/tct-calendar-tizen-tests/calendar/CalendarItem_alarms_attribute.html index 6dc6788dc..c122cfcef 100644 --- a/tct-calendar-tizen-tests/calendar/CalendarItem_alarms_attribute.html +++ b/tct-calendar-tizen-tests/calendar/CalendarItem_alarms_attribute.html @@ -87,17 +87,6 @@ test(function () { assert_equals(calendarItem.alarms[0].before.unit, duration.unit, "calendarItem.alarms[0].before should be updated."); - duration = new tizen.TimeDuration(1, "HOURS"); - calendarItem.alarms[0] = new tizen.CalendarAlarm(duration, "SOUND"); - assert_equals(calendarItem.alarms.length, 1, - "calendarItem.attendees should be updated."); - assert_equals(calendarItem.alarms[0].method, "SOUND", - "calendarItem.alarms[0].method should be updated."); - assert_equals(calendarItem.alarms[0].before.length, duration.length, - "calendarItem.alarms[0].before should be updated."); - assert_equals(calendarItem.alarms[0].before.unit, duration.unit, - "calendarItem.alarms[0].before should be updated."); - calendarItem.alarms = null; assert_not_equals(calendarItem.alarms, null, "calendarItem.alarms should not accept null as value."); diff --git a/tct-calendar-tizen-tests/calendar/CalendarRecurrenceRule_exceptions_attribute.html b/tct-calendar-tizen-tests/calendar/CalendarRecurrenceRule_exceptions_attribute.html index e9fd716e5..8772e0e62 100644 --- a/tct-calendar-tizen-tests/calendar/CalendarRecurrenceRule_exceptions_attribute.html +++ b/tct-calendar-tizen-tests/calendar/CalendarRecurrenceRule_exceptions_attribute.html @@ -48,14 +48,6 @@ test(function () { assert_equals(calendarRecurrenceRule.exceptions.length, 0, "calendarRecurrenceRule.exceptions should be empty by default."); - calendarRecurrenceRule.exceptions[0] = exce; - assert_equals(calendarRecurrenceRule.exceptions.length, 1, - "calendarRecurrenceRule.exceptions should be updated."); - assert_true(calendarRecurrenceRule.exceptions[0] instanceof tizen.TZDate, - "calendarRecurrenceRule.exceptions attribute should be type of TZDate"); - assert_true(calendarRecurrenceRule.exceptions[0].equalsTo(exce), "dates should be equal"); - - exce = new tizen.TZDate(2013, 11, 13, 12, 13, 0, 0); calendarRecurrenceRule.exceptions = [exce]; assert_equals(calendarRecurrenceRule.exceptions.length, 1, "calendarRecurrenceRule.exceptions should be updated.");