1/* 2 * Copyright (C) 2022 Huawei Device Co., Ltd. 3 * Licensed under the Apache License, Version 2.0 (the "License"); 4 * you may not use this file except in compliance with the License. 5 * You may obtain a copy of the License at 6 * 7 * http://www.apache.org/licenses/LICENSE-2.0 8 * 9 * Unless required by applicable law or agreed to in writing, software 10 * distributed under the License is distributed on an "AS IS" BASIS, 11 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 12 * See the License for the specific language governing permissions and 13 * limitations under the License. 14 */ 15 16// @ts-ignore 17import { TabPaneFrameDynamic } from '../../../../../../dist/trace/component/trace/sheet/frame/TabPaneFrameDynamic.js'; 18 19describe('TabPaneFrameDynamic Test', () => { 20 let frameDynamic = new TabPaneFrameDynamic(); 21 let frameDynamicParam = { 22 leftNs: 211, 23 rightNs: 1252, 24 frameDynamic: [ 25 { 26 ts: 4153254331, 27 id: 288, 28 x: 0, 29 y: 0, 30 width: 0, 31 height: 0, 32 alpha: 0, 33 appName: 'test', 34 groupId: 4153254331, 35 typeValue: 2, 36 }, 37 ], 38 }; 39 40 it('TabPaneFrameDynamicTest01', function () { 41 frameDynamic.data = frameDynamicParam; 42 expect(frameDynamic.data).toBeUndefined(); 43 }); 44 45 it('TabPaneFrameDynamicTest02', function () { 46 expect( 47 frameDynamic.sortByColumn({ 48 key: 'timestamp', 49 }) 50 ).toBeUndefined(); 51 }); 52}); 53