[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 aafc20250c1d825d2ff665793635fc2a0cd42c62..9833edc05fa84c3f0d6e5042972283e5288ceaf1 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 7205af504e3901b6e43a578d89bd40d141e78108..5d41f71bccf62156d3785f82509d9d396c1ca71c 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
     }