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

Unified Diff: third_party/WebKit/LayoutTests/http/tests/security/contentSecurityPolicy/1.1/stylehash-basic-blocked.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/1.1/stylehash-basic-blocked.html
diff --git a/third_party/WebKit/LayoutTests/http/tests/security/contentSecurityPolicy/1.1/stylehash-basic-blocked.html b/third_party/WebKit/LayoutTests/http/tests/security/contentSecurityPolicy/1.1/stylehash-basic-blocked.html
deleted file mode 100644
index 7ffb475e9b28a44f25c41d9af76e5f610f896b2b..0000000000000000000000000000000000000000
--- a/third_party/WebKit/LayoutTests/http/tests/security/contentSecurityPolicy/1.1/stylehash-basic-blocked.html
+++ /dev/null
@@ -1,27 +0,0 @@
-<!DOCTYPE html>
-<html>
-<head>
- <meta http-equiv="Content-Security-Policy" content="style-src 'sha1-pfeR5wMA6np45oqDTP6Pj3tLpJo='">
- <style>p { color: green; }</style>
- <style>p { color: red; }</style>
- <style>p { color: purple; }</style>
- <style>p { color: blue; }</style>
-</head>
-<body>
- <p>
- This tests the effect of a valid style-hash value, with one valid
- style and several invalid ones. It passes if the valid style is applied
- and three console warnings are visible.
- </p>
- <script>
- if (window.testRunner)
- testRunner.dumpAsText();
-
- var color = window.getComputedStyle(document.querySelector('p')).color;
- if (color === "rgb(0, 128, 0)")
- alert("PASS: The 'p' element's text is green, which means the style was correctly applied.");
- else
- alert("FAIL: The 'p' element's text is " + color + ", which means the style was incorrectly applied.");
- </script>
-</body>
-</html>

Powered by Google App Engine
This is Rietveld 408576698