1fb726d48Sopenharmony_ci/*
2fb726d48Sopenharmony_ci * Copyright (C) 2022 Huawei Device Co., Ltd.
3fb726d48Sopenharmony_ci * Licensed under the Apache License, Version 2.0 (the "License");
4fb726d48Sopenharmony_ci * you may not use this file except in compliance with the License.
5fb726d48Sopenharmony_ci * You may obtain a copy of the License at
6fb726d48Sopenharmony_ci *
7fb726d48Sopenharmony_ci *     http://www.apache.org/licenses/LICENSE-2.0
8fb726d48Sopenharmony_ci *
9fb726d48Sopenharmony_ci * Unless required by applicable law or agreed to in writing, software
10fb726d48Sopenharmony_ci * distributed under the License is distributed on an "AS IS" BASIS,
11fb726d48Sopenharmony_ci * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
12fb726d48Sopenharmony_ci * See the License for the specific language governing permissions and
13fb726d48Sopenharmony_ci * limitations under the License.
14fb726d48Sopenharmony_ci */
15fb726d48Sopenharmony_ciimport { HeapNode,HeapEdge,HeapTraceFunctionInfo,HeapSample,HeapLocation,HeapSnapshotStruct,FileStruct } from '../../../src/js-heap/model/DatabaseStruct';
16fb726d48Sopenharmony_ci// @ts-ignore
17fb726d48Sopenharmony_ciwindow.ResizeObserver = window.ResizeObserver || jest.fn().mockImplementation(() => ({
18fb726d48Sopenharmony_ci    disconnect: jest.fn(),
19fb726d48Sopenharmony_ci    observe: jest.fn(),
20fb726d48Sopenharmony_ci    unobserve: jest.fn(),
21fb726d48Sopenharmony_ci}));
22fb726d48Sopenharmony_ci
23fb726d48Sopenharmony_cidescribe('DatabaseStruct Test', () => {
24fb726d48Sopenharmony_ci    it('DatabaseStructTest01', () => {
25fb726d48Sopenharmony_ci        let heapNode = new HeapNode();
26fb726d48Sopenharmony_ci        expect(heapNode).not.toBeUndefined();
27fb726d48Sopenharmony_ci    });
28fb726d48Sopenharmony_ci    it('DatabaseStructTest02', () => {
29fb726d48Sopenharmony_ci        let heapEdge = new HeapEdge();
30fb726d48Sopenharmony_ci        expect(heapEdge).not.toBeUndefined();
31fb726d48Sopenharmony_ci    });
32fb726d48Sopenharmony_ci    it('DatabaseStructTest03', () => {
33fb726d48Sopenharmony_ci        let heapTraceFunctionInfo = new HeapTraceFunctionInfo();
34fb726d48Sopenharmony_ci        expect(heapTraceFunctionInfo).not.toBeUndefined();
35fb726d48Sopenharmony_ci    });
36fb726d48Sopenharmony_ci    it('DatabaseStructTest04', () => {
37fb726d48Sopenharmony_ci        let heapLocation = new HeapLocation();
38fb726d48Sopenharmony_ci        expect(heapLocation).not.toBeUndefined();
39fb726d48Sopenharmony_ci    });
40fb726d48Sopenharmony_ci    it('DatabaseStructTest05', () => {
41fb726d48Sopenharmony_ci        let heapSnapshotStruct = new HeapSnapshotStruct();
42fb726d48Sopenharmony_ci        expect(heapSnapshotStruct).not.toBeUndefined();
43fb726d48Sopenharmony_ci    });
44fb726d48Sopenharmony_ci    it('DatabaseStructTest06', () => {
45fb726d48Sopenharmony_ci        let fileStruct = new FileStruct();
46fb726d48Sopenharmony_ci        expect(fileStruct).not.toBeUndefined();
47fb726d48Sopenharmony_ci    });
48fb726d48Sopenharmony_ci    it('DatabaseStructTest07', () => {
49fb726d48Sopenharmony_ci        let heapNode = new HeapNode();
50fb726d48Sopenharmony_ci        expect(heapNode.className()).toBe('(undefined)');
51fb726d48Sopenharmony_ci    });
52fb726d48Sopenharmony_ci    it('DatabaseStructTest09', () => {
53fb726d48Sopenharmony_ci        let heapNode = new HeapNode();
54fb726d48Sopenharmony_ci        expect(heapNode.nodeName()).toBeUndefined();
55fb726d48Sopenharmony_ci    });
56fb726d48Sopenharmony_ci    it('DatabaseStructTest10', () => {
57fb726d48Sopenharmony_ci        let heapNode = new HeapNode();
58fb726d48Sopenharmony_ci        expect(heapNode.addEdge({})).toBeUndefined;
59fb726d48Sopenharmony_ci    });
60fb726d48Sopenharmony_ci    it('DatabaseStructTest11', () => {
61fb726d48Sopenharmony_ci        let heapNode = new HeapNode();
62fb726d48Sopenharmony_ci        expect(heapNode.idHidden()).toBeUndefined;
63fb726d48Sopenharmony_ci    });
64fb726d48Sopenharmony_ci    it('DatabaseStructTest12', () => {
65fb726d48Sopenharmony_ci        let heapNode = new HeapNode();
66fb726d48Sopenharmony_ci        expect(heapNode.isArray()).toBeUndefined;
67fb726d48Sopenharmony_ci    });
68fb726d48Sopenharmony_ci    it('DatabaseStructTest13', () => {
69fb726d48Sopenharmony_ci        let heapNode = new HeapNode();
70fb726d48Sopenharmony_ci        expect(heapNode.isUserRoot()).toBeUndefined;
71fb726d48Sopenharmony_ci    });
72fb726d48Sopenharmony_ci    it('DatabaseStructTest14', () => {
73fb726d48Sopenharmony_ci        let heapNode = new HeapNode();
74fb726d48Sopenharmony_ci        expect(heapNode.isDocumentDOMTreesRoot()).toBeUndefined;
75fb726d48Sopenharmony_ci    });
76fb726d48Sopenharmony_ci    it('DatabaseStructTest15', () => {
77fb726d48Sopenharmony_ci        let heapNode = new HeapSample();
78fb726d48Sopenharmony_ci        expect(HeapSample).not.toBeUndefined;
79fb726d48Sopenharmony_ci    });
80fb726d48Sopenharmony_ci})
81