mirror of
https://github.com/nasa/openmct.git
synced 2025-01-19 11:17:04 +00:00
[Mobile] Test
QueryService (mock) added to the ContextMenuGestureSpec to account for isMobile call that allows/ disallows use of contextmenu gesture.
This commit is contained in:
parent
a89f9eed42
commit
200c6e49fc
@ -43,6 +43,7 @@ define(
|
||||
mockBody,
|
||||
mockWindow,
|
||||
mockRootScope,
|
||||
mockQueryService,
|
||||
mockScope,
|
||||
mockElement,
|
||||
mockDomainObject,
|
||||
@ -59,12 +60,14 @@ define(
|
||||
mockWindow = { innerWidth: MENU_DIMENSIONS[0] * 4, innerHeight: MENU_DIMENSIONS[1] * 4 };
|
||||
mockRootScope = jasmine.createSpyObj("$rootScope", ["$new"]);
|
||||
mockScope = {};
|
||||
mockQueryService = jasmine.createSpyObj("queryService", ["isMobile"]);
|
||||
mockElement = jasmine.createSpyObj("element", JQLITE_FUNCTIONS);
|
||||
mockDomainObject = jasmine.createSpyObj("domainObject", DOMAIN_OBJECT_METHODS);
|
||||
mockEvent = jasmine.createSpyObj("event", ["preventDefault"]);
|
||||
mockEvent.pageX = 0;
|
||||
mockEvent.pageY = 0;
|
||||
|
||||
|
||||
|
||||
mockCompile.andReturn(mockCompiledTemplate);
|
||||
mockCompiledTemplate.andReturn(mockMenu);
|
||||
mockDocument.find.andReturn(mockBody);
|
||||
@ -75,6 +78,7 @@ define(
|
||||
mockDocument,
|
||||
mockWindow,
|
||||
mockRootScope,
|
||||
mockQueryService,
|
||||
mockElement,
|
||||
mockDomainObject
|
||||
);
|
||||
|
Loading…
Reference in New Issue
Block a user