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:
@@ -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() {
|
||||
|
||||
Reference in New Issue
Block a user