[Streams API] Import the web-platform-tests directly from the spec
authorcalvaris@igalia.com <calvaris@igalia.com@268f45cc-cd09-0410-ab3c-d52691b4dbfc>
Wed, 9 Dec 2015 13:09:20 +0000 (13:09 +0000)
committercalvaris@igalia.com <calvaris@igalia.com@268f45cc-cd09-0410-ab3c-d52691b4dbfc>
Wed, 9 Dec 2015 13:09:20 +0000 (13:09 +0000)
commitaa492e5dcfbf773c4bb684024d0d65b7b5ff169f
treeb50bcc7a3638441e5903307791c198a69e899b61
parent0e6ea80fb7435ec01589ec2a58589e4904c5ce60
[Streams API] Import the web-platform-tests directly from the spec
https://bugs.webkit.org/show_bug.cgi?id=152051

Reviewed by Youenn Fablet.

LayoutTests/imported/w3c:

These are the web platform tests imported directly (or almost) from the Streams API repository. Tests work out
of the box (all but a small flakiness that we are forcing as failure to not disrupt the execution of the rest of
tests).

To make them work we are importing also the service worker test helpers that is used by the tests.

* web-platform-tests/service-workers/service-workers/resources/README.txt: Added.
* web-platform-tests/service-workers/service-workers/resources/test-helpers.js: Added. Imported from the web-platform-tests.
* web-platform-tests/streams-api/README.txt: Added.
* web-platform-tests/streams-api/byte-length-queuing-strategy-expected.txt: Added.
* web-platform-tests/streams-api/byte-length-queuing-strategy.html: Added.
* web-platform-tests/streams-api/byte-length-queuing-strategy.js: Added.
* web-platform-tests/streams-api/count-queuing-strategy-expected.txt: Added.
* web-platform-tests/streams-api/count-queuing-strategy.html: Added.
* web-platform-tests/streams-api/count-queuing-strategy.js: Added.
* web-platform-tests/streams-api/readable-streams/bad-strategies-expected.txt: Added.
* web-platform-tests/streams-api/readable-streams/bad-strategies.html: Added.
* web-platform-tests/streams-api/readable-streams/bad-strategies.js: Added.
* web-platform-tests/streams-api/readable-streams/bad-underlying-sources-expected.txt: Added.
* web-platform-tests/streams-api/readable-streams/bad-underlying-sources.html: Added.
* web-platform-tests/streams-api/readable-streams/bad-underlying-sources.js: Added.
* web-platform-tests/streams-api/readable-streams/brand-checks-expected.txt: Added.
* web-platform-tests/streams-api/readable-streams/brand-checks.html: Added.
* web-platform-tests/streams-api/readable-streams/brand-checks.js: Added.
* web-platform-tests/streams-api/readable-streams/cancel-expected.txt: Added.
* web-platform-tests/streams-api/readable-streams/cancel.html: Added. There's a test with a forced failure
because it is flaky.
* web-platform-tests/streams-api/readable-streams/cancel.js: Added.
* web-platform-tests/streams-api/readable-streams/count-queuing-strategy-integration-expected.txt: Added.
* web-platform-tests/streams-api/readable-streams/count-queuing-strategy-integration.html: Added.
* web-platform-tests/streams-api/readable-streams/count-queuing-strategy-integration.js: Added.
* web-platform-tests/streams-api/readable-streams/garbage-collection-expected.txt: Added.
* web-platform-tests/streams-api/readable-streams/garbage-collection.html: Added.
* web-platform-tests/streams-api/readable-streams/garbage-collection.js: Added.
* web-platform-tests/streams-api/readable-streams/general-expected.txt: Added.
* web-platform-tests/streams-api/readable-streams/general.html: Added.
* web-platform-tests/streams-api/readable-streams/general.js: Added.
* web-platform-tests/streams-api/readable-streams/pipe-through-expected.txt: Added.
* web-platform-tests/streams-api/readable-streams/pipe-through.html: Added.
* web-platform-tests/streams-api/readable-streams/pipe-through.js: Added.
* web-platform-tests/streams-api/readable-streams/readable-stream-reader-expected.txt: Added.
* web-platform-tests/streams-api/readable-streams/readable-stream-reader.html: Added.
* web-platform-tests/streams-api/readable-streams/readable-stream-reader.js: Added.
* web-platform-tests/streams-api/readable-streams/tee-expected.txt: Added.
* web-platform-tests/streams-api/readable-streams/tee.html: Added.
* web-platform-tests/streams-api/readable-streams/tee.js: Added.
* web-platform-tests/streams-api/readable-streams/templated-expected.txt: Added.
* web-platform-tests/streams-api/readable-streams/templated.html: Added.
* web-platform-tests/streams-api/readable-streams/templated.js: Added.
* web-platform-tests/streams-api/resources/rs-test-templates.js: Added.
* web-platform-tests/streams-api/resources/rs-utils.js: Added.
* web-platform-tests/streams-api/resources/test-initializer.js: Added.
* web-platform-tests/streams-api/resources/test-utils.js: Added.

