未验证 提交 77959641 编写于 作者: O openharmony_ci 提交者: Gitee

!9209 stage xts接口补齐

Merge pull request !9209 from huangdong/Interface
......@@ -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) {
......
......@@ -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);
......
......@@ -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 {
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册