test($parse): ensure CSP code paths are used when testing

Previously, the test suite was not actually taking CSP-mode paths when we were expecting it to.

Numerous CSP-mode tests are failing, working on fixing these.
This commit is contained in:
Caitlin Potter
2014-09-12 08:25:41 -04:00
parent 6d12e8990b
commit f2894c0f1d
+7 -3
View File
@@ -202,11 +202,15 @@ describe('parser', function() {
forEach([true, false], function(cspEnabled) {
forEach([true, false], function(unwrapPromisesEnabled) {
describe('csp: ' + cspEnabled + ", unwrapPromises: " + unwrapPromisesEnabled, function() {
describe('csp: ' + cspEnabled, function() {
var originalSecurityPolicy;
beforeEach(module(function($provide) {
$provide.decorator('$sniffer', function($delegate) {
$delegate.csp = cspEnabled;
return $delegate;
});
}, provideLog));
beforeEach(function() {