| /developtools/smartperf_host/ide/test/trace/bean/ |
| D | NativeHook.test.ts | 49 expect(nativeHookStatistics).not.toBeUndefined(); 50 expect(nativeHookStatistics).toMatchInlineSnapshot( 52 eventId: expect.any(Number), 53 eventType: expect.any(String), 54 subType: expect.any(String), 55 heapSize: expect.any(Number), 56 addr: expect.any(String), 57 startTs: expect.any(Number), 58 endTs: expect.any(Number), 59 sumHeapSize: expect.any(Number), [all …]
|
| D | PerfProfile.test.ts | 49 expect(perfFile).not.toBeUndefined(); 50 expect(perfFile).toMatchInlineSnapshot( 52 fileId: expect.any(Number), 53 symbol: expect.any(String), 54 path: expect.any(String), 55 fileName: expect.any(String) }, ` 73 expect(perfThread).not.toBeUndefined(); 74 expect(perfThread).toMatchInlineSnapshot( 76 tid: expect.any(Number), 77 pid: expect.any(Number), [all …]
|
| D | EnergyStruct.test.ts | 23 expect(powerDetailsEnergy).not.toBeUndefined(); 24 expect(powerDetailsEnergy).toMatchInlineSnapshot( 26 charge: expect.any(Number), 27 background_time: expect.any(Number), 28 screen_on_time: expect.any(Number), 29 screen_off_time: expect.any(Number), 30 load: expect.any(String), 31 usage: expect.any(Number), 32 duration: expect.any(Number), 33 camera_id: expect.any(Number), [all …]
|
| D | AbilityMonitor.test.ts | 55 expect(systemCpuSummary).not.toBeUndefined(); 56 expect(systemCpuSummary).toMatchInlineSnapshot( 58 startTime: expect.any(Number), 59 startTimeStr: expect.any(String), 60 duration: expect.any(Number), 61 durationStr: expect.any(String), 62 totalLoad: expect.any(Number), 63 totalLoadStr: expect.any(String), 64 userLoad: expect.any(Number), 65 userLoadStr: expect.any(String), [all …]
|
| D | BoxSelection.test.ts | 38 expect(selectionParam).not.toBeUndefined(); 39 expect(selectionParam).toMatchInlineSnapshot( 41 cpus: expect.any(Number), 42 threadIds: expect.any(Number), 43 trackIds: expect.any(Number), 44 funTids: expect.any(Number), 45 heapIds: expect.any(Number), 46 nativeMemory: expect.any(Number), 47 leftNs: expect.any(Number), 48 rightNs: expect.any(Number), [all …]
|
| D | SmapsStruct.test.ts | 42 expect(sMaps).not.toBeUndefined(); 43 expect(sMaps).toMatchInlineSnapshot( 45 tsNS: expect.any(Number), 46 start_addr: expect.any(String), 47 end_addr: expect.any(String), 48 permission: expect.any(String), 49 path: expect.any(String), 50 size: expect.any(Number), 51 rss: expect.any(Number), 52 pss: expect.any(Number), [all …]
|
| D | StateProcessThread.test.ts | 28 expect(sliceGroup).not.toBeUndefined(); 29 expect(sliceGroup).toMatchInlineSnapshot( 31 title: expect.any(String), 32 count: expect.any(Number), 33 minDuration: expect.any(Number), 34 maxDuration: expect.any(Number), 35 avgDuration: expect.any(String) }, ` 65 expect(sptChild).not.toBeUndefined(); 66 expect(sptChild).toMatchInlineSnapshot( 68 process: expect.any(String), [all …]
|
| D | CpuUsage.test.ts | 37 expect(cpuUsage).not.toBeUndefined(); 38 expect(cpuUsage).toMatchInlineSnapshot( 40 cpu: expect.any(Number), 41 usage: expect.any(Number), 42 usageStr: expect.any(String), 43 top1: expect.any(Number), 44 top2: expect.any(Number), 45 top3: expect.any(Number), 46 top1Percent: expect.any(Number), 47 top1PercentStr: expect.any(String), [all …]
|
| D | SdkSummary.test.ts | 26 expect(counterSummary).not.toBeUndefined(); 27 expect(counterSummary).toMatchInlineSnapshot( 29 value: expect.any(Number), 30 ts: expect.any(Number), 31 counter_id: expect.any(Number) }, ` 49 expect(sdkSliceSummary).not.toBeUndefined(); 50 expect(sdkSliceSummary).toMatchInlineSnapshot( 52 start_ts: expect.any(Number), 53 end_ts: expect.any(Number), 54 value: expect.any(Number), [all …]
|
| /developtools/smartperf_host/ide/test/trace/component/trace/base/ |
| D | Utils.test.ts | 24 expect(instance).toBe(instance2); 29 expect(instance.getStatusMap().get('D')).toBe('Uninterruptible Sleep'); 33 expect(Utils.getEndState('D')).toBe('Uninterruptible Sleep'); 37 expect(Utils.getEndState('')).toBe(''); 41 expect(Utils.getEndState('ggg')).toBe('Unknown State'); 45 expect(Utils.getStateColor('D')).toBe('#f19b38'); 49 expect(Utils.getStateColor('R')).toBe('#a0b84d'); 52 expect(Utils.getStateColor('I')).toBe('#673ab7'); 56 expect(Utils.getStateColor('Running')).toBe('#467b3b'); 60 expect(Utils.getStateColor('S')).toBe('#e0e0e0'); [all …]
|
| D | TraceRow.test.ts | 37 expect(traceRow).not.toBeUndefined(); 41 expect(traceRow.sleeping).toBeFalsy(); 46 expect(traceRow.sleeping).toBeTruthy(); 51 expect(traceRow.sleeping).toBeFalsy(); 55 expect(traceRow.rangeSelect).toBeFalsy(); 60 expect(traceRow.rangeSelect).toBeTruthy(); 83 expect(traceRow.clearCanvas(ctx)).toBeUndefined(); 111 expect(traceRow.drawLines(ctx)).toBeUndefined(); 133 expect(traceRow.drawSelection(ctx)).toBeUndefined(); 137 expect(traceRow.collect).toBeFalsy(); [all …]
|
| /developtools/smartperf_host/ide/test/trace/database/logic-worker/ |
| D | ProcedureLogicWorkerCommon.test.ts | 33 expect(chartStruct).not.toBeUndefined(); 38 expect(msg).not.toBeUndefined(); 43 expect(merageBean).not.toBeUndefined(); 49 expect(merageBean.parentNode).toBeTruthy(); 55 expect(merageBean.parentNode).toBeFalsy(); 61 expect(merageBean.total).toBeTruthy(); 67 expect(merageBean.total).toBeFalsy(); 73 … expect(merageBeanDataSplit.splitTree('', [{ children: [] }], '', true, [''], '')).toBeUndefined(); 78 …expect(merageBeanDataSplit.splitTree('', [{ children: [] }], '', false, [''], '')).toBeUndefined(); 82 expect(getByteWithUnit(-1_000_000_001)).toBe('-953.67 Mb'); [all …]
|
| D | ProcedureLogicWorkerFileSystem.test.ts | 36 expect(procedureLogicWorkerFileSystem).not.toBeUndefined(); 45 expect(procedureLogicWorkerFileSystem.handle(data)).toBeUndefined(); 56 expect(procedureLogicWorkerFileSystem.handle(data)).toBeUndefined(); 66 expect(procedureLogicWorkerF.handle(data)).toBeUndefined(); 82 expect(procedureLogicWorkerF.handle(data)).toBeUndefined(); 93 expect(procedureLogicWorkerFileSystem.handle(data)).toBeUndefined(); 104 expect(procedureLogicWorkerFileSystem.handle(data)).toBeUndefined(); 109 expect(handlerMap.clearSplitMapData([true])).toBeUndefined(); 120 expect(fileCallChain).not.toBeUndefined(); 130 expect(stack).not.toBeUndefined(); [all …]
|
| D | ProcedureLogicWorkerPerf.test.ts | 33 expect(procedureLogicWorkerPerf).not.toBeUndefined(); 49 expect(procedureLogicWorkerPerf.handle(data)).toBeUndefined(); 65 expect(procedureLogicWorkerPerf.handle(data)).toBeUndefined(); 81 expect(procedureLogicWorkerPerf.handle(data)).toBeUndefined(); 97 expect(procedureLogicWorkerPerf.handle(data)).toBeUndefined(); 114 expect(procedureLogicWorkerPerf.handle(data)).toBeUndefined(); 130 expect(procedureLogicWorkerPerf.handle(data)).toBeUndefined(); 147 expect(procedureLogicWorkerPerf.handle(data)).toBeUndefined(); 152 expect(procedureLogicWorkerPerf.clearAll()).toBeUndefined(); 164 expect(perfCountSample).not.toBeUndefined(); [all …]
|
| D | ProcedureLogicWorkerNativeNemory.test.ts | 37 expect(procedureLogicWorkerNativeMemory).not.toBeUndefined(); 58 expect(nativeHookStatistics).not.toBeUndefined(); 63 expect(nativeHookCallInfo).not.toBeUndefined(); 77 expect(heapTreeDataBean).not.toBeUndefined(); 100 expect(nativeMemory).not.toBeUndefined(); 105 expect(heapStruct).not.toBeUndefined(); 110 expect(statisticsSelection).not.toBeUndefined(); 114 expect(procedureLogicWorkerNativeMemory.clearAll()).toBeUndefined(); 118 expect(procedureLogicWorkerNativeMemory.getTypeFromIndex(-1, '', '')).toBeFalsy(); 122 expect(procedureLogicWorkerNativeMemory.getTypeFromIndex(0, '', '')).toBeTruthy(); [all …]
|
| /developtools/smartperf_host/ide/test/hdc/message/ |
| D | TransferConfig.test.ts | 21 expect(transferConfig).not.toBeUndefined(); 25 expect(transferConfig.fileSize).toBeUndefined(); 30 expect(transferConfig.fileSize).toBeTruthy(); 34 expect(transferConfig.atime).toBeUndefined(); 39 expect(transferConfig.atime).toBeTruthy(); 43 expect(transferConfig.mtime).toBeUndefined(); 48 expect(transferConfig.mtime).toBeTruthy(); 52 expect(transferConfig.options).toBeFalsy(); 57 expect(transferConfig.options).toBeTruthy(); 61 expect(transferConfig.path).toBeUndefined(); [all …]
|
| D | DataMessage.test.ts | 23 expect(dataMessage).not.toBeUndefined(); 27 expect(dataMessage.usbHead).toBeUndefined(); 32 expect(dataMessage.usbHead).toBeTruthy(); 36 expect(dataMessage.channelId).toBe(-1); 41 expect(dataMessage.channelId).toBeTruthy(); 45 expect(dataMessage.result).toBe(''); 50 expect(dataMessage.result).toBeTruthy(); 54 expect(dataMessage.channelClose).toBeFalsy(); 59 expect(dataMessage.channelClose).toBeTruthy(); 63 expect(dataMessage.commandFlag).toBe(-1); [all …]
|
| /developtools/ace_ets2bundle/compiler/test/ark_compiler_ut/common/ |
| D | process_ark_config.test.ts | 17 import { expect } from 'chai'; 69 expect(arkConfig.nodePath === NODE_JS_PATH).to.be.true; 70 expect(arkConfig.es2abcPath.indexOf(ES2ABC_PATH) > 0).to.be.true; 71 expect(arkConfig.ts2abcPath.indexOf(TS2ABC_PATH) > 0).to.be.true; 72 expect(arkConfig.mergeAbcPath.indexOf(MERGERABC_PATH) > 0).to.be.true; 73 expect(arkConfig.js2abcPath.indexOf(JS2ABC_PATH) > 0).to.be.true; 74 expect(arkConfig.aotCompilerPath.indexOf(AOTCOMPILER_PATH) > 0).to.be.true; 75 expect(arkConfig.isDebug === true).to.be.true; 76 expect(arkConfig.arkRootPath === this.rollup.share.projectConfig.arkFrontendDir).to.be.true; 84 expect(arkConfig.nodePath === NODE).to.be.true; [all …]
|
| /developtools/smartperf_host/ide/test/base-ui/untils/ |
| D | ExcelFormater.test.ts | 23 expect(result).toBe('Hello, Alice!'); 32 expect(result).toContain('<Row>'); 33 expect(result).toContain('<Cell><Data ss:Type="String">Alice</Data></Cell>'); 34 expect(result).toContain('<Cell><Data ss:Type="String">30</Data></Cell>'); 48 expect(result).toContain('<Row>'); 49 expect(result).toContain('<Cell><Data ss:Type="String">Parent 1</Data></Cell>'); 50 …expect(result).toContain('<Row><Cell><Data ss:Type=\"String\">Parent 1</Data></Cell></Row><Row><Ce… 55 expect(result).toContain('<Row>'); 56 expect(result).toContain(`<div><img src="${baseStr}"></img></div>`); 68 expect(result).toContain('<thead>'); [all …]
|
| /developtools/profiler/device/plugins/memory_plugin/test/unittest/ |
| D | smaps_stats_unittest.cpp | 253 MemUsageInfo expect = {0, 0, 4}; variable 258 EXPECT_EQ(expect.vss, target.vss); 259 EXPECT_EQ(expect.rss, target.rss); 260 EXPECT_EQ(expect.pss, target.pss); 261 EXPECT_EQ(expect.uss, target.uss); 262 EXPECT_EQ(expect.swap, target.swap); 263 EXPECT_EQ(expect.swapPss, target.swapPss); 264 EXPECT_EQ(expect.privateClean, target.privateClean); 265 EXPECT_EQ(expect.privateDirty, target.privateDirty); 266 EXPECT_EQ(expect.sharedClean, target.sharedClean); [all …]
|
| /developtools/smartperf_host/ide/test/base-ui/tree/ |
| D | LitTreeNode.test.ts | 34 expect(litTreeNode.data).toStrictEqual([]); 37 expect(litTreeNode.checkable).toStrictEqual("true"); 40 expect(litTreeNode.multiple).toStrictEqual(true); 43 expect(litTreeNode.iconName).toStrictEqual(''); 46 expect(litTreeNode.topDepth).toStrictEqual(true); 49 expect(litTreeNode.arrow).toStrictEqual(true); 52 expect(litTreeNode.open).toStrictEqual('true'); 55 expect(litTreeNode.selected).toStrictEqual(true); 58 expect(litTreeNode.checked).toStrictEqual(false); 61 expect(litTreeNode.expand()).toBeUndefined(); [all …]
|
| D | LitTree.test.ts | 25 expect(litTree.treeData).toStrictEqual([]); 28 expect(litTree.multiple).toStrictEqual(true); 31 expect(litTree.foldable).toBeUndefined(); 34 expect(litTree.getCheckdKeys()).toStrictEqual([]); 37 expect(litTree.getCheckdNodes()).toStrictEqual([]); 40 expect(litTree.expandKeys(['c', 'a'])).toBeUndefined(); 43 expect(litTree.collapseKeys(['cq', 'a'])).toBeUndefined(); 46 expect(litTree.checkedKeys(['a'])).toBeUndefined(); 49 expect(litTree.uncheckedKeys(['abc'])).toBeUndefined(); 54 expect(litTree.drawTree(ul, [{}, {}], true)).toBeUndefined(); [all …]
|
| /developtools/smartperf_host/ide/test/trace/component/setting/ |
| D | SpSdkConfig.test.ts | 21 expect(spSdkConfig.show).toBeTruthy(); 26 expect(spSdkConfig.show).toBeFalsy(); 31 expect(spSdkConfig.startSamp).toBeTruthy(); 36 expect(spSdkConfig.startSamp).toBeFalsy(); 41 expect(spSdkConfig.configName).toBeDefined(); 46 expect(spSdkConfig.configName).toBeDefined(); 51 expect(spSdkConfig.type).toBeDefined(); 56 expect(spSdkConfig.type).toBeDefined(); 60 expect(spSdkConfig.getPlugName()).not.toBeUndefined(); 64 expect(spSdkConfig.getSampleInterval()).not.toBeUndefined(); [all …]
|
| /developtools/smartperf_host/ide/test/base-ui/select/ |
| D | LitSelectV.test.ts | 21 expect(litSelectV.value).not.toBeUndefined(); 25 expect(litSelectV.rounded).toBeTruthy(); 29 expect(litSelectV.rounded).toBeFalsy(); 32 expect(litSelectV.placement).toBe(''); 36 expect(litSelectV.placement).toBeTruthy(); 40 expect(litSelectV.placement).toBeFalsy(); 44 expect(litSelectV.border).toBeTruthy(); 48 expect(litSelectV.border).toBe('false'); 52 expect(litSelectV.border).toBe('true'); 56 expect(litSelectV.defaultValue).toBe('test'); [all …]
|
| /developtools/smartperf_host/ide/test/base-ui/slider/ |
| D | LitSlider.test.ts | 29 expect(litSliderPanel.disabledX).toEqual(''); 33 expect(litSliderPanel.customSlider).toEqual(''); 37 expect(litSliderPanel.customLine).toEqual('customLine'); 41 expect(litSliderPanel.customButton).toEqual('customButton'); 45 expect(litSliderPanel.percent).toEqual('percent'); 49 expect(litSliderPanel.resultUnit).toEqual('resultUnit'); 53 expect(litSliderPanel.formatSeconds(10)).toBe('00:00:10'); 57 expect(litSliderPanel.adoptedCallback()).toBeUndefined(); 61 expect(litSliderPanel.disconnectedCallback()).toBeUndefined(); 65 expect(litSliderPanel.disconnectedCallback()).toBeUndefined(); [all …]
|