diff --git a/arkui/ace_ets_component_completion/ace_ets_component_wholeCompletion/src/main/ets/TestAbility/pages/stageMediaquery.ets b/arkui/ace_ets_component_completion/ace_ets_component_wholeCompletion/src/main/ets/TestAbility/pages/stageMediaquery.ets index 5296fb55d2d3aa746449cefd19c5da075f53bee1..3b51fd653feedc3ef6e12589f8c86b713b5dd41f 100644 --- a/arkui/ace_ets_component_completion/ace_ets_component_wholeCompletion/src/main/ets/TestAbility/pages/stageMediaquery.ets +++ b/arkui/ace_ets_component_completion/ace_ets_component_wholeCompletion/src/main/ets/TestAbility/pages/stageMediaquery.ets @@ -18,7 +18,7 @@ import events_emitter from '@ohos.events.emitter'; struct stageMediaquery { @State color: string = '#000' @State text: string = 'Test' - listener = globalThis.uiContent.getMediaquery().matchMediaSync('(orientation: landscape)') + listener = globalThis.uiContent.getMediaQuery().matchMediaSync('(orientation: landscape)') aboutToAppear() { this.listener.on('change', (mediaQueryResult) => { if (mediaQueryResult.matches) { diff --git a/arkui/ace_ets_component_completion/ace_ets_component_wholeCompletion/src/main/ets/test/gridScrollbarUpdate.test.ets b/arkui/ace_ets_component_completion/ace_ets_component_wholeCompletion/src/main/ets/test/gridScrollbarUpdate.test.ets index 93ea3c526c8ecf3b12fda94a486833d52263bc28..0271ca007a41ad899a1d2fcdcfdeea31bd39b44d 100644 --- a/arkui/ace_ets_component_completion/ace_ets_component_wholeCompletion/src/main/ets/test/gridScrollbarUpdate.test.ets +++ b/arkui/ace_ets_component_completion/ace_ets_component_wholeCompletion/src/main/ets/test/gridScrollbarUpdate.test.ets @@ -56,6 +56,8 @@ export default function gridScrollbarUpdateTest() { console.info('Grid_scrollbarUpdate_0801 START'); setTimeout(()=>{ try{ + let computeda: ComputedBarAttribute = { totalOffset:10, totalLength:10 } + console.info("Grid_scrollbarUpdate_0801 computeda is: " + JSON.stringify(computeda)) let strJson = getInspectorByKey('Grid_scrollbarUpdate_0800'); console.info('Grid_scrollbarUpdate_0801 START :'+ JSON.stringify(strJson)); let obj = JSON.parse(strJson); @@ -77,6 +79,8 @@ export default function gridScrollbarUpdateTest() { console.info('Grid_scrollbarUpdate_0802 START'); setTimeout(()=>{ try{ + let computedb: ComputedBarAttribute = { totalOffset:0, totalLength:0 } + console.info("Grid_scrollbarUpdate_0802 computedb is: " + JSON.stringify(computedb)) let strJson = getInspectorByKey('Grid_scrollbarUpdate_0800'); console.info('Grid_scrollbarUpdate_0802 START :'+ JSON.stringify(strJson)); let obj = JSON.parse(strJson); diff --git a/arkui/ace_ets_component_completion/ace_ets_component_wholeCompletion/src/main/ets/test/stageMediaquery.test.ets b/arkui/ace_ets_component_completion/ace_ets_component_wholeCompletion/src/main/ets/test/stageMediaquery.test.ets index 158398f264d8b2c031aaeefbc5bc77185930195f..1efe99c0a0e8b7d0842b6be28db1cd6f4ac503f2 100644 --- a/arkui/ace_ets_component_completion/ace_ets_component_wholeCompletion/src/main/ets/test/stageMediaquery.test.ets +++ b/arkui/ace_ets_component_completion/ace_ets_component_wholeCompletion/src/main/ets/test/stageMediaquery.test.ets @@ -226,7 +226,7 @@ export default function stageMediaquery() { }); it('testmediaQueryOff0013', 0, async function (done) { - let mediaQuery = globalThis.uiContent.getMediaquery(); + let mediaQuery = globalThis.uiContent.getMediaQuery(); console.info('testmediaQueryOff0013 START'); let result; try {