Add tests for automatic decompression of gzip-compressed subresources
authordbates@webkit.org <dbates@webkit.org@268f45cc-cd09-0410-ab3c-d52691b4dbfc>
Fri, 27 Oct 2017 22:28:37 +0000 (22:28 +0000)
committerdbates@webkit.org <dbates@webkit.org@268f45cc-cd09-0410-ab3c-d52691b4dbfc>
Fri, 27 Oct 2017 22:28:37 +0000 (22:28 +0000)
commit7b3416ae9ea8c93e0c417719c92142930bd00804
treef4e44eaecfed2b8942c80da6cb79e13ae7ca0c18
parentcee11aa3f21222f98d1ff346b72adac95c926c03
Add tests for automatic decompression of gzip-compressed subresources
https://bugs.webkit.org/show_bug.cgi?id=178941
<rdar://problem/35230090>

Reviewed by Alex Christensen.

Although automatic decompression of gzip-compressed subresources is handled by CFNetwork
(<rdar://problem/5418646>) we should add tests to ensure that WebKit does not inadvertently
opt out of such functionality and to catch a regression in CFNetwork.

* TestExpectations: Skip the tests on all platforms. We will unskip on Cocoa platforms and Apple Windows.
* http/tests/gzip-content-encoding/gzip-encoded-script-expected.txt: Added.
* http/tests/gzip-content-encoding/gzip-encoded-script.html: Added.
* http/tests/gzip-content-encoding/gzip-encoded-script2-expected.txt: Added.
* http/tests/gzip-content-encoding/gzip-encoded-script2.html: Added.
* http/tests/gzip-content-encoding/gzip-encoded-stylesheet-expected.html: Added.
* http/tests/gzip-content-encoding/gzip-encoded-stylesheet.html: Added.
* http/tests/gzip-content-encoding/gzip-encoded-stylesheet2-expected.html: Added.
* http/tests/gzip-content-encoding/gzip-encoded-stylesheet2.html: Added.
* http/tests/gzip-content-encoding/resources/echo-data-encoding-with-gzip.php: Added.
* http/tests/gzip-content-encoding/resources/script.js.gz: Added.
* http/tests/gzip-content-encoding/resources/stylesheet.css.gz: Added.
* platform/ios/TestExpectations: Unskip tests.
* platform/mac/TestExpectations: Ditto.
* platform/win/TestExpectations: Ditto.

git-svn-id: http://svn.webkit.org/repository/webkit/trunk@224133 268f45cc-cd09-0410-ab3c-d52691b4dbfc
16 files changed:
LayoutTests/ChangeLog
LayoutTests/TestExpectations
LayoutTests/http/tests/gzip-content-encoding/gzip-encoded-script-expected.txt [new file with mode: 0644]
LayoutTests/http/tests/gzip-content-encoding/gzip-encoded-script.html [new file with mode: 0644]
LayoutTests/http/tests/gzip-content-encoding/gzip-encoded-script2-expected.txt [new file with mode: 0644]
LayoutTests/http/tests/gzip-content-encoding/gzip-encoded-script2.html [new file with mode: 0644]
LayoutTests/http/tests/gzip-content-encoding/gzip-encoded-stylesheet-expected.html [new file with mode: 0644]
LayoutTests/http/tests/gzip-content-encoding/gzip-encoded-stylesheet.html [new file with mode: 0644]
LayoutTests/http/tests/gzip-content-encoding/gzip-encoded-stylesheet2-expected.html [new file with mode: 0644]
LayoutTests/http/tests/gzip-content-encoding/gzip-encoded-stylesheet2.html [new file with mode: 0644]
LayoutTests/http/tests/gzip-content-encoding/resources/echo-data-encoding-with-gzip.php [new file with mode: 0644]
LayoutTests/http/tests/gzip-content-encoding/resources/script.js.gz [new file with mode: 0644]
LayoutTests/http/tests/gzip-content-encoding/resources/stylesheet.css.gz [new file with mode: 0644]
LayoutTests/platform/ios/TestExpectations
LayoutTests/platform/mac/TestExpectations
LayoutTests/platform/win/TestExpectations