CSP: Add tests to ensure that alternative text of an image is rendered when CSP block...
authordbates@webkit.org <dbates@webkit.org@268f45cc-cd09-0410-ab3c-d52691b4dbfc>
Wed, 20 Jan 2016 21:32:05 +0000 (21:32 +0000)
committerdbates@webkit.org <dbates@webkit.org@268f45cc-cd09-0410-ab3c-d52691b4dbfc>
Wed, 20 Jan 2016 21:32:05 +0000 (21:32 +0000)
commita8bcd73db90abc0509c02e137cd242e3fb8b68bf
tree71e6c04ea721d196daaab2057561b0c05218b3fb
parent67d7f28eb5a04a1f10a7de6afeeeb75a122f8278
CSP: Add tests to ensure that alternative text of an image is rendered when CSP blocks its load
https://bugs.webkit.org/show_bug.cgi?id=153280

Reviewed by Alexey Proskuryakov.

These tests were inspired by the Blink test
<https://src.chromium.org/viewvc/blink/trunk/LayoutTests/http/tests/security/contentSecurityPolicy/image-blocked-alt-content.html?revision=186800>.

* http/tests/security/contentSecurityPolicy/image-blocked-alt-text-expected.html: Added.
* http/tests/security/contentSecurityPolicy/image-blocked-alt-text.html: Added.
* http/tests/security/contentSecurityPolicy/image-data-URL-blocked-alt-text-expected.html: Added.
* http/tests/security/contentSecurityPolicy/image-data-URL-blocked-alt-text.html: Added.

git-svn-id: https://svn.webkit.org/repository/webkit/trunk@195374 268f45cc-cd09-0410-ab3c-d52691b4dbfc
LayoutTests/ChangeLog
LayoutTests/http/tests/security/contentSecurityPolicy/image-blocked-alt-text-expected.html [new file with mode: 0644]
LayoutTests/http/tests/security/contentSecurityPolicy/image-blocked-alt-text.html [new file with mode: 0644]
LayoutTests/http/tests/security/contentSecurityPolicy/image-data-URL-blocked-alt-text-expected.html [new file with mode: 0644]
LayoutTests/http/tests/security/contentSecurityPolicy/image-data-URL-blocked-alt-text.html [new file with mode: 0644]