Permalink
Browse files
test($$isDocumentHidden): really fix jasmine syntax
- Loading branch information
Showing
with
4 additions
and
4 deletions.
-
+4
−4
test/ng/documentSpec.js
|
|
@@ -38,8 +38,8 @@ describe('$$isDocumentHidden', function() { |
|
|
var spy = spyOn(document, 'addEventListener').andCallThrough(); |
|
|
|
|
|
inject(function($$isDocumentHidden, $document) { |
|
|
expect(spy.mostRecentCall().args[0]).toBe('visibilitychange'); |
|
|
expect(spy.mostRecentCall().args[1]).toEqual(jasmine.any(Function)); |
|
|
expect(spy.mostRecentCall.args[0]).toBe('visibilitychange'); |
|
|
expect(spy.mostRecentCall.args[1]).toEqual(jasmine.any(Function)); |
|
|
expect($$isDocumentHidden()).toBeFalsy(); // undefined in browsers that don't support visibility |
|
|
}); |
|
|
|
|
|
@@ -50,8 +50,8 @@ describe('$$isDocumentHidden', function() { |
|
|
|
|
|
inject(function($$isDocumentHidden, $rootScope) { |
|
|
$rootScope.$destroy(); |
|
|
expect(spy.mostRecentCall().args[0]).toBe('visibilitychange'); |
|
|
expect(spy.mostRecentCall().args[1]).toEqual(jasmine.any(Function)); |
|
|
expect(spy.mostRecentCall.args[0]).toBe('visibilitychange'); |
|
|
expect(spy.mostRecentCall.args[1]).toEqual(jasmine.any(Function)); |
|
|
}); |
|
|
}); |
|
|
}); |