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: I47c44e5bdad55ab545efbe290879ab19dbc64805
This commit is contained in:
parent
b997feb6a6
commit
c20cddb274
@ -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"
|
||||
|
@ -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)
|
||||
|
@ -6,7 +6,7 @@
|
||||
|
||||
@Entry
|
||||
@Component
|
||||
struct summerpockets {
|
||||
build(){
|
||||
}
|
||||
struct ExtendOneChildSummerpockets {
|
||||
build(){
|
||||
}
|
||||
}
|
@ -1,6 +1,6 @@
|
||||
@Entry
|
||||
@Component
|
||||
struct paworks {
|
||||
struct NoSrcPaworks {
|
||||
|
||||
build(){
|
||||
Column(){
|
||||
|
@ -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'))
|
||||
}
|
||||
}
|
||||
}
|
@ -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(){
|
||||
}
|
||||
}
|
@ -1,6 +1,6 @@
|
||||
@Entry
|
||||
@Component
|
||||
struct paworks {
|
||||
struct UnknownSrcPaworks {
|
||||
|
||||
build(){
|
||||
Column(){
|
||||
|
@ -1,6 +1,6 @@
|
||||
@Entry
|
||||
@Component
|
||||
struct paworks {
|
||||
struct UnknownSrcNamePaworks {
|
||||
|
||||
build(){
|
||||
Column(){
|
||||
|
@ -1,6 +1,6 @@
|
||||
@Entry
|
||||
@Component
|
||||
struct paworks {
|
||||
struct UnknownSrcTypePaworks {
|
||||
|
||||
build(){
|
||||
Column(){
|
||||
|
Loading…
Reference in New Issue
Block a user