//==== 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>