[common][tct-notification-tizen-tests][Modify TCs due to tc issue] 55/154355/1
authorxy.qian <xy.qian@samsung.com>
Tue, 10 Oct 2017 05:54:31 +0000 (13:54 +0800)
committerxy.qian <xy.qian@samsung.com>
Tue, 10 Oct 2017 05:54:31 +0000 (13:54 +0800)
Change-Id: I309dcca29706b04fea271dd986b7685264cafe38
Signed-off-by: xy.qian <xy.qian@samsung.com>
common/tct-notification-tizen-tests/notification/NotificationManager_getAllNotifications.html
common/tct-notification-tizen-tests/notification/NotificationManager_post_SIMPLE.html
common/tct-notification-tizen-tests/notification/UserNotification_leds_attribute.html
common/tct-notification-tizen-tests/notification/UserNotification_textContents_attribute.html

index fad7e2aaca4ccc8acd813bb530de8725b9dee051..0fe8fac183f1b70fc11dcad5cd27f6a1b9079e98 100644 (file)
@@ -84,10 +84,10 @@ test(function () {
 
             assert_equals(userNotification.textContents.progressValue, progressValueToSet, "progressValue is incorrect.");
             assert_equals(userNotification.textContents.progressType, progressTypeToSet, "progressType is incorrect.");
-            assert_equals(userNotification.userType, statusType, "userType is incorrect.");
+            assert_equals(userNotification.userType, postedNotification.userType, "userType is incorrect.");
 
-            assert_equals(notification.images.subIconPath, subIconPathToSet, "subIconPath is incorrect.");
-            assert_equals(notification.images.backgroundImagePath, backgroundImagePathToSet, "backgroundImagePath is incorrect.");
+            assert_equals(userNotification.images.subIconPath, subIconPathToSet, "subIconPath is incorrect.");
+            assert_equals(userNotification.images.backgroundImagePath, backgroundImagePathToSet, "backgroundImagePath is incorrect.");
 
             assert_array_equals(userNotification.thumbnails.thumbnails, thumbnailsToSet, "thumbnails attribute.");
             assert_equals(userNotification.textContents.detailInfo.length, detailInfoToSet.length, "detailInfo attribute length.");
index 41f246ada91cafc20883cdd894552bfb27cc0d60..15ce78dcaa254a706a65f09980b9f461b7fa1473 100755 (executable)
@@ -31,7 +31,7 @@ Authors:
 </head>
 <body>
 <div id="log"></div>
-<scriptS>
+<script>
 
 //==== TEST: NotificationManager_post_SIMPLE
 //==== LABEL Check if NotificationManager.post method works properly with SIMPLE statusType
index 79481ecbfd7fbf2784152ef5e75f04a2116784dd..3a5f33959d4ec9fcc7a973b53046ae946d305ec3 100644 (file)
@@ -59,26 +59,26 @@ test(function () {
     userNotification.leds.ledOffPeriod = 125;
     assert_equals(userNotification.leds.ledOffPeriod, 125, "userNotification.leds.ledOffPeriod value after set");
 
-    notificationDict.ledOffPeriod = 100;
+    notificationDict.leds.ledOffPeriod = 100;
+  
     userNotification = new tizen.UserNotification(userNotificationType, titleToSet, notificationDict);
-    assert_equals(userNotification.leds.ledOffPeriod, notificationDict.ledOffPeriod, "userNotification.leds.ledOffPeriod value from constructor");
+    assert_equals(userNotification.leds.ledOffPeriod, notificationDict.leds.ledOffPeriod, "userNotification.leds.ledOffPeriod value from constructor");
 
-    assert_own_property(userNotification, "ledOnPeriod", "StatusNotification doesn't own statusType property.");
+    assert_own_property(userNotification.leds, "ledOnPeriod", "userNotification doesn't own statusType property.");
     assert_type(userNotification.leds.ledOnPeriod, "unsigned long", "userNotification.leds.ledOnPeriod should be number");
-    assert_equals(userNotification.leds.ledOnPeriod, 0, "userNotification.leds.ledOnPeriod default value");
 
     userNotification.leds.ledOnPeriod = 125;
     assert_equals(userNotification.leds.ledOnPeriod, 125, "userNotification.leds.ledOnPeriod value after set");
 
-    notificationDict.actions.ledOnPeriod = 100;
+    notificationDict.leds.ledOnPeriod = 100;
     userNotification = new tizen.UserNotification(userNotificationType, titleToSet, notificationDict);
-    assert_equals(userNotification.leds.ledOnPeriod, notificationDict.actions.ledOnPeriod, "userNotification.leds.ledOnPeriod value from constructor");
+    assert_equals(userNotification.leds.ledOnPeriod, notificationDict.leds.ledOnPeriod, "userNotification.leds.ledOnPeriod value from constructor");
 
     userNotification.leds = null;
     assert_equals(userNotification.leds, null, "userNotification.leds after set null");
 
     userNotification = new tizen.UserNotification(userNotificationType, titleToSet);
-    assert_equals(userNotification.leds.ledOffPeriod, 0, "userNotification.leds.ledOnPeriod default value");
+    assert_equals(userNotification.leds.ledOnPeriod, 0, "userNotification.leds.ledOnPeriod default value");
     assert_equals(userNotification.leds.ledOffPeriod, 0, "userNotification.leds.ledOffPeriod default value");
 
 }, document.title);
index 93c6e2f277c7ed591e615b3cc2c976a1e93ecdeb..841edc440b77d1322387a0a67f542e657d7278ee 100644 (file)
@@ -56,9 +56,6 @@ test(function () {
 
     userNotification.textContents.progressType = percentageValue;
     assert_equals(userNotification.textContents.progressType, percentageValue, "progressType attribute - assignment.");
-
-    userNotification = new tizen.UserNotification(userNotificationType, titleToSet);
-    assert_equals(userNotification.textContents.progressType, "PERCENTAGE", "progressType attribute default not set.");
     check_not_nullable(userNotification.textContents, "progressType");
 
     assert_own_property(userNotification.textContents, "progressValue", "UserNotification doesn't own progressValue property.");