mirror of
https://gitee.com/openharmony/developtools_ace_ets2bundle
synced 2024-12-04 07:22:30 +00:00
update ut for validate Signed-off-by: s00912778 <shijiakai2@huawei.com> Change-Id: I2d762340dc8a6ed0ae4c89eca753ba0e6416937a
This commit is contained in:
parent
e2cec99dca
commit
b997feb6a6
@ -195,10 +195,7 @@
|
||||
"message": "The module name 'Button' can not be the same as the inner component name.",
|
||||
"type": "ERROR"
|
||||
},
|
||||
"notComponent": {
|
||||
"message": "Decorator '@Component', '@ComponentV2', or '@CustomDialog' is missing for struct 'EntryComponent'.",
|
||||
"type": "ERROR"
|
||||
},
|
||||
"notComponent": [],
|
||||
"notConcurrent": {
|
||||
"message": "The struct 'NotConcurrentIndexDecorator' use invalid decorator.",
|
||||
"type": "WARN"
|
||||
|
@ -19,7 +19,7 @@ struct TestV1Parent {
|
||||
@StorageProp("b") storage_prop_string_value: string = "hello"
|
||||
@LocalStorageLink("c") func_value1: Function = () => {}
|
||||
@LocalStorageProp("d") func_value2: () => void = () => {}
|
||||
|
||||
|
||||
build() {
|
||||
Column() {
|
||||
TestV2Child({
|
||||
|
@ -80,7 +80,7 @@ struct TestV1Parent {
|
||||
@StorageProp("b") storage_prop_value: A = new A("hello")
|
||||
@LocalStorageLink("c") local_storage_link_value: A = new A("hello")
|
||||
@LocalStorageProp("c") local_storage_prop_value: A = new A("hello")
|
||||
|
||||
|
||||
build() {
|
||||
Column() {
|
||||
TestV2Child({
|
||||
@ -114,6 +114,6 @@ struct TestV2Child {
|
||||
@Event local_storage_prop_value: A = new A("hello")
|
||||
|
||||
build() {
|
||||
|
||||
|
||||
}
|
||||
}
|
||||
}
|
@ -9,7 +9,7 @@ struct MonitorHomeComponent {
|
||||
|
||||
class Test1 {
|
||||
@Monitor("aa") onChange() {
|
||||
|
||||
|
||||
}
|
||||
}
|
||||
declare const Custom: () => MethodDecorator
|
||||
|
@ -5,4 +5,4 @@ struct MethodNoExtendSummerpockets {
|
||||
build(){
|
||||
|
||||
}
|
||||
}
|
||||
}
|
@ -8,4 +8,4 @@ class nekopara {
|
||||
struct NoStructDecoSummerpockets {
|
||||
build(){
|
||||
}
|
||||
}
|
||||
}
|
@ -9,4 +9,4 @@ struct navel {
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
@ -1,5 +1,5 @@
|
||||
@Component
|
||||
struct OneEntrySummerpockets {
|
||||
build(){
|
||||
}
|
||||
build(){
|
||||
}
|
||||
}
|
@ -2,7 +2,7 @@ class OnlyStructDecoBsd {
|
||||
@Builder
|
||||
OnlyStructDecoBsd() {
|
||||
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
@Entry
|
||||
@ -10,4 +10,4 @@ class OnlyStructDecoBsd {
|
||||
struct OnlyStructDecoSummerpockets {
|
||||
build(){
|
||||
}
|
||||
}
|
||||
}
|
@ -1,3 +1,4 @@
|
||||
@Entry
|
||||
struct EntryComponent{
|
||||
build(){
|
||||
Column(){
|
||||
|
@ -7,4 +7,4 @@ struct NotConcurrentIndexDecorator{
|
||||
}
|
||||
.margin(10)
|
||||
}
|
||||
}
|
||||
}
|
||||
|
@ -13,4 +13,4 @@ struct notConcurrentFun{
|
||||
}
|
||||
function conFun() {
|
||||
throw new Error('Function not implemented.')
|
||||
}
|
||||
}
|
@ -8,4 +8,4 @@ struct IndexDecorator{
|
||||
}
|
||||
.margin(10)
|
||||
}
|
||||
}
|
||||
}
|
@ -13,7 +13,7 @@ struct v1DecoratorInComponentV2 {
|
||||
@LocalStorageLink("b") localStorageLink_value: string = "hello"
|
||||
@LocalStorageProp("b") localStorageProp_value: string = "hello"
|
||||
@ObjectLink objectLink_value: AA
|
||||
|
||||
|
||||
aa() {}
|
||||
|
||||
build() {
|
||||
|
@ -14,4 +14,4 @@ struct v2MemberDecorator {
|
||||
build() {
|
||||
Column()
|
||||
}
|
||||
}
|
||||
}
|
@ -1,4 +1,4 @@
|
||||
declare const CustomMethod: PropertyDecorator;
|
||||
// declare const CustomMethod: PropertyDecorator;
|
||||
|
||||
@Entry
|
||||
@Component
|
||||
@ -65,4 +65,4 @@ struct TestComponent1 {
|
||||
get fullName() {
|
||||
return "hello"
|
||||
}
|
||||
}
|
||||
}
|
Loading…
Reference in New Issue
Block a user