[Calendar] progress status attendees value fix
authorWitold Choinkowski <w.choinkowsk@samsung.com>
Wed, 4 Sep 2013 16:31:47 +0000 (18:31 +0200)
committerGerrit Code Review <gerrit@gerrit.vlan144.tizendev.org>
Fri, 6 Sep 2013 12:50:20 +0000 (12:50 +0000)
Change-Id: Ib6fbbb06b4c79c53cb5dd484fc0cf387a22ea3c5

tct-calendar-tizen-tests/calendar/Calendar_CalendarItem_set_progress_status_attendees.html

index 9b71bbb5f3b23bb769a9891fe39251203110aeb9..f63a835f589c3b8b329ab1bc56c3e1f22be653a9 100644 (file)
@@ -47,25 +47,29 @@ 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;
-        test(function() {
-            task_init = {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);
+var description = "set attri value: progress & status & attendees.",
+    task_init, ev, attendee;
+test(function () {
+    task_init = {
+        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.progress = 0;
-            ev.status = "TENTATIVE";
-            attendee = new tizen.CalendarAttendee("mailto:bob@domain.com",
-                                               {role: "CHAIR", RSVP: true});
-            ev.attendees = [attendee];
-            assert_equals(ev.progress,0);
-            assert_equals(ev.status,"TENTATIVE");
-            assert_not_equals(ev.attendees,null);
-        },description);
-    </script>
-  </body>
+    ev.progress = 0;
+    ev.status = "IN_PROCESS";
+    attendee = new tizen.CalendarAttendee("mailto:bob@domain.com", {
+        role: "CHAIR",
+        RSVP: true
+    });
+    ev.attendees = [attendee];
+    assert_equals(ev.progress, 0, "Wrong value of progress attribute in CalendarTask.");
+    assert_equals(ev.status, "IN_PROCESS", "Wrong value of status attribute in CalendarTask.");
+    assert_not_equals(ev.attendees, null, "Value of attendees can not be null");
+}, description);
+</script>
+</body>
 </html>