| Index: LayoutTests/http/tests/security/contentSecurityPolicy/1.1/stylenonce-basic-blocked-error-event.html
|
| diff --git a/LayoutTests/http/tests/security/contentSecurityPolicy/1.1/stylenonce-basic-blocked-error-event.html b/LayoutTests/http/tests/security/contentSecurityPolicy/1.1/stylenonce-basic-blocked-error-event.html
|
| new file mode 100644
|
| index 0000000000000000000000000000000000000000..fe7117db59db25d8d6cda85f8539bf559091a8b2
|
| --- /dev/null
|
| +++ b/LayoutTests/http/tests/security/contentSecurityPolicy/1.1/stylenonce-basic-blocked-error-event.html
|
| @@ -0,0 +1,19 @@
|
| +<!DOCTYPE html>
|
| +<html>
|
| +<head>
|
| + <title>Style element has error on bad style nonce</title>
|
| + <meta http-equiv="Content-Security-Policy" content="style-src 'nonce-nonceynonce'">
|
| + <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 still green.");
|
| + done();
|
| + }
|
| + </script>
|
| + <style nonce="nonceynonce">p { color: green; }</style>
|
| + <style nonce="notavalidnonce" onerror="styleError();">p { color: red; }</style>
|
| +</head>
|
| + <p>A test paragraph</p>
|
| +</html>
|
|
|