Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add test for fetch_stream #10715

Merged
merged 1 commit into from
Apr 7, 2019

Conversation

mukulmishra18
Copy link
Contributor

This PR adds test for fetch_stream.js. Not sure if we need to add some code for feature detection for native support of fetch and ReadableStream for unit test.

Fixes #10671

isStreamingSupported = fullReader.isStreamingSupported;
isRangeSupported = fullReader.isRangeSupported;
// We shall be able to close full reader without any issue.
fullReader.cancel('Don\'t need full reader');
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This really ought to be an Error, and not a plain string.

@@ -0,0 +1,108 @@
/* Copyright 2017 Mozilla Foundation
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This should probably read 2019 :-)

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I think I still live in 2017 😱

@timvandermeij
Copy link
Contributor

/botio unittest

@pdfjsbot
Copy link

pdfjsbot commented Apr 7, 2019

From: Bot.io (Linux m4)


Received

Command cmd_unittest from @timvandermeij received. Current queue size: 0

Live output at: http://54.67.70.0:8877/f8eb2e21ce60988/output.txt

@pdfjsbot
Copy link

pdfjsbot commented Apr 7, 2019

From: Bot.io (Windows)


Received

Command cmd_unittest from @timvandermeij received. Current queue size: 0

Live output at: http://54.215.176.217:8877/1b4137941b70cdb/output.txt

@pdfjsbot
Copy link

pdfjsbot commented Apr 7, 2019

From: Bot.io (Linux m4)


Failed

Full output at http://54.67.70.0:8877/f8eb2e21ce60988/output.txt

Total script time: 2.81 mins

  • Unit Tests: FAILED

@pdfjsbot
Copy link

pdfjsbot commented Apr 7, 2019

From: Bot.io (Windows)


Success

Full output at http://54.215.176.217:8877/1b4137941b70cdb/output.txt

Total script time: 5.56 mins

  • Unit Tests: Passed

@timvandermeij
Copy link
Contributor

/botio-linux unittest

@pdfjsbot
Copy link

pdfjsbot commented Apr 7, 2019

From: Bot.io (Linux m4)


Received

Command cmd_unittest from @timvandermeij received. Current queue size: 0

Live output at: http://54.67.70.0:8877/969b88dc0027838/output.txt

@pdfjsbot
Copy link

pdfjsbot commented Apr 7, 2019

From: Bot.io (Linux m4)


Success

Full output at http://54.67.70.0:8877/969b88dc0027838/output.txt

Total script time: 2.76 mins

  • Unit Tests: Passed

@timvandermeij timvandermeij merged commit 725a695 into mozilla:master Apr 7, 2019
@timvandermeij
Copy link
Contributor

Nice work; thank you for writing more unit tests!

@mukulmishra18 mukulmishra18 deleted the fetch-stream-spec branch April 19, 2019 17:06
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

4 participants