[Calendar] Fix TCT
authorPawel Kaczmarek <p.kaczmarek3@samsung.com>
Tue, 23 Dec 2014 15:41:41 +0000 (16:41 +0100)
committerRafal Galka <r.galka@samsung.com>
Tue, 23 Dec 2014 15:58:09 +0000 (00:58 +0900)
[Verification]
Below TCT should pass:
Calendar_accountId_attribute
CalendarTaskInit_attributeType

Change-Id: Ib6a3528cc77ebcbd78ca9b784e20e38abf2efdbd
Signed-off-by: Pawel Kaczmarek <p.kaczmarek3@samsung.com>
src/calendar/js/tizen.calendar.Calendar.js
src/calendar/js/tizen.calendar.CalendarItem.js

index aafc202..9833edc 100644 (file)
@@ -75,7 +75,7 @@ var Calendar = function(accountId, name, type) {
 
   Object.defineProperties(this, {
     accountId: {
-      value: _data.accountId,
+      value: Converter.toLong(_data.accountId),
       writable: false,
       enumerable: true
     },
index 7205af5..5d41f71 100644 (file)
@@ -548,7 +548,7 @@ var CalendarTaskInit = function(data) {
         if (v === null) {
           return;
         }
-        _progress = (T.isNumber(v) && v >= 0 || v <= 100) ? v : _progress;
+        _progress = (T.isNumber(v) && (v >= 0 || v <= 100)) ? v : _progress;
       },
       enumerable: true
     }