提交 ca46e2e1 编写于 作者: S sunjiakun

fail change

Signed-off-by: Nsunjiakun <sunjiakun3@huawei.com>
上级 6c49d718
......@@ -166,7 +166,7 @@ struct AlphabetIndexerTest {
.selectedFont({ size: 28, weight: FontWeight.Bold })
.color(0x000000)
.selectedColor(0xFF1493)
.backgroundColor(0xF8F8FF)
.backgroundColor($r("sys.color.ohos_id_color_primary"))
.selectedBackgroundColor(0xBEBEBE)
.itemSize(26)
.onSelect((index: number) => {
......@@ -203,7 +203,7 @@ struct AlphabetIndexerTest {
.selectedFont({ size: 28, weight: FontWeight.Bold })
.color(0x000000)
.selectedColor(0xFF1493)
.backgroundColor(0xF8F8FF)
.backgroundColor($r("sys.color.ohos_id_color_primary"))
.selectedBackgroundColor(0xBEBEBE)
.itemSize(26)
.onSelect((index: number) => {
......@@ -244,7 +244,7 @@ struct AlphabetIndexerTest {
.selectedFont({ size: 28, weight: FontWeight.Bold })
.color(0x000000)
.selectedColor(0xFF1493)
.backgroundColor(0xF8F8FF)
.backgroundColor($r("sys.color.ohos_id_color_primary"))
.selectedBackgroundColor(0xBEBEBE)
.itemSize(26)
.onSelect((index: number) => {
......@@ -285,7 +285,7 @@ struct AlphabetIndexerTest {
.selectedFont({ size: 28, weight: FontWeight.Bold })
.color(0x000000)
.selectedColor(0xFF1493)
.backgroundColor(0xF8F8FF)
.backgroundColor($r("sys.color.ohos_id_color_primary"))
.selectedBackgroundColor(0xBEBEBE)
.itemSize(26)
.onSelect((index: number) => {
......
......@@ -77,8 +77,8 @@ export default function AlphabetIndexer() {
console.info("ArkUI_AlphabetIndexer_0100 start");
let strJson = getInspectorByKey('alphabetIndexerTest1');
let obj = JSON.parse(strJson);
expect(obj.$attrs.popupSelectedColor).assertEqual("#FF182431");
expect(obj.$attrs.popupUnselectedColor).assertEqual("#FF182431");
expect(obj.$attrs.popupSelectedColor).assertEqual(obj.$attrs.backgroundColor);
expect(obj.$attrs.popupUnselectedColor).assertEqual(obj.$attrs.backgroundColor);
expect(obj.$attrs.popupItemBackground).assertEqual("#FFFFFFFF");
expect(obj.$attrs.popupItemFontSize).assertEqual("24.00vp");
expect(obj.$attrs.popupItemFontWeight).assertEqual("FontWeight.Medium");
......@@ -90,7 +90,8 @@ export default function AlphabetIndexer() {
console.info("ArkUI_AlphabetIndexer_0600 start");
let strJson = getInspectorByKey('alphabetIndexerTest6');
let obj = JSON.parse(strJson);
expect(obj.$attrs.popupItemFontSize).assertEqual("30.00vp");
let popupItemFontSize = obj.$attrs.popupItemFontSize;
expect(parseFloat(popupItemFontSize)).assertEqual(30)
done();
});
......@@ -123,7 +124,7 @@ export default function AlphabetIndexer() {
await Utils.sleep(2000);
let newJson = getInspectorByKey('alphabetIndexerTest2');
let obj = JSON.parse(newJson);
expect(obj.$attrs.popupSelectedColor).assertEqual("#FF182431");
expect(obj.$attrs.popupSelectedColor).assertEqual(obj.$attrs.backgroundColor);
done();
});
......@@ -148,7 +149,7 @@ export default function AlphabetIndexer() {
await Utils.sleep(2000);
let newJson = getInspectorByKey('alphabetIndexerTest2');
let obj = JSON.parse(newJson);
expect(obj.$attrs.popupUnselectedColor).assertEqual("#FF182431");
expect(obj.$attrs.popupUnselectedColor).assertEqual(obj.$attrs.backgroundColor);
done();
});
......@@ -273,7 +274,7 @@ export default function AlphabetIndexer() {
await Utils.sleep(2000);
let newJson = getInspectorByKey('alphabetIndexerTest3');
let obj = JSON.parse(newJson);
expect(obj.$attrs.popupSelectedColor).assertEqual("#FF182431");
expect(obj.$attrs.popupSelectedColor).assertEqual(obj.$attrs.backgroundColor);
done();
});
......@@ -298,7 +299,7 @@ export default function AlphabetIndexer() {
await Utils.sleep(2000);
let newJson = getInspectorByKey('alphabetIndexerTest3');
let obj = JSON.parse(newJson);
expect(obj.$attrs.popupUnselectedColor).assertEqual("#FF182431");
expect(obj.$attrs.popupUnselectedColor).assertEqual(obj.$attrs.backgroundColor);
done();
});
......@@ -423,7 +424,7 @@ export default function AlphabetIndexer() {
await Utils.sleep(2000);
let newJson = getInspectorByKey('alphabetIndexerTest4');
let obj = JSON.parse(newJson);
expect(obj.$attrs.popupSelectedColor).assertEqual("#FF182431");
expect(obj.$attrs.popupSelectedColor).assertEqual(obj.$attrs.backgroundColor);
done();
});
......@@ -448,7 +449,7 @@ export default function AlphabetIndexer() {
await Utils.sleep(2000);
let newJson = getInspectorByKey('alphabetIndexerTest4');
let obj = JSON.parse(newJson);
expect(obj.$attrs.popupUnselectedColor).assertEqual("#FF182431");
expect(obj.$attrs.popupUnselectedColor).assertEqual(obj.$attrs.backgroundColor);
done();
});
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册