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

Unified Diff: third_party/WebKit/LayoutTests/http/tests/security/contentSecurityPolicy/1.1/stylehash-allowed.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-allowed.html
diff --git a/third_party/WebKit/LayoutTests/http/tests/security/contentSecurityPolicy/1.1/stylehash-allowed.html b/third_party/WebKit/LayoutTests/http/tests/security/contentSecurityPolicy/1.1/stylehash-allowed.html
deleted file mode 100644
index ebc1fa22feea9ced057aeea63e5d9fef2774bb71..0000000000000000000000000000000000000000
--- a/third_party/WebKit/LayoutTests/http/tests/security/contentSecurityPolicy/1.1/stylehash-allowed.html
+++ /dev/null
@@ -1,44 +0,0 @@
-<!DOCTYPE html>
-<html>
- <head>
- <meta http-equiv="Content-Security-Policy" content="style-src 'sha1-eYyYGmKWdhpUewohaXk9o8IaLSw=' 'sha256-hndjYvzUzy2Ykuad81Cwsl1FOXX/qYs/aDVyUyNZwBw=' 'sha384-bSVm1i3sjPBRM4TwZtYTDjk9JxZMExYHWbFmP1SxDhJH4ue0Wu9OPOkY5hcqRcSt' 'sha512-440MmBLtj9Kp5Bqloogn9BqGDylY8vFsv5/zXL1zH2fJVssCoskRig4gyM+9KqwvCSapSz5CVoUGHQcxv43UQg=='">
- </head>
- <body>
- <p id="p1">This tests the result of a valid style hash. It passes if this text is green, and a "PASS" alert for p1 is fired.</p>
- <p id="p2">This tests the result of a valid style hash. It passes if this text is green, and a "PASS" alert for p2 is fired.</p>
- <p id="p3">This tests the result of a valid style hash. It passes if this text is green, and a "PASS" alert for p3 is fired.</p>
- <p id="p4">This tests the result of a valid style hash. It passes if this text is green, and a "PASS" alert for p4 is fired.</p>
- <style>p#p1 { color: green; }</style>
- <style>p#p2 { color: green; }</style>
- <style>p#p3 { color: green; }</style>
- <style>p#p4 { color: green; }</style>
- <script>
- if (window.testRunner)
- testRunner.dumpAsText();
-
- var color = window.getComputedStyle(document.querySelector('#p1')).color;
- if (color === "rgb(0, 128, 0)")
- alert("PASS (1/4): The '#p1' element's text is green, which means the style was correctly applied.");
- else
- alert("FAIL (1/4): The '#p1' element's text is " + color + ", which means the style was incorrectly applied.");
-
- var color = window.getComputedStyle(document.querySelector('#p2')).color;
- if (color === "rgb(0, 128, 0)")
- alert("PASS (2/4): The '#p2' element's text is green, which means the style was correctly applied.");
- else
- alert("FAIL (2/4): The '#p2' element's text is " + color + ", which means the style was incorrectly applied.");
-
- var color = window.getComputedStyle(document.querySelector('#p3')).color;
- if (color === "rgb(0, 128, 0)")
- alert("PASS (3/4): The '#p3' element's text is green, which means the style was correctly applied.");
- else
- alert("FAIL (3/4): The '#p3' element's text is " + color + ", which means the style was incorrectly applied.");
-
- var color = window.getComputedStyle(document.querySelector('#p4')).color;
- if (color === "rgb(0, 128, 0)")
- alert("PASS (4/4): The '#p4' element's text is green, which means the style was correctly applied.");
- else
- alert("FAIL (4/4): The '#p4' element's text is " + color + ", which means the style was incorrectly applied.");
- </script>
- </body>
-</html>

Powered by Google App Engine
This is Rietveld 408576698