mirror of
https://github.com/openharmony/developtools_ace-ets2bundle.git
synced 2026-07-19 16:43:34 -04:00
update ut. Signed-off-by: lihong <lihong67@huawei.com> Change-Id: I58cb27b9222f35f4805e99a6f8ca3a7403ab7af8
This commit is contained in:
@@ -94,9 +94,7 @@ struct CustomContainerUser {
|
||||
}
|
||||
`
|
||||
exports.expectResult =
|
||||
`"use strict";
|
||||
Object.defineProperty(exports, "__esModule", { value: true });
|
||||
const TestComponent_1 = require("./test/pages/TestComponent");
|
||||
`import { CustomContainerExport } from './test/pages/TestComponent';
|
||||
class CustomContainer extends View {
|
||||
constructor(compilerAssignedUniqueChildId, parent, params) {
|
||||
super(compilerAssignedUniqueChildId, parent);
|
||||
@@ -193,7 +191,7 @@ class CustomContainerUser extends View {
|
||||
Column.create();
|
||||
let earlierCreatedChild_2 = this.findChildById("2");
|
||||
if (earlierCreatedChild_2 == undefined) {
|
||||
View.create(new TestComponent_1.CustomContainerExport("2", this, {
|
||||
View.create(new CustomContainerExport("2", this, {
|
||||
header: this.text,
|
||||
closer: () => {
|
||||
Column.create();
|
||||
|
||||
+2
-2
@@ -53,8 +53,8 @@ let envLang = AppStorage.Prop('languageCode');
|
||||
class MyComponent extends View {
|
||||
constructor(compilerAssignedUniqueChildId, parent, params) {
|
||||
super(compilerAssignedUniqueChildId, parent);
|
||||
this.__varA = AppStorage.GetOrCreate().setAndLink("varA", 2, this);
|
||||
this.__lang = AppStorage.GetOrCreate().setAndProp("languageCode", 'en', this);
|
||||
this.__varA = AppStorage.GetOrCreate().setAndLink('varA', 2, this);
|
||||
this.__lang = AppStorage.GetOrCreate().setAndProp('languageCode', 'en', this);
|
||||
this.label = 'count';
|
||||
this.updateWithValueParams(params);
|
||||
}
|
||||
|
||||
+2
-2
@@ -53,8 +53,8 @@ let envLang = AppStorage.Prop('languageCode');
|
||||
class MyComponent extends View {
|
||||
constructor(compilerAssignedUniqueChildId, parent, params) {
|
||||
super(compilerAssignedUniqueChildId, parent);
|
||||
this.__varA = AppStorage.GetOrCreate().setAndLink("varA", 2, this);
|
||||
this.__lang = AppStorage.GetOrCreate().setAndProp("languageCode", 'en', this);
|
||||
this.__varA = AppStorage.GetOrCreate().setAndLink('varA', 2, this);
|
||||
this.__lang = AppStorage.GetOrCreate().setAndProp('languageCode', 'en', this);
|
||||
this.label = 'count';
|
||||
this.updateWithValueParams(params);
|
||||
}
|
||||
|
||||
+2
-2
@@ -53,8 +53,8 @@ let envLang = AppStorage.Prop('languageCode');
|
||||
class MyComponent extends View {
|
||||
constructor(compilerAssignedUniqueChildId, parent, params) {
|
||||
super(compilerAssignedUniqueChildId, parent);
|
||||
this.__varA = AppStorage.GetOrCreate().setAndLink("varA", 2, this);
|
||||
this.__lang = AppStorage.GetOrCreate().setAndProp("languageCode", 'en', this);
|
||||
this.__varA = AppStorage.GetOrCreate().setAndLink('varA', 2, this);
|
||||
this.__lang = AppStorage.GetOrCreate().setAndProp('languageCode', 'en', this);
|
||||
this.label = 'count';
|
||||
this.updateWithValueParams(params);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user