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

Unified Diff: third_party/WebKit/LayoutTests/external/wpt/content-security-policy/support/inject-image.sub.js

Issue 2711913003: Upstream Blink's 'securitypolicyviolation' tests. (Closed)
Patch Set: MANIFEST Created 3 years, 10 months 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 side-by-side diff with in-line comments
Download patch
Index: third_party/WebKit/LayoutTests/external/wpt/content-security-policy/support/inject-image.sub.js
diff --git a/third_party/WebKit/LayoutTests/external/wpt/content-security-policy/support/inject-image.sub.js b/third_party/WebKit/LayoutTests/external/wpt/content-security-policy/support/inject-image.sub.js
new file mode 100644
index 0000000000000000000000000000000000000000..acf04f325f7d3fd5c959cd46d8b18cae0c6d8948
--- /dev/null
+++ b/third_party/WebKit/LayoutTests/external/wpt/content-security-policy/support/inject-image.sub.js
@@ -0,0 +1,3 @@
+var i = document.createElement('img');
+i.src = "http://{{domains[www]}}:{{ports[http][0]}}/content-security-policy/support/fail.png";
+document.body.appendChild(i);

Powered by Google App Engine
This is Rietveld 408576698