3 The excessive length passed to Blob.slice() should be trapped and result in
4 a truncated slice being returned.
5 <pre id='console'
></pre>
7 if (window
.testRunner
) {
8 testRunner
.dumpAsText();
9 testRunner
.waitUntilDone()
13 for (var i
= 0; i
< 2000; ++i
)
16 blob
= new Blob([text
]);
17 slicedBlob
= blob
.slice(1999, 9223372036854775000);
19 document
.getElementById('console').appendChild(document
.createTextNode('Blob slice length: ' + slicedBlob
.size
));
20 if (slicedBlob
.size
!= 1) {
21 document
.getElementById('console').appendChild(document
.createTextNode('FAIL'));
24 if (window
.testRunner
) {
25 testRunner
.notifyDone();