未验证 提交 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'; ...@@ -18,7 +18,7 @@ import events_emitter from '@ohos.events.emitter';
struct stageMediaquery { struct stageMediaquery {
@State color: string = '#000' @State color: string = '#000'
@State text: string = 'Test' @State text: string = 'Test'
listener = globalThis.uiContent.getMediaquery().matchMediaSync('(orientation: landscape)') listener = globalThis.uiContent.getMediaQuery().matchMediaSync('(orientation: landscape)')
aboutToAppear() { aboutToAppear() {
this.listener.on('change', (mediaQueryResult) => { this.listener.on('change', (mediaQueryResult) => {
if (mediaQueryResult.matches) { if (mediaQueryResult.matches) {
......
...@@ -56,6 +56,8 @@ export default function gridScrollbarUpdateTest() { ...@@ -56,6 +56,8 @@ export default function gridScrollbarUpdateTest() {
console.info('Grid_scrollbarUpdate_0801 START'); console.info('Grid_scrollbarUpdate_0801 START');
setTimeout(()=>{ setTimeout(()=>{
try{ try{
let computeda: ComputedBarAttribute = { totalOffset:10, totalLength:10 }
console.info("Grid_scrollbarUpdate_0801 computeda is: " + JSON.stringify(computeda))
let strJson = getInspectorByKey('Grid_scrollbarUpdate_0800'); let strJson = getInspectorByKey('Grid_scrollbarUpdate_0800');
console.info('Grid_scrollbarUpdate_0801 START :'+ JSON.stringify(strJson)); console.info('Grid_scrollbarUpdate_0801 START :'+ JSON.stringify(strJson));
let obj = JSON.parse(strJson); let obj = JSON.parse(strJson);
...@@ -77,6 +79,8 @@ export default function gridScrollbarUpdateTest() { ...@@ -77,6 +79,8 @@ export default function gridScrollbarUpdateTest() {
console.info('Grid_scrollbarUpdate_0802 START'); console.info('Grid_scrollbarUpdate_0802 START');
setTimeout(()=>{ setTimeout(()=>{
try{ try{
let computedb: ComputedBarAttribute = { totalOffset:0, totalLength:0 }
console.info("Grid_scrollbarUpdate_0802 computedb is: " + JSON.stringify(computedb))
let strJson = getInspectorByKey('Grid_scrollbarUpdate_0800'); let strJson = getInspectorByKey('Grid_scrollbarUpdate_0800');
console.info('Grid_scrollbarUpdate_0802 START :'+ JSON.stringify(strJson)); console.info('Grid_scrollbarUpdate_0802 START :'+ JSON.stringify(strJson));
let obj = JSON.parse(strJson); let obj = JSON.parse(strJson);
......
...@@ -226,7 +226,7 @@ export default function stageMediaquery() { ...@@ -226,7 +226,7 @@ export default function stageMediaquery() {
}); });
it('testmediaQueryOff0013', 0, async function (done) { it('testmediaQueryOff0013', 0, async function (done) {
let mediaQuery = globalThis.uiContent.getMediaquery(); let mediaQuery = globalThis.uiContent.getMediaQuery();
console.info('testmediaQueryOff0013 START'); console.info('testmediaQueryOff0013 START');
let result; let result;
try { try {
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册