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

Unified Diff: third_party/WebKit/LayoutTests/http/tests/security/contentSecurityPolicy/style-src-blocked-error-event.html

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/http/tests/security/contentSecurityPolicy/style-src-blocked-error-event.html
diff --git a/third_party/WebKit/LayoutTests/http/tests/security/contentSecurityPolicy/style-src-blocked-error-event.html b/third_party/WebKit/LayoutTests/http/tests/security/contentSecurityPolicy/style-src-blocked-error-event.html
deleted file mode 100644
index cb8fd19a8752e8f4df60c22e8915e8bf7b0403fc..0000000000000000000000000000000000000000
--- a/third_party/WebKit/LayoutTests/http/tests/security/contentSecurityPolicy/style-src-blocked-error-event.html
+++ /dev/null
@@ -1,22 +0,0 @@
-<!DOCTYPE html>
-<html>
-<head>
- <title>Style element has error on bad style nonce</title>
- <meta http-equiv="Content-Security-Policy" content="style-src 'self' 'unsafe-inline'">
- <script src="/resources/testharness.js"></script>
- <script src="/resources/testharnessreport.js"></script>
- <script>
- function styleError() {
- var color = window.getComputedStyle(document.querySelector('p')).color;
- assert_equals(color, "rgb(0, 128, 0)", "The color of the paragraph is green.");
- done();
- }
- function styleLoad() {
- assert_unreached("Style sheet should not load.");
- }
- </script>
- <style>p { color: green; }</style>
-</head>
- <p>A test paragraph</p>
- <link rel="stylesheet" onload="styleLoad();" onerror="styleError();" href="http://localhost:8000/security/contentSecurityPolicy/resources/style-set-red.css"></link>
-</html>

Powered by Google App Engine
This is Rietveld 408576698