Skip to content
体验新版
项目
组织
正在加载...
登录
切换导航
打开侧边栏
OpenHarmony
Xts Acts
提交
1c217309
X
Xts Acts
项目概览
OpenHarmony
/
Xts Acts
1 年多 前同步成功
通知
9
Star
22
Fork
0
代码
文件
提交
分支
Tags
贡献者
分支图
Diff
Issue
0
列表
看板
标记
里程碑
合并请求
0
Wiki
0
Wiki
分析
仓库
DevOps
项目成员
Pages
X
Xts Acts
项目概览
项目概览
详情
发布
仓库
仓库
文件
提交
分支
标签
贡献者
分支图
比较
Issue
0
Issue
0
列表
看板
标记
里程碑
合并请求
0
合并请求
0
Pages
分析
分析
仓库分析
DevOps
Wiki
0
Wiki
成员
成员
收起侧边栏
关闭侧边栏
动态
分支图
创建新Issue
提交
Issue看板
未验证
提交
1c217309
编写于
7月 18, 2022
作者:
O
openharmony_ci
提交者:
Gitee
7月 18, 2022
浏览文件
操作
浏览文件
下载
差异文件
!4278 修改窗口xts代码
Merge pull request !4278 from 华华小仙女/master
上级
8b3bf7f9
f10c8b70
变更
2
隐藏空白更改
内联
并排
Showing
2 changed file
with
0 addition
and
69 deletion
+0
-69
graphic/windowStage/entry/src/main/ets/test/windowCallback.test.ets
...ndowStage/entry/src/main/ets/test/windowCallback.test.ets
+0
-33
graphic/windowStage/entry/src/main/ets/test/windowPromise.test.ets
...indowStage/entry/src/main/ets/test/windowPromise.test.ets
+0
-36
未找到文件。
graphic/windowStage/entry/src/main/ets/test/windowCallback.test.ets
浏览文件 @
1c217309
...
...
@@ -1417,39 +1417,6 @@ export default function windowCallbackTest(context, windowStage, abilityStorage)
})
})
/**
* @tc.number SUB_WINDOW_SETSCREENROTATIONLOCKED_JSAPI_002
* @tc.name Test setScreenRotationLockedTest2
* @tc.desc Verify the scene of setting screen automatic screen rotation and locking
*/
it('setScreenRotationLockedTest2', 0, function (done) {
let caseName = 'setScreenRotationLockedTest2';
let msgStr = 'jsunittest ' + caseName + ' ';
console.log(msgStr + 'begin');
screenManager.setScreenRotationLocked(true, (err, data) => {
if (err && err.code)unexpectedError(err, caseName, 'screenManager.setScreenRotationLocked(true)', done);
console.log(msgStr + 'screenManager.setScreenRotationLocked err: ' + JSON.stringify(err));
console.log(msgStr + 'screenManager.setScreenRotationLocked true data: ' + JSON.stringify(data));
screenManager.isScreenRotationLocked((err, data) => {
if (err && err.code)unexpectedError(err, caseName, 'screenManager.isScreenRotationLocked', done);
console.log(msgStr + 'screenManager.isLocked err: ' + JSON.stringify(err));
console.log(msgStr + 'data:' + data)
expect(data).assertTrue();
screenManager.setScreenRotationLocked(false, (err, data) => {
if (err && err.code)unexpectedError(err, caseName, 'screenManager.setScreenRotationLocked(false)', done);
console.log(msgStr + 'screenManager.setScreenRotationLocked err: ' + JSON.stringify(err));
console.log(msgStr + 'screenManager.setScreenRotationLocked true data: ' + JSON.stringify(data));
screenManager.isScreenRotationLocked((err, data) => {
if (err && err.code)unexpectedError(err, caseName, 'screenManager.isScreenRotationLocked', done);
console.log(msgStr + 'screenManager.isLocked err: ' + JSON.stringify(err));
console.log(msgStr + 'data:' + data)
expect(!data).assertTrue();
done();
})
})
})
})
})
/**
* @tc.number SUB_WINDOW_SETPREFERREDORIENTATION_JSAPI_001
* @tc.name Test setPreferredOrientation
* @tc.desc Sets the display direction property of the window
...
...
graphic/windowStage/entry/src/main/ets/test/windowPromise.test.ets
浏览文件 @
1c217309
...
...
@@ -1349,42 +1349,6 @@ export default function windowPromiseTest(context, windowStage, abilityStorage)
}
console.log(msgStr + 'done ');
done();
})
/**
* @tc.number SUB_WINDOW_SETSCREENROTATIONLOCKED_JSAPI_001
* @tc.name Test setScreenRotationLockedTest1
* @tc.desc Verify the scene of setting screen automatic screen rotation and locking
*/
it('setScreenRotationLockedTest1', 0, async function (done) {
let caseName = 'setScreenRotationLockedTest1';
let msgStr = 'jsunittest ' + caseName + ' ';
console.log(msgStr + 'begin');
let screens = await screenManager.setScreenRotationLocked(true).catch(err => {
unexpectedError(err, caseName, 'screenManager.setScreenRotationLocked(true)', done);
console.log(msgStr + 'screenManager.setScreenRotationLocked err: ' + JSON.stringify(err));
})
console.log(msgStr + 'screenManager.setScreenRotationLocked screens: ' + JSON.stringify(screens));
expect(!screens).assertTrue();
let isLocked = await screenManager.isScreenRotationLocked().catch(err => {
unexpectedError(err, caseName, 'screenManager.isScreenRotationLocked', done);
console.log(msgStr + 'screenManager.isLocked err: ' + JSON.stringify(err));
})
console.log(msgStr+'isLocked:'+isLocked)
expect(isLocked).assertTrue();
let screensFalse = await screenManager.setScreenRotationLocked(false).catch(err => {
unexpectedError(err, caseName, 'screenManager.setScreenRotationLocked(false)', done);
console.log(msgStr + 'screenManager.setScreenRotationLocked screensFalse err: ' + JSON.stringify(err));
})
console.log(msgStr + 'screenManager.setScreenRotationLocked screensFalse: ' + JSON.stringify(screensFalse));
expect(!screensFalse).assertTrue();
let isLockedFalse = await screenManager.isScreenRotationLocked().catch(err => {
unexpectedError(err, caseName, 'screenManager.isScreenRotationLocked isLockedFalse', done);
console.log(msgStr + 'screenManager.isLocked isLockedFalse err: ' + JSON.stringify(err));
})
console.log(msgStr+'isLockedFalse:'+isLockedFalse)
expect(!isLockedFalse).assertTrue();
done();
})
/**
* @tc.number SUB_WINDOW_SETPREFERREDORIENTATION_JSAPI_001
* @tc.name Test setPreferredOrientation
...
...
编辑
预览
Markdown
is supported
0%
请重试
或
添加新附件
.
添加附件
取消
You are about to add
0
people
to the discussion. Proceed with caution.
先完成此消息的编辑!
取消
想要评论请
注册
或
登录