Skip to content
体验新版
项目
组织
正在加载...
登录
切换导航
打开侧边栏
OpenHarmony
Xts Acts
提交
89b2d755
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看板
提交
89b2d755
编写于
3月 02, 2022
作者:
W
wang_lijian
浏览文件
操作
浏览文件
下载
电子邮件补丁
差异文件
add test cases
Signed-off-by:
N
wang_lijian
<
wanglijian@kaihongdigi.com
>
上级
4e868210
变更
4
显示空白变更内容
内联
并排
Showing
4 changed file
with
891 addition
and
1 deletion
+891
-1
ace/ace_standard/src/main/config.json
ace/ace_standard/src/main/config.json
+2
-1
ace/ace_standard/src/main/js/default/test/List.test.js
ace/ace_standard/src/main/js/default/test/List.test.js
+1
-0
ace/ace_standard/src/main/js/default/test/commonComponentJsApi.test.js
...ard/src/main/js/default/test/commonComponentJsApi.test.js
+21
-0
ace/ace_standard/src/main/js/default/test/marqueeProps.test.js
...ce_standard/src/main/js/default/test/marqueeProps.test.js
+867
-0
未找到文件。
ace/ace_standard/src/main/config.json
浏览文件 @
89b2d755
...
@@ -96,7 +96,8 @@
...
@@ -96,7 +96,8 @@
"pages/listItem/prop/index"
,
"pages/listItem/prop/index"
,
"pages/listItemGroup/router/index"
,
"pages/listItemGroup/router/index"
,
"pages/listItemGroup/prop/index"
,
"pages/listItemGroup/prop/index"
,
"pages/marquee/index"
,
"pages/marquee/router/index"
,
"pages/marquee/prop/index"
,
"pages/imageAnimator/index"
,
"pages/imageAnimator/index"
,
"pages/panel/router/index"
,
"pages/panel/router/index"
,
"pages/panel/prop/index"
,
"pages/panel/prop/index"
,
...
...
ace/ace_standard/src/main/js/default/test/List.test.js
浏览文件 @
89b2d755
...
@@ -21,6 +21,7 @@ require('./buttonProps.test.js')
...
@@ -21,6 +21,7 @@ require('./buttonProps.test.js')
require
(
'
./chartProps.test.js
'
)
require
(
'
./chartProps.test.js
'
)
require
(
'
./imageProps.test.js
'
)
require
(
'
./imageProps.test.js
'
)
require
(
'
./spanProps.test.js
'
)
require
(
'
./spanProps.test.js
'
)
require
(
'
./marqueeProps.test.js
'
)
require
(
'
./menuProps.test.js
'
)
require
(
'
./menuProps.test.js
'
)
require
(
'
./switchProps.test.js
'
)
require
(
'
./switchProps.test.js
'
)
require
(
'
./tabsProps.test.js
'
)
require
(
'
./tabsProps.test.js
'
)
...
...
ace/ace_standard/src/main/js/default/test/commonComponentJsApi.test.js
浏览文件 @
89b2d755
...
@@ -219,6 +219,27 @@ describe('aceJsTest', function () {
...
@@ -219,6 +219,27 @@ describe('aceJsTest', function () {
done
();
done
();
});
});
/**
* @tc.number SUB_ACE_BASIC_COMPONENT_JS_API_0100
* @tc.name testMarqueeComponent
* @tc.desc ACE
*/
it
(
'
testMarqueeComponent
'
,
0
,
async
function
(
done
)
{
let
result
;
let
options
=
{
uri
:
'
pages/marquee/router/index
'
}
try
{
result
=
router
.
push
(
options
)
}
catch
(
err
)
{
result
=
err
}
await
sleep
(
1000
)
let
pages
=
router
.
getState
();
expect
(
"
pages/marquee/router/
"
).
assertEqual
(
pages
.
path
);
done
();
});
/**
/**
* @tc.number SUB_ACE_BASIC_COMPONENT_JS_API_0100
* @tc.number SUB_ACE_BASIC_COMPONENT_JS_API_0100
* @tc.name testDividerComponent
* @tc.name testDividerComponent
...
...
ace/ace_standard/src/main/js/default/test/marqueeProps.test.js
0 → 100644
浏览文件 @
89b2d755
/*
* Copyright (C) 2021 Huawei Device Co., Ltd.
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
import
router
from
'
@system.router
'
;
import
{
describe
,
beforeAll
,
afterAll
,
it
,
expect
}
from
'
deccjsunit/index
'
;
describe
(
'
marqueePropsJsTest
'
,
function
()
{
async
function
sleep
(
time
)
{
return
new
Promise
((
resolve
,
reject
)
=>
{
setTimeout
(()
=>
{
resolve
()
},
time
)
}).
then
(()
=>
{
console
.
info
(
`sleep
${
time
}
over...`
)
})
};
async
function
backToIndex
()
{
let
backToIndexPromise
=
new
Promise
((
resolve
,
reject
)
=>
{
setTimeout
(()
=>
{
router
.
back
({
uri
:
'
pages/index/index
'
});
resolve
();
},
500
);
});
let
clearPromise
=
new
Promise
((
resolve
,
reject
)
=>
{
setTimeout
(()
=>
{
router
.
clear
();
resolve
();
},
500
);
});
await
backToIndexPromise
.
then
(()
=>
{
return
clearPromise
;
});
}
/**
* run before testcase
*/
beforeAll
(
async
function
(
done
)
{
console
.
info
(
'
[marqueePropsJsTest] before each called
'
)
let
result
;
let
options
=
{
uri
:
'
pages/marquee/prop/index
'
}
try
{
result
=
router
.
push
(
options
)
console
.
info
(
"
push marqueeProps page success
"
+
JSON
.
stringify
(
result
));
}
catch
(
err
)
{
console
.
error
(
"
push marqueeProps page error
"
+
JSON
.
stringify
(
result
));
}
await
sleep
(
4000
)
done
()
});
/**
* run after testcase
*/
afterAll
(
async
function
()
{
console
.
info
(
'
[marqueePropsJsTest] after each called
'
)
await
backToIndex
()
await
sleep
(
1000
)
});
/**
* @tc.number SUB_ACE_BASIC_COMPONENT_JS_API_0100
* @tc.name testmarqueeIdProp
* @tc.desc ACE
*/
it
(
'
testmarqueeIdProp
'
,
0
,
async
function
(
done
)
{
console
.
info
(
'
testmarqueeIdProp START
'
);
console
.
info
(
"
[marqueeProps] get globalThis.value is:
"
+
JSON
.
stringify
(
globalThis
.
value
));
let
obj
=
JSON
.
parse
(
globalThis
.
value
.
idProp
);
console
.
info
(
"
[marqueeProps] get inspector value is:
"
+
JSON
.
stringify
(
obj
));
console
.
info
(
"
[marqueeProps] get inspector attrs value is:
"
+
JSON
.
stringify
(
obj
.
$attrs
));
expect
(
obj
.
$type
).
assertEqual
(
'
marquee
'
)
expect
(
obj
.
$attrs
.
id
).
assertEqual
(
'
idProp
'
)
done
();
});
/**
* @tc.number SUB_ACE_BASIC_COMPONENT_JS_API_0100
* @tc.name testmarqueeClassProp
* @tc.desc ACE
*/
it
(
'
testmarqueeClassProp
'
,
0
,
async
function
(
done
)
{
console
.
info
(
'
testmarqueeClassProp START
'
);
console
.
info
(
"
[marqueeProps] get globalThis.value is:
"
+
JSON
.
stringify
(
globalThis
.
value
));
let
obj
=
JSON
.
parse
(
globalThis
.
value
.
classProp
);
console
.
info
(
"
[marqueeProps] get inspector value is:
"
+
JSON
.
stringify
(
obj
));
console
.
info
(
"
[marqueeProps] get inspector attrs value is:
"
+
JSON
.
stringify
(
obj
.
$attrs
));
expect
(
obj
.
$type
).
assertEqual
(
'
marquee
'
)
expect
(
obj
.
$attrs
.
id
).
assertEqual
(
'
classProp
'
)
expect
(
obj
.
$attrs
.
className
).
assertEqual
(
'
classProp
'
)
done
();
});
/**
* @tc.number SUB_ACE_BASIC_COMPONENT_JS_API_0100
* @tc.name testmarqueeClassPropNone
* @tc.desc ACE
*/
it
(
'
testmarqueeClassPropNone
'
,
0
,
async
function
(
done
)
{
console
.
info
(
'
testmarqueeClassPropNone START
'
);
console
.
info
(
"
[marqueeProps] get globalThis.value is:
"
+
JSON
.
stringify
(
globalThis
.
value
));
let
obj
=
JSON
.
parse
(
globalThis
.
value
.
classPropNone
);
console
.
info
(
"
[marqueeProps] get inspector value is:
"
+
JSON
.
stringify
(
obj
));
console
.
info
(
"
[marqueeProps] get inspector attrs value is:
"
+
JSON
.
stringify
(
obj
.
$attrs
));
expect
(
obj
.
$type
).
assertEqual
(
'
marquee
'
)
expect
(
obj
.
$attrs
.
id
).
assertEqual
(
'
classPropNone
'
)
expect
(
obj
.
$attrs
.
className
).
assertEqual
(
undefined
)
console
.
info
(
"
[marqueeProps] get className value is:
"
+
JSON
.
stringify
(
obj
.
$attrs
.
className
));
done
();
});
/**
* @tc.number SUB_ACE_BASIC_COMPONENT_JS_API_0100
* @tc.name testmarqueeStyleProp
* @tc.desc ACEs
*/
// it('testmarqueeStyleProp', 0, async function (done) {
// console.info('testmarqueeStyleProp START');
// console.info("[marqueeProps] get globalThis.value is: " + JSON.stringify(globalThis.value));
//
// let obj = JSON.parse(globalThis.value.styleProp);
// console.info("[marqueeProps] get inspector value is: " + JSON.stringify(obj));
// console.info("[marqueeProps] get inspector attrs value is: " + JSON.stringify(obj.$attrs));
//
// expect(obj.$type).assertEqual('marquee')
// expect(obj.$attrs.id).assertEqual('styleProp')
// expect(obj.$attrs.style).assertEqual(undefined)
// console.info("[marqueeProps] get style value is: " + JSON.stringify(obj.$attrs.style));
//
// expect(obj.$styles.width).assertEqual(undefined);
// console.info("[marqueeProps] get style width value is: " + JSON.stringify(obj.$styles.width));
// expect(obj.$styles.height).assertEqual(undefined);
// console.info("[marqueeProps] get style height value is: " + JSON.stringify(obj.$styles.height));
// expect(obj.$styles.get('background-color')).assertEqual(undefined);
// console.info("[marqueeProps] get style background-color value is: " + JSON.stringify(obj.$styles.get('background-color')));
// done();
// });
/**
* @tc.number SUB_ACE_BASIC_COMPONENT_JS_API_0100
* @tc.name testmarqueeRefProp
* @tc.desc ACE
*/
it
(
'
testmarqueeRefProp
'
,
0
,
async
function
(
done
)
{
console
.
info
(
'
testmarqueeRefProp START
'
);
console
.
info
(
"
[marqueeProps] get globalThis.value is:
"
+
JSON
.
stringify
(
globalThis
.
value
));
let
obj
=
JSON
.
parse
(
globalThis
.
value
.
refProp
);
console
.
info
(
"
[marqueeProps] get inspector value is:
"
+
JSON
.
stringify
(
obj
));
console
.
info
(
"
[marqueeProps] get inspector attrs value is:
"
+
JSON
.
stringify
(
obj
.
$attrs
));
expect
(
obj
.
$type
).
assertEqual
(
'
marquee
'
)
expect
(
obj
.
$attrs
.
id
).
assertEqual
(
'
refProp
'
)
expect
(
obj
.
$attrs
.
ref
).
assertEqual
(
'
refProp
'
)
done
();
});
/**
* @tc.number SUB_ACE_BASIC_COMPONENT_JS_API_0100
* @tc.name testmarqueeRefPropNone
* @tc.desc ACE
*/
it
(
'
testmarqueeRefPropNone
'
,
0
,
async
function
(
done
)
{
console
.
info
(
'
testmarqueeRefPropNone START
'
);
console
.
info
(
"
[marqueeProps] get globalThis.value is:
"
+
JSON
.
stringify
(
globalThis
.
value
));
let
obj
=
JSON
.
parse
(
globalThis
.
value
.
refPropNone
);
console
.
info
(
"
[marqueeProps] get inspector value is:
"
+
JSON
.
stringify
(
obj
));
console
.
info
(
"
[marqueeProps] get inspector attrs value is:
"
+
JSON
.
stringify
(
obj
.
$attrs
));
expect
(
obj
.
$type
).
assertEqual
(
'
marquee
'
)
expect
(
obj
.
$attrs
.
id
).
assertEqual
(
'
refPropNone
'
)
expect
(
obj
.
$attrs
.
ref
).
assertEqual
(
undefined
)
console
.
info
(
"
[marqueeProps] get ref value is:
"
+
JSON
.
stringify
(
obj
.
$attrs
.
ref
));
done
();
});
/**
* @tc.number SUB_ACE_BASIC_COMPONENT_JS_API_0100
* @tc.name testmarqueeDisabledPropTrue
* @tc.desc ACE
*/
it
(
'
testmarqueeDisabledPropTrue
'
,
0
,
async
function
(
done
)
{
console
.
info
(
'
testmarqueeDisabledPropTrue START
'
);
console
.
info
(
"
[marqueeProps] get globalThis.value is:
"
+
JSON
.
stringify
(
globalThis
.
value
));
let
obj
=
JSON
.
parse
(
globalThis
.
value
.
disabledPropTrue
);
console
.
info
(
"
[marqueeProps] get inspector value is:
"
+
JSON
.
stringify
(
obj
));
console
.
info
(
"
[marqueeProps] get inspector attrs value is:
"
+
JSON
.
stringify
(
obj
.
$attrs
));
expect
(
obj
.
$type
).
assertEqual
(
'
marquee
'
)
expect
(
obj
.
$attrs
.
id
).
assertEqual
(
'
disabledPropTrue
'
)
expect
(
obj
.
$attrs
.
disabled
).
assertEqual
(
'
true
'
)
done
();
});
/**
* @tc.number SUB_ACE_BASIC_COMPONENT_JS_API_0100
* @tc.name testmarqueeDisabledPropFalse
* @tc.desc ACE
*/
it
(
'
testmarqueeDisabledPropFalse
'
,
0
,
async
function
(
done
)
{
console
.
info
(
'
testmarqueeDisabledPropFalse START
'
);
console
.
info
(
"
[marqueeProps] get globalThis.value is:
"
+
JSON
.
stringify
(
globalThis
.
value
));
let
obj
=
JSON
.
parse
(
globalThis
.
value
.
disabledPropFalse
);
console
.
info
(
"
[marqueeProps] get inspector value is:
"
+
JSON
.
stringify
(
obj
));
console
.
info
(
"
[marqueeProps] get inspector attrs value is:
"
+
JSON
.
stringify
(
obj
.
$attrs
));
expect
(
obj
.
$type
).
assertEqual
(
'
marquee
'
)
expect
(
obj
.
$attrs
.
id
).
assertEqual
(
'
disabledPropFalse
'
)
expect
(
obj
.
$attrs
.
disabled
).
assertEqual
(
'
false
'
)
done
();
});
/**
* @tc.number SUB_ACE_BASIC_COMPONENT_JS_API_0100
* @tc.name testmarqueeDisabledPropNone
* @tc.desc ACE
*/
it
(
'
testmarqueeDisabledPropNone
'
,
0
,
async
function
(
done
)
{
console
.
info
(
'
testmarqueeDisabledPropNone START
'
);
console
.
info
(
"
[marqueeProps] get globalThis.value is:
"
+
JSON
.
stringify
(
globalThis
.
value
));
let
obj
=
JSON
.
parse
(
globalThis
.
value
.
disabledPropNone
);
console
.
info
(
"
[marqueeProps] get inspector value is:
"
+
JSON
.
stringify
(
obj
));
console
.
info
(
"
[marqueeProps] get inspector attrs value is:
"
+
JSON
.
stringify
(
obj
.
$attrs
));
expect
(
obj
.
$type
).
assertEqual
(
'
marquee
'
)
expect
(
obj
.
$attrs
.
id
).
assertEqual
(
'
disabledPropNone
'
)
expect
(
obj
.
$attrs
.
disabled
).
assertEqual
(
'
false
'
)
done
();
});
/**
* @tc.number SUB_ACE_BASIC_COMPONENT_JS_API_0100
* @tc.name testmarqueeFocusablePropTrue
* @tc.desc ACE
*/
it
(
'
testmarqueeFocusablePropTrue
'
,
0
,
async
function
(
done
)
{
console
.
info
(
'
testmarqueeFocusablePropTrue START
'
);
console
.
info
(
"
[marqueeProps] get globalThis.value is:
"
+
JSON
.
stringify
(
globalThis
.
value
));
let
obj
=
JSON
.
parse
(
globalThis
.
value
.
focusablePropTrue
);
console
.
info
(
"
[marqueeProps] get inspector value is:
"
+
JSON
.
stringify
(
obj
));
console
.
info
(
"
[marqueeProps] get inspector attrs value is:
"
+
JSON
.
stringify
(
obj
.
$attrs
));
expect
(
obj
.
$type
).
assertEqual
(
'
marquee
'
)
expect
(
obj
.
$attrs
.
id
).
assertEqual
(
'
focusablePropTrue
'
)
expect
(
obj
.
$attrs
.
focusable
).
assertEqual
(
'
true
'
)
done
();
});
/**
* @tc.number SUB_ACE_BASIC_COMPONENT_JS_API_0100
* @tc.name testmarqueeFocusablePropFalse
* @tc.desc ACE
*/
it
(
'
testmarqueeFocusablePropFalse
'
,
0
,
async
function
(
done
)
{
console
.
info
(
'
testmarqueeFocusablePropFalse START
'
);
console
.
info
(
"
[marqueeProps] get globalThis.value is:
"
+
JSON
.
stringify
(
globalThis
.
value
));
let
obj
=
JSON
.
parse
(
globalThis
.
value
.
focusablePropFalse
);
console
.
info
(
"
[marqueeProps] get inspector value is:
"
+
JSON
.
stringify
(
obj
));
console
.
info
(
"
[marqueeProps] get inspector attrs value is:
"
+
JSON
.
stringify
(
obj
.
$attrs
));
expect
(
obj
.
$type
).
assertEqual
(
'
marquee
'
)
expect
(
obj
.
$attrs
.
id
).
assertEqual
(
'
focusablePropFalse
'
)
expect
(
obj
.
$attrs
.
focusable
).
assertEqual
(
'
false
'
)
done
();
});
/**
* @tc.number SUB_ACE_BASIC_COMPONENT_JS_API_0100
* @tc.name testmarqueeFocusablePropNone
* @tc.desc ACE
*/
it
(
'
testmarqueeFocusablePropNone
'
,
0
,
async
function
(
done
)
{
console
.
info
(
'
testmarqueeFocusablePropNone START
'
);
console
.
info
(
"
[marqueeProps] get globalThis.value is:
"
+
JSON
.
stringify
(
globalThis
.
value
));
let
obj
=
JSON
.
parse
(
globalThis
.
value
.
focusablePropNone
);
console
.
info
(
"
[marqueeProps] get inspector value is:
"
+
JSON
.
stringify
(
obj
));
console
.
info
(
"
[marqueeProps] get inspector attrs value is:
"
+
JSON
.
stringify
(
obj
.
$attrs
));
expect
(
obj
.
$type
).
assertEqual
(
'
marquee
'
)
expect
(
obj
.
$attrs
.
id
).
assertEqual
(
'
focusablePropNone
'
)
expect
(
obj
.
$attrs
.
focusable
).
assertEqual
(
'
false
'
)
done
();
});
/**
* @tc.number SUB_ACE_BASIC_COMPONENT_JS_API_0100
* @tc.name testmarqueeDataProp
* @tc.desc ACE
*/
it
(
'
testmarqueeDataProp
'
,
0
,
async
function
(
done
)
{
console
.
info
(
'
testmarqueeDataProp START
'
);
console
.
info
(
"
[marqueeProps] get globalThis.value is:
"
+
JSON
.
stringify
(
globalThis
.
value
));
let
obj
=
JSON
.
parse
(
globalThis
.
value
.
dataProp
);
console
.
info
(
"
[marqueeProps] get inspector value is:
"
+
JSON
.
stringify
(
obj
));
console
.
info
(
"
[marqueeProps] get inspector attrs value is:
"
+
JSON
.
stringify
(
obj
.
$attrs
));
expect
(
obj
.
$type
).
assertEqual
(
'
marquee
'
)
expect
(
obj
.
$attrs
.
id
).
assertEqual
(
'
dataProp
'
)
expect
(
obj
.
$attrs
.
datamarquee
).
assertEqual
(
undefined
);
console
.
info
(
"
[marqueeProps] get datamarquee value is:
"
+
JSON
.
stringify
(
obj
.
$attrs
.
datamarquee
));
done
();
});
/**
* @tc.number SUB_ACE_BASIC_COMPONENT_JS_API_0100
* @tc.name testmarqueeDataPropNone
* @tc.desc ACE
*/
it
(
'
testmarqueeDataPropNone
'
,
0
,
async
function
(
done
)
{
console
.
info
(
'
testmarqueeDataPropNone START
'
);
console
.
info
(
"
[marqueeProps] get globalThis.value is:
"
+
JSON
.
stringify
(
globalThis
.
value
));
let
obj
=
JSON
.
parse
(
globalThis
.
value
.
dataPropNone
);
console
.
info
(
"
[marqueeProps] get inspector value is:
"
+
JSON
.
stringify
(
obj
));
console
.
info
(
"
[marqueeProps] get inspector attrs value is:
"
+
JSON
.
stringify
(
obj
.
$attrs
));
expect
(
obj
.
$type
).
assertEqual
(
'
marquee
'
)
expect
(
obj
.
$attrs
.
id
).
assertEqual
(
'
dataPropNone
'
)
expect
(
obj
.
$attrs
.
datamarquee
).
assertEqual
(
undefined
)
console
.
info
(
"
[marqueeProps] get datamarquee value is:
"
+
JSON
.
stringify
(
obj
.
$attrs
.
datamarquee
));
done
();
});
/**
* @tc.number SUB_ACE_BASIC_COMPONENT_JS_API_0100
* @tc.name testmarqueeClickEffectPropSmall
* @tc.desc ACE
*/
it
(
'
testmarqueeClickEffectPropSmall
'
,
0
,
async
function
(
done
)
{
console
.
info
(
'
testmarqueeClickEffectPropSmall START
'
);
console
.
info
(
"
[marqueeProps] get globalThis.value is:
"
+
JSON
.
stringify
(
globalThis
.
value
));
let
obj
=
JSON
.
parse
(
globalThis
.
value
.
clickEffectPropSmall
);
console
.
info
(
"
[marqueeProps] get inspector value is:
"
+
JSON
.
stringify
(
obj
));
console
.
info
(
"
[marqueeProps] get inspector attrs value is:
"
+
JSON
.
stringify
(
obj
.
$attrs
));
expect
(
obj
.
$type
).
assertEqual
(
'
marquee
'
)
expect
(
obj
.
$attrs
.
id
).
assertEqual
(
'
clickEffectPropSmall
'
)
expect
(
obj
.
$attrs
.
clickEffect
).
assertEqual
(
'
spring-small
'
)
done
();
});
/**
* @tc.number SUB_ACE_BASIC_COMPONENT_JS_API_0100
* @tc.name testmarqueeClickEffectPropMedium
* @tc.desc ACE
*/
it
(
'
testmarqueeClickEffectPropMedium
'
,
0
,
async
function
(
done
)
{
console
.
info
(
'
testmarqueeClickEffectPropMedium START
'
);
console
.
info
(
"
[marqueeProps] get globalThis.value is:
"
+
JSON
.
stringify
(
globalThis
.
value
));
let
obj
=
JSON
.
parse
(
globalThis
.
value
.
clickEffectPropMedium
);
console
.
info
(
"
[marqueeProps] get inspector value is:
"
+
JSON
.
stringify
(
obj
));
console
.
info
(
"
[marqueeProps] get inspector attrs value is:
"
+
JSON
.
stringify
(
obj
.
$attrs
));
expect
(
obj
.
$type
).
assertEqual
(
'
marquee
'
)
expect
(
obj
.
$attrs
.
id
).
assertEqual
(
'
clickEffectPropMedium
'
)
expect
(
obj
.
$attrs
.
clickEffect
).
assertEqual
(
'
spring-medium
'
)
done
();
});
/**
* @tc.number SUB_ACE_BASIC_COMPONENT_JS_API_0100
* @tc.name testmarqueeClickEffectPropLarge
* @tc.desc ACE
*/
it
(
'
testmarqueeClickEffectPropLarge
'
,
0
,
async
function
(
done
)
{
console
.
info
(
'
testmarqueeClickEffectPropLarge START
'
);
console
.
info
(
"
[marqueeProps] get globalThis.value is:
"
+
JSON
.
stringify
(
globalThis
.
value
));
let
obj
=
JSON
.
parse
(
globalThis
.
value
.
clickEffectPropLarge
);
console
.
info
(
"
[marqueeProps] get inspector value is:
"
+
JSON
.
stringify
(
obj
));
console
.
info
(
"
[marqueeProps] get inspector attrs value is:
"
+
JSON
.
stringify
(
obj
.
$attrs
));
expect
(
obj
.
$type
).
assertEqual
(
'
marquee
'
)
expect
(
obj
.
$attrs
.
id
).
assertEqual
(
'
clickEffectPropLarge
'
)
expect
(
obj
.
$attrs
.
clickEffect
).
assertEqual
(
'
spring-large
'
)
done
();
});
/**
* @tc.number SUB_ACE_BASIC_COMPONENT_JS_API_0100
* @tc.name testmarqueeClickEffectPropNone
* @tc.desc ACE
*/
it
(
'
testmarqueeClickEffectPropNone
'
,
0
,
async
function
(
done
)
{
console
.
info
(
'
testmarqueeClickEffectPropNone START
'
);
console
.
info
(
"
[marqueeProps] get globalThis.value is:
"
+
JSON
.
stringify
(
globalThis
.
value
));
let
obj
=
JSON
.
parse
(
globalThis
.
value
.
clickEffectPropNone
);
console
.
info
(
"
[marqueeProps] get inspector value is:
"
+
JSON
.
stringify
(
obj
));
console
.
info
(
"
[marqueeProps] get inspector attrs value is:
"
+
JSON
.
stringify
(
obj
.
$attrs
));
expect
(
obj
.
$type
).
assertEqual
(
'
marquee
'
)
expect
(
obj
.
$attrs
.
id
).
assertEqual
(
'
clickEffectPropNone
'
)
expect
(
obj
.
$attrs
.
clickEffect
).
assertEqual
(
undefined
)
console
.
info
(
"
[marqueeProps] get clickEffect value is:
"
+
JSON
.
stringify
(
obj
.
$attrs
.
clickEffect
));
done
();
});
/**
* @tc.number SUB_ACE_BASIC_COMPONENT_JS_API_0100
* @tc.name testmarqueeDirPropRtl
* @tc.desc ACE
*/
it
(
'
testmarqueeDirPropRtl
'
,
0
,
async
function
(
done
)
{
console
.
info
(
'
testmarqueeDirPropRtl START
'
);
console
.
info
(
"
[marqueeProps] get globalThis.value is:
"
+
JSON
.
stringify
(
globalThis
.
value
));
let
obj
=
JSON
.
parse
(
globalThis
.
value
.
dirPropRtl
);
console
.
info
(
"
[marqueeProps] get inspector value is:
"
+
JSON
.
stringify
(
obj
));
console
.
info
(
"
[marqueeProps] get inspector attrs value is:
"
+
JSON
.
stringify
(
obj
.
$attrs
));
expect
(
obj
.
$type
).
assertEqual
(
'
marquee
'
)
expect
(
obj
.
$attrs
.
id
).
assertEqual
(
'
dirPropRtl
'
)
expect
(
obj
.
$attrs
.
dir
).
assertEqual
(
'
rtl
'
)
done
();
});
/**
* @tc.number SUB_ACE_BASIC_COMPONENT_JS_API_0100
* @tc.name testmarqueeDirPropLtr
* @tc.desc ACE
*/
it
(
'
testmarqueeDirPropLtr
'
,
0
,
async
function
(
done
)
{
console
.
info
(
'
testmarqueeDirPropLtr START
'
);
console
.
info
(
"
[marqueeProps] get globalThis.value is:
"
+
JSON
.
stringify
(
globalThis
.
value
));
let
obj
=
JSON
.
parse
(
globalThis
.
value
.
dirPropLtr
);
console
.
info
(
"
[marqueeProps] get inspector value is:
"
+
JSON
.
stringify
(
obj
));
console
.
info
(
"
[marqueeProps] get inspector attrs value is:
"
+
JSON
.
stringify
(
obj
.
$attrs
));
expect
(
obj
.
$type
).
assertEqual
(
'
marquee
'
)
expect
(
obj
.
$attrs
.
id
).
assertEqual
(
'
dirPropLtr
'
)
expect
(
obj
.
$attrs
.
dir
).
assertEqual
(
'
ltr
'
)
done
();
});
/**
* @tc.number SUB_ACE_BASIC_COMPONENT_JS_API_0100
* @tc.name testmarqueeDirPropAuto
* @tc.desc ACE
*/
it
(
'
testmarqueeDirPropAuto
'
,
0
,
async
function
(
done
)
{
console
.
info
(
'
testmarqueeDirPropAuto START
'
);
console
.
info
(
"
[marqueeProps] get globalThis.value is:
"
+
JSON
.
stringify
(
globalThis
.
value
));
let
obj
=
JSON
.
parse
(
globalThis
.
value
.
dirPropAuto
);
console
.
info
(
"
[marqueeProps] get inspector value is:
"
+
JSON
.
stringify
(
obj
));
console
.
info
(
"
[marqueeProps] get inspector attrs value is:
"
+
JSON
.
stringify
(
obj
.
$attrs
));
expect
(
obj
.
$type
).
assertEqual
(
'
marquee
'
)
expect
(
obj
.
$attrs
.
id
).
assertEqual
(
'
dirPropAuto
'
)
expect
(
obj
.
$attrs
.
dir
).
assertEqual
(
'
auto
'
)
done
();
});
/**
* @tc.number SUB_ACE_BASIC_COMPONENT_JS_API_0100
* @tc.name testmarqueeDirPropNone
* @tc.desc ACE
*/
it
(
'
testmarqueeDirPropNone
'
,
0
,
async
function
(
done
)
{
console
.
info
(
'
testmarqueeDirPropNone START
'
);
console
.
info
(
"
[marqueeProps] get globalThis.value is:
"
+
JSON
.
stringify
(
globalThis
.
value
));
let
obj
=
JSON
.
parse
(
globalThis
.
value
.
dirPropNone
);
console
.
info
(
"
[marqueeProps] get inspector value is:
"
+
JSON
.
stringify
(
obj
));
console
.
info
(
"
[marqueeProps] get inspector attrs value is:
"
+
JSON
.
stringify
(
obj
.
$attrs
));
expect
(
obj
.
$type
).
assertEqual
(
'
marquee
'
)
expect
(
obj
.
$attrs
.
id
).
assertEqual
(
'
dirPropNone
'
)
expect
(
obj
.
$attrs
.
dir
).
assertEqual
(
'
auto
'
)
done
();
});
/**
* @tc.number SUB_ACE_BASIC_COMPONENT_JS_API_0100
* @tc.name testmarqueeForPropNull
* @tc.desc ACE
*/
it
(
'
testmarqueeForPropNull
'
,
0
,
async
function
(
done
)
{
console
.
info
(
'
testmarqueeForPropNull START
'
);
console
.
info
(
"
[marqueeProps] get globalThis.value is:
"
+
JSON
.
stringify
(
globalThis
.
value
));
let
obj
=
JSON
.
parse
(
globalThis
.
value
.
forPropNull
);
console
.
info
(
"
[marqueeProps] get inspector value is:
"
+
JSON
.
stringify
(
obj
));
console
.
info
(
"
[marqueeProps] get inspector attrs value is:
"
+
JSON
.
stringify
(
obj
.
$attrs
));
expect
(
obj
.
$type
).
assertEqual
(
'
marquee
'
)
expect
(
obj
.
$attrs
.
id
).
assertEqual
(
'
forPropNull
'
)
expect
(
obj
.
$attrs
.
for
).
assertEqual
(
undefined
)
console
.
info
(
"
[marqueeProps] get for value is:
"
+
JSON
.
stringify
(
obj
.
$attrs
.
for
));
done
();
});
/**
* @tc.number SUB_ACE_BASIC_COMPONENT_JS_API_0100
* @tc.name testmarqueeForPropOne
* @tc.desc ACE
*/
it
(
'
testmarqueeForPropOne
'
,
0
,
async
function
(
done
)
{
console
.
info
(
'
testmarqueeForPropOne START
'
);
console
.
info
(
"
[marqueeProps] get globalThis.value is:
"
+
JSON
.
stringify
(
globalThis
.
value
));
let
obj
=
JSON
.
parse
(
globalThis
.
value
.
forPropOne
);
console
.
info
(
"
[marqueeProps] get inspector value is:
"
+
JSON
.
stringify
(
obj
));
console
.
info
(
"
[marqueeProps] get inspector attrs value is:
"
+
JSON
.
stringify
(
obj
.
$attrs
));
expect
(
obj
.
$type
).
assertEqual
(
'
marquee
'
)
expect
(
obj
.
$attrs
.
id
).
assertEqual
(
'
forPropOne
'
)
expect
(
obj
.
$attrs
.
for
).
assertEqual
(
undefined
)
console
.
info
(
"
[marqueeProps] get for value is:
"
+
JSON
.
stringify
(
obj
.
$attrs
.
for
));
done
();
});
/**
* @tc.number SUB_ACE_BASIC_COMPONENT_JS_API_0100
* @tc.name testmarqueeForPropThree
* @tc.desc ACE
*/
it
(
'
testmarqueeForPropThree
'
,
0
,
async
function
(
done
)
{
console
.
info
(
'
testmarqueeForPropThree START
'
);
console
.
info
(
"
[marqueeProps] get globalThis.value is:
"
+
JSON
.
stringify
(
globalThis
.
value
));
let
obj
=
JSON
.
parse
(
globalThis
.
value
.
forPropThree
);
console
.
info
(
"
[marqueeProps] get inspector value is:
"
+
JSON
.
stringify
(
obj
));
console
.
info
(
"
[marqueeProps] get inspector attrs value is:
"
+
JSON
.
stringify
(
obj
.
$attrs
));
expect
(
obj
.
$type
).
assertEqual
(
'
marquee
'
)
expect
(
obj
.
$attrs
.
id
).
assertEqual
(
'
forPropThree
'
)
expect
(
obj
.
$attrs
.
for
).
assertEqual
(
undefined
)
console
.
info
(
"
[marqueeProps] get for value is:
"
+
JSON
.
stringify
(
obj
.
$attrs
.
for
));
done
();
});
/**
* @tc.number SUB_ACE_BASIC_COMPONENT_JS_API_0100
* @tc.name testmarqueeIfPropTrue
* @tc.desc ACE
*/
it
(
'
testmarqueeIfPropTrue
'
,
0
,
async
function
(
done
)
{
console
.
info
(
'
testmarqueeIfPropTrue START
'
);
console
.
info
(
"
[marqueeProps] get globalThis.value is:
"
+
JSON
.
stringify
(
globalThis
.
value
));
let
obj
=
JSON
.
parse
(
globalThis
.
value
.
ifPropTrue
);
console
.
info
(
"
[marqueeProps] get inspector value is:
"
+
JSON
.
stringify
(
obj
));
console
.
info
(
"
[marqueeProps] get inspector attrs value is:
"
+
JSON
.
stringify
(
obj
.
$attrs
));
expect
(
obj
.
$type
).
assertEqual
(
'
marquee
'
)
expect
(
obj
.
$attrs
.
id
).
assertEqual
(
'
ifPropTrue
'
)
expect
(
obj
.
$attrs
.
if
).
assertEqual
(
undefined
)
console
.
info
(
"
[marqueeProps] get for value is:
"
+
JSON
.
stringify
(
obj
.
$attrs
.
if
));
done
();
});
/**
* @tc.number SUB_ACE_BASIC_COMPONENT_JS_API_0100
* @tc.name testmarqueeIfPropFalse
* @tc.desc ACE
*/
// it('testmarqueeIfPropFalse', 0, async function (done) {
// console.info('testmarqueeIfPropFalse START');
// console.info("[marqueeProps] get globalThis.value is: " + JSON.stringify(globalThis.value));
//
// let obj = JSON.parse(globalThis.value.ifPropFalse);
// console.info("[marqueeProps] get inspector value is: " + JSON.stringify(obj));
// console.info("[marqueeProps] get inspector attrs value is: " + JSON.stringify(obj.$attrs));
//
// expect(obj.$type).assertEqual('marquee')
// expect(obj.$attrs.id).assertEqual('ifPropFalse')
// expect(obj.$attrs.if).assertEqual(false)
// done();
// });
/**
* @tc.number SUB_ACE_BASIC_COMPONENT_JS_API_0100
* @tc.name testmarqueeIfPropNone
* @tc.desc ACE
*/
// it('testmarqueeIfPropNone', 0, async function (done) {
// console.info('testmarqueeIfPropNone START');
// console.info("[marqueeProps] get globalThis.value is: " + JSON.stringify(globalThis.value));
//
// let obj = JSON.parse(globalThis.value.ifPropNone);
// console.info("[marqueeProps] get inspector value is: " + JSON.stringify(obj));
// console.info("[marqueeProps] get inspector attrs value is: " + JSON.stringify(obj.$attrs));
//
// expect(obj.$type).assertEqual('marquee')
// expect(obj.$attrs.id).assertEqual('ifPropNone')
// expect(obj.$attrs.if).assertEqual(false)
// done();
// });
/**
* @tc.number SUB_ACE_BASIC_COMPONENT_JS_API_0100
* @tc.name testmarqueeShowPropTrue
* @tc.desc ACE
*/
it
(
'
testmarqueeShowPropTrue
'
,
0
,
async
function
(
done
)
{
console
.
info
(
'
testmarqueeShowPropTrue START
'
);
console
.
info
(
"
[marqueeProps] get globalThis.value is:
"
+
JSON
.
stringify
(
globalThis
.
value
));
let
obj
=
JSON
.
parse
(
globalThis
.
value
.
showPropTrue
);
console
.
info
(
"
[marqueeProps] get inspector value is:
"
+
JSON
.
stringify
(
obj
));
console
.
info
(
"
[marqueeProps] get inspector attrs value is:
"
+
JSON
.
stringify
(
obj
.
$attrs
));
expect
(
obj
.
$type
).
assertEqual
(
'
marquee
'
)
expect
(
obj
.
$attrs
.
id
).
assertEqual
(
'
showPropTrue
'
)
expect
(
obj
.
$attrs
.
show
).
assertEqual
(
'
true
'
)
console
.
info
(
"
[marqueeProps] get show value is:
"
+
JSON
.
stringify
(
obj
.
$attrs
.
show
));
done
();
});
/**
* @tc.number SUB_ACE_BASIC_COMPONENT_JS_API_0100
* @tc.name testmarqueeShowPropFalse
* @tc.desc ACE
*/
it
(
'
testmarqueeShowPropFalse
'
,
0
,
async
function
(
done
)
{
console
.
info
(
'
testmarqueeShowPropFalse START
'
);
console
.
info
(
"
[marqueeProps] get globalThis.value is:
"
+
JSON
.
stringify
(
globalThis
.
value
));
let
obj
=
JSON
.
parse
(
globalThis
.
value
.
showPropFalse
);
console
.
info
(
"
[marqueeProps] get inspector value is:
"
+
JSON
.
stringify
(
obj
));
console
.
info
(
"
[marqueeProps] get inspector attrs value is:
"
+
JSON
.
stringify
(
obj
.
$attrs
));
expect
(
obj
.
$type
).
assertEqual
(
'
marquee
'
)
expect
(
obj
.
$attrs
.
id
).
assertEqual
(
'
showPropFalse
'
)
expect
(
obj
.
$attrs
.
show
).
assertEqual
(
'
false
'
)
console
.
info
(
"
[marqueeProps] get show value is:
"
+
JSON
.
stringify
(
obj
.
$attrs
.
show
));
done
();
});
/**
* @tc.number SUB_ACE_BASIC_COMPONENT_JS_API_0100
* @tc.name testmarqueeShowPropNone
* @tc.desc ACE
*/
it
(
'
testmarqueeShowPropNone
'
,
0
,
async
function
(
done
)
{
console
.
info
(
'
testmarqueeShowPropNone START
'
);
console
.
info
(
"
[marqueeProps] get globalThis.value is:
"
+
JSON
.
stringify
(
globalThis
.
value
));
let
obj
=
JSON
.
parse
(
globalThis
.
value
.
showPropNone
);
console
.
info
(
"
[marqueeProps] get inspector value is:
"
+
JSON
.
stringify
(
obj
));
console
.
info
(
"
[marqueeProps] get inspector attrs value is:
"
+
JSON
.
stringify
(
obj
.
$attrs
));
expect
(
obj
.
$type
).
assertEqual
(
'
marquee
'
)
expect
(
obj
.
$attrs
.
id
).
assertEqual
(
'
showPropNone
'
)
expect
(
obj
.
$attrs
.
show
).
assertEqual
(
"
false
"
)
console
.
info
(
"
[marqueeProps] get show value is:
"
+
JSON
.
stringify
(
obj
.
$attrs
.
show
));
done
();
});
/**
* @tc.number SUB_ACE_BASIC_COMPONENT_JS_API_0100
* @tc.name testmarqueeShowPropNone
* @tc.desc ACE
*/
it
(
'
testmarqueeScrollamountPropNone
'
,
0
,
async
function
(
done
)
{
console
.
info
(
'
testmarqueeXsPropNone START
'
);
console
.
info
(
"
[marqueeProps] get globalThis.value is:
"
+
JSON
.
stringify
(
globalThis
.
value
));
let
obj
=
JSON
.
parse
(
globalThis
.
value
.
typeScrollamountNull
);
console
.
info
(
"
[marqueeProps] get inspector value is:
"
+
JSON
.
stringify
(
obj
));
console
.
info
(
"
[marqueeProps] get inspector attrs value is:
"
+
JSON
.
stringify
(
obj
.
$attrs
));
expect
(
obj
.
$type
).
assertEqual
(
'
marquee
'
)
expect
(
obj
.
$attrs
.
id
).
assertEqual
(
'
typeScrollamountNull
'
)
expect
(
obj
.
$attrs
.
scrollamount
).
assertEqual
(
"
6
"
)
console
.
info
(
"
[marqueeProps] get scrollamount value is:
"
+
JSON
.
stringify
(
obj
.
$attrs
.
scrollamount
));
done
();
});
/**
* @tc.number SUB_ACE_BASIC_COMPONENT_JS_API_0100
* @tc.name testmarqueeShowPropNone
* @tc.desc ACE
*/
it
(
'
testmarqueeScrollamountProp10
'
,
0
,
async
function
(
done
)
{
console
.
info
(
'
testmarqueeXsPropNone START
'
);
console
.
info
(
"
[marqueeProps] get globalThis.value is:
"
+
JSON
.
stringify
(
globalThis
.
value
));
let
obj
=
JSON
.
parse
(
globalThis
.
value
.
typeScrollamount10
);
console
.
info
(
"
[marqueeProps] get inspector value is:
"
+
JSON
.
stringify
(
obj
));
console
.
info
(
"
[marqueeProps] get inspector attrs value is:
"
+
JSON
.
stringify
(
obj
.
$attrs
));
expect
(
obj
.
$type
).
assertEqual
(
'
marquee
'
)
expect
(
obj
.
$attrs
.
id
).
assertEqual
(
'
typeScrollamount10
'
)
expect
(
obj
.
$attrs
.
scrollamount
).
assertEqual
(
'
10
'
)
console
.
info
(
"
[marqueeProps] get scrollamount value is:
"
+
JSON
.
stringify
(
obj
.
$attrs
.
scrollamount
));
done
();
});
/**
* @tc.number SUB_ACE_BASIC_COMPONENT_JS_API_0100
* @tc.name testmarqueeShowPropNone
* @tc.desc ACE
*/
it
(
'
testmarqueeScrollamountProp20
'
,
0
,
async
function
(
done
)
{
console
.
info
(
'
testmarqueeXsPropNone START
'
);
console
.
info
(
"
[marqueeProps] get globalThis.value is:
"
+
JSON
.
stringify
(
globalThis
.
value
));
let
obj
=
JSON
.
parse
(
globalThis
.
value
.
typeScrollamount20
);
console
.
info
(
"
[marqueeProps] get inspector value is:
"
+
JSON
.
stringify
(
obj
));
console
.
info
(
"
[marqueeProps] get inspector attrs value is:
"
+
JSON
.
stringify
(
obj
.
$attrs
));
expect
(
obj
.
$type
).
assertEqual
(
'
marquee
'
)
expect
(
obj
.
$attrs
.
id
).
assertEqual
(
'
typeScrollamount20
'
)
expect
(
obj
.
$attrs
.
scrollamount
).
assertEqual
(
'
20
'
)
console
.
info
(
"
[marqueeProps] get scrollamount value is:
"
+
JSON
.
stringify
(
obj
.
$attrs
.
scrollamount
));
done
();
});
/**
* @tc.number SUB_ACE_BASIC_COMPONENT_JS_API_0100
* @tc.name testmarqueeShowPropNone
* @tc.desc ACE
*/
it
(
'
testmarqueeLoopPropNull
'
,
0
,
async
function
(
done
)
{
console
.
info
(
'
testmarqueeXsPropObject START
'
);
console
.
info
(
"
[marqueeProps] get globalThis.value is:
"
+
JSON
.
stringify
(
globalThis
.
value
));
let
obj
=
JSON
.
parse
(
globalThis
.
value
.
typeLoopNull
);
console
.
info
(
"
[marqueeProps] get inspector value is:
"
+
JSON
.
stringify
(
obj
));
console
.
info
(
"
[marqueeProps] get inspector attrs value is:
"
+
JSON
.
stringify
(
obj
.
$attrs
));
expect
(
obj
.
$type
).
assertEqual
(
'
marquee
'
)
expect
(
obj
.
$attrs
.
id
).
assertEqual
(
'
typeLoopNull
'
)
expect
(
obj
.
$attrs
.
loop
).
assertEqual
(
'
-1
'
)
console
.
info
(
"
[marqueeProps] get loop value is:
"
+
JSON
.
stringify
(
obj
.
$attrs
.
loop
));
done
();
});
/**
* @tc.number SUB_ACE_BASIC_COMPONENT_JS_API_0100
* @tc.name testmarqueeShowPropNone
* @tc.desc ACE
*/
it
(
'
testmarqueeLoopProp1
'
,
0
,
async
function
(
done
)
{
console
.
info
(
'
testmarqueeXsPropObject START
'
);
console
.
info
(
"
[marqueeProps] get globalThis.value is:
"
+
JSON
.
stringify
(
globalThis
.
value
));
let
obj
=
JSON
.
parse
(
globalThis
.
value
.
typeLoop1
);
console
.
info
(
"
[marqueeProps] get inspector value is:
"
+
JSON
.
stringify
(
obj
));
console
.
info
(
"
[marqueeProps] get inspector attrs value is:
"
+
JSON
.
stringify
(
obj
.
$attrs
));
expect
(
obj
.
$type
).
assertEqual
(
'
marquee
'
)
expect
(
obj
.
$attrs
.
id
).
assertEqual
(
'
typeLoop1
'
)
expect
(
obj
.
$attrs
.
loop
).
assertEqual
(
"
-1
"
)
console
.
info
(
"
[marqueeProps] get loop value is:
"
+
JSON
.
stringify
(
obj
.
$attrs
.
loop
));
done
();
});
/**
* @tc.number SUB_ACE_BASIC_COMPONENT_JS_API_0100
* @tc.name testmarqueeShowPropNone
* @tc.desc ACE
*/
it
(
'
testmarqueeLoopProp3
'
,
0
,
async
function
(
done
)
{
console
.
info
(
'
testmarqueeXsPropObject START
'
);
console
.
info
(
"
[marqueeProps] get globalThis.value is:
"
+
JSON
.
stringify
(
globalThis
.
value
));
let
obj
=
JSON
.
parse
(
globalThis
.
value
.
typeLoop3
);
console
.
info
(
"
[marqueeProps] get inspector value is:
"
+
JSON
.
stringify
(
obj
));
console
.
info
(
"
[marqueeProps] get inspector attrs value is:
"
+
JSON
.
stringify
(
obj
.
$attrs
));
expect
(
obj
.
$type
).
assertEqual
(
'
marquee
'
)
expect
(
obj
.
$attrs
.
id
).
assertEqual
(
'
typeLoop3
'
)
expect
(
obj
.
$attrs
.
loop
).
assertEqual
(
"
3
"
)
console
.
info
(
"
[marqueeProps] get loop value is:
"
+
JSON
.
stringify
(
obj
.
$attrs
.
loop
));
done
();
});
/**
* @tc.number SUB_ACE_BASIC_COMPONENT_JS_API_0100
* @tc.name testmarqueeShowPropNone
* @tc.desc ACE
*/
it
(
'
testmarqueeDirectionPropNull
'
,
0
,
async
function
(
done
)
{
console
.
info
(
'
testmarqueeXsPropObject START
'
);
console
.
info
(
"
[marqueeProps] get globalThis.value is:
"
+
JSON
.
stringify
(
globalThis
.
value
));
let
obj
=
JSON
.
parse
(
globalThis
.
value
.
typeDirectionNull
);
console
.
info
(
"
[marqueeProps] get inspector value is:
"
+
JSON
.
stringify
(
obj
));
console
.
info
(
"
[marqueeProps] get inspector attrs value is:
"
+
JSON
.
stringify
(
obj
.
$attrs
));
expect
(
obj
.
$type
).
assertEqual
(
'
marquee
'
)
expect
(
obj
.
$attrs
.
id
).
assertEqual
(
'
typeDirectionNull
'
)
expect
(
obj
.
$attrs
.
direction
).
assertEqual
(
"
left
"
)
console
.
info
(
"
[marqueeProps] get direction value is:
"
+
JSON
.
stringify
(
obj
.
$attrs
.
direction
));
done
();
});
/**
* @tc.number SUB_ACE_BASIC_COMPONENT_JS_API_0100
* @tc.name testmarqueeShowPropNone
* @tc.desc ACE
*/
it
(
'
testmarqueeDirectionPropRight
'
,
0
,
async
function
(
done
)
{
console
.
info
(
'
testmarqueeXsPropObject START
'
);
console
.
info
(
"
[marqueeProps] get globalThis.value is:
"
+
JSON
.
stringify
(
globalThis
.
value
));
let
obj
=
JSON
.
parse
(
globalThis
.
value
.
typeDirectionRight
);
console
.
info
(
"
[marqueeProps] get inspector value is:
"
+
JSON
.
stringify
(
obj
));
console
.
info
(
"
[marqueeProps] get inspector attrs value is:
"
+
JSON
.
stringify
(
obj
.
$attrs
));
expect
(
obj
.
$type
).
assertEqual
(
'
marquee
'
)
expect
(
obj
.
$attrs
.
id
).
assertEqual
(
'
typeDirectionRight
'
)
expect
(
obj
.
$attrs
.
direction
).
assertEqual
(
"
right
"
)
console
.
info
(
"
[marqueeProps] get direction value is:
"
+
JSON
.
stringify
(
obj
.
$attrs
.
direction
));
done
();
});
/**
* @tc.number SUB_ACE_BASIC_COMPONENT_JS_API_0100
* @tc.name testmarqueeShowPropNone
* @tc.desc ACE
*/
it
(
'
testmarqueeDirectionPropLeft
'
,
0
,
async
function
(
done
)
{
console
.
info
(
'
testmarqueeXsPropObject START
'
);
console
.
info
(
"
[marqueeProps] get globalThis.value is:
"
+
JSON
.
stringify
(
globalThis
.
value
));
let
obj
=
JSON
.
parse
(
globalThis
.
value
.
typeDirectionLeft
);
console
.
info
(
"
[marqueeProps] get inspector value is:
"
+
JSON
.
stringify
(
obj
));
console
.
info
(
"
[marqueeProps] get inspector attrs value is:
"
+
JSON
.
stringify
(
obj
.
$attrs
));
expect
(
obj
.
$type
).
assertEqual
(
'
marquee
'
)
expect
(
obj
.
$attrs
.
id
).
assertEqual
(
'
typeDirectionLeft
'
)
expect
(
obj
.
$attrs
.
direction
).
assertEqual
(
"
left
"
)
console
.
info
(
"
[marqueeProps] get direction value is:
"
+
JSON
.
stringify
(
obj
.
$attrs
.
direction
));
done
();
});
});
编辑
预览
Markdown
is supported
0%
请重试
或
添加新附件
.
添加附件
取消
You are about to add
0
people
to the discussion. Proceed with caution.
先完成此消息的编辑!
取消
想要评论请
注册
或
登录