[Mobile[ Tests

Added jasmine test for

QUerySerivce and adjusted
the InfoGestureSpec to
account for use of
QueryService.
This commit is contained in:
Shivam Dave
2015-07-23 09:28:36 -07:00
parent 1f7ba70ad7
commit b3bc8b6876
5 changed files with 75 additions and 2 deletions

View File

@@ -28,6 +28,7 @@ define(
describe("The info gesture", function () {
var mockTimeout,
mockQueryService,
mockInfoService,
testDelay = 12321,
mockElement,
@@ -50,6 +51,7 @@ define(
beforeEach(function () {
mockTimeout = jasmine.createSpy('$timeout');
mockTimeout.cancel = jasmine.createSpy('cancel');
mockQueryService = jasmine.createSpyObj('queryService', ['isMobile']);
mockInfoService = jasmine.createSpyObj(
'infoService',
[ 'display' ]
@@ -79,6 +81,7 @@ define(
gesture = new InfoGesture(
mockTimeout,
mockQueryService,
mockInfoService,
testDelay,
mockElement,