Index: LayoutTests/fast/files/blob-parts-slice-test.html |
diff --git a/LayoutTests/fast/files/blob-parts-slice-test.html b/LayoutTests/fast/files/blob-parts-slice-test.html |
new file mode 100644 |
index 0000000000000000000000000000000000000000..1ea0b102745ce63e194e954e7db48fb608f19188 |
--- /dev/null |
+++ b/LayoutTests/fast/files/blob-parts-slice-test.html |
@@ -0,0 +1,55 @@ |
+<!DOCTYPE html> |
+<html> |
+<head> |
+<script src="resources/blob-slice-common.js"></script> |
+<script> |
+var sliceParams = [ |
+ [2, 3], |
+ [2, 12], |
+ [2, 2], |
+ [2, 1], |
+ [2, -12], |
+ [2, 2147483647], |
+ [2, -2147483648], |
+ [2, 9223372036854775000], |
+ [2, -9223372036854775000], |
+ [-2, -1], |
+ [-2, -2], |
+ [-2, -3], |
+ [-2, -12], |
+ [-2, 2147483647], |
+ [-2, -2147483648], |
+ [-2, 9223372036854775000], |
+ [-2, -9223372036854775000], |
+ [0], |
+ [2], |
+ [-2], |
+ [12], |
+ [-12], |
+ [2147483647], |
+ [-2147483648], |
+ [9223372036854775000], |
+ [-9223372036854775000], |
+ [], |
+]; |
+ |
+function runTests() |
+{ |
+ blob = new Blob(["0", new File(["12"], "slice-piece.txt"), |
+ new Blob(["345"]), "6789"]); |
+ file = new File(["0", new File(["12"], "slice-piece.txt"), |
+ new Blob(["345"]), "6789"], "slice-text.txt"); |
+ |
+ runNextTest(); |
+} |
+ |
+if (window.testRunner) { |
+ testRunner.dumpAsText(); |
+ testRunner.waitUntilDone(); |
+} |
+</script> |
+</head> |
+<body onload="runTests()"> |
+<pre id='console'></pre> |
+</body> |
+</html> |