update ut for validate

Signed-off-by: s00912778 <shijiakai2@huawei.com>
Change-Id: I47c44e5bdad55ab545efbe290879ab19dbc64805
This commit is contained in:
s00912778 2024-10-22 11:10:56 +08:00
parent b997feb6a6
commit c20cddb274
9 changed files with 31 additions and 23 deletions

View File

@ -268,10 +268,16 @@
"message": "Unknown resource name 'tari'.",
"type": "ERROR"
},
"NotSupportResrcType": {
"message": "The resource type font is not supported.",
"type": "ERROR"
},
"NotSupportResrcType": [
{
"message": "Unknown resource type 'string'.",
"type": "ERROR"
},
{
"message": "The input parameter is not supported.",
"type": "ERROR"
}
],
"NoSrc": {
"message": "No such 'test.png' resource in current module.",
"type": "ERROR"

View File

@ -1,6 +1,6 @@
let storage = LocalStorage.GetShared();
let storage = LocalStorage.getShared();
class ClassA {
class EntryDecoParamClassA {
public id: number = 1;
public type: number = 2;
public a: string = "aaa";
@ -13,7 +13,7 @@ class ClassA {
@Component
struct LocalStorageComponent {
@LocalStorageLink("storageSimpleProp") simpleVarName: number = 0;
@LocalStorageProp("storageObjectProp") objectName: ClassA = new ClassA("x");
@LocalStorageProp("storageObjectProp") objectName: EntryDecoParamClassA = new EntryDecoParamClassA("x");
build() {
Column() {
Text(this.objectName.a)

View File

@ -6,7 +6,7 @@
@Entry
@Component
struct summerpockets {
build(){
}
struct ExtendOneChildSummerpockets {
build(){
}
}

View File

@ -1,6 +1,6 @@
@Entry
@Component
struct paworks {
struct NoSrcPaworks {
build(){
Column(){

View File

@ -1,10 +1,11 @@
@Entry
@Component
struct paworks {
struct NotSupportResrcTypePaworks {
build(){
Column(){
Image($r('app.font.song'))
Image($r('app.string.module_desc'))
Image($r('app.font'))
}
}
}

View File

@ -1,10 +1,11 @@
@Styles function kiminona (value: number) {
.width(value)
}
@Entry
@Component
struct summerpockets {
build(){
}
struct StylesNoParamSummerpockets {
@Styles kiminona (value: number) {
.width(value)
}
build(){
}
}

View File

@ -1,6 +1,6 @@
@Entry
@Component
struct paworks {
struct UnknownSrcPaworks {
build(){
Column(){

View File

@ -1,6 +1,6 @@
@Entry
@Component
struct paworks {
struct UnknownSrcNamePaworks {
build(){
Column(){

View File

@ -1,6 +1,6 @@
@Entry
@Component
struct paworks {
struct UnknownSrcTypePaworks {
build(){
Column(){