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

Side by Side Diff: LayoutTests/http/tests/security/contentSecurityPolicy/1.1/stylehash-basic-blocked-error-event.html

Issue 1032033002: Fire error events for a variety of script and style failures. (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@master
Patch Set: Fixed test failures Created 5 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 <html>
3 <head>
4 <title>Style element has error on bad style hash</title>
5 <meta http-equiv="Content-Security-Policy" content="style-src 'sha1-pfeR5wMA 6np45oqDTP6Pj3tLpJo='">
6 <script src="/resources/testharness.js"></script>
7 <script src="/resources/testharnessreport.js"></script>
8 <script>
9 function styleError() {
10 var color = window.getComputedStyle(document.querySelector('p')).col or;
11 assert_equals(color, "rgb(0, 128, 0)", "The color of the paragraph i s still green.");
12 done();
13 }
14 </script>
15 <style>p { color: green; }</style>
16 <style onerror="styleError();">p { color: red; }</style>
17 </head>
18 <p>A test paragraph</p>
19 </html>
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698