!3759 Update test cases

Merge pull request !3759 from yuyi/test
This commit is contained in:
openharmony_ci 2024-09-14 02:57:51 +00:00 committed by Gitee
commit 6f2eb3ef92
No known key found for this signature in database
GPG Key ID: 173E9B9CA92EEF8F
19 changed files with 44 additions and 36 deletions

View File

@ -184,7 +184,7 @@
"type": "ERROR"
},
"notConcurrent": {
"message": "The struct 'IndexDecorator' use invalid decorator.",
"message": "The struct 'NotConcurrentIndexDecorator' use invalid decorator.",
"type": "WARN"
},
"notConcurrentFun": {
@ -200,7 +200,7 @@
"type": "WARN"
},
"vaildateDecorator": {
"message": "The struct 'Index' use invalid decorator.",
"message": "The struct 'VaildateDecoratorIndex' use invalid decorator.",
"type": "WARN"
},
"state": {

View File

@ -16,7 +16,7 @@
exports.source = `
@Entry
@Component
struct HomeComponent {
struct MonitorHomeComponent {
build() {
Column() {}

View File

@ -16,7 +16,7 @@
exports.source = `
@Entry
@Component
struct summerpockets {
struct ExceededEntrySummerpockets {
build(){
}
@ -24,7 +24,7 @@ struct summerpockets {
@Entry
@Component
struct ever17 {
struct ExceededEntryEver17 {
build(){
}

View File

@ -17,7 +17,7 @@ exports.source = `
@Entry
@Preview
@Component
struct summerpockets {
struct ExceededPreviewSummerpockets {
build(){
}
@ -25,7 +25,7 @@ struct summerpockets {
@Preview
@Component
struct ever17 {
struct ExceededPreviewEver17 {
build(){
}

View File

@ -16,7 +16,7 @@
exports.source = `
@Entry
@Component
struct summerpockets {
struct MethodNoExtendSummerpockets {
@Extend
build(){

View File

@ -15,13 +15,13 @@
exports.source = `
@Component
function nekopara () {
class nekopara {
}
@Entry
@Component
struct summerpockets {
struct NoStructDecoSummerpockets {
build(){
}
}

View File

@ -15,7 +15,7 @@
exports.source = `
@Component
struct summerpockets {
struct OneEntrySummerpockets {
build(){
}
}

View File

@ -14,16 +14,16 @@
*/
exports.source = `
class bsd {
@Builder
bsd() {
class OnlyStructDecoBsd {
@Builder
OnlyStructDecoBsd() {
}
}
@Entry
@Component
struct summerpockets {
struct OnlyStructDecoSummerpockets {
build(){
}
}

View File

@ -14,9 +14,11 @@
*/
exports.source = `
@Entry
@Component
@Concurrent
struct StylesDuplicate{
@State @opacity: string = 'Hello Word'
@State message:string = 'Hello Word'
build(){
Row(){
Column(){

View File

@ -14,8 +14,9 @@
*/
exports.source = `
@Entry
@Concurrent
struct IndexDecorator{
struct NotConcurrentIndexDecorator{
build(){
Column(){
Text('hello')

View File

@ -16,9 +16,8 @@
exports.source = `
@Entry
@Component
struct StylesDuplicate{
@State @opacity: string = 'Hello Word'
@Concurrent conFun()
struct notConcurrentFun{
@Concurrent conFun(){}
build(){
Row(){
Column(){
@ -28,9 +27,7 @@ struct StylesDuplicate{
.height('100%')
}
}
conFun(){
}
function conFun() {
throw new Error('Function not implemented.')
throw new Error('Function not implemented.')
}
`

View File

@ -14,6 +14,8 @@
*/
exports.source = `
@Entry
@Component
@IndexDecorator
struct IndexDecorator{
build(){

View File

@ -14,6 +14,7 @@
*/
exports.source = `
@Entry
@Component
struct Button{
@State message:string = 'Hello Word'

View File

@ -25,7 +25,7 @@ struct v2MemberDecorator {
@Computed
bb() {}
@Monitor("user") get value() {}
@Monitor("user") get value(){ return "" }
build() {
Column()

View File

@ -14,8 +14,9 @@
*/
exports.source = `
@Entry
@Concurrent
struct Index{
struct VaildateDecoratorIndex{
build(){
Column(){
Text('hello')

View File

@ -16,7 +16,7 @@
exports.source = `
@Entry
@Component
struct HomeComponent {
struct ValidateAccessQualifierHomeComponent {
@State message: string = "hello"
build() {

View File

@ -14,9 +14,11 @@
*/
exports.source = `
declare const CustomMethod: PropertyDecorator;
@Entry
@Component
struct HomeComponent {
struct ValidateDifferentMethodHomeComponent {
build() {
Column() {}
}
@ -44,7 +46,7 @@ function testFunction3() {
}
@Component
struct TestComponent {
struct ValidateDifferentMethodTestComponent {
build() {
}
@ -63,7 +65,7 @@ struct TestComponent {
}
@ComponentV2
struct TestComponent1 {
struct ValidateDifferentMethodTestComponent1 {
build() {
}

View File

@ -14,22 +14,24 @@
*/
exports.source = `
declare const CustomMethod: PropertyDecorator;
@Entry
@Component
struct HomeComponent {
struct ValidateDuplicateMethodHomeComponent {
build() {
Column() {}
}
}
@Builder
@Builder
function testFunction1() {
function testFunction4() {
Text("testFunction1")
}
@CustomMethod
@CustomMethod
function testFunction2() {
function testFunction5() {
console.log("testFunction2")
}

View File

@ -16,8 +16,8 @@
exports.source = `
@Entry
@Component
struct HomeComponent {
@Trace value: string
struct ValidateTrackObservedHomeComponent {
@Trace value: string = '';
build() {
Column() {
Text("hello")
@ -35,11 +35,11 @@ struct child {
}
class A {
@Trace value: string
@Trace value: string = '';
}
@ObservedV2
class B {
@Trace value: string
@Trace value: string = '';
}
`;