diff options
| author | Igor Minar | 2012-11-15 00:49:19 +0100 | 
|---|---|---|
| committer | Igor Minar | 2012-11-15 01:46:58 +0100 | 
| commit | af7e0bd0a7c286667c526cb7e0c733d3ee5f17fd (patch) | |
| tree | 9831b4235d5a345aac85fbc2561da3b237a52479 /test/ng/snifferSpec.js | |
| parent | bd524fc4e5fc0feffe85632a7a6560da6bd9b762 (diff) | |
| download | angular.js-af7e0bd0a7c286667c526cb7e0c733d3ee5f17fd.tar.bz2 | |
fix(CSP): update to the latest CSP api
window.SecurityPolicy.isActive() is now window.securityPolicy.isActive
since this is available only in Chrome Canary which has already been
updated, we can safely make this change without worrying about
backwards compatilibty.
Closes #1577
Diffstat (limited to 'test/ng/snifferSpec.js')
| -rw-r--r-- | test/ng/snifferSpec.js | 6 | 
1 files changed, 3 insertions, 3 deletions
| diff --git a/test/ng/snifferSpec.js b/test/ng/snifferSpec.js index 8d21a23c..2369deaf 100644 --- a/test/ng/snifferSpec.js +++ b/test/ng/snifferSpec.js @@ -82,14 +82,14 @@ describe('$sniffer', function() {    describe('csp', function() { -    it('should be false if document.SecurityPolicy.isActive not available', function() { +    it('should be false if document.securityPolicy.isActive not available', function() {        expect(sniffer({}, {}).csp).toBe(false);      }); -    it('should use document.SecurityPolicy.isActive() if available', function() { +    it('should use document.securityPolicy.isActive if available', function() {        var createDocumentWithCSP = function(csp) { -        return {SecurityPolicy: {isActive: function() {return csp;}}}; +        return {securityPolicy: {isActive: csp}};        };        expect(sniffer({}, createDocumentWithCSP(false)).csp).toBe(false); | 
