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

Unified Diff: LayoutTests/http/tests/security/contentTypeOptions/image-as-script-blocked-with-error.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 side-by-side diff with in-line comments
Download patch
Index: LayoutTests/http/tests/security/contentTypeOptions/image-as-script-blocked-with-error.html
diff --git a/LayoutTests/http/tests/security/contentTypeOptions/image-as-script-blocked-with-error.html b/LayoutTests/http/tests/security/contentTypeOptions/image-as-script-blocked-with-error.html
new file mode 100644
index 0000000000000000000000000000000000000000..9e21d0c732ac9b1d9e08a0680467417dde78b4d7
--- /dev/null
+++ b/LayoutTests/http/tests/security/contentTypeOptions/image-as-script-blocked-with-error.html
@@ -0,0 +1,19 @@
+<!DOCTYPE html>
+<html>
+<head>
+ <title>"image/" MIME as script throws error when blocked.</title>
+ <script src="/resources/testharness.js"></script>
+ <script src="/resources/testharnessreport.js"></script>
+<body>
+ <script>
+ function scriptError() {
+ done();
+ }
+ function scriptLoad() {
+ assert_unreached('Script loaded.');
+ }
+
+ document.write('<script onload="scriptLoad()" onerror="scriptError()" src="/loading/resources/image2.png"><' + '/script>');
+ </script>
+</body>
+</html>

Powered by Google App Engine
This is Rietveld 408576698