OLD | NEW |
(Empty) | |
| 1 <!DOCTYPE html> |
| 2 <html> |
| 3 <head> |
| 4 <script src="resources/blob-slice-common.js"></script> |
| 5 <script> |
| 6 var sliceParams = [ |
| 7 [2, 3], |
| 8 [2, 12], |
| 9 [2, 2], |
| 10 [2, 1], |
| 11 [2, -12], |
| 12 [2, 2147483647], |
| 13 [2, -2147483648], |
| 14 [2, 9223372036854775000], |
| 15 [2, -9223372036854775000], |
| 16 [-2, -1], |
| 17 [-2, -2], |
| 18 [-2, -3], |
| 19 [-2, -12], |
| 20 [-2, 2147483647], |
| 21 [-2, -2147483648], |
| 22 [-2, 9223372036854775000], |
| 23 [-2, -9223372036854775000], |
| 24 [0], |
| 25 [2], |
| 26 [-2], |
| 27 [12], |
| 28 [-12], |
| 29 [2147483647], |
| 30 [-2147483648], |
| 31 [9223372036854775000], |
| 32 [-9223372036854775000], |
| 33 [], |
| 34 ]; |
| 35 |
| 36 function runTests() |
| 37 { |
| 38 blob = new Blob(["0", new File(["12"], "slice-piece.txt"), |
| 39 new Blob(["345"]), "6789"]); |
| 40 file = new File(["0", new File(["12"], "slice-piece.txt"), |
| 41 new Blob(["345"]), "6789"], "slice-text.txt"); |
| 42 |
| 43 runNextTest(); |
| 44 } |
| 45 |
| 46 if (window.testRunner) { |
| 47 testRunner.dumpAsText(); |
| 48 testRunner.waitUntilDone(); |
| 49 } |
| 50 </script> |
| 51 </head> |
| 52 <body onload="runTests()"> |
| 53 <pre id='console'></pre> |
| 54 </body> |
| 55 </html> |
OLD | NEW |