mirror of
https://github.com/openharmony/developtools_ace-ets2bundle.git
synced 2026-07-21 03:55:23 -04:00
add nested import ut Signed-off-by: yfwang6 <wangyongfei6@huawei.com> Change-Id: I1d208066fbebca64315bd677e1d1ecd9a543848f
This commit is contained in:
@@ -44,9 +44,7 @@ struct ImportTest {
|
||||
`
|
||||
|
||||
exports.expectResult =
|
||||
`"use strict";
|
||||
Object.defineProperty(exports, "__esModule", { value: true });
|
||||
const ImportNestAll_1 = require("./test/pages/ImportNestAll");
|
||||
`import { Base, BaseTest } from './test/pages/ImportNestAll';
|
||||
class ImportTest extends View {
|
||||
constructor(compilerAssignedUniqueChildId, parent, params) {
|
||||
super(compilerAssignedUniqueChildId, parent);
|
||||
@@ -127,7 +125,7 @@ class ImportTest extends View {
|
||||
Column.create();
|
||||
let earlierCreatedChild_2 = this.findChildById("2");
|
||||
if (earlierCreatedChild_2 == undefined) {
|
||||
View.create(new ImportNestAll_1.Base("2", this, {
|
||||
View.create(new Base("2", this, {
|
||||
testStr: this.__testState1,
|
||||
testNum: this.__testState2,
|
||||
testObj: this.__testState3
|
||||
@@ -139,7 +137,7 @@ class ImportTest extends View {
|
||||
}
|
||||
let earlierCreatedChild_3 = this.findChildById("3");
|
||||
if (earlierCreatedChild_3 == undefined) {
|
||||
View.create(new ImportNestAll_1.BaseTest("3", this, {
|
||||
View.create(new BaseTest("3", this, {
|
||||
testStr: this.__testState4,
|
||||
testNum: this.__testState5,
|
||||
testObj: this.__testState6
|
||||
|
||||
Reference in New Issue
Block a user