Home
last modified time | relevance | path

Searched refs:expect (Results 1 – 25 of 328) sorted by relevance

12345678910>>...14

/developtools/smartperf_host/ide/test/trace/bean/
DNativeHook.test.ts50 expect(nativeHookStatistics).not.toBeUndefined();
51 expect(nativeHookStatistics).toMatchInlineSnapshot(
53 eventId: expect.any(Number),
54 eventType: expect.any(String),
55 subType: expect.any(String),
56 heapSize: expect.any(Number),
57 addr: expect.any(String),
58 startTs: expect.any(Number),
59 endTs: expect.any(Number),
60 sumHeapSize: expect.any(Number),
[all …]
DPerfProfile.test.ts50 expect(perfFile).not.toBeUndefined();
51 expect(perfFile).toMatchInlineSnapshot(
53 fileId: expect.any(Number),
54 symbol: expect.any(String),
55 path: expect.any(String),
56 fileName: expect.any(String) }, `
74 expect(perfThread).not.toBeUndefined();
75 expect(perfThread).toMatchInlineSnapshot(
77 tid: expect.any(Number),
78 pid: expect.any(Number),
[all …]
DEnergyStruct.test.ts24 expect(powerDetailsEnergy).not.toBeUndefined();
25 expect(powerDetailsEnergy).toMatchInlineSnapshot(
27 charge: expect.any(Number),
28 background_time: expect.any(Number),
29 screen_on_time: expect.any(Number),
30 screen_off_time: expect.any(Number),
31 load: expect.any(String),
32 usage: expect.any(Number),
33 duration: expect.any(Number),
34 camera_id: expect.any(Number),
[all …]
DAbilityMonitor.test.ts51 expect(systemCpuSummary).not.toBeUndefined();
52 expect(systemCpuSummary).toMatchInlineSnapshot(
54 startTime: expect.any(Number),
55 startTimeStr: expect.any(String),
56 duration: expect.any(Number),
57 durationStr: expect.any(String),
58 totalLoad: expect.any(Number),
59 totalLoadStr: expect.any(String),
60 userLoad: expect.any(Number),
61 userLoadStr: expect.any(String),
[all …]
DBoxSelection.test.ts39 expect(selectionParam).not.toBeUndefined();
40 expect(selectionParam).toMatchInlineSnapshot(
42 cpus: expect.any(Number),
43 threadIds: expect.any(Number),
44 trackIds: expect.any(Number),
45 funTids: expect.any(Number),
46 heapIds: expect.any(Number),
47 nativeMemory: expect.any(Number),
48 leftNs: expect.any(Number),
49 rightNs: expect.any(Number),
[all …]
DSmapsStruct.test.ts43 expect(sMaps).not.toBeUndefined();
44 expect(sMaps).toMatchInlineSnapshot(
46 tsNS: expect.any(Number),
47 start_addr: expect.any(String),
48 end_addr: expect.any(String),
49 permission: expect.any(String),
50 path: expect.any(String),
51 size: expect.any(Number),
52 rss: expect.any(Number),
53 pss: expect.any(Number),
[all …]
DStateProcessThread.test.ts42 expect(stateProcessThread).not.toBeUndefined();
43 expect(stateProcessThread).toMatchInlineSnapshot(
45 id: expect.any(String),
46 pid: expect.any(String),
47 title: expect.any(String),
48 process: expect.any(String),
49 processId: expect.any(Number),
50 thread: expect.any(String),
51 threadId: expect.any(Number),
52 wallDuration: expect.any(Number),
[all …]
DCpuUsage.test.ts38 expect(cpuUsage).not.toBeUndefined();
39 expect(cpuUsage).toMatchInlineSnapshot(
41 cpu: expect.any(Number),
42 usage: expect.any(Number),
43 usageStr: expect.any(String),
44 top1: expect.any(Number),
45 top2: expect.any(Number),
46 top3: expect.any(Number),
47 top1Percent: expect.any(Number),
48 top1PercentStr: expect.any(String),
[all …]
DSdkSummary.test.ts27 expect(counterSummary).not.toBeUndefined();
28 expect(counterSummary).toMatchInlineSnapshot(
30 value: expect.any(Number),
31 ts: expect.any(Number),
32 counter_id: expect.any(Number) }, `
50 expect(sdkSliceSummary).not.toBeUndefined();
51 expect(sdkSliceSummary).toMatchInlineSnapshot(
53 start_ts: expect.any(Number),
54 end_ts: expect.any(Number),
55 value: expect.any(Number),
[all …]
/developtools/smartperf_host/ide/test/trace/component/trace/base/
DUtils.test.ts25 expect(instance).toBe(instance2);
30 expect(instance.getStatusMap().get('D')).toBe('Uninterruptible Sleep');
34 expect(Utils.getEndState('D')).toBe('Uninterruptible Sleep');
38 expect(Utils.getEndState('')).toBe('');
42 expect(Utils.getEndState('ggg')).toBe('Unknown State');
46 expect(Utils.getStateColor('D')).toBe('#f19b38');
50 expect(Utils.getStateColor('R')).toBe('#a0b84d');
53 expect(Utils.getStateColor('I')).toBe('#673ab7');
57 expect(Utils.getStateColor('Running')).toBe('#467b3b');
61 expect(Utils.getStateColor('S')).toBe('#e0e0e0');
[all …]
DTraceRow.test.ts38 expect(traceRow).not.toBeUndefined();
42 expect(traceRow.sleeping).toBeFalsy();
47 expect(traceRow.sleeping).toBeTruthy();
52 expect(traceRow.sleeping).toBeFalsy();
56 expect(traceRow.rangeSelect).toBeFalsy();
61 expect(traceRow.rangeSelect).toBeTruthy();
84 expect(traceRow.clearCanvas(ctx)).toBeUndefined();
112 expect(traceRow.drawLines(ctx)).toBeUndefined();
134 expect(traceRow.drawSelection(ctx)).toBeUndefined();
138 expect(traceRow.collect).toBeFalsy();
[all …]
/developtools/smartperf_host/ide/test/trace/database/logic-worker/
DProcedureLogicWorkerCommon.test.ts32 expect(chartStruct).not.toBeUndefined();
37 expect(msg).not.toBeUndefined();
42 expect(merageBean).not.toBeUndefined();
48 expect(merageBean.parentNode).toBeTruthy();
54 expect(merageBean.parentNode).toBeFalsy();
60 expect(merageBean.total).toBeTruthy();
66 expect(merageBean.total).toBeFalsy();
72expect(merageBeanDataSplit.splitTree('', [{ children: [] }], '', true, [''], '')).toBeUndefined();
77expect(merageBeanDataSplit.splitTree('', [{ children: [] }], '', false, [''], '')).toBeUndefined();
86 expect(merageBeanDataSplit.recursionChargeInitTree('', node, '', true)).toBeTruthy();
[all …]
DProcedureLogicWorkerFileSystem.test.ts37 expect(procedureLogicWorkerFileSystem).not.toBeUndefined();
46 expect(procedureLogicWorkerFileSystem.handle(data)).toBeUndefined();
57 expect(procedureLogicWorkerFileSystem.handle(data)).toBeUndefined();
67 expect(procedureLogicWorkerF.handle(data)).toBeUndefined();
83 expect(procedureLogicWorkerF.handle(data)).toBeUndefined();
94 expect(procedureLogicWorkerFileSystem.handle(data)).toBeUndefined();
105 expect(procedureLogicWorkerFileSystem.handle(data)).toBeUndefined();
110 expect(handlerMap.clearSplitMapData([true])).toBeUndefined();
121 expect(fileCallChain).not.toBeUndefined();
131 expect(stack).not.toBeUndefined();
[all …]
DProcedureLogicWorkerNativeNemory.test.ts40 expect(procedureLogicWorkerNativeMemory).not.toBeUndefined();
61 expect(nativeHookStatistics).not.toBeUndefined();
66 expect(nativeHookCallInfo).not.toBeUndefined();
80 expect(heapTreeDataBean).not.toBeUndefined();
103 expect(nativeMemory).not.toBeUndefined();
108 expect(heapStruct).not.toBeUndefined();
113 expect(nativeEvent).not.toBeUndefined();
118 expect(statisticsSelection).not.toBeUndefined();
122 expect(procedureLogicWorkerNativeMemory.clearAll()).toBeUndefined();
126 expect(procedureLogicWorkerNativeMemory.getTypeFromIndex(-1, '', '')).toBeFalsy();
[all …]
/developtools/smartperf_host/ide/test/hdc/message/
DTransferConfig.test.ts22 expect(transferConfig).not.toBeUndefined();
26 expect(transferConfig.fileSize).toBeUndefined();
31 expect(transferConfig.fileSize).toBeTruthy();
35 expect(transferConfig.atime).toBeUndefined();
40 expect(transferConfig.atime).toBeTruthy();
44 expect(transferConfig.mtime).toBeUndefined();
49 expect(transferConfig.mtime).toBeTruthy();
53 expect(transferConfig.options).toBeFalsy();
58 expect(transferConfig.options).toBeTruthy();
62 expect(transferConfig.path).toBeUndefined();
[all …]
DDataMessage.test.ts24 expect(dataMessage).not.toBeUndefined();
28 expect(dataMessage.usbHead).toBeUndefined();
33 expect(dataMessage.usbHead).toBeTruthy();
37 expect(dataMessage.channelId).toBe(-1);
42 expect(dataMessage.channelId).toBeTruthy();
46 expect(dataMessage.result).toBe('');
51 expect(dataMessage.result).toBeTruthy();
55 expect(dataMessage.channelClose).toBeFalsy();
60 expect(dataMessage.channelClose).toBeTruthy();
64 expect(dataMessage.commandFlag).toBe(-1);
[all …]
DSessionHandShake.test.ts22 expect(sessionHandShake).not.toBeUndefined();
26 expect(sessionHandShake.banner).toBeUndefined();
31 expect(sessionHandShake.banner).toBeTruthy();
35 expect(sessionHandShake.authType).toBeUndefined();
40 expect(sessionHandShake.authType).toBeTruthy();
44 expect(sessionHandShake.sessionId).toBeUndefined();
49 expect(sessionHandShake.sessionId).toBeTruthy();
53 expect(sessionHandShake.connectKey).toBeUndefined();
58 expect(sessionHandShake.connectKey).toBeTruthy();
62 expect(sessionHandShake.buf).toBeUndefined();
[all …]
/developtools/smartperf_host/ide/test/trace/component/
DSpRecordTrace.test.ts33 expect(SpRecordTrace.initHtml).not.toBe('');
38 expect(SpRecordTrace.initElements).toBeUndefined();
50 expect(traceEvents[0].indexOf('binder/binder_lock')).toBe(-1);
59 expect(spRecordTrace.createNativePluginConfig(1)).toEqual({
78 expect(spRecordTrace.createFpsPluginConfig()).not.toBeUndefined();
81 expect(spRecordTrace.vs).not.toBeUndefined();
85 expect(spRecordTrace.vs).toBeTruthy();
92 expect(spRecordTrace.compareArray(devs)).toBeTruthy();
96 expect(spRecordTrace.vs).toBeFalsy();
102 expect(spRecordTrace.compareArray(!devs)).toBeTruthy();
[all …]
/developtools/smartperf_host/ide/test/trace/component/chart/
DFrameChart.test.ts53 expect(frameChart.tabPaneScrollTop).toBeFalsy();
57 expect(frameChart.updateFloatHint()).toBeUndefined();
63 expect(frameChart.redrawChart(selectData)).toBeUndefined();
68 expect(index).toBe(undefined);
73 expect(frameChart.translation()).toBeUndefined();
79 expect(frameChart.translation(-1)).toBeUndefined();
84 expect(frameChart.selectTotalCount).toBeFalsy();
91 expect(frameChart.calculateChartData()).not.toBeUndefined();
95 expect(frameChart.updateCanvas()).toBeUndefined();
102 expect(frameChart.translationByScale()).toBe(undefined);
[all …]
/developtools/profiler/device/plugins/memory_plugin/test/unittest/
Dsmaps_stats_unittest.cpp254 MemUsageInfo expect = {0, 0, 4}; variable
259 EXPECT_EQ(expect.vss, target.vss);
260 EXPECT_EQ(expect.rss, target.rss);
261 EXPECT_EQ(expect.pss, target.pss);
262 EXPECT_EQ(expect.uss, target.uss);
263 EXPECT_EQ(expect.swap, target.swap);
264 EXPECT_EQ(expect.swapPss, target.swapPss);
265 EXPECT_EQ(expect.privateClean, target.privateClean);
266 EXPECT_EQ(expect.privateDirty, target.privateDirty);
267 EXPECT_EQ(expect.sharedClean, target.sharedClean);
[all …]
/developtools/smartperf_host/ide/test/trace/component/setting/
DSpSdkConfig.test.ts22 expect(spSdkConfig.show).toBeTruthy();
27 expect(spSdkConfig.show).toBeFalsy();
32 expect(spSdkConfig.startSamp).toBeTruthy();
37 expect(spSdkConfig.startSamp).toBeFalsy();
42 expect(spSdkConfig.configName).toBeDefined();
47 expect(spSdkConfig.configName).toBeDefined();
52 expect(spSdkConfig.type).toBeDefined();
57 expect(spSdkConfig.type).toBeDefined();
61 expect(spSdkConfig.getPlugName()).not.toBeUndefined();
65 expect(spSdkConfig.getSampleInterval()).not.toBeUndefined();
[all …]
/developtools/smartperf_host/ide/test/base-ui/tree/
DLitTreeNode.test.ts35 expect(litTreeNode.data).toStrictEqual([]);
38 expect(litTreeNode.checkable).toStrictEqual("true");
41 expect(litTreeNode.multiple).toStrictEqual(true);
44 expect(litTreeNode.iconName).toStrictEqual('');
47 expect(litTreeNode.topDepth).toStrictEqual(true);
50 expect(litTreeNode.arrow).toStrictEqual(true);
53 expect(litTreeNode.open).toStrictEqual('true');
56 expect(litTreeNode.selected).toStrictEqual(true);
59 expect(litTreeNode.checked).toStrictEqual(false);
62 expect(litTreeNode.expand()).toBeUndefined();
[all …]
/developtools/smartperf_host/ide/test/base-ui/select/
DLitSelectV.test.ts22 expect(litSelectV.value).not.toBeUndefined();
26 expect(litSelectV.rounded).toBeTruthy();
30 expect(litSelectV.rounded).toBeFalsy();
33 expect(litSelectV.placement).toBe('');
37 expect(litSelectV.placement).toBeTruthy();
41 expect(litSelectV.placement).toBeFalsy();
45 expect(litSelectV.border).toBeTruthy();
49 expect(litSelectV.border).toBe('false');
53 expect(litSelectV.border).toBe('true');
57 expect(litSelectV.defaultValue).toBe('test');
[all …]
/developtools/smartperf_host/ide/test/base-ui/slider/
DLitSlider.test.ts30 expect(litSliderPanel.disabledX).toEqual('');
34 expect(litSliderPanel.customSlider).toEqual('');
38 expect(litSliderPanel.customLine).toEqual('customLine');
42 expect(litSliderPanel.customButton).toEqual('customButton');
46 expect(litSliderPanel.percent).toEqual('percent');
50 expect(litSliderPanel.resultUnit).toEqual('resultUnit');
54 expect(litSliderPanel.formatSeconds(10)).toBe('00:00:10');
58 expect(litSliderPanel.adoptedCallback()).toBeUndefined();
62 expect(litSliderPanel.disconnectedCallback()).toBeUndefined();
66 expect(litSliderPanel.disconnectedCallback()).toBeUndefined();
[all …]
/developtools/smartperf_host/ide/test/trace/component/trace/sheet/
DTabPaneFilter.test.ts23 expect(tabPaneFilter.firstSelect).toBe('');
27 expect(tabPaneFilter.secondSelect).toBe('');
31 expect(tabPaneFilter.filterValue).toBe('');
36 expect(tabPaneFilter.filterValue).toBeTruthy();
40 expect(tabPaneFilter.icon).toBe('block');
45 expect(tabPaneFilter.icon).toBe('block');
50 expect(tabPaneFilter.icon).toBe('');
55 expect(tabPaneFilter.icon).toBe('');
60 expect(tabPaneFilter.icon).toBe('block');
65 expect(tabPaneFilter.icon).toBe('tree');
[all …]

12345678910>>...14