14 lines
397 B
Plaintext
14 lines
397 B
Plaintext
Throw various bad bytes at file reader.
|
||
|
||
On success, you will see a series of "PASS" messages, followed by "TEST COMPLETE".
|
||
|
||
array = new Uint8Array([65, 245, 246, 247, 248, 249, 250, 251, 252, 253, 254, 255, 66]);
|
||
blob = new Blob([array]);
|
||
reader = new FileReader();
|
||
reader.readAsText(blob);
|
||
PASS fileString is 'A<><41><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>B'
|
||
PASS successfullyParsed is true
|
||
|
||
TEST COMPLETE
|
||
|