From: Pawel Andruszkiewicz
Date: Thu, 27 Aug 2015 07:31:54 +0000 (+0200)
Subject: [Notification] Fixed validation of LED color.
X-Git-Tag: submit/tizen/20151026.073646^2^2~161^2
X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=2b69649a271fab515845d6c4ff31f5823bf0cfc8;p=platform%2Fcore%2Fapi%2Fwebapi-plugins.git
[Notification] Fixed validation of LED color.
Test NotificationManager_playLEDCustomEffect_color_invalid passes.
[Verification] TCT pass rate (r36): 97.85% (93/91/2/0/0).
Change-Id: Id050536aa5018ad2582757ca3e70f16caaf26e0a
Signed-off-by: Pawel Andruszkiewicz
---
diff --git a/src/notification/notification_api.js b/src/notification/notification_api.js
index c558df9b..33a36cbc 100644
--- a/src/notification/notification_api.js
+++ b/src/notification/notification_api.js
@@ -39,7 +39,7 @@ function convertColorToInt(rgbaColor) {
}
if (!isLengthOk || !isHash || !isHex) {
- throw new tizen.WebAPIException(tizen.WebAPIException.INVALID_VALUES_ERR, 'invalid value');
+ throw new WebAPIException(WebAPIException.INVALID_VALUES_ERR, 'invalid value');
}
return parseInt('0x' + c);