Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(56)

Side by Side Diff: chrome/test/data/extensions/api_test/default_content_security_policy/test.js

Issue 8585020: Enable CSP by default for extensions with manifest_version >= 2. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src/
Patch Set: '' Created 9 years, 1 month ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch | Annotate | Revision Log
« no previous file with comments | « chrome/test/data/extensions/api_test/default_content_security_policy/test.html ('k') | no next file » | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
(Empty)
1 window.externalCanary = "Alive";
2
3 chrome.test.getConfig(function(config) {
4
5 function inlineScriptDoesNotRun() {
6 chrome.test.assertEq(window.inlineCanary, undefined);
7 chrome.test.runNextTest();
8 }
9
10 function externalScriptDoesRun() {
11 // This test is somewhat zen in the sense that if external scripts are
12 // blocked, we don't be able to even execute the test harness...
13 chrome.test.assertEq(window.externalCanary, "Alive");
14 chrome.test.runNextTest();
15 }
16
17 chrome.test.runTests([
18 inlineScriptDoesNotRun,
19 externalScriptDoesRun
20 ]);
21 });
OLDNEW
« no previous file with comments | « chrome/test/data/extensions/api_test/default_content_security_policy/test.html ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698