mirror of
https://github.com/mozilla/pdf.js.git
synced 2025-04-20 15:18:08 +02:00
Merge pull request #8396 from mukulmishra18/streams-lib
Adds streams-lib polyfill and exports ReadableStream from shared/util.
This commit is contained in:
commit
bd288df909
7 changed files with 4015 additions and 3 deletions
|
@ -14,7 +14,7 @@
|
|||
*/
|
||||
|
||||
import {
|
||||
removeNullCharacters, stringToPDFString
|
||||
ReadableStream, removeNullCharacters, stringToPDFString
|
||||
} from '../../src/shared/util';
|
||||
|
||||
describe('util', function() {
|
||||
|
@ -51,4 +51,16 @@ describe('util', function() {
|
|||
expect(removeNullCharacters(str)).toEqual('stringWithNullChars');
|
||||
});
|
||||
});
|
||||
|
||||
describe('ReadableStream', function() {
|
||||
it('should return an Object', function () {
|
||||
var readable = new ReadableStream();
|
||||
expect(typeof readable).toEqual('object');
|
||||
});
|
||||
|
||||
it('should have property getReader', function () {
|
||||
var readable = new ReadableStream();
|
||||
expect(typeof readable.getReader).toEqual('function');
|
||||
});
|
||||
});
|
||||
});
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue