!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" "type": "ERROR"
}, },
"notConcurrent": { "notConcurrent": {
"message": "The struct 'IndexDecorator' use invalid decorator.", "message": "The struct 'NotConcurrentIndexDecorator' use invalid decorator.",
"type": "WARN" "type": "WARN"
}, },
"notConcurrentFun": { "notConcurrentFun": {
@ -200,7 +200,7 @@
"type": "WARN" "type": "WARN"
}, },
"vaildateDecorator": { "vaildateDecorator": {
"message": "The struct 'Index' use invalid decorator.", "message": "The struct 'VaildateDecoratorIndex' use invalid decorator.",
"type": "WARN" "type": "WARN"
}, },
"state": { "state": {

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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