Skip to content
体验新版
项目
组织
正在加载...
登录
切换导航
打开侧边栏
OpenHarmony
Xts Acts
提交
1c13b483
X
Xts Acts
项目概览
OpenHarmony
/
Xts Acts
11 个月 前同步成功
通知
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看板
体验新版 GitCode,发现更多精彩内容 >>
未验证
提交
1c13b483
编写于
9月 06, 2022
作者:
O
openharmony_ci
提交者:
Gitee
9月 06, 2022
浏览文件
操作
浏览文件
下载
差异文件
!5381 无障碍-api覆盖用例字幕属性设置方法整改
Merge pull request !5381 from 姜欢欢/master
上级
ec4cdfa8
61d1b49e
变更
2
隐藏空白更改
内联
并排
Showing
2 changed file
with
594 addition
and
739 deletion
+594
-739
barrierfree/accessibilityconfig/entry/src/main/ets/test/AccessibilityConfig.test.ets
...nfig/entry/src/main/ets/test/AccessibilityConfig.test.ets
+594
-0
barrierfree/accessiblecaptionconfiguration/src/main/js/test/AccessibleCaptionConfiguration.test.js
...n/src/main/js/test/AccessibleCaptionConfiguration.test.js
+0
-739
未找到文件。
barrierfree/accessibilityconfig/entry/src/main/ets/test/AccessibilityConfig.test.ets
浏览文件 @
1c13b483
...
@@ -1827,5 +1827,599 @@ export default function abilityTest() {
...
@@ -1827,5 +1827,599 @@ export default function abilityTest() {
expect(ret).assertEqual(undefined);
expect(ret).assertEqual(undefined);
done();
done();
})
})
/*
* @tc.number AccessibilityConfigTest_captionsStyle_asyncCallback_0100
* @tc.name AccessibilityConfigTest_captionsStyle_asyncCallback_0100
* @tc.desc Test captionsStyle.set() function in callback mode.
* @tc.size SmallTest
* @tc.type User
*/
it('AccessibilityConfigTest_captionsStyle_asyncCallback_0100', 0, async function(done) {
console.info('AccessibilityConfigTest_captionsStyle_asyncCallback_0100');
config.captionsStyle.set({
fontFamily: 'monospacedSerif',
fontScale: 10,
fontColor: 'blue',
fontEdgeType: 'none',
backgroundColor: 'blue',
windowColor: 'blue'
}, (err, result) => {
if (err.code != 0) {
console.error(`AccessibilityConfigTest_captionsStyle_asyncCallback_0100 has error: ${err.code}`);
expect(null).assertFail();
done();
}
expect(result).assertEqual(undefined);
done();
});
})
/*
* @tc.number AccessibilityConfigTest_captionsStyle_asyncCallback_0200
* @tc.name AccessibilityConfigTest_captionsStyle_asyncCallback_0200
* @tc.desc Test captionsStyle.set() function in callback mode.
* @tc.size SmallTest
* @tc.type User
*/
it('AccessibilityConfigTest_captionsStyle_asyncCallback_0200', 0, async function(done) {
console.info('AccessibilityConfigTest_captionsStyle_asyncCallback_0200');
config.captionsStyle.set({
fontFamily: 'serif',
fontScale: 10,
fontColor: 'blue',
fontEdgeType: 'none',
backgroundColor: 'blue',
windowColor: 'blue'
}, (err, result) => {
if (err.code != 0) {
console.error(`AccessibilityConfigTest_captionsStyle_asyncCallback_0200 has error: ${err.code}`);
expect(null).assertFail();
done();
}
expect(result).assertEqual(undefined);
done();
});
})
/*
* @tc.number AccessibilityConfigTest_captionsStyle_asyncCallback_0300
* @tc.name AccessibilityConfigTest_captionsStyle_asyncCallback_0300
* @tc.desc Test captionsStyle.set() function in callback mode.
* @tc.size SmallTest
* @tc.type User
*/
it('AccessibilityConfigTest_captionsStyle_asyncCallback_0300', 0, async function(done) {
console.info('AccessibilityConfigTest_captionsStyle_asyncCallback_0300');
config.captionsStyle.set({
fontFamily: 'monospacedSansSerif',
fontScale: 10,
fontColor: 'blue',
fontEdgeType: 'none',
backgroundColor: 'blue',
windowColor: 'blue'
}, (err, result) => {
if (err.code != 0) {
console.error(`AccessibilityConfigTest_captionsStyle_asyncCallback_0300 has error: ${err.code}`);
expect(null).assertFail();
done();
}
expect(result).assertEqual(undefined);
done();
});
})
/*
* @tc.number AccessibilityConfigTest_captionsStyle_asyncCallback_0400
* @tc.name AccessibilityConfigTest_captionsStyle_asyncCallback_0400
* @tc.desc Test captionsStyle.set() function in callback mode.
* @tc.size SmallTest
* @tc.type User
*/
it('AccessibilityConfigTest_captionsStyle_asyncCallback_0400', 0, async function(done) {
console.info('AccessibilityConfigTest_captionsStyle_asyncCallback_0400');
config.captionsStyle.set({
fontFamily: 'sansSerif',
fontScale: 10,
fontColor: 'blue',
fontEdgeType: 'none',
backgroundColor: 'blue',
windowColor: 'blue'
}, (err, result) => {
if (err.code != 0) {
console.error(`AccessibilityConfigTest_captionsStyle_asyncCallback_0400 has error: ${err.code}`);
expect(null).assertFail();
done();
}
expect(result).assertEqual(undefined);
done();
});
})
/*
* @tc.number AccessibilityConfigTest_captionsStyle_asyncCallback_0500
* @tc.name AccessibilityConfigTest_captionsStyle_asyncCallback_0500
* @tc.desc Test captionsStyle.set() function in callback mode.
* @tc.size SmallTest
* @tc.type User
*/
it('AccessibilityConfigTest_captionsStyle_asyncCallback_0500', 0, async function(done) {
console.info('AccessibilityConfigTest_captionsStyle_asyncCallback_0500');
config.captionsStyle.set({
fontFamily: 'casual',
fontScale: 10,
fontColor: 'blue',
fontEdgeType: 'none',
backgroundColor: 'blue',
windowColor: 'blue'
}, (err, result) => {
if (err.code != 0) {
console.error(`AccessibilityConfigTest_captionsStyle_asyncCallback_0500 has error: ${err.code}`);
expect(null).assertFail();
done();
}
expect(result).assertEqual(undefined);
done();
});
})
/*
* @tc.number AccessibilityConfigTest_captionsStyle_asyncCallback_0600
* @tc.name AccessibilityConfigTest_captionsStyle_asyncCallback_0600
* @tc.desc Test captionsStyle.set() function in callback mode.
* @tc.size SmallTest
* @tc.type User
*/
it('AccessibilityConfigTest_captionsStyle_asyncCallback_0600', 0, async function(done) {
console.info('AccessibilityConfigTest_captionsStyle_asyncCallback_0600');
config.captionsStyle.set({
fontFamily: 'cursive',
fontScale: 10,
fontColor: 'blue',
fontEdgeType: 'none',
backgroundColor: 'blue',
windowColor: 'blue'
}, (err, result) => {
if (err.code != 0) {
console.error(`AccessibilityConfigTest_captionsStyle_asyncCallback_0600 has error: ${err.code}`);
expect(null).assertFail();
done();
}
expect(result).assertEqual(undefined);
done();
});
})
/*
* @tc.number AccessibilityConfigTest_captionsStyle_asyncCallback_0700
* @tc.name AccessibilityConfigTest_captionsStyle_asyncCallback_0700
* @tc.desc Test captionsStyle.set() function in callback mode.
* @tc.size SmallTest
* @tc.type User
*/
it('AccessibilityConfigTest_captionsStyle_asyncCallback_0700', 0, async function(done) {
console.info('AccessibilityConfigTest_captionsStyle_asyncCallback_0700');
config.captionsStyle.set({
fontFamily: 'smallCapitals',
fontScale: 10,
fontColor: 'blue',
fontEdgeType: 'none',
backgroundColor: 'blue',
windowColor: 'blue'
}, (err, result) => {
if (err.code != 0) {
console.error(`AccessibilityConfigTest_captionsStyle_asyncCallback_0700 has error: ${err.code}`);
expect(null).assertFail();
done();
}
expect(result).assertEqual(undefined);
done();
});
})
/*
* @tc.number AccessibilityConfigTest_captionsStyle_asyncCallback_0800
* @tc.name AccessibilityConfigTest_captionsStyle_asyncCallback_0800
* @tc.desc Test captionsStyle.set() function in callback mode.
* @tc.size SmallTest
* @tc.type User
*/
it('AccessibilityConfigTest_captionsStyle_asyncCallback_0800', 0, async function(done) {
console.info('AccessibilityConfigTest_captionsStyle_asyncCallback_0800');
config.captionsStyle.set({
fontFamily: 'default',
fontScale: 10,
fontColor: 'blue',
fontEdgeType: 'raised',
backgroundColor: 'blue',
windowColor: 'blue'
}, (err, result) => {
if (err.code != 0) {
console.error(`AccessibilityConfigTest_captionsStyle_asyncCallback_0800 has error: ${err.code}`);
expect(null).assertFail();
done();
}
expect(result).assertEqual(undefined);
done();
});
})
/*
* @tc.number AccessibilityConfigTest_captionsStyle_asyncCallback_0900
* @tc.name AccessibilityConfigTest_captionsStyle_asyncCallback_0900
* @tc.desc Test captionsStyle.set() function in callback mode.
* @tc.size SmallTest
* @tc.type User
*/
it('AccessibilityConfigTest_captionsStyle_asyncCallback_0900', 0, async function(done) {
console.info('AccessibilityConfigTest_captionsStyle_asyncCallback_0900');
config.captionsStyle.set({
fontFamily: 'default',
fontScale: 10,
fontColor: 'blue',
fontEdgeType: 'depressed',
backgroundColor: 'blue',
windowColor: 'blue'
}, (err, result) => {
if (err.code != 0) {
console.error(`AccessibilityConfigTest_captionsStyle_asyncCallback_0900 has error: ${err.code}`);
expect(null).assertFail();
done();
}
expect(result).assertEqual(undefined);
done();
});
})
/*
* @tc.number AccessibilityConfigTest_captionsStyle_asyncCallback_1000
* @tc.name AccessibilityConfigTest_captionsStyle_asyncCallback_1000
* @tc.desc Test captionsStyle.set() function in callback mode.
* @tc.size SmallTest
* @tc.type User
*/
it('AccessibilityConfigTest_captionsStyle_asyncCallback_1000', 0, async function(done) {
console.info('AccessibilityConfigTest_captionsStyle_asyncCallback_1000');
config.captionsStyle.set({
fontFamily: 'default',
fontScale: 10,
fontColor: 'blue',
fontEdgeType: 'uniform',
backgroundColor: 'blue',
windowColor: 'blue'
}, (err, result) => {
if (err.code != 0) {
console.error(`AccessibilityConfigTest_captionsStyle_asyncCallback_1000 has error: ${err.code}`);
expect(null).assertFail();
done();
}
expect(result).assertEqual(undefined);
done();
});
})
/*
* @tc.number AccessibilityConfigTest_captionsStyle_asyncCallback_1100
* @tc.name AccessibilityConfigTest_captionsStyle_asyncCallback_1100
* @tc.desc Test captionsStyle.set() function in callback mode.
* @tc.size SmallTest
* @tc.type User
*/
it('AccessibilityConfigTest_captionsStyle_asyncCallback_1100', 0, async function(done) {
console.info('AccessibilityConfigTest_captionsStyle_asyncCallback_1100');
config.captionsStyle.set({
fontFamily: 'default',
fontScale: 10,
fontColor: 'blue',
fontEdgeType: 'dropShadow',
backgroundColor: 'blue',
windowColor: 'blue'
}, (err, result) => {
if (err.code != 0) {
console.error(`AccessibilityConfigTest_captionsStyle_asyncCallback_1100 has error: ${err.code}`);
expect(null).assertFail();
done();
}
expect(result).assertEqual(undefined);
done();
});
})
/*
* @tc.number AccessibilityConfigTest_captionsStyle_asyncPromise_0100
* @tc.name AccessibilityConfigTest_captionsStyle_asyncPromise_0100
* @tc.desc Test captionsStyle.set() function in promise mode.
* @tc.size SmallTest
* @tc.type User
*/
it('AccessibilityConfigTest_captionsStyle_asyncPromise_0100', 0, async function(done) {
console.info('AccessibilityConfigTest_captionsStyle_asyncPromise_0100');
config.captionsStyle.set({
fontFamily: 'monospacedSerif',
fontScale: 10,
fontColor: 'blue',
fontEdgeType: 'none',
backgroundColor: 'blue',
windowColor: 'blue'
}).then((result) => {
console.info(`AccessibilityConfigTest_captionsStyle_asyncPromise_0100 result: ${result}`);
expect(result).assertEqual(undefined);
done();
}).catch((err) => {
console.error(`AccessibilityConfigTest_captionsStyle_asyncPromise_0100 has error: ${err.code}`);
expect(null).assertFail();
done();
});
})
/*
* @tc.number AccessibilityConfigTest_captionsStyle_asyncPromise_0200
* @tc.name AccessibilityConfigTest_captionsStyle_asyncPromise_0200
* @tc.desc Test captionsStyle.set() function in promise mode.
* @tc.size SmallTest
* @tc.type User
*/
it('AccessibilityConfigTest_captionsStyle_asyncPromise_0200', 0, async function(done) {
console.info('AccessibilityConfigTest_captionsStyle_asyncPromise_0200');
config.captionsStyle.set({
fontFamily: 'serif',
fontScale: 10,
fontColor: 'blue',
fontEdgeType: 'none',
backgroundColor: 'blue',
windowColor: 'blue'
}).then((result) => {
console.info(`AccessibilityConfigTest_captionsStyle_asyncPromise_0200 result: ${result}`);
expect(result).assertEqual(undefined);
done();
}).catch((err) => {
console.error(`AccessibilityConfigTest_captionsStyle_asyncPromise_0200 has error: ${err.code}`);
expect(null).assertFail();
done();
});
})
/*
* @tc.number AccessibilityConfigTest_captionsStyle_asyncPromise_0300
* @tc.name AccessibilityConfigTest_captionsStyle_asyncPromise_0300
* @tc.desc Test captionsStyle.set() function in promise mode.
* @tc.size SmallTest
* @tc.type User
*/
it('AccessibilityConfigTest_captionsStyle_asyncPromise_0300', 0, async function(done) {
console.info('AccessibilityConfigTest_captionsStyle_asyncPromise_0300');
config.captionsStyle.set({
fontFamily: 'monospacedSansSerif',
fontScale: 10,
fontColor: 'blue',
fontEdgeType: 'none',
backgroundColor: 'blue',
windowColor: 'blue'
}).then((result) => {
console.info(`AccessibilityConfigTest_captionsStyle_asyncPromise_0300 result: ${result}`);
expect(result).assertEqual(undefined);
done();
}).catch((err) => {
console.error(`AccessibilityConfigTest_captionsStyle_asyncPromise_0300 has error: ${err.code}`);
expect(null).assertFail();
done();
});
})
/*
* @tc.number AccessibilityConfigTest_captionsStyle_asyncPromise_0400
* @tc.name AccessibilityConfigTest_captionsStyle_asyncPromise_0400
* @tc.desc Test captionsStyle.set() function in promise mode.
* @tc.size SmallTest
* @tc.type User
*/
it('AccessibilityConfigTest_captionsStyle_asyncPromise_0400', 0, async function(done) {
console.info('AccessibilityConfigTest_captionsStyle_asyncPromise_0400');
config.captionsStyle.set({
fontFamily: 'sansSerif',
fontScale: 10,
fontColor: 'blue',
fontEdgeType: 'none',
backgroundColor: 'blue',
windowColor: 'blue'
}).then((result) => {
console.info(`AccessibilityConfigTest_captionsStyle_asyncPromise_0400 result: ${result}`);
expect(result).assertEqual(undefined);
done();
}).catch((err) => {
console.error(`AccessibilityConfigTest_captionsStyle_asyncPromise_0400 has error: ${err.code}`);
expect(null).assertFail();
done();
});
})
/*
* @tc.number AccessibilityConfigTest_captionsStyle_asyncPromise_0500
* @tc.name AccessibilityConfigTest_captionsStyle_asyncPromise_0500
* @tc.desc Test captionsStyle.set() function in promise mode.
* @tc.size SmallTest
* @tc.type User
*/
it('AccessibilityConfigTest_captionsStyle_asyncPromise_0500', 0, async function(done) {
console.info('AccessibilityConfigTest_captionsStyle_asyncPromise_0500');
config.captionsStyle.set({
fontFamily: 'casual',
fontScale: 10,
fontColor: 'blue',
fontEdgeType: 'none',
backgroundColor: 'blue',
windowColor: 'blue'
}).then((result) => {
console.info(`AccessibilityConfigTest_captionsStyle_asyncPromise_0500 result: ${result}`);
expect(result).assertEqual(undefined);
done();
}).catch((err) => {
console.error(`AccessibilityConfigTest_captionsStyle_asyncPromise_0500 has error: ${err.code}`);
expect(null).assertFail();
done();
});
})
/*
* @tc.number AccessibilityConfigTest_captionsStyle_asyncPromise_0600
* @tc.name AccessibilityConfigTest_captionsStyle_asyncPromise_0600
* @tc.desc Test captionsStyle.set() function in promise mode.
* @tc.size SmallTest
* @tc.type User
*/
it('AccessibilityConfigTest_captionsStyle_asyncPromise_0600', 0, async function(done) {
console.info('AccessibilityConfigTest_captionsStyle_asyncPromise_0600');
config.captionsStyle.set({
fontFamily: 'cursive',
fontScale: 10,
fontColor: 'blue',
fontEdgeType: 'none',
backgroundColor: 'blue',
windowColor: 'blue'
}).then((result) => {
console.info(`AccessibilityConfigTest_captionsStyle_asyncPromise_0600 result: ${result}`);
expect(result).assertEqual(undefined);
done();
}).catch((err) => {
console.error(`AccessibilityConfigTest_captionsStyle_asyncPromise_0600 has error: ${err.code}`);
expect(null).assertFail();
done();
});
})
/*
* @tc.number AccessibilityConfigTest_captionsStyle_asyncPromise_0700
* @tc.name AccessibilityConfigTest_captionsStyle_asyncPromise_0700
* @tc.desc Test captionsStyle.set() function in promise mode.
* @tc.size SmallTest
* @tc.type User
*/
it('AccessibilityConfigTest_captionsStyle_asyncPromise_0700', 0, async function(done) {
console.info('AccessibilityConfigTest_captionsStyle_asyncPromise_0700');
config.captionsStyle.set({
fontFamily: 'smallCapitals',
fontScale: 10,
fontColor: 'blue',
fontEdgeType: 'none',
backgroundColor: 'blue',
windowColor: 'blue'
}).then((result) => {
console.info(`AccessibilityConfigTest_captionsStyle_asyncPromise_0700 result: ${result}`);
expect(result).assertEqual(undefined);
done();
}).catch((err) => {
console.error(`AccessibilityConfigTest_captionsStyle_asyncPromise_0700 has error: ${err.code}`);
expect(null).assertFail();
done();
});
})
/*
* @tc.number AccessibilityConfigTest_captionsStyle_asyncPromise_0800
* @tc.name AccessibilityConfigTest_captionsStyle_asyncPromise_0800
* @tc.desc Test captionsStyle.set() function in promise mode.
* @tc.size SmallTest
* @tc.type User
*/
it('AccessibilityConfigTest_captionsStyle_asyncPromise_0800', 0, async function(done) {
console.info('AccessibilityConfigTest_captionsStyle_asyncPromise_0800');
config.captionsStyle.set({
fontFamily: 'default',
fontScale: 10,
fontColor: 'blue',
fontEdgeType: 'raised',
backgroundColor: 'blue',
windowColor: 'blue'
}).then((result) => {
console.info(`AccessibilityConfigTest_captionsStyle_asyncPromise_0800 result: ${result}`);
expect(result).assertEqual(undefined);
done();
}).catch((err) => {
console.error(`AccessibilityConfigTest_captionsStyle_asyncPromise_0800 has error: ${err.code}`);
expect(null).assertFail();
done();
});
})
/*
* @tc.number AccessibilityConfigTest_captionsStyle_asyncPromise_0900
* @tc.name AccessibilityConfigTest_captionsStyle_asyncPromise_0900
* @tc.desc Test captionsStyle.set() function in promise mode.
* @tc.size SmallTest
* @tc.type User
*/
it('AccessibilityConfigTest_captionsStyle_asyncPromise_0900', 0, async function(done) {
console.info('AccessibilityConfigTest_captionsStyle_asyncPromise_0900');
config.captionsStyle.set({
fontFamily: 'default',
fontScale: 10,
fontColor: 'blue',
fontEdgeType: 'depressed',
backgroundColor: 'blue',
windowColor: 'blue'
}).then((result) => {
console.info(`AccessibilityConfigTest_captionsStyle_asyncPromise_0900 result: ${result}`);
expect(result).assertEqual(undefined);
done();
}).catch((err) => {
console.error(`AccessibilityConfigTest_captionsStyle_asyncPromise_0900 has error: ${err.code}`);
expect(null).assertFail();
done();
});
})
/*
* @tc.number AccessibilityConfigTest_captionsStyle_asyncPromise_1000
* @tc.name AccessibilityConfigTest_captionsStyle_asyncPromise_1000
* @tc.desc Test captionsStyle.set() function in promise mode.
* @tc.size SmallTest
* @tc.type User
*/
it('AccessibilityConfigTest_captionsStyle_asyncPromise_1000', 0, async function(done) {
console.info('AccessibilityConfigTest_captionsStyle_asyncPromise_1000');
config.captionsStyle.set({
fontFamily: 'default',
fontScale: 10,
fontColor: 'blue',
fontEdgeType: 'uniform',
backgroundColor: 'blue',
windowColor: 'blue'
}).then((result) => {
console.info(`AccessibilityConfigTest_captionsStyle_asyncPromise_1000 result: ${result}`);
expect(result).assertEqual(undefined);
done();
}).catch((err) => {
console.error(`AccessibilityConfigTest_captionsStyle_asyncPromise_1000 has error: ${err.code}`);
expect(null).assertFail();
done();
});
})
/*
* @tc.number AccessibilityConfigTest_captionsStyle_asyncPromise_1100
* @tc.name AccessibilityConfigTest_captionsStyle_asyncPromise_1100
* @tc.desc Test captionsStyle.set() function in promise mode.
* @tc.size SmallTest
* @tc.type User
*/
it('AccessibilityConfigTest_captionsStyle_asyncPromise_1100', 0, async function(done) {
console.info('AccessibilityConfigTest_captionsStyle_asyncPromise_1100');
config.captionsStyle.set({
fontFamily: 'default',
fontScale: 10,
fontColor: 'blue',
fontEdgeType: 'dropShadow',
backgroundColor: 'blue',
windowColor: 'blue'
}).then((result) => {
console.info(`AccessibilityConfigTest_captionsStyle_asyncPromise_1100 result: ${result}`);
expect(result).assertEqual(undefined);
done();
}).catch((err) => {
console.error(`AccessibilityConfigTest_captionsStyle_asyncPromise_1100 has error: ${err.code}`);
expect(null).assertFail();
done();
});
})
})
})
}
}
\ No newline at end of file
barrierfree/accessiblecaptionconfiguration/src/main/js/test/AccessibleCaptionConfiguration.test.js
浏览文件 @
1c13b483
...
@@ -164,744 +164,5 @@ describe('AccessibleCaptionConfiguration', function () {
...
@@ -164,744 +164,5 @@ describe('AccessibleCaptionConfiguration', function () {
expect
(
ret
).
assertEqual
(
undefined
);
expect
(
ret
).
assertEqual
(
undefined
);
done
();
done
();
})
})
/*
* @tc.number CaptionConfiguration_0090
* @tc.name CaptionConfiguration_0090
* @tc.desc Test captionManager.style.fontFamily function by assigning "default".
* captionManager.style.fontFamily will be "default"
* @tc.size SmallTest
* @tc.type User
*/
it
(
'
CaptionConfiguration_0090
'
,
0
,
async
function
(
done
)
{
console
.
info
(
'
CaptionConfiguration_0090
'
);
let
captionManager
=
accessibility
.
getCaptionsManager
();
let
fontFamily
=
"
default
"
;
captionManager
.
style
.
fontFamily
=
fontFamily
;
let
value
=
captionManager
.
style
.
fontFamily
;
expect
(
value
).
assertEqual
(
fontFamily
);
done
();
})
/*
* @tc.number CaptionConfiguration_0100
* @tc.name CaptionConfiguration_0100
* @tc.desc Test captionManager.style.fontFamily function by assigning "monospacedSerif".
* captionManager.style.fontFamily will be "monospacedSerif"
* @tc.size SmallTest
* @tc.type User
*/
it
(
'
CaptionConfiguration_0100
'
,
0
,
async
function
(
done
)
{
console
.
info
(
'
CaptionConfiguration_0100
'
);
let
captionManager
=
accessibility
.
getCaptionsManager
();
let
fontFamily
=
"
monospacedSerif
"
;
captionManager
.
style
.
fontFamily
=
fontFamily
;
let
value
=
captionManager
.
style
.
fontFamily
;
expect
(
value
).
assertEqual
(
fontFamily
);
done
();
})
/*
* @tc.number CaptionConfiguration_0110
* @tc.name CaptionConfiguration_0110
* @tc.desc Test captionManager.style.fontFamily function by assigning "serif".
* captionManager.style.fontFamily will be "serif"
* @tc.size SmallTest
* @tc.type User
*/
it
(
'
CaptionConfiguration_0110
'
,
0
,
async
function
(
done
)
{
console
.
info
(
'
CaptionConfiguration_0110
'
);
let
captionManager
=
accessibility
.
getCaptionsManager
();
let
fontFamily
=
"
serif
"
;
captionManager
.
style
.
fontFamily
=
fontFamily
;
let
value
=
captionManager
.
style
.
fontFamily
;
expect
(
value
).
assertEqual
(
fontFamily
);
done
();
})
/*
* @tc.number CaptionConfiguration_0120
* @tc.name CaptionConfiguration_0120
* @tc.desc Test captionManager.style.fontFamily function by assigning "monospacedSansSerif".
* captionManager.style.fontFamily will be "monospacedSansSerif"
* @tc.size SmallTest
* @tc.type User
*/
it
(
'
CaptionConfiguration_0120
'
,
0
,
async
function
(
done
)
{
console
.
info
(
'
CaptionConfiguration_0120
'
);
let
captionManager
=
accessibility
.
getCaptionsManager
();
let
fontFamily
=
"
monospacedSansSerif
"
;
captionManager
.
style
.
fontFamily
=
fontFamily
;
let
value
=
captionManager
.
style
.
fontFamily
;
expect
(
value
).
assertEqual
(
fontFamily
);
done
();
})
/*
* @tc.number CaptionConfiguration_0130
* @tc.name CaptionConfiguration_0130
* @tc.desc Test captionManager.style.fontFamily function by assigning "sansSerif".
* captionManager.style.fontFamily will be "sansSerif"
* @tc.size SmallTest
* @tc.type User
*/
it
(
'
CaptionConfiguration_0130
'
,
0
,
async
function
(
done
)
{
console
.
info
(
'
CaptionConfiguration_0130
'
);
let
captionManager
=
accessibility
.
getCaptionsManager
();
let
fontFamily
=
"
sansSerif
"
;
captionManager
.
style
.
fontFamily
=
fontFamily
;
let
value
=
captionManager
.
style
.
fontFamily
;
expect
(
value
).
assertEqual
(
fontFamily
);
done
();
})
/*
* @tc.number CaptionConfiguration_0140
* @tc.name CaptionConfiguration_0140
* @tc.desc Test captionManager.style.fontFamily function by assigning "casual".
* captionManager.style.fontFamily will be "casual"
* @tc.size SmallTest
* @tc.type User
*/
it
(
'
CaptionConfiguration_0140
'
,
0
,
async
function
(
done
)
{
console
.
info
(
'
CaptionConfiguration_0140
'
);
let
captionManager
=
accessibility
.
getCaptionsManager
();
let
fontFamily
=
"
casual
"
;
captionManager
.
style
.
fontFamily
=
fontFamily
;
let
value
=
captionManager
.
style
.
fontFamily
;
expect
(
value
).
assertEqual
(
fontFamily
);
done
();
})
/*
* @tc.number CaptionConfiguration_0150
* @tc.name CaptionConfiguration_0150
* @tc.desc Test captionManager.style.fontFamily function by assigning "cursive".
* captionManager.style.fontFamily will be "cursive"
* @tc.size SmallTest
* @tc.type User
*/
it
(
'
CaptionConfiguration_0150
'
,
0
,
async
function
(
done
)
{
console
.
info
(
'
CaptionConfiguration_0150
'
);
let
captionManager
=
accessibility
.
getCaptionsManager
();
let
fontFamily
=
"
cursive
"
;
captionManager
.
style
.
fontFamily
=
fontFamily
;
let
value
=
captionManager
.
style
.
fontFamily
;
expect
(
value
).
assertEqual
(
fontFamily
);
done
();
})
/*
* @tc.number CaptionConfiguration_0160
* @tc.name CaptionConfiguration_0160
* @tc.desc Test captionManager.style.fontFamily function by assigning "smallCapitals".
* captionManager.style.fontFamily will be "smallCapitals"
* @tc.size SmallTest
* @tc.type User
*/
it
(
'
CaptionConfiguration_0160
'
,
0
,
async
function
(
done
)
{
console
.
info
(
'
CaptionConfiguration_0160
'
);
let
captionManager
=
accessibility
.
getCaptionsManager
();
let
fontFamily
=
"
smallCapitals
"
;
captionManager
.
style
.
fontFamily
=
fontFamily
;
let
value
=
captionManager
.
style
.
fontFamily
;
expect
(
value
).
assertEqual
(
fontFamily
);
done
();
})
/*
* @tc.number CaptionConfiguration_0170
* @tc.name CaptionConfiguration_0170
* @tc.desc Test captionManager.style.fontFamily function by assigning "".
* captionManager.style.fontFamily will be ""
* @tc.size SmallTest
* @tc.type User
*/
it
(
'
CaptionConfiguration_0170
'
,
0
,
async
function
(
done
)
{
console
.
info
(
'
CaptionConfiguration_0170
'
);
let
captionManager
=
accessibility
.
getCaptionsManager
();
let
fontFamily
=
""
;
captionManager
.
style
.
fontFamily
=
fontFamily
;
let
value
=
captionManager
.
style
.
fontFamily
;
expect
(
value
).
assertEqual
(
fontFamily
);
done
();
})
/*
* @tc.number CaptionConfiguration_0180
* @tc.name CaptionConfiguration_0180
* @tc.desc Test captionManager.style.fontFamily function by assigning null.
* captionManager.style.fontFamily will be ''
* @tc.size SmallTest
* @tc.type User
*/
it
(
'
CaptionConfiguration_0180
'
,
0
,
async
function
(
done
)
{
console
.
info
(
'
CaptionConfiguration_0180
'
);
let
captionManager
=
accessibility
.
getCaptionsManager
();
let
fontFamily
=
null
;
captionManager
.
style
.
fontFamily
=
fontFamily
;
let
value
=
captionManager
.
style
.
fontFamily
;
expect
(
value
).
assertEqual
(
''
);
done
();
})
/*
* @tc.number CaptionConfiguration_0190
* @tc.name CaptionConfiguration_0190
* @tc.desc Test captionManager.style.fontScale function by assigning 9007199254740992.
* captionManager.style.fontScale will be 0
* @tc.size SmallTest
* @tc.type User
*/
it
(
'
CaptionConfiguration_0190
'
,
0
,
async
function
(
done
)
{
console
.
info
(
'
CaptionConfiguration_0190
'
);
let
captionManager
=
accessibility
.
getCaptionsManager
();
let
fontScale
=
9007199254740992
;
captionManager
.
style
.
fontScale
=
fontScale
;
let
value
=
captionManager
.
style
.
fontScale
;
expect
(
value
).
assertEqual
(
0
);
done
();
})
/*
* @tc.number CaptionConfiguration_0200
* @tc.name CaptionConfiguration_0200
* @tc.desc Test captionManager.style.fontScale function by assigning 1.
* captionManager.style.fontScale will be 1
* @tc.size SmallTest
* @tc.type User
*/
it
(
'
CaptionConfiguration_0200
'
,
0
,
async
function
(
done
)
{
console
.
info
(
'
CaptionConfiguration_0200
'
);
let
captionManager
=
accessibility
.
getCaptionsManager
();
let
fontScale
=
1
;
captionManager
.
style
.
fontScale
=
fontScale
;
let
value
=
captionManager
.
style
.
fontScale
;
expect
(
value
).
assertEqual
(
fontScale
);
done
();
})
/*
* @tc.number CaptionConfiguration_0210
* @tc.name CaptionConfiguration_0210
* @tc.desc Test captionManager.style.fontScale function by assigning 0.
* captionManager.style.fontScale will be 0
* @tc.size SmallTest
* @tc.type User
*/
it
(
'
CaptionConfiguration_0210
'
,
0
,
async
function
(
done
)
{
console
.
info
(
'
CaptionConfiguration_0210
'
);
let
captionManager
=
accessibility
.
getCaptionsManager
();
let
fontScale
=
0
;
captionManager
.
style
.
fontScale
=
fontScale
;
let
value
=
captionManager
.
style
.
fontScale
;
expect
(
value
).
assertEqual
(
fontScale
);
done
();
})
/*
* @tc.number CaptionConfiguration_0220
* @tc.name CaptionConfiguration_0220
* @tc.desc Test captionManager.style.fontScale function by assigning -1.
* captionManager.style.fontScale will be -1
* @tc.size SmallTest
* @tc.type User
*/
it
(
'
CaptionConfiguration_0220
'
,
0
,
async
function
(
done
)
{
console
.
info
(
'
CaptionConfiguration_0220
'
);
let
captionManager
=
accessibility
.
getCaptionsManager
();
let
fontScale
=
-
1
;
captionManager
.
style
.
fontScale
=
fontScale
;
let
value
=
captionManager
.
style
.
fontScale
;
expect
(
value
).
assertEqual
(
fontScale
);
done
();
})
/*
* @tc.number CaptionConfiguration_0230
* @tc.name CaptionConfiguration_0230
* @tc.desc Test captionManager.style.fontColor function by assigning "#12345678".
* captionManager.style.fontColor will be "#12345678"
* @tc.size SmallTest
* @tc.type User
*/
it
(
'
CaptionConfiguration_0230
'
,
0
,
async
function
(
done
)
{
console
.
info
(
'
CaptionConfiguration_0230
'
);
let
captionManager
=
accessibility
.
getCaptionsManager
();
let
fontColor
=
"
#12345678
"
;
captionManager
.
style
.
fontColor
=
fontColor
;
let
value
=
captionManager
.
style
.
fontColor
;
expect
(
value
).
assertEqual
(
fontColor
);
done
();
})
/*
* @tc.number CaptionConfiguration_0240
* @tc.name CaptionConfiguration_0240
* @tc.desc Test captionManager.style.fontColor function by assigning "".
* captionManager.style.fontColor will be ""
* @tc.size SmallTest
* @tc.type User
*/
it
(
'
CaptionConfiguration_0240
'
,
0
,
async
function
(
done
)
{
console
.
info
(
'
CaptionConfiguration_0240
'
);
let
captionManager
=
accessibility
.
getCaptionsManager
();
let
fontColor
=
"
#
"
;
captionManager
.
style
.
fontColor
=
fontColor
;
let
value
=
captionManager
.
style
.
fontColor
;
expect
(
value
).
assertEqual
(
"
#00000000
"
);
done
();
})
/*
* @tc.number CaptionConfiguration_0250
* @tc.name CaptionConfiguration_0250
* @tc.desc Test captionManager.style.fontColor function by assigning null.
* captionManager.style.fontColor will be "#00000000"
* @tc.size SmallTest
* @tc.type User
*/
it
(
'
CaptionConfiguration_0250
'
,
0
,
async
function
(
done
)
{
console
.
info
(
'
CaptionConfiguration_0250
'
);
let
captionManager
=
accessibility
.
getCaptionsManager
();
let
fontColor
=
null
;
captionManager
.
style
.
fontColor
=
fontColor
;
let
value
=
captionManager
.
style
.
fontColor
;
expect
(
value
).
assertEqual
(
"
#00000000
"
);
done
();
})
/*
* @tc.number CaptionConfiguration_0260
* @tc.name CaptionConfiguration_0260
* @tc.desc Test captionManager.style.fontColor function by assigning 0x12345678.
* captionManager.style.fontColor will be "#34567812"
* @tc.size SmallTest
* @tc.type User
*/
it
(
'
CaptionConfiguration_0260
'
,
0
,
async
function
(
done
)
{
console
.
info
(
'
CaptionConfiguration_0260
'
);
let
captionManager
=
accessibility
.
getCaptionsManager
();
let
fontColor
=
0x12345678
;
captionManager
.
style
.
fontColor
=
fontColor
;
let
value
=
captionManager
.
style
.
fontColor
;
expect
(
value
).
assertEqual
(
"
#34567812
"
);
done
();
})
/*
* @tc.number CaptionConfiguration_0270
* @tc.name CaptionConfiguration_0270
* @tc.desc Test captionManager.style.fontColor function by assigning 0.
* captionManager.style.fontColor will be "#00000000"
* @tc.size SmallTest
* @tc.type User
*/
it
(
'
CaptionConfiguration_0270
'
,
0
,
async
function
(
done
)
{
console
.
info
(
'
CaptionConfiguration_0270
'
);
let
captionManager
=
accessibility
.
getCaptionsManager
();
let
fontColor
=
0
;
captionManager
.
style
.
fontColor
=
fontColor
;
let
value
=
captionManager
.
style
.
fontColor
;
expect
(
value
).
assertEqual
(
"
#00000000
"
);
done
();
})
/*
* @tc.number CaptionConfiguration_0280
* @tc.name CaptionConfiguration_0280
* @tc.desc Test captionManager.style.fontColor function by assigning -1.
* captionManager.style.fontColor will be "#ffffffff"
* @tc.size SmallTest
* @tc.type User
*/
it
(
'
CaptionConfiguration_0280
'
,
0
,
async
function
(
done
)
{
console
.
info
(
'
CaptionConfiguration_0280
'
);
let
captionManager
=
accessibility
.
getCaptionsManager
();
let
fontColor
=
-
1
;
captionManager
.
style
.
fontColor
=
fontColor
;
let
value
=
captionManager
.
style
.
fontColor
;
expect
(
value
).
assertEqual
(
"
#ffffffff
"
);
done
();
})
/*
* @tc.number CaptionConfiguration_0290
* @tc.name CaptionConfiguration_0290
* @tc.desc Test captionManager.style.fontEdgeType function by assigning "none".
* captionManager.style.fontEdgeType will be "none"
* @tc.size SmallTest
* @tc.type User
*/
it
(
'
CaptionConfiguration_0290
'
,
0
,
async
function
(
done
)
{
console
.
info
(
'
CaptionConfiguration_0290
'
);
let
captionManager
=
accessibility
.
getCaptionsManager
();
let
fontEdgeType
=
"
none
"
;
captionManager
.
style
.
fontEdgeType
=
fontEdgeType
;
let
value
=
captionManager
.
style
.
fontEdgeType
;
expect
(
value
).
assertEqual
(
fontEdgeType
);
done
();
})
/*
* @tc.number CaptionConfiguration_0300
* @tc.name CaptionConfiguration_0300
* @tc.desc Test captionManager.style.fontEdgeType function by assigning "raised".
* captionManager.style.fontEdgeType will be "raised"
* @tc.size SmallTest
* @tc.type User
*/
it
(
'
CaptionConfiguration_0300
'
,
0
,
async
function
(
done
)
{
console
.
info
(
'
CaptionConfiguration_0300
'
);
let
captionManager
=
accessibility
.
getCaptionsManager
();
let
fontEdgeType
=
"
raised
"
;
captionManager
.
style
.
fontEdgeType
=
fontEdgeType
;
let
value
=
captionManager
.
style
.
fontEdgeType
;
expect
(
value
).
assertEqual
(
fontEdgeType
);
done
();
})
/*
* @tc.number CaptionConfiguration_0310
* @tc.name CaptionConfiguration_0310
* @tc.desc Test captionManager.style.fontEdgeType function by assigning "depressed".
* captionManager.style.fontEdgeType will be "depressed"
* @tc.size SmallTest
* @tc.type User
*/
it
(
'
CaptionConfiguration_0310
'
,
0
,
async
function
(
done
)
{
console
.
info
(
'
CaptionConfiguration_0310
'
);
let
captionManager
=
accessibility
.
getCaptionsManager
();
let
fontEdgeType
=
"
depressed
"
;
captionManager
.
style
.
fontEdgeType
=
fontEdgeType
;
let
value
=
captionManager
.
style
.
fontEdgeType
;
expect
(
value
).
assertEqual
(
fontEdgeType
);
done
();
})
/*
* @tc.number CaptionConfiguration_0320
* @tc.name CaptionConfiguration_0320
* @tc.desc Test captionManager.style.fontEdgeType function by assigning "uniform".
* captionManager.style.fontEdgeType will be "uniform"
* @tc.size SmallTest
* @tc.type User
*/
it
(
'
CaptionConfiguration_0320
'
,
0
,
async
function
(
done
)
{
console
.
info
(
'
CaptionConfiguration_0320
'
);
let
captionManager
=
accessibility
.
getCaptionsManager
();
let
fontEdgeType
=
"
uniform
"
;
captionManager
.
style
.
fontEdgeType
=
fontEdgeType
;
let
value
=
captionManager
.
style
.
fontEdgeType
;
expect
(
value
).
assertEqual
(
fontEdgeType
);
done
();
})
/*
* @tc.number CaptionConfiguration_0330
* @tc.name CaptionConfiguration_0330
* @tc.desc Test captionManager.style.fontEdgeType function by assigning "dropShadow".
* captionManager.style.fontEdgeType will be "dropShadow"
* @tc.size SmallTest
* @tc.type User
*/
it
(
'
CaptionConfiguration_0330
'
,
0
,
async
function
(
done
)
{
console
.
info
(
'
CaptionConfiguration_0330
'
);
let
captionManager
=
accessibility
.
getCaptionsManager
();
let
fontEdgeType
=
"
dropShadow
"
;
captionManager
.
style
.
fontEdgeType
=
fontEdgeType
;
let
value
=
captionManager
.
style
.
fontEdgeType
;
expect
(
value
).
assertEqual
(
fontEdgeType
);
done
();
})
/*
* @tc.number CaptionConfiguration_0340
* @tc.name CaptionConfiguration_0340
* @tc.desc Test captionManager.style.fontEdgeType function by assigning "".
* captionManager.style.fontEdgeType will be ""
* @tc.size SmallTest
* @tc.type User
*/
it
(
'
CaptionConfiguration_0340
'
,
0
,
async
function
(
done
)
{
console
.
info
(
'
CaptionConfiguration_0340
'
);
let
captionManager
=
accessibility
.
getCaptionsManager
();
let
fontEdgeType
=
""
;
captionManager
.
style
.
fontEdgeType
=
fontEdgeType
;
let
value
=
captionManager
.
style
.
fontEdgeType
;
expect
(
value
).
assertEqual
(
fontEdgeType
);
done
();
})
/*
* @tc.number CaptionConfiguration_0350
* @tc.name CaptionConfiguration_0350
* @tc.desc Test captionManager.style.fontEdgeType function by assigning null.
* captionManager.style.fontEdgeType will be ''
* @tc.size SmallTest
* @tc.type User
*/
it
(
'
CaptionConfiguration_0350
'
,
0
,
async
function
(
done
)
{
console
.
info
(
'
CaptionConfiguration_0350
'
);
let
captionManager
=
accessibility
.
getCaptionsManager
();
let
fontEdgeType
=
null
;
captionManager
.
style
.
fontEdgeType
=
fontEdgeType
;
let
value
=
captionManager
.
style
.
fontEdgeType
;
expect
(
value
).
assertEqual
(
''
);
done
();
})
/*
* @tc.number CaptionConfiguration_0360
* @tc.name CaptionConfiguration_0360
* @tc.desc Test captionManager.style.backgroundColor function by assigning "#12345678".
* captionManager.style.backgroundColor will be "#12345678"
* @tc.size SmallTest
* @tc.type User
*/
it
(
'
CaptionConfiguration_0360
'
,
0
,
async
function
(
done
)
{
console
.
info
(
'
CaptionConfiguration_0360
'
);
let
captionManager
=
accessibility
.
getCaptionsManager
();
let
backgroundColor
=
"
#12345678
"
;
captionManager
.
style
.
backgroundColor
=
backgroundColor
;
let
value
=
captionManager
.
style
.
backgroundColor
;
expect
(
value
).
assertEqual
(
backgroundColor
);
done
();
})
/*
* @tc.number CaptionConfiguration_0370
* @tc.name CaptionConfiguration_0370
* @tc.desc Test captionManager.style.backgroundColor function by assigning "".
* captionManager.style.backgroundColor will be "#00000000"
* @tc.size SmallTest
* @tc.type User
*/
it
(
'
CaptionConfiguration_0370
'
,
0
,
async
function
(
done
)
{
console
.
info
(
'
CaptionConfiguration_0370
'
);
let
captionManager
=
accessibility
.
getCaptionsManager
();
let
backgroundColor
=
""
;
captionManager
.
style
.
backgroundColor
=
backgroundColor
;
let
value
=
captionManager
.
style
.
backgroundColor
;
expect
(
value
).
assertEqual
(
"
#00000000
"
);
done
();
})
/*
* @tc.number CaptionConfiguration_0380
* @tc.name CaptionConfiguration_0380
* @tc.desc Test captionManager.style.backgroundColor function by assigning null.
* captionManager.style.backgroundColor will be "#00000000"
* @tc.size SmallTest
* @tc.type User
*/
it
(
'
CaptionConfiguration_0380
'
,
0
,
async
function
(
done
)
{
console
.
info
(
'
CaptionConfiguration_0380
'
);
let
captionManager
=
accessibility
.
getCaptionsManager
();
let
backgroundColor
=
null
;
captionManager
.
style
.
backgroundColor
=
backgroundColor
;
let
value
=
captionManager
.
style
.
backgroundColor
;
expect
(
value
).
assertEqual
(
"
#00000000
"
);
done
();
})
/*
* @tc.number CaptionConfiguration_0390
* @tc.name CaptionConfiguration_0390
* @tc.desc Test captionManager.style.backgroundColor function by assigning 0x12345678.
* captionManager.style.backgroundColor will be "#34567812"
* @tc.size SmallTest
* @tc.type User
*/
it
(
'
CaptionConfiguration_0390
'
,
0
,
async
function
(
done
)
{
console
.
info
(
'
CaptionConfiguration_0390
'
);
let
captionManager
=
accessibility
.
getCaptionsManager
();
let
backgroundColor
=
0x12345678
;
captionManager
.
style
.
backgroundColor
=
backgroundColor
;
let
value
=
captionManager
.
style
.
backgroundColor
;
expect
(
value
).
assertEqual
(
"
#34567812
"
);
done
();
})
/*
* @tc.number CaptionConfiguration_0400
* @tc.name CaptionConfiguration_0400
* @tc.desc Test captionManager.style.backgroundColor function by assigning 0.
* captionManager.style.backgroundColor will be "#00000000"
* @tc.size SmallTest
* @tc.type User
*/
it
(
'
CaptionConfiguration_0400
'
,
0
,
async
function
(
done
)
{
console
.
info
(
'
CaptionConfiguration_0400
'
);
let
captionManager
=
accessibility
.
getCaptionsManager
();
let
backgroundColor
=
0
;
captionManager
.
style
.
backgroundColor
=
backgroundColor
;
let
value
=
captionManager
.
style
.
backgroundColor
;
expect
(
value
).
assertEqual
(
"
#00000000
"
);
done
();
})
/*
* @tc.number CaptionConfiguration_0410
* @tc.name CaptionConfiguration_0410
* @tc.desc Test captionManager.style.backgroundColor function by assigning -1.
* captionManager.style.backgroundColor will be "#ffffffff"
* @tc.size SmallTest
* @tc.type User
*/
it
(
'
CaptionConfiguration_0410
'
,
0
,
async
function
(
done
)
{
console
.
info
(
'
CaptionConfiguration_0410
'
);
let
captionManager
=
accessibility
.
getCaptionsManager
();
let
backgroundColor
=
-
1
;
captionManager
.
style
.
backgroundColor
=
backgroundColor
;
let
value
=
captionManager
.
style
.
backgroundColor
;
expect
(
value
).
assertEqual
(
"
#ffffffff
"
);
done
();
})
/*
* @tc.number CaptionConfiguration_0420
* @tc.name CaptionConfiguration_0420
* @tc.desc Test captionManager.style.windowColor function by assigning "#12345678".
* captionManager.style.windowColor will be "#12345678"
* @tc.size SmallTest
* @tc.type User
*/
it
(
'
CaptionConfiguration_0420
'
,
0
,
async
function
(
done
)
{
console
.
info
(
'
CaptionConfiguration_0420
'
);
let
captionManager
=
accessibility
.
getCaptionsManager
();
let
windowColor
=
"
#12345678
"
;
captionManager
.
style
.
windowColor
=
windowColor
;
let
value
=
captionManager
.
style
.
windowColor
;
expect
(
value
).
assertEqual
(
windowColor
);
done
();
})
/*
* @tc.number CaptionConfiguration_0430
* @tc.name CaptionConfiguration_0430
* @tc.desc Test captionManager.style.windowColor function by assigning "".
* captionManager.style.windowColor will be ""
* @tc.size SmallTest
* @tc.type User
*/
it
(
'
CaptionConfiguration_0430
'
,
0
,
async
function
(
done
)
{
console
.
info
(
'
CaptionConfiguration_0430
'
);
let
captionManager
=
accessibility
.
getCaptionsManager
();
let
windowColor
=
""
;
captionManager
.
style
.
windowColor
=
windowColor
;
let
value
=
captionManager
.
style
.
windowColor
;
expect
(
value
).
assertEqual
(
"
#00000000
"
);
done
();
})
/*
* @tc.number CaptionConfiguration_0440
* @tc.name CaptionConfiguration_0440
* @tc.desc Test captionManager.style.windowColor function by assigning null.
* captionManager.style.windowColor will be "#00000000"
* @tc.size SmallTest
* @tc.type User
*/
it
(
'
CaptionConfiguration_0440
'
,
0
,
async
function
(
done
)
{
console
.
info
(
'
CaptionConfiguration_0440
'
);
let
captionManager
=
accessibility
.
getCaptionsManager
();
let
windowColor
=
null
;
captionManager
.
style
.
windowColor
=
windowColor
;
let
value
=
captionManager
.
style
.
windowColor
;
expect
(
value
).
assertEqual
(
"
#00000000
"
);
done
();
})
/*
* @tc.number CaptionConfiguration_0450
* @tc.name CaptionConfiguration_0450
* @tc.desc Test captionManager.style.windowColor function by assigning 0x12345678.
* captionManager.style.windowColor will be "#34567812"
* @tc.size SmallTest
* @tc.type User
*/
it
(
'
CaptionConfiguration_0450
'
,
0
,
async
function
(
done
)
{
console
.
info
(
'
CaptionConfiguration_0450
'
);
let
captionManager
=
accessibility
.
getCaptionsManager
();
let
windowColor
=
0x12345678
;
captionManager
.
style
.
windowColor
=
windowColor
;
let
value
=
captionManager
.
style
.
windowColor
;
expect
(
value
).
assertEqual
(
"
#34567812
"
);
done
();
})
/*
* @tc.number CaptionConfiguration_0460
* @tc.name CaptionConfiguration_0460
* @tc.desc Test captionManager.style.windowColor function by assigning 0.
* captionManager.style.windowColor will be "#00000000"
* @tc.size SmallTest
* @tc.type User
*/
it
(
'
CaptionConfiguration_0460
'
,
0
,
async
function
(
done
)
{
console
.
info
(
'
CaptionConfiguration_0460
'
);
let
captionManager
=
accessibility
.
getCaptionsManager
();
let
windowColor
=
0
;
captionManager
.
style
.
windowColor
=
windowColor
;
let
value
=
captionManager
.
style
.
windowColor
;
expect
(
value
).
assertEqual
(
"
#00000000
"
);
done
();
})
/*
* @tc.number CaptionConfiguration_0470
* @tc.name CaptionConfiguration_0470
* @tc.desc Test captionManager.style.windowColor function by assigning -1.
* captionManager.style.windowColor will be "#ffffffff"
* @tc.size SmallTest
* @tc.type User
*/
it
(
'
CaptionConfiguration_0470
'
,
0
,
async
function
(
done
)
{
console
.
info
(
'
CaptionConfiguration_0470
'
);
let
captionManager
=
accessibility
.
getCaptionsManager
();
let
windowColor
=
-
1
;
captionManager
.
style
.
windowColor
=
windowColor
;
let
value
=
captionManager
.
style
.
windowColor
;
expect
(
value
).
assertEqual
(
"
#ffffffff
"
);
done
();
})
/*
* @tc.number CaptionConfiguration_0480
* @tc.name CaptionConfiguration_0480
* @tc.desc Test captionManager.style function by assigning a value.
* Attributes of captionManager.style will be equal to that of this value
* @tc.size SmallTest
* @tc.type User
*/
it
(
'
CaptionConfiguration_0480
'
,
0
,
async
function
(
done
)
{
console
.
info
(
'
CaptionConfiguration_0480
'
);
let
captionManager
=
accessibility
.
getCaptionsManager
();
let
StyleTest
=
{
fontFamily
:
"
monospacedSerif
"
,
fontScale
:
99
,
fontColor
:
"
#12345678
"
,
fontEdgeType
:
"
uniform
"
,
backgroundColor
:
"
#23456789
"
,
windowColor
:
"
#34567890
"
};
captionManager
.
style
=
StyleTest
;
let
value
=
captionManager
.
style
;
expect
(
value
.
fontFamily
).
assertEqual
(
StyleTest
.
fontFamily
);
expect
(
value
.
fontScale
).
assertEqual
(
StyleTest
.
fontScale
);
expect
(
value
.
fontColor
).
assertEqual
(
StyleTest
.
fontColor
);
expect
(
value
.
fontEdgeType
).
assertEqual
(
StyleTest
.
fontEdgeType
);
expect
(
value
.
backgroundColor
).
assertEqual
(
StyleTest
.
backgroundColor
);
expect
(
value
.
windowColor
).
assertEqual
(
StyleTest
.
windowColor
);
done
();
})
})
})
}
}
编辑
预览
Markdown
is supported
0%
请重试
或
添加新附件
.
添加附件
取消
You are about to add
0
people
to the discussion. Proceed with caution.
先完成此消息的编辑!
取消
想要评论请
注册
或
登录