LayoutTests:

Removed the tests that are already imported directly from the spec.

* streams/brand-checks-expected.txt: Added.
* streams/brand-checks.html: Added. This includes some tests that vanished from the spec.
* streams/reference-implementation/bad-strategies-expected.txt:
* streams/reference-implementation/bad-strategies.html:
* streams/reference-implementation/bad-underlying-sources.html: Removed.
* streams/reference-implementation/brand-checks-expected.txt:
* streams/reference-implementation/brand-checks.html:
* streams/reference-implementation/byte-length-queuing-strategy-expected.txt:
* streams/reference-implementation/byte-length-queuing-strategy.html:
* streams/reference-implementation/count-queuing-strategy-expected.txt:
* streams/reference-implementation/count-queuing-strategy.html:
* streams/reference-implementation/readable-stream-cancel.html: Removed.
* streams/reference-implementation/readable-stream-reader.html: Removed.
* streams/reference-implementation/readable-stream-tee.html: Removed.
* streams/reference-implementation/readable-stream-templated-expected.txt:
* streams/reference-implementation/readable-stream-templated.html:
* streams/reference-implementation/readable-stream.html: Removed.

git-svn-id: https://svn.webkit.org/repository/webkit/trunk@193824 268f45cc-cd09-0410-ab3c-d52691b4dbfc
65 files changed:
LayoutTests/ChangeLog
LayoutTests/imported/w3c/ChangeLog
LayoutTests/imported/w3c/web-platform-tests/service-workers/service-workers/resources/README.txt [new file with mode: 0644]
LayoutTests/imported/w3c/web-platform-tests/service-workers/service-workers/resources/test-helpers.js [new file with mode: 0644]
LayoutTests/imported/w3c/web-platform-tests/streams-api/README.txt [new file with mode: 0644]
LayoutTests/imported/w3c/web-platform-tests/streams-api/byte-length-queuing-strategy-expected.txt [new file with mode: 0644]
LayoutTests/imported/w3c/web-platform-tests/streams-api/byte-length-queuing-strategy.html [new file with mode: 0644]
LayoutTests/imported/w3c/web-platform-tests/streams-api/byte-length-queuing-strategy.js [new file with mode: 0644]
LayoutTests/imported/w3c/web-platform-tests/streams-api/count-queuing-strategy-expected.txt [new file with mode: 0644]
LayoutTests/imported/w3c/web-platform-tests/streams-api/count-queuing-strategy.html [new file with mode: 0644]
LayoutTests/imported/w3c/web-platform-tests/streams-api/count-queuing-strategy.js [new file with mode: 0644]
LayoutTests/imported/w3c/web-platform-tests/streams-api/readable-streams/bad-strategies-expected.txt [new file with mode: 0644]
LayoutTests/imported/w3c/web-platform-tests/streams-api/readable-streams/bad-strategies.html [new file with mode: 0644]
LayoutTests/imported/w3c/web-platform-tests/streams-api/readable-streams/bad-strategies.js [new file with mode: 0644]
LayoutTests/imported/w3c/web-platform-tests/streams-api/readable-streams/bad-underlying-sources-expected.txt [new file with mode: 0644]
LayoutTests/imported/w3c/web-platform-tests/streams-api/readable-streams/bad-underlying-sources.html [new file with mode: 0644]
LayoutTests/imported/w3c/web-platform-tests/streams-api/readable-streams/bad-underlying-sources.js [new file with mode: 0644]
LayoutTests/imported/w3c/web-platform-tests/streams-api/readable-streams/brand-checks-expected.txt [new file with mode: 0644]
LayoutTests/imported/w3c/web-platform-tests/streams-api/readable-streams/brand-checks.html [new file with mode: 0644]
LayoutTests/imported/w3c/web-platform-tests/streams-api/readable-streams/brand-checks.js [new file with mode: 0644]
LayoutTests/imported/w3c/web-platform-tests/streams-api/readable-streams/cancel-expected.txt [new file with mode: 0644]
LayoutTests/imported/w3c/web-platform-tests/streams-api/readable-streams/cancel.html [new file with mode: 0644]
LayoutTests/imported/w3c/web-platform-tests/streams-api/readable-streams/cancel.js [new file with mode: 0644]
LayoutTests/imported/w3c/web-platform-tests/streams-api/readable-streams/count-queuing-strategy-integration-expected.txt [new file with mode: 0644]
LayoutTests/imported/w3c/web-platform-tests/streams-api/readable-streams/count-queuing-strategy-integration.html [new file with mode: 0644]
LayoutTests/imported/w3c/web-platform-tests/streams-api/readable-streams/count-queuing-strategy-integration.js [new file with mode: 0644]
LayoutTests/imported/w3c/web-platform-tests/streams-api/readable-streams/garbage-collection-expected.txt [new file with mode: 0644]
LayoutTests/imported/w3c/web-platform-tests/streams-api/readable-streams/garbage-collection.html [new file with mode: 0644]
LayoutTests/imported/w3c/web-platform-tests/streams-api/readable-streams/garbage-collection.js [new file with mode: 0644]
LayoutTests/imported/w3c/web-platform-tests/streams-api/readable-streams/general-expected.txt [new file with mode: 0644]
LayoutTests/imported/w3c/web-platform-tests/streams-api/readable-streams/general.html [new file with mode: 0644]
LayoutTests/imported/w3c/web-platform-tests/streams-api/readable-streams/general.js [new file with mode: 0644]
LayoutTests/imported/w3c/web-platform-tests/streams-api/readable-streams/pipe-through-expected.txt [new file with mode: 0644]
LayoutTests/imported/w3c/web-platform-tests/streams-api/readable-streams/pipe-through.html [new file with mode: 0644]
LayoutTests/imported/w3c/web-platform-tests/streams-api/readable-streams/pipe-through.js [new file with mode: 0644]
LayoutTests/imported/w3c/web-platform-tests/streams-api/readable-streams/readable-stream-reader-expected.txt [new file with mode: 0644]
LayoutTests/imported/w3c/web-platform-tests/streams-api/readable-streams/readable-stream-reader.html [new file with mode: 0644]
LayoutTests/imported/w3c/web-platform-tests/streams-api/readable-streams/readable-stream-reader.js [new file with mode: 0644]
LayoutTests/imported/w3c/web-platform-tests/streams-api/readable-streams/tee-expected.txt [new file with mode: 0644]
LayoutTests/imported/w3c/web-platform-tests/streams-api/readable-streams/tee.html [new file with mode: 0644]
LayoutTests/imported/w3c/web-platform-tests/streams-api/readable-streams/tee.js [new file with mode: 0644]
LayoutTests/imported/w3c/web-platform-tests/streams-api/readable-streams/templated-expected.txt [new file with mode: 0644]
LayoutTests/imported/w3c/web-platform-tests/streams-api/readable-streams/templated.html [new file with mode: 0644]
LayoutTests/imported/w3c/web-platform-tests/streams-api/readable-streams/templated.js [new file with mode: 0644]
LayoutTests/imported/w3c/web-platform-tests/streams-api/resources/rs-test-templates.js [new file with mode: 0644]
LayoutTests/imported/w3c/web-platform-tests/streams-api/resources/rs-utils.js [new file with mode: 0644]
LayoutTests/imported/w3c/web-platform-tests/streams-api/resources/test-initializer.js [new file with mode: 0644]
LayoutTests/imported/w3c/web-platform-tests/streams-api/resources/test-utils.js [new file with mode: 0644]
LayoutTests/streams/brand-checks-expected.txt [new file with mode: 0644]
LayoutTests/streams/brand-checks.html [new file with mode: 0644]
LayoutTests/streams/reference-implementation/bad-strategies-expected.txt
LayoutTests/streams/reference-implementation/bad-strategies.html
LayoutTests/streams/reference-implementation/bad-underlying-sources.html [deleted file]
LayoutTests/streams/reference-implementation/brand-checks-expected.txt
LayoutTests/streams/reference-implementation/brand-checks.html
LayoutTests/streams/reference-implementation/byte-length-queuing-strategy-expected.txt
LayoutTests/streams/reference-implementation/byte-length-queuing-strategy.html
LayoutTests/streams/reference-implementation/count-queuing-strategy-expected.txt
LayoutTests/streams/reference-implementation/count-queuing-strategy.html
LayoutTests/streams/reference-implementation/readable-stream-cancel.html [deleted file]
LayoutTests/streams/reference-implementation/readable-stream-reader.html [deleted file]
LayoutTests/streams/reference-implementation/readable-stream-tee.html [deleted file]
LayoutTests/streams/reference-implementation/readable-stream-templated-expected.txt
LayoutTests/streams/reference-implementation/readable-stream-templated.html
LayoutTests/streams/reference-implementation/readable-stream.html [deleted file]