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: I22b5e813b0a9ad73bd0e31669fe9da1c6120faf6
This commit is contained in:
parent
f563288ff7
commit
bc4ceb2c94
@ -74,7 +74,7 @@
|
||||
"type": "ERROR"
|
||||
},
|
||||
"validateBuildMethodCount": {
|
||||
"message": "struct 'Index' must be at least or at most one 'build' method.Solutions:>A structurally modified page must have at least one and no more than one'build' method.",
|
||||
"message": "struct 'ValidateBuildMethodCountIndex' must be at least or at most one 'build' method.Solutions:>A structurally modified page must have at least one and no more than one'build' method.",
|
||||
"type": "ERROR"
|
||||
},
|
||||
"validateHasController": {
|
||||
|
@ -1,12 +1,11 @@
|
||||
// @ts-nocheck
|
||||
@Entry
|
||||
@Component
|
||||
struct Index {
|
||||
@Styles styleComp(color) {
|
||||
struct StylesParamChackIndex {
|
||||
@Styles styleComp(color: string) {
|
||||
.backgroundColor(color)
|
||||
}
|
||||
build() {
|
||||
Text('Hello')
|
||||
.styleComp('red')
|
||||
.styleComp('red')
|
||||
}
|
||||
}
|
@ -1,8 +1,7 @@
|
||||
// @ts-nocheck
|
||||
@Entry
|
||||
@Component
|
||||
struct Index {
|
||||
build(a) {
|
||||
struct ProcessComponentMethodIndex {
|
||||
build(a:string) {
|
||||
Row(){}
|
||||
}
|
||||
}
|
||||
}
|
@ -1,14 +1,13 @@
|
||||
class TestCase {
|
||||
private name: string;
|
||||
constructor(name) {
|
||||
constructor(name: string) {
|
||||
this.name = name;
|
||||
}
|
||||
}
|
||||
// @ts-nocheck
|
||||
}
|
||||
@Entry
|
||||
@Component
|
||||
struct Index extends TestCase{
|
||||
struct UpdateHeritageClausesIndex extends TestCase{
|
||||
build() {
|
||||
Row(){}
|
||||
}
|
||||
}
|
||||
}
|
@ -1,4 +1,4 @@
|
||||
@Entry
|
||||
@Component
|
||||
struct Index {
|
||||
struct ValidateBuildMethodCountIndex {
|
||||
}
|
@ -1,8 +1,8 @@
|
||||
@Entry
|
||||
@Component
|
||||
struct Index {
|
||||
@State static message: string = 'Hello';
|
||||
struct ValidateDecoratorsIndex {
|
||||
@State static message: string = 'Hello';
|
||||
build() {
|
||||
Row() {}
|
||||
}
|
||||
}
|
||||
}
|
@ -11,4 +11,4 @@ struct CustomDialogUser {
|
||||
build() {
|
||||
Row() {}
|
||||
}
|
||||
}
|
||||
}
|
Loading…
Reference in New Issue
Block a user