CSP: Fix asserted violatedDirective in WPT CSP report

Some Web Platform Tests for Content Security Policy were wrongly
expecting the violated directives of CSP reports for CSS styles to be
'style-src' instead of 'style-src-attr' and 'style-src-elem'. This
change fixes that.

Bug: 694525, 651742
Change-Id: Id13f697eaf8ed72fba1e56eb7b0f7ac2a5837408
Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/2580810
Commit-Queue: Antonio Sartori <antoniosartori@chromium.org>
Reviewed-by: Arthur Sonzogni <arthursonzogni@chromium.org>
Reviewed-by: Mike West <mkwst@chromium.org>
Cr-Commit-Position: refs/heads/master@{#835608}
diff --git a/content-security-policy/style-src/inline-style-allowed-while-cloning-objects.sub.html b/content-security-policy/style-src/inline-style-allowed-while-cloning-objects.sub.html
index d222743..e996994 100644
--- a/content-security-policy/style-src/inline-style-allowed-while-cloning-objects.sub.html
+++ b/content-security-policy/style-src/inline-style-allowed-while-cloning-objects.sub.html
@@ -12,7 +12,7 @@
 
         var t = async_test("Test that violation report event was fired");
         window.addEventListener("securitypolicyviolation", t.step_func_done(function(e) {
-            assert_equals(e.violatedDirective, "style-src");
+            assert_equals(e.violatedDirective, "style-src-attr");
         }));
         window.onload = function() {
             try {
diff --git a/content-security-policy/style-src/style-blocked.sub.html b/content-security-policy/style-src/style-blocked.sub.html
index 4e59072..3356ef8 100644
--- a/content-security-policy/style-src/style-blocked.sub.html
+++ b/content-security-policy/style-src/style-blocked.sub.html
@@ -7,7 +7,7 @@
     <title>style-blocked</title>
     <script src="/resources/testharness.js"></script>
     <script src="/resources/testharnessreport.js"></script>
-    <script src='../support/logTest.sub.js?logs=["violated-directive=style-src","PASS"]'></script>
+    <script src='../support/logTest.sub.js?logs=["violated-directive=style-src-elem","PASS"]'></script>
     <script src="../support/alertAssert.sub.js?alerts=[]"></script>
     <script>
         window.addEventListener('securitypolicyviolation', function(e) {