From 9fa7900d91872563850e56dcdf7e7a7d888a50b2 Mon Sep 17 00:00:00 2001 From: "zhaoyuan17@huawei.com" Date: Tue, 2 Nov 2021 19:53:14 +0800 Subject: [PATCH] fms_st Signed-off-by: zhaoyuan17@huawei.com --- .../js/test/GetAllFormsInfoJsunit.test.js | 24 +++++++++---------- .../src/main/config.json | 4 ++-- 2 files changed, 14 insertions(+), 14 deletions(-) diff --git a/aafwk/aafwk_standard/formmanager/formsystemtesthost/getallformsinfo/entry/src/main/js/test/GetAllFormsInfoJsunit.test.js b/aafwk/aafwk_standard/formmanager/formsystemtesthost/getallformsinfo/entry/src/main/js/test/GetAllFormsInfoJsunit.test.js index ad10ab052..671823092 100644 --- a/aafwk/aafwk_standard/formmanager/formsystemtesthost/getallformsinfo/entry/src/main/js/test/GetAllFormsInfoJsunit.test.js +++ b/aafwk/aafwk_standard/formmanager/formsystemtesthost/getallformsinfo/entry/src/main/js/test/GetAllFormsInfoJsunit.test.js @@ -43,8 +43,7 @@ describe('getAllFormsInfoTest', function () { expect(data[i].colorMode).assertEqual(-1); expect(data[i].isDefault).assertEqual(1); expect(data[i].updateEnabled).assertEqual(1); - expect(data[i].scheduledUpdateTime).assertEqual("0:0"); - expect(data[i].formVisibleNotify).assertEqual(0); + expect(data[i].formVisibleNotify).assertEqual(1); expect(data[i].defaultDimension).assertEqual(1); expect(data[i].supportDimensions[0]).assertEqual(1); expect(data[i].supportDimensions[1]).assertEqual(2); @@ -52,6 +51,7 @@ describe('getAllFormsInfoTest', function () { expect(data[i].metaData.customizeData[0].value).assertEqual("myTest"); } + expect(data[0].scheduledUpdateTime).assertEqual("10:30"); expect(data[0].name).assertEqual("Form_Js001"); expect(data[1].name).assertEqual("Form_Js002"); expect(data[0].updateDuration).assertEqual(0); @@ -86,8 +86,7 @@ describe('getAllFormsInfoTest', function () { expect(data[i].colorMode).assertEqual(-1); expect(data[i].isDefault).assertEqual(1); expect(data[i].updateEnabled).assertEqual(1); - expect(data[i].scheduledUpdateTime).assertEqual("0:0"); - expect(data[i].formVisibleNotify).assertEqual(0); + expect(data[i].formVisibleNotify).assertEqual(1); expect(data[i].defaultDimension).assertEqual(1); expect(data[i].supportDimensions[0]).assertEqual(1); expect(data[i].supportDimensions[1]).assertEqual(2); @@ -95,6 +94,7 @@ describe('getAllFormsInfoTest', function () { expect(data[i].metaData.customizeData[0].value).assertEqual("myTest"); } + expect(data[0].scheduledUpdateTime).assertEqual("10:30"); expect(data[0].name).assertEqual("Form_Js001"); expect(data[1].name).assertEqual("Form_Js002"); expect(data[0].updateDuration).assertEqual(0); @@ -234,8 +234,7 @@ describe('getAllFormsInfoTest', function () { expect(data[i].colorMode).assertEqual(-1); expect(data[i].isDefault).assertEqual(1); expect(data[i].updateEnabled).assertEqual(1); - expect(data[i].scheduledUpdateTime).assertEqual("0:0"); - expect(data[i].formVisibleNotify).assertEqual(0); + expect(data[i].formVisibleNotify).assertEqual(1); expect(data[i].defaultDimension).assertEqual(1); expect(data[i].supportDimensions[0]).assertEqual(1); expect(data[i].supportDimensions[1]).assertEqual(2); @@ -243,6 +242,7 @@ describe('getAllFormsInfoTest', function () { expect(data[i].metaData.customizeData[0].value).assertEqual("myTest"); } + expect(data[0].scheduledUpdateTime).assertEqual("10:30"); expect(data[0].name).assertEqual("Form_Js001"); expect(data[1].name).assertEqual("Form_Js002"); expect(data[0].updateDuration).assertEqual(0); @@ -280,8 +280,7 @@ describe('getAllFormsInfoTest', function () { expect(data[i].colorMode).assertEqual(-1); expect(data[i].isDefault).assertEqual(1); expect(data[i].updateEnabled).assertEqual(1); - expect(data[i].scheduledUpdateTime).assertEqual("0:0"); - expect(data[i].formVisibleNotify).assertEqual(0); + expect(data[i].formVisibleNotify).assertEqual(1); expect(data[i].defaultDimension).assertEqual(1); expect(data[i].supportDimensions[0]).assertEqual(1); expect(data[i].supportDimensions[1]).assertEqual(2); @@ -289,6 +288,7 @@ describe('getAllFormsInfoTest', function () { expect(data[i].metaData.customizeData[0].value).assertEqual("myTest"); } + expect(data[0].scheduledUpdateTime).assertEqual("10:30"); expect(data[0].name).assertEqual("Form_Js001"); expect(data[1].name).assertEqual("Form_Js002"); expect(data[0].updateDuration).assertEqual(0); @@ -543,8 +543,7 @@ describe('getAllFormsInfoTest', function () { expect(data[i].colorMode).assertEqual(-1); expect(data[i].isDefault).assertEqual(1); expect(data[i].updateEnabled).assertEqual(1); - expect(data[i].scheduledUpdateTime).assertEqual("0:0"); - expect(data[i].formVisibleNotify).assertEqual(0); + expect(data[i].formVisibleNotify).assertEqual(1); expect(data[i].defaultDimension).assertEqual(1); expect(data[i].supportDimensions[0]).assertEqual(1); expect(data[i].supportDimensions[1]).assertEqual(2); @@ -552,6 +551,7 @@ describe('getAllFormsInfoTest', function () { expect(data[i].metaData.customizeData[0].value).assertEqual("myTest"); } + expect(data[0].scheduledUpdateTime).assertEqual("10:30"); expect(data[0].name).assertEqual("Form_Js001"); expect(data[1].name).assertEqual("Form_Js002"); expect(data[0].updateDuration).assertEqual(0); @@ -590,8 +590,7 @@ describe('getAllFormsInfoTest', function () { expect(data[i].colorMode).assertEqual(-1); expect(data[i].isDefault).assertEqual(1); expect(data[i].updateEnabled).assertEqual(1); - expect(data[i].scheduledUpdateTime).assertEqual("0:0"); - expect(data[i].formVisibleNotify).assertEqual(0); + expect(data[i].formVisibleNotify).assertEqual(1); expect(data[i].defaultDimension).assertEqual(1); expect(data[i].supportDimensions[0]).assertEqual(1); expect(data[i].supportDimensions[1]).assertEqual(2); @@ -599,6 +598,7 @@ describe('getAllFormsInfoTest', function () { expect(data[i].metaData.customizeData[0].value).assertEqual("myTest"); } + expect(data[0].scheduledUpdateTime).assertEqual("10:30"); expect(data[0].name).assertEqual("Form_Js001"); expect(data[1].name).assertEqual("Form_Js002"); expect(data[0].updateDuration).assertEqual(0); diff --git a/aafwk/aafwk_standard/formmanager/formsystemtestservice/formsystemtestservicea/src/main/config.json b/aafwk/aafwk_standard/formmanager/formsystemtestservice/formsystemtestservicea/src/main/config.json index 2f1fcebed..0c2cfd3dc 100755 --- a/aafwk/aafwk_standard/formmanager/formsystemtestservice/formsystemtestservicea/src/main/config.json +++ b/aafwk/aafwk_standard/formmanager/formsystemtestservice/formsystemtestservicea/src/main/config.json @@ -57,7 +57,7 @@ "updateEnabled": true, "scheduledUpdateTime": "10:30", "jsComponentName": "card", - "formVisibleNotify" : false, + "formVisibleNotify" : true, "metaData": { "customizeData": [ { @@ -78,7 +78,7 @@ "updateEnabled": true, "updateDuration": 1, "jsComponentName": "card", - "formVisibleNotify" : false, + "formVisibleNotify" : true, "metaData": { "customizeData": [ { -- GitLab