diff --git a/barrierfree/accessibletest/actscaptionconfigurationtest/entry/src/main/ets/MainAbility/pages/index.ets b/barrierfree/accessibletest/actscaptionconfigurationtest/entry/src/main/ets/MainAbility/pages/index.ets index e3323ba174a62b917ea0552cf906b4ae529a90aa..2427bbde2907b3a624b915bc0f2fbb9cf0ee22a2 100644 --- a/barrierfree/accessibletest/actscaptionconfigurationtest/entry/src/main/ets/MainAbility/pages/index.ets +++ b/barrierfree/accessibletest/actscaptionconfigurationtest/entry/src/main/ets/MainAbility/pages/index.ets @@ -20,8 +20,8 @@ import config from '@ohos.accessibility.config' export { }; const LOG: string = "[xtsLog]"; -const CaptionConfiguration_0010 = () => { - const caseName = "CaptionConfiguration_0010" +const CaptionConfiguration_0270 = () => { + const caseName = "CaptionConfiguration_0270" const logTag = LOG + caseName; config.captions.get().then((res) => { console.info(logTag + "Config before modification. enabled=" + res); @@ -71,8 +71,8 @@ const foreachList = (currValue, array) => { return result; } -const CaptionConfiguration_0020 = () => { - const caseName = "CaptionConfiguration_0020" +const CaptionConfiguration_0280 = () => { + const caseName = "CaptionConfiguration_0280" const logTag = LOG + caseName; config.captionsStyle.get().then((res) => { if (!res) { @@ -92,8 +92,8 @@ const CaptionConfiguration_0020 = () => { }) }; -const CaptionConfiguration_0030 = () => { - const caseName = "CaptionConfiguration_0030" +const CaptionConfiguration_0290 = () => { + const caseName = "CaptionConfiguration_0290" const logTag = LOG + caseName; config.captions.get().then((res) => { console.info(logTag + "Config before modification. enabled=" + res); @@ -106,8 +106,8 @@ const CaptionConfiguration_0030 = () => { }); } -const CaptionConfiguration_0040 = () => { - const caseName = "CaptionConfiguration_0040" +const CaptionConfiguration_0300 = () => { + const caseName = "CaptionConfiguration_0300" const logTag = LOG + caseName; config.captionsStyle.get().then((res) => { if (!res) { @@ -127,8 +127,8 @@ const CaptionConfiguration_0040 = () => { }) }; -const CaptionConfiguration_0050 = () => { - const caseName = "CaptionConfiguration_0050" +const CaptionConfiguration_0310 = () => { + const caseName = "CaptionConfiguration_0310" const logTag = LOG + caseName; config.captionsStyle.get().then((res) => { if (!res) { @@ -148,8 +148,8 @@ const CaptionConfiguration_0050 = () => { }) }; -const CaptionConfiguration_0060 = () => { - const caseName = "CaptionConfiguration_0060" +const CaptionConfiguration_0320 = () => { + const caseName = "CaptionConfiguration_0320" const logTag = LOG + caseName; config.captionsStyle.get().then((res) => { if (!res) { @@ -168,8 +168,8 @@ const CaptionConfiguration_0060 = () => { }) }; -const CaptionConfiguration_0070 = () => { - const caseName = "CaptionConfiguration_0070" +const CaptionConfiguration_0330 = () => { + const caseName = "CaptionConfiguration_0330" const logTag = LOG + caseName; config.captionsStyle.get().then((res) => { if (!res) { @@ -188,8 +188,8 @@ const CaptionConfiguration_0070 = () => { }) }; -const CaptionConfiguration_0080 = () => { - const caseName = "CaptionConfiguration_0080" +const CaptionConfiguration_0340 = () => { + const caseName = "CaptionConfiguration_0340" const logTag = LOG + caseName; config.captionsStyle.get().then((res) => { if (!res) { @@ -549,29 +549,29 @@ const commonEventPublishOnTargetChangeExtra = (caseName) => { const excuteAbility = (data) => { switch (data) { - case "CaptionConfiguration_0010" + "_AccessibilityApp_start": - CaptionConfiguration_0010() + case "CaptionConfiguration_0270" + "_AccessibilityApp_start": + CaptionConfiguration_0270() break; - case "CaptionConfiguration_0020" + "_AccessibilityApp_start": - CaptionConfiguration_0020() + case "CaptionConfiguration_0280" + "_AccessibilityApp_start": + CaptionConfiguration_0280() break; - case "CaptionConfiguration_0030" + "_AccessibilityApp_start": - CaptionConfiguration_0030() + case "CaptionConfiguration_0290" + "_AccessibilityApp_start": + CaptionConfiguration_0290() break; - case "CaptionConfiguration_0040" + "_AccessibilityApp_start": - CaptionConfiguration_0040() + case "CaptionConfiguration_0300" + "_AccessibilityApp_start": + CaptionConfiguration_0300() break; - case "CaptionConfiguration_0050" + "_AccessibilityApp_start": - CaptionConfiguration_0050() + case "CaptionConfiguration_0310" + "_AccessibilityApp_start": + CaptionConfiguration_0310() break; - case "CaptionConfiguration_0060" + "_AccessibilityApp_start": - CaptionConfiguration_0060() + case "CaptionConfiguration_0320" + "_AccessibilityApp_start": + CaptionConfiguration_0320() break; - case "CaptionConfiguration_0070" + "_AccessibilityApp_start": - CaptionConfiguration_0070() + case "CaptionConfiguration_0330" + "_AccessibilityApp_start": + CaptionConfiguration_0330() break; - case "CaptionConfiguration_0080" + "_AccessibilityApp_start": - CaptionConfiguration_0080() + case "CaptionConfiguration_0340" + "_AccessibilityApp_start": + CaptionConfiguration_0340() break; case "CaptionConfiguration_0090" + "_AccessibilityApp_start": CaptionConfiguration_0090() @@ -612,12 +612,6 @@ const excuteAbility = (data) => { case "CaptionConfiguration_0210" + "_AccessibilityApp_start": CaptionConfiguration_0210() break; - case "CaptionConfiguration_0210" + "_AccessibilityApp_start": - CaptionConfiguration_0210() - break; - case "CaptionConfiguration_0220" + "_AccessibilityApp_start": - CaptionConfiguration_0220() - break; case "CaptionConfiguration_0220" + "_AccessibilityApp_start": CaptionConfiguration_0220() break;