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

Unified Diff: third_party/WebKit/LayoutTests/external/wpt/content-security-policy/style-src/resources/style-src-inject-style.js

Issue 2784543003: Fixed wpt content-security-policy/style-src tests (Closed)
Patch Set: CR changes Created 3 years, 9 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/style-src/resources/style-src-inject-style.js
diff --git a/third_party/WebKit/LayoutTests/external/wpt/content-security-policy/style-src/resources/style-src-inject-style.js b/third_party/WebKit/LayoutTests/external/wpt/content-security-policy/style-src/resources/style-src-inject-style.js
new file mode 100644
index 0000000000000000000000000000000000000000..99a9c2a46450a5324668790f66f0fd9f873cd616
--- /dev/null
+++ b/third_party/WebKit/LayoutTests/external/wpt/content-security-policy/style-src/resources/style-src-inject-style.js
@@ -0,0 +1,5 @@
+document.write("<style>#content { margin-left: 2px; }</style>");
+
+var s = document.createElement('style');
+s.innerText = "#content { margin-right: 2px; }";
+document.getElementsByTagName('body')[0].appendChild(s);

Powered by Google App Engine
This is Rietveld 408576698