aboutsummaryrefslogtreecommitdiffstats
path: root/test/ng/logSpec.js
diff options
context:
space:
mode:
authorVojta Jina2012-08-09 10:20:39 -0700
committerIgor Minar2012-08-10 14:53:53 -0700
commit167aa0c29c998be33c49d33302e099b36d1ce0be (patch)
treeef405d863f48c26ca417f251ec35a4836c1f7fc6 /test/ng/logSpec.js
parent4ccd9eb88321f8554ee4dc41b7f8068ce2306765 (diff)
downloadangular.js-167aa0c29c998be33c49d33302e099b36d1ce0be.tar.bz2
feat($sniffer): auto detect CSP mode
Chrome Canary now has CSP with apis that allow auto-detection. This change will turn on CSP mode automatically when we detect its presence. https://dvcs.w3.org/hg/content-security-policy/raw-file/tip/csp-specification.dev.html#script-interfaces--experimental
Diffstat (limited to 'test/ng/logSpec.js')
-rw-r--r--test/ng/logSpec.js2
1 files changed, 1 insertions, 1 deletions
diff --git a/test/ng/logSpec.js b/test/ng/logSpec.js
index ce5c4f11..8b872bb1 100644
--- a/test/ng/logSpec.js
+++ b/test/ng/logSpec.js
@@ -6,7 +6,7 @@ describe('$log', function() {
beforeEach(module(function($provide){
- $window = {navigator: {}};
+ $window = {navigator: {}, document: {}};
logger = '';
log = function() { logger+= 'log;'; };
warn = function() { logger+= 'warn;'; };