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

Side by Side Diff: third_party/WebKit/LayoutTests/external/wpt/content-security-policy/img-src/img-src-none-blocks.html

Issue 2763253002: Fixed external wpt csp img-src/* tests. (Closed)
Patch Set: Switched to placeholders instead of hardcoded URLs 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 unified diff | Download patch
OLDNEW
(Empty)
1 <!DOCTYPE html>
2 <meta http-equiv="Content-Security-Policy" content="img-src 'none';">
3 <html>
4 <head>
5 <title>img element src attribute must match src list.</title>
6 <script src='/resources/testharness.js'></script>
7 <script src='/resources/testharnessreport.js'></script>
8 </head>
9 <body>
10 <div id='log'/>
11
12 <script>
13 var t1 = async_test("img-src with 'none' source should not match");
14 </script>
15 <img src='/content-security-policy/support/fail.png'
16 onload='t1.step(function() { assert_unreached("Image should not have lo aded"); t1.done(); });'
17 onerror='t1.done();'>
18
19 </body>
20 </html>
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698