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: third_party/WebKit/LayoutTests/http/tests/security/contentSecurityPolicy/injected-inline-style-allowed.html

Issue 2784543003: Fixed wpt content-security-policy/style-src tests (Closed)
Patch Set: CR changes Created 3 years, 8 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 unified diff | Download patch
OLDNEW
(Empty)
1 <!DOCTYPE html>
2 <html>
3 <head>
4 <meta http-equiv="Content-Security-Policy" content="style-src 'unsafe-inline'">
5 <script src="resources/dump-as-text.js"></script>
6 </head>
7 <body>
8 <div id="test1">
9 FAIL 1/2
10 </div>
11 <div id="test2">
12 FAIL 2/2
13 </div>
14 <script src="resources/inject-style.js"></script>
15 <script>
16 if (document.styleSheets.length === 2)
17 document.write("PASS: 2 stylesheets on the page.");
18 else
19 document.write("FAIL: " + document.styleSheets.length + " stylesheets on the page (should be 2).");
20 </script>
21 </body>
22 </html>
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698