提交 5480d66e 编写于 作者: Z zwx1016320

del monthly systemApi

Signed-off-by: Nzwx1016320 <zhangyushuai1@huawei-partners.com>
上级 908f07ca
......@@ -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.
......@@ -1230,37 +1197,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.
先完成此消息的编辑!
想要评论请 注册