[Calendar] assigning value to an element of array issues
authorTomasz Kusmierz <t.kusmierz@samsung.com>
Tue, 13 Aug 2013 14:29:36 +0000 (16:29 +0200)
committerTomasz Kusmierz <t.kusmierz@samsung.com>
Tue, 13 Aug 2013 14:29:36 +0000 (16:29 +0200)
Change-Id: I9058f5fc57d0e84d9d61bded60b18ed8ecfb4ad6

tct-calendar-tizen-tests/calendar/CalendarItem_alarms_attribute.html
tct-calendar-tizen-tests/calendar/CalendarRecurrenceRule_exceptions_attribute.html

index 6dc6788dc3d37dd61fae07521d67fd8a55e06e90..c122cfcef0527429f772e6e7d9e2d46c98644a19 100644 (file)
@@ -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.");
index e9fd716e53b70d8284e28eaf971f72722f38db5b..8772e0e627a49a43ca5dc44e644b8d698d08ba59 100644 (file)
@@ -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.");