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_ci 16fb726d48Sopenharmony_ciimport { SelectionParam, BoxJumpParam, SelectionData, Counter, Fps } from '../../../src/trace/bean/BoxSelection'; 17fb726d48Sopenharmony_ciimport { TraceRow } from '../../../src/trace/component/trace/base/TraceRow'; 18fb726d48Sopenharmony_ciimport { SpSystemTrace } from '../../../src/trace/component/SpSystemTrace'; 19fb726d48Sopenharmony_cijest.mock('../../../src/js-heap/model/DatabaseStruct', () => { 20fb726d48Sopenharmony_ci return {}; 21fb726d48Sopenharmony_ci}); 22fb726d48Sopenharmony_cijest.mock('../../../src/trace/database/ui-worker/ProcedureWorkerSnapshot', () => { 23fb726d48Sopenharmony_ci return {}; 24fb726d48Sopenharmony_ci}); 25fb726d48Sopenharmony_cijest.mock('../../../src/trace/database/ui-worker/ProcedureWorker', () => { 26fb726d48Sopenharmony_ci return {}; 27fb726d48Sopenharmony_ci}); 28fb726d48Sopenharmony_cijest.mock('../../../src/trace/component/chart/FrameChart', () => { 29fb726d48Sopenharmony_ci return {}; 30fb726d48Sopenharmony_ci}); 31fb726d48Sopenharmony_ci 32fb726d48Sopenharmony_cijest.mock('../../../src/trace/component/trace/sheet/task/TabPaneTaskFrames', () => { 33fb726d48Sopenharmony_ci return {}; 34fb726d48Sopenharmony_ci}); 35fb726d48Sopenharmony_ci 36fb726d48Sopenharmony_cijest.mock('../../../src/trace/component/trace/sheet/native-memory/TabPaneNMCallTree', () => { 37fb726d48Sopenharmony_ci return {}; 38fb726d48Sopenharmony_ci}); 39fb726d48Sopenharmony_ci 40fb726d48Sopenharmony_cijest.mock('../../../src/trace/component/trace/base/TraceSheet', () => { 41fb726d48Sopenharmony_ci return {}; 42fb726d48Sopenharmony_ci}); 43fb726d48Sopenharmony_ci 44fb726d48Sopenharmony_ci// @ts-ignore 45fb726d48Sopenharmony_ciwindow.ResizeObserver = 46fb726d48Sopenharmony_ci window.ResizeObserver || 47fb726d48Sopenharmony_ci jest.fn().mockImplementation(() => ({ 48fb726d48Sopenharmony_ci disconnect: jest.fn(), 49fb726d48Sopenharmony_ci observe: jest.fn(), 50fb726d48Sopenharmony_ci unobserve: jest.fn(), 51fb726d48Sopenharmony_ci })); 52fb726d48Sopenharmony_ciwindow.IntersectionObserver = jest.fn(); 53fb726d48Sopenharmony_ci 54fb726d48Sopenharmony_cidescribe('BoxSelection Test', () => { 55fb726d48Sopenharmony_ci let sp = new SpSystemTrace(); 56fb726d48Sopenharmony_ci let itRow = new TraceRow(); 57fb726d48Sopenharmony_ci let selectionParam = new SelectionParam(); 58fb726d48Sopenharmony_ci it('BoxSelectionTest01', ()=> { 59fb726d48Sopenharmony_ci let selectionParam: SelectionParam; 60fb726d48Sopenharmony_ci selectionParam = { 61fb726d48Sopenharmony_ci recordStartNs: 0, 62fb726d48Sopenharmony_ci cpus: 1, 63fb726d48Sopenharmony_ci threadIds: 2, 64fb726d48Sopenharmony_ci trackIds: 1, 65fb726d48Sopenharmony_ci funTids: 2, 66fb726d48Sopenharmony_ci heapIds: 1, 67fb726d48Sopenharmony_ci nativeMemory: 3, 68fb726d48Sopenharmony_ci leftNs: 1, 69fb726d48Sopenharmony_ci rightNs: 1, 70fb726d48Sopenharmony_ci hasFps: true, 71fb726d48Sopenharmony_ci statisticsSelectData: 1, 72fb726d48Sopenharmony_ci perfAll: true, 73fb726d48Sopenharmony_ci }; 74fb726d48Sopenharmony_ci expect(selectionParam).not.toBeUndefined(); 75fb726d48Sopenharmony_ci expect(selectionParam).toMatchInlineSnapshot( 76fb726d48Sopenharmony_ci { 77fb726d48Sopenharmony_ci recordStartNs: expect.any(Number), 78fb726d48Sopenharmony_ci cpus: expect.any(Number), 79fb726d48Sopenharmony_ci threadIds: expect.any(Number), 80fb726d48Sopenharmony_ci trackIds: expect.any(Number), 81fb726d48Sopenharmony_ci funTids: expect.any(Number), 82fb726d48Sopenharmony_ci heapIds: expect.any(Number), 83fb726d48Sopenharmony_ci nativeMemory: expect.any(Number), 84fb726d48Sopenharmony_ci leftNs: expect.any(Number), 85fb726d48Sopenharmony_ci rightNs: expect.any(Number), 86fb726d48Sopenharmony_ci hasFps: expect.any(Boolean), 87fb726d48Sopenharmony_ci perfAll: expect.any(Boolean), 88fb726d48Sopenharmony_ci }, 89fb726d48Sopenharmony_ci ` 90fb726d48Sopenharmony_ci{ 91fb726d48Sopenharmony_ci "cpus": Any<Number>, 92fb726d48Sopenharmony_ci "funTids": Any<Number>, 93fb726d48Sopenharmony_ci "hasFps": Any<Boolean>, 94fb726d48Sopenharmony_ci "heapIds": Any<Number>, 95fb726d48Sopenharmony_ci "leftNs": Any<Number>, 96fb726d48Sopenharmony_ci "nativeMemory": Any<Number>, 97fb726d48Sopenharmony_ci "perfAll": Any<Boolean>, 98fb726d48Sopenharmony_ci "recordStartNs": Any<Number>, 99fb726d48Sopenharmony_ci "rightNs": Any<Number>, 100fb726d48Sopenharmony_ci "statisticsSelectData": 1, 101fb726d48Sopenharmony_ci "threadIds": Any<Number>, 102fb726d48Sopenharmony_ci "trackIds": Any<Number>, 103fb726d48Sopenharmony_ci} 104fb726d48Sopenharmony_ci` 105fb726d48Sopenharmony_ci ); 106fb726d48Sopenharmony_ci }); 107fb726d48Sopenharmony_ci 108fb726d48Sopenharmony_ci it('BoxSelectionTest02', function () { 109fb726d48Sopenharmony_ci let boxJumpParam: BoxJumpParam; 110fb726d48Sopenharmony_ci boxJumpParam = { 111fb726d48Sopenharmony_ci leftNs: 0, 112fb726d48Sopenharmony_ci rightNs: 0, 113fb726d48Sopenharmony_ci state: '', 114fb726d48Sopenharmony_ci processId: 0, 115fb726d48Sopenharmony_ci threadId: 0, 116fb726d48Sopenharmony_ci }; 117fb726d48Sopenharmony_ci expect(boxJumpParam).not.toBeUndefined(); 118fb726d48Sopenharmony_ci expect(boxJumpParam).toMatchInlineSnapshot( 119fb726d48Sopenharmony_ci { 120fb726d48Sopenharmony_ci leftNs: expect.any(Number), 121fb726d48Sopenharmony_ci rightNs: expect.any(Number), 122fb726d48Sopenharmony_ci state: expect.any(String), 123fb726d48Sopenharmony_ci processId: expect.any(Number), 124fb726d48Sopenharmony_ci threadId: expect.any(Number), 125fb726d48Sopenharmony_ci }, 126fb726d48Sopenharmony_ci ` 127fb726d48Sopenharmony_ci{ 128fb726d48Sopenharmony_ci "leftNs": Any<Number>, 129fb726d48Sopenharmony_ci "processId": Any<Number>, 130fb726d48Sopenharmony_ci "rightNs": Any<Number>, 131fb726d48Sopenharmony_ci "state": Any<String>, 132fb726d48Sopenharmony_ci "threadId": Any<Number>, 133fb726d48Sopenharmony_ci} 134fb726d48Sopenharmony_ci` 135fb726d48Sopenharmony_ci ); 136fb726d48Sopenharmony_ci }); 137fb726d48Sopenharmony_ci 138fb726d48Sopenharmony_ci it('BoxSelectionTest03', function () { 139fb726d48Sopenharmony_ci let selectionData: SelectionData; 140fb726d48Sopenharmony_ci selectionData = { 141fb726d48Sopenharmony_ci name: 'name', 142fb726d48Sopenharmony_ci process: 'process', 143fb726d48Sopenharmony_ci pid: 'pid', 144fb726d48Sopenharmony_ci thread: 'thread', 145fb726d48Sopenharmony_ci tid: 'tid', 146fb726d48Sopenharmony_ci wallDuration: 0, 147fb726d48Sopenharmony_ci avgDuration: 'avgDuration', 148fb726d48Sopenharmony_ci occurrences: 0, 149fb726d48Sopenharmony_ci state: 'state', 150fb726d48Sopenharmony_ci trackId: 0, 151fb726d48Sopenharmony_ci delta: 'delta', 152fb726d48Sopenharmony_ci rate: 'rate', 153fb726d48Sopenharmony_ci avgWeight: 'avgWeight', 154fb726d48Sopenharmony_ci count: 'count', 155fb726d48Sopenharmony_ci first: 'first', 156fb726d48Sopenharmony_ci last: 'last', 157fb726d48Sopenharmony_ci min: 'min', 158fb726d48Sopenharmony_ci max: 'max', 159fb726d48Sopenharmony_ci stateJX: 'stateJX', 160fb726d48Sopenharmony_ci }; 161fb726d48Sopenharmony_ci expect(selectionData).not.toBeUndefined(); 162fb726d48Sopenharmony_ci expect(selectionData).toMatchInlineSnapshot( 163fb726d48Sopenharmony_ci { 164fb726d48Sopenharmony_ci process: expect.any(String), 165fb726d48Sopenharmony_ci pid: expect.any(String), 166fb726d48Sopenharmony_ci thread: expect.any(String), 167fb726d48Sopenharmony_ci tid: expect.any(String), 168fb726d48Sopenharmony_ci wallDuration: expect.any(Number), 169fb726d48Sopenharmony_ci avgDuration: expect.any(String), 170fb726d48Sopenharmony_ci occurrences: expect.any(Number), 171fb726d48Sopenharmony_ci state: expect.any(String), 172fb726d48Sopenharmony_ci trackId: expect.any(Number), 173fb726d48Sopenharmony_ci delta: expect.any(String), 174fb726d48Sopenharmony_ci rate: expect.any(String), 175fb726d48Sopenharmony_ci avgWeight: expect.any(String), 176fb726d48Sopenharmony_ci count: expect.any(String), 177fb726d48Sopenharmony_ci first: expect.any(String), 178fb726d48Sopenharmony_ci last: expect.any(String), 179fb726d48Sopenharmony_ci min: expect.any(String), 180fb726d48Sopenharmony_ci max: expect.any(String), 181fb726d48Sopenharmony_ci stateJX: expect.any(String), 182fb726d48Sopenharmony_ci }, 183fb726d48Sopenharmony_ci ` 184fb726d48Sopenharmony_ci{ 185fb726d48Sopenharmony_ci "avgDuration": Any<String>, 186fb726d48Sopenharmony_ci "avgWeight": Any<String>, 187fb726d48Sopenharmony_ci "count": Any<String>, 188fb726d48Sopenharmony_ci "delta": Any<String>, 189fb726d48Sopenharmony_ci "first": Any<String>, 190fb726d48Sopenharmony_ci "last": Any<String>, 191fb726d48Sopenharmony_ci "max": Any<String>, 192fb726d48Sopenharmony_ci "min": Any<String>, 193fb726d48Sopenharmony_ci "name": "name", 194fb726d48Sopenharmony_ci "occurrences": Any<Number>, 195fb726d48Sopenharmony_ci "pid": Any<String>, 196fb726d48Sopenharmony_ci "process": Any<String>, 197fb726d48Sopenharmony_ci "rate": Any<String>, 198fb726d48Sopenharmony_ci "state": Any<String>, 199fb726d48Sopenharmony_ci "stateJX": Any<String>, 200fb726d48Sopenharmony_ci "thread": Any<String>, 201fb726d48Sopenharmony_ci "tid": Any<String>, 202fb726d48Sopenharmony_ci "trackId": Any<Number>, 203fb726d48Sopenharmony_ci "wallDuration": Any<Number>, 204fb726d48Sopenharmony_ci} 205fb726d48Sopenharmony_ci` 206fb726d48Sopenharmony_ci ); 207fb726d48Sopenharmony_ci }); 208fb726d48Sopenharmony_ci 209fb726d48Sopenharmony_ci it('BoxSelectionTest04', function () { 210fb726d48Sopenharmony_ci let counter: Counter; 211fb726d48Sopenharmony_ci counter = { 212fb726d48Sopenharmony_ci id: 0, 213fb726d48Sopenharmony_ci trackId: 0, 214fb726d48Sopenharmony_ci name: '', 215fb726d48Sopenharmony_ci value: 0, 216fb726d48Sopenharmony_ci startTime: 0, 217fb726d48Sopenharmony_ci }; 218fb726d48Sopenharmony_ci expect(counter).not.toBeUndefined(); 219fb726d48Sopenharmony_ci expect(counter).toMatchInlineSnapshot( 220fb726d48Sopenharmony_ci { 221fb726d48Sopenharmony_ci id: expect.any(Number), 222fb726d48Sopenharmony_ci trackId: expect.any(Number), 223fb726d48Sopenharmony_ci name: expect.any(String), 224fb726d48Sopenharmony_ci value: expect.any(Number), 225fb726d48Sopenharmony_ci startTime: expect.any(Number), 226fb726d48Sopenharmony_ci }, 227fb726d48Sopenharmony_ci ` 228fb726d48Sopenharmony_ci{ 229fb726d48Sopenharmony_ci "id": Any<Number>, 230fb726d48Sopenharmony_ci "name": Any<String>, 231fb726d48Sopenharmony_ci "startTime": Any<Number>, 232fb726d48Sopenharmony_ci "trackId": Any<Number>, 233fb726d48Sopenharmony_ci "value": Any<Number>, 234fb726d48Sopenharmony_ci} 235fb726d48Sopenharmony_ci` 236fb726d48Sopenharmony_ci ); 237fb726d48Sopenharmony_ci }); 238fb726d48Sopenharmony_ci 239fb726d48Sopenharmony_ci it('BoxSelectionTest05', function () { 240fb726d48Sopenharmony_ci let fps: Fps; 241fb726d48Sopenharmony_ci fps = { 242fb726d48Sopenharmony_ci startNS: 0, 243fb726d48Sopenharmony_ci timeStr: '', 244fb726d48Sopenharmony_ci fps: 0, 245fb726d48Sopenharmony_ci }; 246fb726d48Sopenharmony_ci expect(fps).not.toBeUndefined(); 247fb726d48Sopenharmony_ci expect(fps).toMatchInlineSnapshot( 248fb726d48Sopenharmony_ci { 249fb726d48Sopenharmony_ci startNS: expect.any(Number), 250fb726d48Sopenharmony_ci timeStr: expect.any(String), 251fb726d48Sopenharmony_ci fps: expect.any(Number), 252fb726d48Sopenharmony_ci }, 253fb726d48Sopenharmony_ci ` 254fb726d48Sopenharmony_ci{ 255fb726d48Sopenharmony_ci "fps": Any<Number>, 256fb726d48Sopenharmony_ci "startNS": Any<Number>, 257fb726d48Sopenharmony_ci "timeStr": Any<String>, 258fb726d48Sopenharmony_ci} 259fb726d48Sopenharmony_ci` 260fb726d48Sopenharmony_ci ); 261fb726d48Sopenharmony_ci }); 262fb726d48Sopenharmony_ci 263fb726d48Sopenharmony_ci it('BoxSelectionTest06', function () { 264fb726d48Sopenharmony_ci let it: TraceRow<any> = { 265fb726d48Sopenharmony_ci intersectionRatio: 0, 266fb726d48Sopenharmony_ci isHover: true, 267fb726d48Sopenharmony_ci hoverX: 129, 268fb726d48Sopenharmony_ci hoverY: 113, 269fb726d48Sopenharmony_ci index: 0, 270fb726d48Sopenharmony_ci must: true, 271fb726d48Sopenharmony_ci isTransferCanvas: true, 272fb726d48Sopenharmony_ci isComplete: true, 273fb726d48Sopenharmony_ci dataList: [ 274fb726d48Sopenharmony_ci { 275fb726d48Sopenharmony_ci detail: '自绘制buffer轮转(视频/鼠标等)', 276fb726d48Sopenharmony_ci depth: 2, 277fb726d48Sopenharmony_ci name: 'ConsumeAndUpdateAllNodes', 278fb726d48Sopenharmony_ci parentName: 'unknown-1', 279fb726d48Sopenharmony_ci property: [ 280fb726d48Sopenharmony_ci { 281fb726d48Sopenharmony_ci name: 'ConsumeAndUpdateAllNodes', 282fb726d48Sopenharmony_ci detail: '自绘制buffer轮转(视频/鼠标等)', 283fb726d48Sopenharmony_ci end: 512062139514826, 284fb726d48Sopenharmony_ci begin: 512062139339305, 285fb726d48Sopenharmony_ci depth: 2, 286fb726d48Sopenharmony_ci instructions: 0, 287fb726d48Sopenharmony_ci cycles: 2, 288fb726d48Sopenharmony_ci frame: { 289fb726d48Sopenharmony_ci x: 0, 290fb726d48Sopenharmony_ci y: 40, 291fb726d48Sopenharmony_ci width: 1, 292fb726d48Sopenharmony_ci height: 20, 293fb726d48Sopenharmony_ci }, 294fb726d48Sopenharmony_ci startTs: 512062138606492, 295fb726d48Sopenharmony_ci textMetricsWidth: 289.8828125, 296fb726d48Sopenharmony_ci }, 297fb726d48Sopenharmony_ci ], 298fb726d48Sopenharmony_ci }, 299fb726d48Sopenharmony_ci ], 300fb726d48Sopenharmony_ci dataList2: [], 301fb726d48Sopenharmony_ci dataListCache: [ 302fb726d48Sopenharmony_ci { 303fb726d48Sopenharmony_ci name: 'OnReadable', 304fb726d48Sopenharmony_ci detail: 'OnVsync信号回调', 305fb726d48Sopenharmony_ci end: 512062163748680, 306fb726d48Sopenharmony_ci begin: 512062138606492, 307fb726d48Sopenharmony_ci depth: 0, 308fb726d48Sopenharmony_ci instructions: 132, 309fb726d48Sopenharmony_ci cycles: 471, 310fb726d48Sopenharmony_ci frame: { 311fb726d48Sopenharmony_ci x: 0, 312fb726d48Sopenharmony_ci y: 0, 313fb726d48Sopenharmony_ci width: 1, 314fb726d48Sopenharmony_ci height: 20, 315fb726d48Sopenharmony_ci }, 316fb726d48Sopenharmony_ci startTs: 512062138606492, 317fb726d48Sopenharmony_ci textMetricsWidth: 146.8896484375, 318fb726d48Sopenharmony_ci }, 319fb726d48Sopenharmony_ci { 320fb726d48Sopenharmony_ci name: 'OnReadable', 321fb726d48Sopenharmony_ci detail: 'OnVsync信号回调', 322fb726d48Sopenharmony_ci end: 512062233204930, 323fb726d48Sopenharmony_ci begin: 512062222968471, 324fb726d48Sopenharmony_ci depth: 0, 325fb726d48Sopenharmony_ci instructions: 144, 326fb726d48Sopenharmony_ci cycles: 281, 327fb726d48Sopenharmony_ci frame: { 328fb726d48Sopenharmony_ci x: 1, 329fb726d48Sopenharmony_ci y: 0, 330fb726d48Sopenharmony_ci width: 1, 331fb726d48Sopenharmony_ci height: 20, 332fb726d48Sopenharmony_ci }, 333fb726d48Sopenharmony_ci startTs: 512062138606492, 334fb726d48Sopenharmony_ci textMetricsWidth: 146.8896484375, 335fb726d48Sopenharmony_ci }, 336fb726d48Sopenharmony_ci ], 337fb726d48Sopenharmony_ci fixedList: [], 338fb726d48Sopenharmony_ci sliceCache: [-1, -1], 339fb726d48Sopenharmony_ci canvas: [], 340fb726d48Sopenharmony_ci dpr: 1, 341fb726d48Sopenharmony_ci offscreen: [], 342fb726d48Sopenharmony_ci canvasWidth: 0, 343fb726d48Sopenharmony_ci canvasHeight: 0, 344fb726d48Sopenharmony_ci isLoading: false, 345fb726d48Sopenharmony_ci tampName: '', 346fb726d48Sopenharmony_ci templateType: {}, 347fb726d48Sopenharmony_ci _rangeSelect: true, 348fb726d48Sopenharmony_ci _drawType: 0, 349fb726d48Sopenharmony_ci _enableCollapseChart: false, 350fb726d48Sopenharmony_ci online: false, 351fb726d48Sopenharmony_ci translateY: 0, 352fb726d48Sopenharmony_ci childrenList: [], 353fb726d48Sopenharmony_ci loadingFrame: false, 354fb726d48Sopenharmony_ci needRefresh: true, 355fb726d48Sopenharmony_ci funcMaxHeight: 0, 356fb726d48Sopenharmony_ci sleeping: true, 357fb726d48Sopenharmony_ci fragment: {}, 358fb726d48Sopenharmony_ci loadingPin1: 0, 359fb726d48Sopenharmony_ci loadingPin2: 0, 360fb726d48Sopenharmony_ci args: { 361fb726d48Sopenharmony_ci alpha: false, 362fb726d48Sopenharmony_ci canvasNumber: 0, 363fb726d48Sopenharmony_ci contextId: '', 364fb726d48Sopenharmony_ci isOffScreen: false, 365fb726d48Sopenharmony_ci skeleton: true, 366fb726d48Sopenharmony_ci }, 367fb726d48Sopenharmony_ci rootEL: {}, 368fb726d48Sopenharmony_ci checkBoxEL: { 369fb726d48Sopenharmony_ci args: null, 370fb726d48Sopenharmony_ci checkbox: {}, 371fb726d48Sopenharmony_ci }, 372fb726d48Sopenharmony_ci collectEL: { 373fb726d48Sopenharmony_ci args: null, 374fb726d48Sopenharmony_ci icon: {}, 375fb726d48Sopenharmony_ci use: {}, 376fb726d48Sopenharmony_ci d: null, 377fb726d48Sopenharmony_ci }, 378fb726d48Sopenharmony_ci describeEl: {}, 379fb726d48Sopenharmony_ci nameEL: {}, 380fb726d48Sopenharmony_ci canvasVessel: null, 381fb726d48Sopenharmony_ci tipEL: null, 382fb726d48Sopenharmony_ci sampleUploadEl: {}, 383fb726d48Sopenharmony_ci jsonFileEl: {}, 384fb726d48Sopenharmony_ci _frame: { 385fb726d48Sopenharmony_ci x: 0, 386fb726d48Sopenharmony_ci y: 0, 387fb726d48Sopenharmony_ci height: 140, 388fb726d48Sopenharmony_ci width: 422, 389fb726d48Sopenharmony_ci }, 390fb726d48Sopenharmony_ci rowType: 'sample', 391fb726d48Sopenharmony_ci }; 392fb726d48Sopenharmony_ci 393fb726d48Sopenharmony_ci TraceRow.rangeSelectObject = { 394fb726d48Sopenharmony_ci startX: 100, 395fb726d48Sopenharmony_ci endX: 1000, 396fb726d48Sopenharmony_ci startNS: 0, 397fb726d48Sopenharmony_ci endNS: 100000, 398fb726d48Sopenharmony_ci }; 399fb726d48Sopenharmony_ci expect(selectionParam.pushSampleData(itRow)).toBeUndefined(); 400fb726d48Sopenharmony_ci }); 401fb726d48Sopenharmony_ci 402fb726d48Sopenharmony_ci it('BoxSelectionTest07', function () { 403fb726d48Sopenharmony_ci itRow.rowType = 'cpu-data'; 404fb726d48Sopenharmony_ci itRow.rowId = '10'; 405fb726d48Sopenharmony_ci expect(selectionParam.pushCpus(itRow)).toBeUndefined(); 406fb726d48Sopenharmony_ci }); 407fb726d48Sopenharmony_ci 408fb726d48Sopenharmony_ci it('BoxSelectionTest08', function () { 409fb726d48Sopenharmony_ci itRow.rowType = 'cpu-state'; 410fb726d48Sopenharmony_ci itRow.rowId = '10'; 411fb726d48Sopenharmony_ci expect(selectionParam.pushCpuStateFilterIds(itRow)).toBeUndefined(); 412fb726d48Sopenharmony_ci }); 413fb726d48Sopenharmony_ci 414fb726d48Sopenharmony_ci it('BoxSelectionTest09', function () { 415fb726d48Sopenharmony_ci itRow.rowType = 'cpu-State'; 416fb726d48Sopenharmony_ci itRow.childrenList = []; 417fb726d48Sopenharmony_ci expect(selectionParam.pushCpuStateFilterIds(itRow)).toBeUndefined(); 418fb726d48Sopenharmony_ci }); 419fb726d48Sopenharmony_ci 420fb726d48Sopenharmony_ci it('BoxSelectionTest10', function () { 421fb726d48Sopenharmony_ci itRow.rowType = 'cpu-frequency'; 422fb726d48Sopenharmony_ci itRow.childrenList = []; 423fb726d48Sopenharmony_ci expect(selectionParam.pushCpuFreqFilter(itRow)).toBeUndefined(); 424fb726d48Sopenharmony_ci }); 425fb726d48Sopenharmony_ci 426fb726d48Sopenharmony_ci it('BoxSelectionTest11', function () { 427fb726d48Sopenharmony_ci itRow.rowType = 'cpu-freq'; 428fb726d48Sopenharmony_ci itRow.rowId = '10'; 429fb726d48Sopenharmony_ci itRow.name = 'aaa'; 430fb726d48Sopenharmony_ci itRow.childrenList = []; 431fb726d48Sopenharmony_ci expect(selectionParam.pushCpuFreqFilter(itRow)).toBeUndefined(); 432fb726d48Sopenharmony_ci }); 433fb726d48Sopenharmony_ci 434fb726d48Sopenharmony_ci it('BoxSelectionTest12', function () { 435fb726d48Sopenharmony_ci itRow.rowType = 'cpu-frequency-limit'; 436fb726d48Sopenharmony_ci itRow.rowId = '10'; 437fb726d48Sopenharmony_ci itRow.name = 'aaa'; 438fb726d48Sopenharmony_ci itRow.childrenList = []; 439fb726d48Sopenharmony_ci expect(selectionParam.pushCpuFreqLimit(itRow)).toBeUndefined(); 440fb726d48Sopenharmony_ci }); 441fb726d48Sopenharmony_ci 442fb726d48Sopenharmony_ci it('BoxSelectionTest13', function () { 443fb726d48Sopenharmony_ci itRow.setAttribute('cpu', '1'); 444fb726d48Sopenharmony_ci itRow.rowType = 'cpu-limit-freq'; 445fb726d48Sopenharmony_ci itRow.rowId = '10'; 446fb726d48Sopenharmony_ci itRow.childrenList = []; 447fb726d48Sopenharmony_ci expect(selectionParam.pushCpuFreqLimit(itRow)).toBeUndefined(); 448fb726d48Sopenharmony_ci }); 449fb726d48Sopenharmony_ci 450fb726d48Sopenharmony_ci it('BoxSelectionTest14', function () { 451fb726d48Sopenharmony_ci itRow.rowType = 'process'; 452fb726d48Sopenharmony_ci itRow.rowId = '99'; 453fb726d48Sopenharmony_ci itRow.setAttribute('hasStartup', 'true'); 454fb726d48Sopenharmony_ci itRow.setAttribute('hasStaticInit', 'false'); 455fb726d48Sopenharmony_ci itRow.expansion = false; 456fb726d48Sopenharmony_ci itRow.childrenList = []; 457fb726d48Sopenharmony_ci expect(selectionParam.pushProcess(itRow, sp)).toBeUndefined(); 458fb726d48Sopenharmony_ci }); 459fb726d48Sopenharmony_ci 460fb726d48Sopenharmony_ci it('BoxSelectionTest15', function () { 461fb726d48Sopenharmony_ci itRow.rowType = 'native-memory'; 462fb726d48Sopenharmony_ci itRow.rowId = '11'; 463fb726d48Sopenharmony_ci itRow.expansion = false; 464fb726d48Sopenharmony_ci itRow.childrenList = []; 465fb726d48Sopenharmony_ci expect(selectionParam.pushNativeMemory(itRow, sp)).toBeUndefined(); 466fb726d48Sopenharmony_ci }); 467fb726d48Sopenharmony_ci 468fb726d48Sopenharmony_ci it('BoxSelectionTest16', function () { 469fb726d48Sopenharmony_ci itRow.rowType = 'func'; 470fb726d48Sopenharmony_ci itRow.asyncFuncName = '11'; 471fb726d48Sopenharmony_ci itRow.expansion = false; 472fb726d48Sopenharmony_ci itRow.asyncFuncNamePID = 5; 473fb726d48Sopenharmony_ci itRow.rowId = '7'; 474fb726d48Sopenharmony_ci expect(selectionParam.pushNativeMemory(itRow, sp)).toBeUndefined(); 475fb726d48Sopenharmony_ci }); 476fb726d48Sopenharmony_ci 477fb726d48Sopenharmony_ci it('BoxSelectionTest17', function () { 478fb726d48Sopenharmony_ci itRow.rowType = 'heap'; 479fb726d48Sopenharmony_ci itRow.rowParentId = '11 12 5'; 480fb726d48Sopenharmony_ci itRow.setAttribute('heap-type', 'native_hook_statistic'); 481fb726d48Sopenharmony_ci itRow.rowId = '7'; 482fb726d48Sopenharmony_ci expect(selectionParam.pushHeap(itRow, sp)).toBeUndefined(); 483fb726d48Sopenharmony_ci }); 484fb726d48Sopenharmony_ci 485fb726d48Sopenharmony_ci it('BoxSelectionTest18', function () { 486fb726d48Sopenharmony_ci itRow.rowType = 'ability-monitor'; 487fb726d48Sopenharmony_ci itRow.rowId = '8'; 488fb726d48Sopenharmony_ci itRow.expansion = false; 489fb726d48Sopenharmony_ci itRow.childrenList = []; 490fb726d48Sopenharmony_ci expect(selectionParam.pushMonitor(itRow, sp)).toBeUndefined(); 491fb726d48Sopenharmony_ci }); 492fb726d48Sopenharmony_ci 493fb726d48Sopenharmony_ci it('BoxSelectionTest19', function () { 494fb726d48Sopenharmony_ci itRow.rowType = 'hiperf-event'; 495fb726d48Sopenharmony_ci expect(selectionParam.pushHiperf(itRow, sp)).toBeUndefined(); 496fb726d48Sopenharmony_ci }); 497fb726d48Sopenharmony_ci 498fb726d48Sopenharmony_ci it('BoxSelectionTest20', function () { 499fb726d48Sopenharmony_ci itRow.rowType = 'hiperf-report'; 500fb726d48Sopenharmony_ci expect(selectionParam.pushHiperf(itRow, sp)).toBeUndefined(); 501fb726d48Sopenharmony_ci }); 502fb726d48Sopenharmony_ci 503fb726d48Sopenharmony_ci it('BoxSelectionTest21', function () { 504fb726d48Sopenharmony_ci itRow.rowType = 'hiperf-callchart'; 505fb726d48Sopenharmony_ci itRow.drawType = 7; 506fb726d48Sopenharmony_ci itRow.getRowSettingKeys = jest.fn(() => ['5']); 507fb726d48Sopenharmony_ci expect(selectionParam.pushHiperf(itRow, sp)).toBeUndefined(); 508fb726d48Sopenharmony_ci }); 509fb726d48Sopenharmony_ci 510fb726d48Sopenharmony_ci it('BoxSelectionTest22', function () { 511fb726d48Sopenharmony_ci itRow.rowType = 'hiperf-process'; 512fb726d48Sopenharmony_ci itRow.rowId = '18'; 513fb726d48Sopenharmony_ci itRow.expansion = false; 514fb726d48Sopenharmony_ci itRow.childrenList = []; 515fb726d48Sopenharmony_ci expect(selectionParam.pushHiperf(itRow, sp)).toBeUndefined(); 516fb726d48Sopenharmony_ci }); 517fb726d48Sopenharmony_ci 518fb726d48Sopenharmony_ci it('BoxSelectionTest23', function () { 519fb726d48Sopenharmony_ci itRow.rowType = 'hiperf'; 520fb726d48Sopenharmony_ci expect(selectionParam.pushHiperf(itRow, sp)).toBeUndefined(); 521fb726d48Sopenharmony_ci }); 522fb726d48Sopenharmony_ci 523fb726d48Sopenharmony_ci it('BoxSelectionTest24', function () { 524fb726d48Sopenharmony_ci itRow.rowType = 'hiperf-cpu'; 525fb726d48Sopenharmony_ci itRow.index = 5; 526fb726d48Sopenharmony_ci expect(selectionParam.pushHiperf(itRow, sp)).toBeUndefined(); 527fb726d48Sopenharmony_ci }); 528fb726d48Sopenharmony_ci 529fb726d48Sopenharmony_ci it('BoxSelectionTest25', function () { 530fb726d48Sopenharmony_ci itRow.rowType = 'hiperf-thread'; 531fb726d48Sopenharmony_ci itRow.rowId = '5-7'; 532fb726d48Sopenharmony_ci expect(selectionParam.pushHiperf(itRow, sp)).toBeUndefined(); 533fb726d48Sopenharmony_ci }); 534fb726d48Sopenharmony_ci 535fb726d48Sopenharmony_ci it('BoxSelectionTest26', function () { 536fb726d48Sopenharmony_ci itRow.rowType = 'file-system-cell'; 537fb726d48Sopenharmony_ci itRow.rowId = 'FileSystemLogicalWrite'; 538fb726d48Sopenharmony_ci selectionParam.fileSystemType = []; 539fb726d48Sopenharmony_ci expect(selectionParam.pushFileSystem(itRow, sp)).toBeUndefined(); 540fb726d48Sopenharmony_ci selectionParam.pushFileSystem(itRow, sp); 541fb726d48Sopenharmony_ci expect(selectionParam.fileSystemType).toEqual([0, 1, 3]); 542fb726d48Sopenharmony_ci }); 543fb726d48Sopenharmony_ci 544fb726d48Sopenharmony_ci it('BoxSelectionTest26', function () { 545fb726d48Sopenharmony_ci itRow.rowType = 'file-system-cell'; 546fb726d48Sopenharmony_ci itRow.rowId = 'FileSystemLogicalWrite'; 547fb726d48Sopenharmony_ci selectionParam.fileSystemType = [1, 1, 1, -1]; 548fb726d48Sopenharmony_ci expect(selectionParam.pushFileSystem(itRow, sp)).toBeUndefined(); 549fb726d48Sopenharmony_ci selectionParam.pushFileSystem(itRow, sp); 550fb726d48Sopenharmony_ci expect(selectionParam.fileSystemType).toEqual([1, 1, 1, -1, 3]); 551fb726d48Sopenharmony_ci }); 552fb726d48Sopenharmony_ci 553fb726d48Sopenharmony_ci it('BoxSelectionTest27', function () { 554fb726d48Sopenharmony_ci itRow.rowType = 'file-system-cell'; 555fb726d48Sopenharmony_ci itRow.rowId = 'FileSystemLogicalRead'; 556fb726d48Sopenharmony_ci selectionParam.fileSystemType = []; 557fb726d48Sopenharmony_ci expect(selectionParam.pushFileSystem(itRow, sp)).toBeUndefined(); 558fb726d48Sopenharmony_ci selectionParam.pushFileSystem(itRow, sp); 559fb726d48Sopenharmony_ci expect(selectionParam.fileSystemType).toEqual([0, 1, 2]); 560fb726d48Sopenharmony_ci }); 561fb726d48Sopenharmony_ci 562fb726d48Sopenharmony_ci it('BoxSelectionTest28', function () { 563fb726d48Sopenharmony_ci itRow.rowType = 'file-system-cell'; 564fb726d48Sopenharmony_ci itRow.rowId = 'FileSystemLogicalRead'; 565fb726d48Sopenharmony_ci selectionParam.fileSystemType = [1, 1, -1]; 566fb726d48Sopenharmony_ci expect(selectionParam.pushFileSystem(itRow, sp)).toBeUndefined(); 567fb726d48Sopenharmony_ci selectionParam.pushFileSystem(itRow, sp); 568fb726d48Sopenharmony_ci expect(selectionParam.fileSystemType).toEqual([1, 1, -1, 2]); 569fb726d48Sopenharmony_ci }); 570fb726d48Sopenharmony_ci 571fb726d48Sopenharmony_ci it('BoxSelectionTest29', function () { 572fb726d48Sopenharmony_ci itRow.rowType = 'file-system-cell'; 573fb726d48Sopenharmony_ci itRow.rowId = 'FileSystemVirtualMemory'; 574fb726d48Sopenharmony_ci selectionParam.fileSystemType = [1, 1, -1]; 575fb726d48Sopenharmony_ci expect(selectionParam.pushFileSystem(itRow, sp)).toBeUndefined(); 576fb726d48Sopenharmony_ci selectionParam.pushFileSystem(itRow, sp); 577fb726d48Sopenharmony_ci expect(selectionParam.fileSysVirtualMemory).toBeTruthy(); 578fb726d48Sopenharmony_ci }); 579fb726d48Sopenharmony_ci 580fb726d48Sopenharmony_ci it('BoxSelectionTest30', function () { 581fb726d48Sopenharmony_ci itRow.rowType = 'file-system-cell'; 582fb726d48Sopenharmony_ci itRow.rowId = 'FileSystemDiskIOLatency'; 583fb726d48Sopenharmony_ci selectionParam.fileSystemType = [1, 1, -1]; 584fb726d48Sopenharmony_ci expect(selectionParam.pushFileSystem(itRow, sp)).toBeUndefined(); 585fb726d48Sopenharmony_ci selectionParam.pushFileSystem(itRow, sp); 586fb726d48Sopenharmony_ci expect(selectionParam.diskIOLatency).toBeTruthy(); 587fb726d48Sopenharmony_ci }); 588fb726d48Sopenharmony_ci 589fb726d48Sopenharmony_ci it('BoxSelectionTest31', function () { 590fb726d48Sopenharmony_ci itRow.rowType = 'VmTracker'; 591fb726d48Sopenharmony_ci itRow.rowId = '55'; 592fb726d48Sopenharmony_ci itRow.expansion = false; 593fb726d48Sopenharmony_ci let child = new TraceRow(); 594fb726d48Sopenharmony_ci child.rowType = 'dma-vmTracker'; 595fb726d48Sopenharmony_ci itRow.childrenList = [child]; 596fb726d48Sopenharmony_ci expect(selectionParam.pushVmTracker(itRow, sp)).toBeUndefined(); 597fb726d48Sopenharmony_ci }); 598fb726d48Sopenharmony_ci 599fb726d48Sopenharmony_ci it('BoxSelectionTest32', function () { 600fb726d48Sopenharmony_ci itRow.rowType = 'VmTracker'; 601fb726d48Sopenharmony_ci itRow.rowId = '100'; 602fb726d48Sopenharmony_ci itRow.expansion = false; 603fb726d48Sopenharmony_ci let child = new TraceRow(); 604fb726d48Sopenharmony_ci child.rowType = 'sys-memory-gpu'; 605fb726d48Sopenharmony_ci itRow.childrenList = [child]; 606fb726d48Sopenharmony_ci expect(selectionParam.pushVmTracker(itRow, sp)).toBeUndefined(); 607fb726d48Sopenharmony_ci }); 608fb726d48Sopenharmony_ci 609fb726d48Sopenharmony_ci it('BoxSelectionTest33', function () { 610fb726d48Sopenharmony_ci itRow.rowType = 'VmTracker'; 611fb726d48Sopenharmony_ci itRow.rowId = '100'; 612fb726d48Sopenharmony_ci itRow.expansion = false; 613fb726d48Sopenharmony_ci let child = new TraceRow(); 614fb726d48Sopenharmony_ci child.rowType = 'purgeable-total-vm'; 615fb726d48Sopenharmony_ci itRow.childrenList = [child]; 616fb726d48Sopenharmony_ci expect(selectionParam.pushVmTracker(itRow, sp)).toBeUndefined(); 617fb726d48Sopenharmony_ci }); 618fb726d48Sopenharmony_ci 619fb726d48Sopenharmony_ci it('BoxSelectionTest34', function () { 620fb726d48Sopenharmony_ci itRow.rowType = 'VmTracker'; 621fb726d48Sopenharmony_ci itRow.rowId = '100'; 622fb726d48Sopenharmony_ci itRow.expansion = false; 623fb726d48Sopenharmony_ci let child = new TraceRow(); 624fb726d48Sopenharmony_ci child.rowType = 'purgeable-pin-vm'; 625fb726d48Sopenharmony_ci itRow.childrenList = [child]; 626fb726d48Sopenharmony_ci expect(selectionParam.pushVmTracker(itRow, sp)).toBeUndefined(); 627fb726d48Sopenharmony_ci }); 628fb726d48Sopenharmony_ci 629fb726d48Sopenharmony_ci it('BoxSelectionTest35', function () { 630fb726d48Sopenharmony_ci itRow.rowType = 'VmTracker'; 631fb726d48Sopenharmony_ci itRow.rowId = '110'; 632fb726d48Sopenharmony_ci itRow.expansion = false; 633fb726d48Sopenharmony_ci let child = new TraceRow(); 634fb726d48Sopenharmony_ci child.rowType = 'smaps'; 635fb726d48Sopenharmony_ci itRow.childrenList = [child]; 636fb726d48Sopenharmony_ci expect(selectionParam.pushVmTracker(itRow, sp)).toBeUndefined(); 637fb726d48Sopenharmony_ci }); 638fb726d48Sopenharmony_ci 639fb726d48Sopenharmony_ci it('BoxSelectionTest36', function () { 640fb726d48Sopenharmony_ci itRow.rowType = 'VmTracker'; 641fb726d48Sopenharmony_ci itRow.rowId = '10'; 642fb726d48Sopenharmony_ci itRow.expansion = false; 643fb726d48Sopenharmony_ci let child = new TraceRow(); 644fb726d48Sopenharmony_ci child.rowType = 'VmTracker-shm'; 645fb726d48Sopenharmony_ci itRow.childrenList = [child]; 646fb726d48Sopenharmony_ci expect(selectionParam.pushVmTracker(itRow, sp)).toBeUndefined(); 647fb726d48Sopenharmony_ci }); 648fb726d48Sopenharmony_ci 649fb726d48Sopenharmony_ci it('BoxSelectionTest37', function () { 650fb726d48Sopenharmony_ci itRow.rowType = 'janks'; 651fb726d48Sopenharmony_ci itRow.rowId = '50'; 652fb726d48Sopenharmony_ci itRow.name == 'Actual Timeline'; 653fb726d48Sopenharmony_ci itRow.rowParentId === 'frameTime'; 654fb726d48Sopenharmony_ci itRow.dataListCache = []; 655fb726d48Sopenharmony_ci expect(selectionParam.pushJank(itRow, sp)).toBeUndefined(); 656fb726d48Sopenharmony_ci }); 657fb726d48Sopenharmony_ci 658fb726d48Sopenharmony_ci it('BoxSelectionTest38', function () { 659fb726d48Sopenharmony_ci TraceRow.range = { 660fb726d48Sopenharmony_ci refresh: true, 661fb726d48Sopenharmony_ci xsTxt: ['a'], 662fb726d48Sopenharmony_ci startX: 100, 663fb726d48Sopenharmony_ci endX: 1000, 664fb726d48Sopenharmony_ci startNS: 0, 665fb726d48Sopenharmony_ci endNS: 100000, 666fb726d48Sopenharmony_ci slicesTime: { 667fb726d48Sopenharmony_ci color: 'red', 668fb726d48Sopenharmony_ci startTime: 1000, 669fb726d48Sopenharmony_ci endTime: 5000, 670fb726d48Sopenharmony_ci }, 671fb726d48Sopenharmony_ci scale: 5000, 672fb726d48Sopenharmony_ci totalNS: 10000, 673fb726d48Sopenharmony_ci xs: [100], 674fb726d48Sopenharmony_ci }; 675fb726d48Sopenharmony_ci itRow.rowType = 'heap-timeline'; 676fb726d48Sopenharmony_ci itRow.rowId = '50'; 677fb726d48Sopenharmony_ci itRow.name == 'Actual Timeline'; 678fb726d48Sopenharmony_ci itRow.rowParentId === 'frameTime'; 679fb726d48Sopenharmony_ci itRow.dataListCache = []; 680fb726d48Sopenharmony_ci expect(selectionParam.pushHeapTimeline(itRow, sp)).toBeUndefined(); 681fb726d48Sopenharmony_ci }); 682fb726d48Sopenharmony_ci 683fb726d48Sopenharmony_ci it('BoxSelectionTest39', function () { 684fb726d48Sopenharmony_ci itRow.rowType = 'js-cpu-profiler-cell'; 685fb726d48Sopenharmony_ci itRow.rowId = '50'; 686fb726d48Sopenharmony_ci itRow.dataListCache = []; 687fb726d48Sopenharmony_ci expect(selectionParam.pushJsCpuProfiler(itRow, sp)).toBeUndefined(); 688fb726d48Sopenharmony_ci }); 689fb726d48Sopenharmony_ci 690fb726d48Sopenharmony_ci it('BoxSelectionTest40', function () { 691fb726d48Sopenharmony_ci itRow.rowType = 'sys-memory-gpu'; 692fb726d48Sopenharmony_ci itRow.rowId = '40'; 693fb726d48Sopenharmony_ci itRow.childrenList = []; 694fb726d48Sopenharmony_ci expect(selectionParam.pushSysMemoryGpu(itRow, sp)).toBeUndefined(); 695fb726d48Sopenharmony_ci }); 696fb726d48Sopenharmony_ci 697fb726d48Sopenharmony_ci it('BoxSelectionTest41', function () { 698fb726d48Sopenharmony_ci itRow.rowType = 'sdk'; 699fb726d48Sopenharmony_ci itRow.rowId = '45'; 700fb726d48Sopenharmony_ci itRow.childrenList = []; 701fb726d48Sopenharmony_ci expect(selectionParam.pushSDK(itRow, sp)).toBeUndefined(); 702fb726d48Sopenharmony_ci }); 703fb726d48Sopenharmony_ci 704fb726d48Sopenharmony_ci it('BoxSelectionTest42', function () { 705fb726d48Sopenharmony_ci itRow.rowType = 'sdk-counter'; 706fb726d48Sopenharmony_ci itRow.rowId = '47'; 707fb726d48Sopenharmony_ci expect(selectionParam.pushSDK(itRow, sp)).toBeUndefined(); 708fb726d48Sopenharmony_ci }); 709fb726d48Sopenharmony_ci 710fb726d48Sopenharmony_ci it('BoxSelectionTest43', function () { 711fb726d48Sopenharmony_ci itRow.rowType = 'sdk-slice'; 712fb726d48Sopenharmony_ci itRow.rowId = '98'; 713fb726d48Sopenharmony_ci expect(selectionParam.pushSDK(itRow, sp)).toBeUndefined(); 714fb726d48Sopenharmony_ci }); 715fb726d48Sopenharmony_ci 716fb726d48Sopenharmony_ci it('BoxSelectionTest44', function () { 717fb726d48Sopenharmony_ci itRow.rowType = 'smaps'; 718fb726d48Sopenharmony_ci itRow.rowId = '98'; 719fb726d48Sopenharmony_ci expect(selectionParam.pushVmTrackerSmaps(itRow, sp)).toBeUndefined(); 720fb726d48Sopenharmony_ci }); 721fb726d48Sopenharmony_ci 722fb726d48Sopenharmony_ci it('BoxSelectionTest45', function () { 723fb726d48Sopenharmony_ci itRow.rowType = 'irq-group'; 724fb726d48Sopenharmony_ci itRow.rowId = '98'; 725fb726d48Sopenharmony_ci itRow.childrenList = []; 726fb726d48Sopenharmony_ci expect(selectionParam.pushIrq(itRow)).toBeUndefined(); 727fb726d48Sopenharmony_ci }); 728fb726d48Sopenharmony_ci 729fb726d48Sopenharmony_ci it('BoxSelectionTest46', function () { 730fb726d48Sopenharmony_ci itRow.rowType = 'irq'; 731fb726d48Sopenharmony_ci itRow.rowId = '98'; 732fb726d48Sopenharmony_ci itRow.setAttribute('callId', '45'); 733fb726d48Sopenharmony_ci itRow.childrenList = []; 734fb726d48Sopenharmony_ci expect(selectionParam.pushIrq(itRow)).toBeUndefined(); 735fb726d48Sopenharmony_ci }); 736fb726d48Sopenharmony_ci 737fb726d48Sopenharmony_ci it('BoxSelectionTest47', function () { 738fb726d48Sopenharmony_ci itRow.rowType = 'sys-memory-gpu-gl'; 739fb726d48Sopenharmony_ci itRow.rowId = '98'; 740fb726d48Sopenharmony_ci itRow.dataListCache = []; 741fb726d48Sopenharmony_ci expect(selectionParam.pushSysMemoryGpuGl(itRow, sp)).toBeUndefined(); 742fb726d48Sopenharmony_ci }); 743fb726d48Sopenharmony_ci 744fb726d48Sopenharmony_ci it('BoxSelectionTest48', function () { 745fb726d48Sopenharmony_ci itRow.rowType = 'frame-dynamic'; 746fb726d48Sopenharmony_ci itRow.rowId = '98'; 747fb726d48Sopenharmony_ci itRow.dataListCache = []; 748fb726d48Sopenharmony_ci itRow.setAttribute('model-name', 'dd'); 749fb726d48Sopenharmony_ci expect(selectionParam.pushFrameDynamic(itRow, sp)).toBeUndefined(); 750fb726d48Sopenharmony_ci }); 751fb726d48Sopenharmony_ci 752fb726d48Sopenharmony_ci it('BoxSelectionTest49', function () { 753fb726d48Sopenharmony_ci itRow.rowType = 'frame-spacing'; 754fb726d48Sopenharmony_ci itRow.rowId = '98'; 755fb726d48Sopenharmony_ci itRow.dataListCache = []; 756fb726d48Sopenharmony_ci expect(selectionParam.pushFrameSpacing(itRow)).toBeUndefined(); 757fb726d48Sopenharmony_ci }); 758fb726d48Sopenharmony_ci 759fb726d48Sopenharmony_ci it('BoxSelectionTest50', function () { 760fb726d48Sopenharmony_ci itRow.rowType = 'frame-animation'; 761fb726d48Sopenharmony_ci itRow.rowId = '98'; 762fb726d48Sopenharmony_ci itRow.dataListCache = []; 763fb726d48Sopenharmony_ci expect(selectionParam.pushFrameAnimation(itRow)).toBeUndefined(); 764fb726d48Sopenharmony_ci }); 765fb726d48Sopenharmony_ci 766fb726d48Sopenharmony_ci it('BoxSelectionTest51', function () { 767fb726d48Sopenharmony_ci itRow.rowType = 'sys-memory-gpu-window'; 768fb726d48Sopenharmony_ci itRow.rowId = '98'; 769fb726d48Sopenharmony_ci itRow.dataListCache = []; 770fb726d48Sopenharmony_ci expect(selectionParam.pushSysMemoryGpuWindow(itRow)).toBeUndefined(); 771fb726d48Sopenharmony_ci }); 772fb726d48Sopenharmony_ci 773fb726d48Sopenharmony_ci it('BoxSelectionTest52', function () { 774fb726d48Sopenharmony_ci itRow.rowType = 'sys-memory-gpu-total'; 775fb726d48Sopenharmony_ci itRow.rowId = '98'; 776fb726d48Sopenharmony_ci itRow.dataListCache = []; 777fb726d48Sopenharmony_ci expect(selectionParam.pushSysMemoryGpuTotal(itRow)).toBeUndefined(); 778fb726d48Sopenharmony_ci }); 779fb726d48Sopenharmony_ci 780fb726d48Sopenharmony_ci it('BoxSelectionTest53', function () { 781fb726d48Sopenharmony_ci itRow.rowType = 'sys-memory-gpu-graph'; 782fb726d48Sopenharmony_ci itRow.rowId = '98'; 783fb726d48Sopenharmony_ci itRow.dataListCache = []; 784fb726d48Sopenharmony_ci expect(selectionParam.pushSysMemoryGpuGraph(itRow)).toBeUndefined(); 785fb726d48Sopenharmony_ci }); 786fb726d48Sopenharmony_ci 787fb726d48Sopenharmony_ci it('BoxSelectionTest54', function () { 788fb726d48Sopenharmony_ci itRow.rowType = 'static-init'; 789fb726d48Sopenharmony_ci itRow.rowId = '98'; 790fb726d48Sopenharmony_ci expect(selectionParam.pushStaticInit(itRow, sp)).toBeUndefined(); 791fb726d48Sopenharmony_ci }); 792fb726d48Sopenharmony_ci 793fb726d48Sopenharmony_ci it('BoxSelectionTest55', function () { 794fb726d48Sopenharmony_ci itRow.rowType = 'app-startup'; 795fb726d48Sopenharmony_ci itRow.rowId = '98'; 796fb726d48Sopenharmony_ci itRow.rowParentId = '55'; 797fb726d48Sopenharmony_ci expect(selectionParam.pushAppStartUp(itRow, sp)).toBeUndefined(); 798fb726d48Sopenharmony_ci }); 799fb726d48Sopenharmony_ci 800fb726d48Sopenharmony_ci it('BoxSelectionTest56', function () { 801fb726d48Sopenharmony_ci itRow.rowType = 'thread'; 802fb726d48Sopenharmony_ci itRow.rowId = '98'; 803fb726d48Sopenharmony_ci expect(selectionParam.pushThread(itRow, sp)).toBeUndefined(); 804fb726d48Sopenharmony_ci }); 805fb726d48Sopenharmony_ci 806fb726d48Sopenharmony_ci it('BoxSelectionTest57', function () { 807fb726d48Sopenharmony_ci itRow.rowType = 'mem'; 808fb726d48Sopenharmony_ci itRow.rowId = '98'; 809fb726d48Sopenharmony_ci expect(selectionParam.pushVirtualMemory(itRow, sp)).toBeUndefined(); 810fb726d48Sopenharmony_ci }); 811fb726d48Sopenharmony_ci 812fb726d48Sopenharmony_ci it('BoxSelectionTest58', function () { 813fb726d48Sopenharmony_ci itRow.rowType = 'virtual-memory-cell'; 814fb726d48Sopenharmony_ci itRow.rowId = '98'; 815fb726d48Sopenharmony_ci expect(selectionParam.pushVirtualMemory(itRow, sp)).toBeUndefined(); 816fb726d48Sopenharmony_ci }); 817fb726d48Sopenharmony_ci 818fb726d48Sopenharmony_ci it('BoxSelectionTest59', function () { 819fb726d48Sopenharmony_ci itRow.rowType = 'fps'; 820fb726d48Sopenharmony_ci itRow.rowId = '98'; 821fb726d48Sopenharmony_ci expect(selectionParam.pushFps(itRow, sp)).toBeUndefined(); 822fb726d48Sopenharmony_ci }); 823fb726d48Sopenharmony_ci 824fb726d48Sopenharmony_ci it('BoxSelectionTest60', function () { 825fb726d48Sopenharmony_ci itRow.rowType = 'cpu-ability'; 826fb726d48Sopenharmony_ci itRow.rowId = '98'; 827fb726d48Sopenharmony_ci expect(selectionParam.pushCpuAbility(itRow, sp)).toBeUndefined(); 828fb726d48Sopenharmony_ci }); 829fb726d48Sopenharmony_ci 830fb726d48Sopenharmony_ci it('BoxSelectionTest61', function () { 831fb726d48Sopenharmony_ci itRow.rowType = 'memory-ability'; 832fb726d48Sopenharmony_ci itRow.rowId = '98'; 833fb726d48Sopenharmony_ci expect(selectionParam.pushMemoryAbility(itRow, sp)).toBeUndefined(); 834fb726d48Sopenharmony_ci }); 835fb726d48Sopenharmony_ci 836fb726d48Sopenharmony_ci it('BoxSelectionTest62', function () { 837fb726d48Sopenharmony_ci itRow.rowType = 'disk-ability'; 838fb726d48Sopenharmony_ci itRow.rowId = '98'; 839fb726d48Sopenharmony_ci expect(selectionParam.pushDiskAbility(itRow, sp)).toBeUndefined(); 840fb726d48Sopenharmony_ci }); 841fb726d48Sopenharmony_ci 842fb726d48Sopenharmony_ci it('BoxSelectionTest63', function () { 843fb726d48Sopenharmony_ci itRow.rowType = 'network-ability'; 844fb726d48Sopenharmony_ci itRow.rowId = '98'; 845fb726d48Sopenharmony_ci expect(selectionParam.pushNetworkAbility(itRow, sp)).toBeUndefined(); 846fb726d48Sopenharmony_ci }); 847fb726d48Sopenharmony_ci 848fb726d48Sopenharmony_ci it('BoxSelectionTest64', function () { 849fb726d48Sopenharmony_ci itRow.rowType = 'dma-ability'; 850fb726d48Sopenharmony_ci itRow.rowId = '98'; 851fb726d48Sopenharmony_ci expect(selectionParam.pushDmaAbility(itRow, sp)).toBeUndefined(); 852fb726d48Sopenharmony_ci }); 853fb726d48Sopenharmony_ci 854fb726d48Sopenharmony_ci it('BoxSelectionTest65', function () { 855fb726d48Sopenharmony_ci itRow.rowType = 'gpu-memory-ability'; 856fb726d48Sopenharmony_ci itRow.rowId = '98'; 857fb726d48Sopenharmony_ci expect(selectionParam.pushGpuMemoryAbility(itRow, sp)).toBeUndefined(); 858fb726d48Sopenharmony_ci }); 859fb726d48Sopenharmony_ci 860fb726d48Sopenharmony_ci it('BoxSelectionTest66', function () { 861fb726d48Sopenharmony_ci itRow.rowType = 'power-energy'; 862fb726d48Sopenharmony_ci itRow.rowId = '98'; 863fb726d48Sopenharmony_ci expect(selectionParam.pushPowerEnergy(itRow, sp)).toBeUndefined(); 864fb726d48Sopenharmony_ci }); 865fb726d48Sopenharmony_ci 866fb726d48Sopenharmony_ci it('BoxSelectionTest67', function () { 867fb726d48Sopenharmony_ci itRow.rowType = 'system-energy'; 868fb726d48Sopenharmony_ci itRow.rowId = '98'; 869fb726d48Sopenharmony_ci expect(selectionParam.pushSystemEnergy(itRow, sp)).toBeUndefined(); 870fb726d48Sopenharmony_ci }); 871fb726d48Sopenharmony_ci 872fb726d48Sopenharmony_ci it('BoxSelectionTest68', function () { 873fb726d48Sopenharmony_ci itRow.rowType = 'anomaly-energy'; 874fb726d48Sopenharmony_ci itRow.rowId = '98'; 875fb726d48Sopenharmony_ci expect(selectionParam.pushAnomalyEnergy(itRow, sp)).toBeUndefined(); 876fb726d48Sopenharmony_ci }); 877fb726d48Sopenharmony_ci 878fb726d48Sopenharmony_ci it('BoxSelectionTest69', function () { 879fb726d48Sopenharmony_ci itRow.rowType = 'VmTracker-shm'; 880fb726d48Sopenharmony_ci itRow.rowId = '98'; 881fb726d48Sopenharmony_ci expect(selectionParam.pushVmTrackerShm(itRow, sp)).toBeUndefined(); 882fb726d48Sopenharmony_ci }); 883fb726d48Sopenharmony_ci 884fb726d48Sopenharmony_ci it('BoxSelectionTest70', function () { 885fb726d48Sopenharmony_ci itRow.rowType = 'clock-group'; 886fb726d48Sopenharmony_ci itRow.rowId = '98'; 887fb726d48Sopenharmony_ci expect(selectionParam.pushClock(itRow, sp)).toBeUndefined(); 888fb726d48Sopenharmony_ci }); 889fb726d48Sopenharmony_ci 890fb726d48Sopenharmony_ci it('BoxSelectionTest71', function () { 891fb726d48Sopenharmony_ci itRow.rowType = 'gpu-memory-vmTracker'; 892fb726d48Sopenharmony_ci itRow.rowId = '98'; 893fb726d48Sopenharmony_ci expect(selectionParam.pushGpuMemoryVmTracker(itRow, sp)).toBeUndefined(); 894fb726d48Sopenharmony_ci }); 895fb726d48Sopenharmony_ci 896fb726d48Sopenharmony_ci it('BoxSelectionTest72', function () { 897fb726d48Sopenharmony_ci itRow.rowType = 'dma-vmTracker'; 898fb726d48Sopenharmony_ci itRow.rowId = '98'; 899fb726d48Sopenharmony_ci expect(selectionParam.pushDmaVmTracker(itRow, sp)).toBeUndefined(); 900fb726d48Sopenharmony_ci }); 901fb726d48Sopenharmony_ci 902fb726d48Sopenharmony_ci it('BoxSelectionTest73', function () { 903fb726d48Sopenharmony_ci itRow.rowType = 'purgeable-total-ability'; 904fb726d48Sopenharmony_ci itRow.rowId = '98'; 905fb726d48Sopenharmony_ci expect(selectionParam.pushPugreable(itRow, sp)).toBeUndefined(); 906fb726d48Sopenharmony_ci }); 907fb726d48Sopenharmony_ci 908fb726d48Sopenharmony_ci it('BoxSelectionTest74', function () { 909fb726d48Sopenharmony_ci itRow.rowType = 'purgeable-pin-ability'; 910fb726d48Sopenharmony_ci itRow.rowId = '98'; 911fb726d48Sopenharmony_ci expect(selectionParam.pushPugreablePinAbility(itRow, sp)).toBeUndefined(); 912fb726d48Sopenharmony_ci }); 913fb726d48Sopenharmony_ci 914fb726d48Sopenharmony_ci it('BoxSelectionTest75', function () { 915fb726d48Sopenharmony_ci itRow.rowType = 'purgeable-total-vm'; 916fb726d48Sopenharmony_ci itRow.rowId = '98'; 917fb726d48Sopenharmony_ci expect(selectionParam.pushPugreableTotalVm(itRow, sp)).toBeUndefined(); 918fb726d48Sopenharmony_ci }); 919fb726d48Sopenharmony_ci 920fb726d48Sopenharmony_ci it('BoxSelectionTest76', function () { 921fb726d48Sopenharmony_ci itRow.rowType = 'purgeable-pin-vm'; 922fb726d48Sopenharmony_ci itRow.rowId = '98'; 923fb726d48Sopenharmony_ci expect(selectionParam.pushPugreablePinVm(itRow, sp)).toBeUndefined(); 924fb726d48Sopenharmony_ci }); 925fb726d48Sopenharmony_ci 926fb726d48Sopenharmony_ci it('BoxSelectionTest77', function () { 927fb726d48Sopenharmony_ci itRow.rowType = 'logs'; 928fb726d48Sopenharmony_ci itRow.rowId = '98'; 929fb726d48Sopenharmony_ci expect(selectionParam.pushLogs(itRow, sp)).toBeUndefined(); 930fb726d48Sopenharmony_ci }); 931fb726d48Sopenharmony_ci 932fb726d48Sopenharmony_ci it('BoxSelectionTest78', function () { 933fb726d48Sopenharmony_ci itRow.rowType = 'hi-sysevent'; 934fb726d48Sopenharmony_ci itRow.rowId = '98'; 935fb726d48Sopenharmony_ci expect(selectionParam.pushHiSysEvent(itRow, sp)).toBeUndefined(); 936fb726d48Sopenharmony_ci }); 937fb726d48Sopenharmony_ci 938fb726d48Sopenharmony_ci it('BoxSelectionTest79', function () { 939fb726d48Sopenharmony_ci itRow.rowType = 'sample'; 940fb726d48Sopenharmony_ci itRow.rowId = '98'; 941fb726d48Sopenharmony_ci expect(selectionParam.pushSelection(itRow, sp)).toBeUndefined(); 942fb726d48Sopenharmony_ci }); 943fb726d48Sopenharmony_ci}); 944