Home
last modified time | relevance | path

Searched refs:spy (Results 1 – 25 of 39) sorted by relevance

12

/development/tools/winscope/src/trace_collection/wdp/
Dstream_provider_test.ts52 const spy = spyOn(stream, 'close'); constant
54 expect(spy).toHaveBeenCalledTimes(1);
58 expect(spy).toHaveBeenCalledTimes(1);
83 const spy = spyOn(stream, 'close'); constant
85 expect(spy).toHaveBeenCalledTimes(1);
89 expect(spy).toHaveBeenCalledTimes(1);
102 const spy = spyOn(stream, 'close'); constant
104 expect(spy).toHaveBeenCalledTimes(1);
109 const spy = spyOn(stream, 'close'); constant
111 expect(spy).toHaveBeenCalled();
/development/tools/winscope/src/viewers/components/
Dselect_with_filter_component_test.ts80 const spy = spyOn( constant
91 checkSelectValue(spy, ['0']);
99 checkSelectValue(spy, ['0', '2']);
105 checkSelectValue(spy, ['0', '1', '2']);
109 const spy = spyOn( constant
118 checkSelectValue(spy, ['0']);
121 checkSelectValue(spy, []);
125 const spy = spyOn( constant
134 checkSelectValue(spy, ['0']);
140 checkSelectValue(spy, []);
[all …]
Dsearch_box_component_test.ts69 const spy = spyOn(component.filterChange, 'emit'); constant
74 expect(spy).toHaveBeenCalledWith(new TextFilter('Test'));
79 const spy = spyOn(component.filterChange, 'emit'); constant
86 expect(spy).toHaveBeenCalledWith(
92 expect(spy).toHaveBeenCalledWith(new TextFilter());
96 expect(spy).toHaveBeenCalledWith(
102 expect(spy).toHaveBeenCalledWith(
Dtree_node_component_test.ts100 const spy = spyOn(treeNodeComponent.toggleTreeChange, 'emit'); constant
105 expect(spy).toHaveBeenCalled();
109 const spy = spyOn( constant
117 expect(spy).toHaveBeenCalled();
121 const spy = spyOn( constant
128 expect(spy).not.toHaveBeenCalled();
135 expect(spy).toHaveBeenCalledTimes(1);
181 const spy = spyOn(treeNodeComponent.pinNodeChange, 'emit'); constant
186 expect(spy).toHaveBeenCalledWith(component.node as UiHierarchyTreeNode);
194 const spy = spyOn(treeNodeComponent.rectShowStateChange, 'emit'); constant
[all …]
Dtree_component_test.ts85 const spy = spyOn( constant
91 expect(spy).toHaveBeenCalledTimes(1);
95 expect(spy).toHaveBeenCalledTimes(2);
124 const spy = spyOn( constant
130 expect(spy).toHaveBeenCalled();
293 const spy = spyOn(assertDefined(component.treeComponent), 'onNodeClick'); constant
300 expect(spy).not.toHaveBeenCalled();
332 const spy = spyOn(treeNode, 'scrollIntoView').and.callThrough(); constant
339 expect(spy).toHaveBeenCalledTimes(1);
343 expect(spy).toHaveBeenCalledTimes(1);
Dcollapsible_section_title_component_test.ts51 const spy = spyOn(component.collapseButtonClicked, 'emit'); constant
57 expect(spy).toHaveBeenCalledTimes(1);
Dcollapsed_sections_component_test.ts82 const spy = spyOn(component.sectionChange, 'emit'); constant
88 expect(spy).toHaveBeenCalledOnceWith(CollapsibleSectionType.HIERARCHY);
Dlog_component_test.ts145 const spy = spyOn( constant
150 expect(spy).toHaveBeenCalledWith(1);
313 const spy = spyOn( constant
318 expect(spy).not.toHaveBeenCalled();
343 const spy = spyOn(component, 'areMultipleDatesPresent').and.returnValue( constant
355 spy.and.returnValue(false);
Dhierarchy_component_test.ts235 const spy = spyOn(component.collapseButtonClicked, 'emit'); constant
241 expect(spy).toHaveBeenCalled();
275 const spy = spyOnProperty(msgEl, 'scrollWidth').and.returnValue( constant
280 spy.and.returnValue(msgEl.clientWidth + 1);
/development/tools/winscope/src/app/components/
Dupload_traces_component_test.ts86 const spy = spyOn(component.filesUploaded, 'emit'); constant
88 expect(spy).not.toHaveBeenCalled();
90 expect(spy).toHaveBeenCalledOnceWith(files);
95 const spy = spyOn(component.filesUploaded, 'emit'); constant
97 expect(spy).not.toHaveBeenCalled();
99 expect(spy).toHaveBeenCalledOnceWith(files);
161 const spy = spyOn(component, 'onOperationFinished'); constant
164 expect(spy).toHaveBeenCalled();
171 const spy = spyOn(component, 'onOperationFinished'); constant
174 expect(spy).toHaveBeenCalled();
[all …]
Dwinscope_proxy_setup_component_test.ts99 const spy = spyOn(Download, 'fromUrl'); constant
105 expect(spy).toHaveBeenCalledWith(
115 const spy = spyOn(assertDefined(component.retryConnection), 'emit'); constant
121 expect(spy).toHaveBeenCalledWith('');
125 const spy = spyOn(assertDefined(component.retryConnection), 'emit'); constant
134 expect(spy).not.toHaveBeenCalled();
149 expect(spy).toHaveBeenCalledWith('12345');
153 const spy = spyOn(assertDefined(component.retryConnection), 'emit'); constant
170 expect(spy).toHaveBeenCalledWith('12345');
Dcollect_traces_component_test.ts148 const spy = spyOn(controller, 'restartConnection'); constant
152 expect(spy).toHaveBeenCalled();
183 const spy = setSpyWithDevices([]); constant
187 spy.and.returnValue([mockDevice]);
196 const spy = setSpyWithDevices([mockDevice]); constant
199 spy.and.returnValue([mockDeviceWatch]);
208 const spy = setSpyWithDevices([mockDevice]); constant
215 spy.and.returnValue([mockDeviceWatch]);
224 spy.and.returnValue([mockDevice]);
275 const spy = spyOn(assertDefined(component.controller), 'startTrace'); constant
[all …]
Dwdp_setup_component_test.ts96 const spy = spyOn(assertDefined(component.retryConnection), 'emit'); constant
101 expect(spy).toHaveBeenCalled();
/development/tools/winscope/src/viewers/viewer_media_based/
Dpresenter_test.ts71 const spy = spyOn(presenter, 'onOverlayDblClick'); constant
77 expect(spy).toHaveBeenCalledWith(0);
99 const spy = jasmine.createSpy(); constant
100 presenter.setEmitEvent(spy);
103 expect(spy).not.toHaveBeenCalled();
106 expect(spy).toHaveBeenCalledWith(new ActiveTraceChanged(trace2));
/development/tools/winscope/src/viewers/common/
Dlog_viewer_presenter_test.ts131 let spy: jasmine.Spy = spyOn(presenter, 'onSelectFilterChange'); variable
138 expect(spy).toHaveBeenCalledWith(testHeader, filterDetail.value);
140 spy = spyOn(presenter, 'onTextFilterChange');
150 expect(spy).toHaveBeenCalledWith(testHeader, textFilterDetail.filter);
152 spy = spyOn(presenter, 'onLogEntryClick');
158 expect(spy).toHaveBeenCalledWith(0);
160 spy = spyOn(presenter, 'onArrowDownPress');
162 expect(spy).toHaveBeenCalled();
164 spy = spyOn(presenter, 'onArrowUpPress');
166 expect(spy).toHaveBeenCalled();
[all …]
Dhierarchy_viewer_presenter_test.ts184 let spy: jasmine.Spy = spyOn(presenter, 'onPinnedItemChange'); variable
191 expect(spy).toHaveBeenCalledWith(node);
193 spy = spyOn(presenter, 'onHighlightedIdChange');
199 expect(spy).toHaveBeenCalledWith('test');
201 spy = spyOn(presenter, 'onHighlightedPropertyChange');
207 expect(spy).toHaveBeenCalledWith('test');
209 spy = spyOn(presenter, 'onHierarchyUserOptionsChange');
215 expect(spy).toHaveBeenCalledWith({});
217 spy = spyOn(presenter, 'onHierarchyFilterChange');
222 expect(spy).toHaveBeenCalledWith(filter);
[all …]
/development/tools/winscope/src/viewers/viewer_search/
Dpresenter_test.ts73 let spy: jasmine.Spy = spyOn(presenter, 'onGlobalSearchSectionClick'); variable
77 expect(spy).toHaveBeenCalled();
79 spy = spyOn(presenter, 'onSearchQueryClick');
86 expect(spy).toHaveBeenCalledWith(testQuery, 1);
88 spy = spyOn(presenter, 'onSaveQueryClick');
95 expect(spy).toHaveBeenCalledWith(
100 spy = spyOn(presenter, 'onDeleteSavedQueryClick');
109 expect(spy).toHaveBeenCalledWith(deleteQueryDetail.search);
111 spy = spyOn(presenter, 'addSearch');
113 expect(spy).toHaveBeenCalled();
[all …]
Dviewer_search_component_test.ts202 const spy = jasmine.createSpy(); constant
208 spy();
223 expect(spy).toHaveBeenCalledTimes(1);
272 const spy = spyOn(finalActiveSection, 'scrollIntoView'); constant
284 expect(spy).toHaveBeenCalled();
360 const spy = jasmine.createSpy(); constant
364 spy(),
373 expect(spy).toHaveBeenCalledTimes(1);
/development/tools/winscope/src/viewers/viewer_view_capture/
Dpresenter_test.ts264 const spy: jasmine.Spy = spyOn(presenter, 'onMiniRectsDoubleClick'); constant
266 expect(spy).toHaveBeenCalledTimes(1);
306 const spy = jasmine.createSpy(); constant
307 presenter.setEmitEvent(spy);
310 expect(spy).toHaveBeenCalledOnceWith(
316 const spy = jasmine.createSpy(); constant
317 presenter.setEmitEvent(spy);
319 expect(spy).not.toHaveBeenCalled();
/development/tools/winscope/src/trace_collection/adb/
Dadb_host_connection_test.ts40 const spy = spyOn( constant
45 expect(spy).toHaveBeenCalledTimes(1);
/development/tools/winscope/src/viewers/viewer_input/
Dpresenter_test.ts394 let spy: jasmine.Spy = spyOn(presenter, 'onHighlightedPropertyChange');
400 expect(spy).toHaveBeenCalledWith(testId);
402 spy = spyOn(presenter, 'onHighlightedIdChange');
408 expect(spy).toHaveBeenCalledWith(testId);
410 spy = spyOn(presenter, 'onRectsUserOptionsChange');
417 expect(spy).toHaveBeenCalledWith(userOptions);
419 spy = spyOn(presenter, 'onRectDoubleClick');
421 expect(spy).toHaveBeenCalled();
423 spy = spyOn(presenter, 'onDispatchPropertiesFilterChange');
430 expect(spy).toHaveBeenCalledWith(filter);
[all …]
/development/tools/winscope/src/viewers/viewer_surface_flinger/
Dpresenter_test.ts384 let spy: jasmine.Spy = spyOn(presenter, 'onRectDoubleClick');
391 expect(spy).toHaveBeenCalledWith(testId);
393 spy = spyOn(presenter, 'onRectTypeButtonClicked');
399 expect(spy).toHaveBeenCalledOnceWith(TraceRectType.LAYERS);
491 const spy = jasmine.createSpy(); constant
492 presenter.setEmitEvent(spy);
495 expect(spy).not.toHaveBeenCalled();
499 expect(spy).toHaveBeenCalledOnceWith(
505 const spy = jasmine.createSpy(); constant
506 presenter.setEmitEvent(spy);
[all …]
/development/tools/winscope/src/test/
Dutils.ts75 spy: jasmine.Spy,
81 spy.and.callThrough().and.callFake(() => {
/development/tools/winscope/src/app/components/timeline/expanded-timeline/
Ddefault_timeline_row_component_test.ts242 const spy = spyOn(component.onScrollEvent, 'emit'); constant
245 expect(spy).toHaveBeenCalled();
254 const spy = spyOn(component.onMouseXRatioUpdate, 'emit'); constant
263 expect(spy).toHaveBeenCalledWith(100 / canvas.offsetWidth);
268 expect(spy).toHaveBeenCalledWith(undefined);
/development/tools/winscope/src/trace_collection/controller/
Dtrace_collection_controller_test.ts114 const spy = spyOn( constant
119 expect(spy).toHaveBeenCalledTimes(1);
130 spies.forEach((spy) => expect(spy).toHaveBeenCalledTimes(1));

12