提交 b3c1a662 编写于 作者: H huangdong57

xts接口补充

Signed-off-by: Nhuangdong57 <huangdong57@huawei.com>
上级 0e805406
......@@ -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.
先完成此消息的编辑!
想要评论请 注册