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

!7424 【杂散】【时间时区】删除systemAPI接口

Merge pull request !7424 from 张育帅/master
......@@ -1156,39 +1156,6 @@ export default function wallpaperJSUnit() {
console.info('------------------testSetImageCallBack102 end----------------------');
})
/*
* @tc.number testSetImageCallBack103
* @tc.name Test setImage() to removes a wallpaper of the specified type and restores the default one.
* @tc.desc Function test
* @tc.level 0
*/
it('testSetImageCallBack103', 0, async function (done) {
console.info('------------------testSetImageCallBack103 start----------------------');
wallpaper.getImage(wallpaper.WallpaperType.WALLPAPER_SYSTEM).then((pixelMap) => {
wallpaper.setImage(pixelMap, wallpaper.WallpaperType.WALLPAPER_SYSTEM, (error, data) => {
try{
if (error) {
console.error(`testSetImageCallBack103 failed to setImage because: ` + JSON.stringify(error));
expect().assertFail();
done();
}
console.log(`testSetImageCallBack103 success to setImage.`);
expect(true).assertTrue();
done();
}catch(err){
console.info('testSetImageCallBack103 catch err : ' + JSON.stringify(err));
expect().assertFail();
done();
}
});
}).catch((error) => {
console.error(`testSetImageCallBack103 failed to createPixelMap because: ` + JSON.stringify(error));
expect().assertFail();
done()
});
console.info('------------------testSetImageCallBack103 end----------------------');
})
/*
* @tc.number testSetImagePromise101
* @tc.name Test setImage() to removes a wallpaper of the specified type and restores the default one.
......@@ -1229,38 +1196,5 @@ export default function wallpaperJSUnit() {
});
console.info('------------------testSetImagePromise102 end----------------------');
})
/*
* @tc.number testSetImagePromise103
* @tc.name Test setImage() to removes a wallpaper of the specified type and restores the default one.
* @tc.desc Function test
* @tc.level 0
*/
it('testSetImagePromise103', 0, async function (done) {
console.info('------------------testSetImagePromise103 start----------------------');
try{
wallpaper.getPixelMap(wallpaper.WallpaperType.WALLPAPER_SYSTEM).then((pixelMap) => {
wallpaper.setImage(pixelMap, wallpaper.WallpaperType.WALLPAPER_SYSTEM).then((data) => {
console.log(`testSetImagePromise103 success to setImage.`);
expect(true).assertTrue();
done()
}).catch(err => {
console.error(`testSetImagePromise103 failed to setImage because: ` + JSON.stringify(err));
expect().assertFail();
done()
});
}).catch((error) => {
console.error(`testSetImagePromise103 failed to createPixelMap because: ` + JSON.stringify(error));
expect().assertFail();
done()
});
}catch(err){
console.info('testSetImagePromise103 catch err : ' + JSON.stringify(err));
expect().assertFail();
done();
}
console.info('------------------testSetImagePromise103 end----------------------');
});
});
};
......@@ -13,9 +13,7 @@
* limitations under the License.
*/
import systemTimeJsunit from './systemTimeTest';
import systemTimerJsunit from './systemTimer.test';
export default function testsuite() {
systemTimerJsunit();
systemTimeJsunit();
}
\ No newline at end of file
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册