/development/tools/winscope/src/trace_collection/wdp/ |
D | stream_provider_test.ts | 52 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/ |
D | select_with_filter_component_test.ts | 80 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 …]
|
D | search_box_component_test.ts | 69 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(
|
D | tree_node_component_test.ts | 100 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 …]
|
D | tree_component_test.ts | 85 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);
|
D | collapsible_section_title_component_test.ts | 51 const spy = spyOn(component.collapseButtonClicked, 'emit'); constant 57 expect(spy).toHaveBeenCalledTimes(1);
|
D | collapsed_sections_component_test.ts | 82 const spy = spyOn(component.sectionChange, 'emit'); constant 88 expect(spy).toHaveBeenCalledOnceWith(CollapsibleSectionType.HIERARCHY);
|
D | log_component_test.ts | 145 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);
|
D | hierarchy_component_test.ts | 235 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/ |
D | upload_traces_component_test.ts | 86 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 …]
|
D | winscope_proxy_setup_component_test.ts | 99 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');
|
D | collect_traces_component_test.ts | 148 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 …]
|
D | wdp_setup_component_test.ts | 96 const spy = spyOn(assertDefined(component.retryConnection), 'emit'); constant 101 expect(spy).toHaveBeenCalled();
|
/development/tools/winscope/src/viewers/viewer_media_based/ |
D | presenter_test.ts | 71 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/ |
D | log_viewer_presenter_test.ts | 131 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 …]
|
D | hierarchy_viewer_presenter_test.ts | 184 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/ |
D | presenter_test.ts | 73 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 …]
|
D | viewer_search_component_test.ts | 202 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/ |
D | presenter_test.ts | 264 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/ |
D | adb_host_connection_test.ts | 40 const spy = spyOn( constant 45 expect(spy).toHaveBeenCalledTimes(1);
|
/development/tools/winscope/src/viewers/viewer_input/ |
D | presenter_test.ts | 394 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/ |
D | presenter_test.ts | 384 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/ |
D | utils.ts | 75 spy: jasmine.Spy, 81 spy.and.callThrough().and.callFake(() => {
|
/development/tools/winscope/src/app/components/timeline/expanded-timeline/ |
D | default_timeline_row_component_test.ts | 242 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/ |
D | trace_collection_controller_test.ts | 114 const spy = spyOn( constant 119 expect(spy).toHaveBeenCalledTimes(1); 130 spies.forEach((spy) => expect(spy).toHaveBeenCalledTimes(1));
|