Move parseFontFaceDescriptor to CSSPropertyParser.cpp
[chromium-blink-merge.git] / third_party / WebKit / LayoutTests / fast / files / blob-slice-overflow.html
blob9b0ab8d6fc365f516136ef199489093192a16a3b
1 <html>
2 <body>
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>
6 <script>
7 if (window.testRunner) {
8 testRunner.dumpAsText();
9 testRunner.waitUntilDone()
12 var text = '';
13 for (var i = 0; i < 2000; ++i)
14 text += 'A';
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();
27 </script>
28 </body>
29 </html>