Modified: trunk/LayoutTests/fast/files/resources/read-blob-test-cases.js (119804 => 119805)
--- trunk/LayoutTests/fast/files/resources/read-blob-test-cases.js 2012-06-08 07:22:10 UTC (rev 119804)
+++ trunk/LayoutTests/fast/files/resources/read-blob-test-cases.js 2012-06-08 07:27:20 UTC (rev 119805)
@@ -98,7 +98,7 @@
{
log("Test reading a blob containing single ArrayBuffer");
var array = new Uint8Array([0, 1, 2, 128, 129, 130, 253, 254, 255]);
- var blob = buildBlob([array.buffer]);
+ var blob = buildBlob([array]);
readBlobAsBinaryString(testFiles, blob);
}
@@ -121,7 +121,7 @@
{
log("Test reading a blob containing sliced ArrayBuffer");
var array = new Uint8Array([0, 1, 2, 128, 129, 130, 253, 254, 255]);
- var blob = buildBlob([array.buffer])
+ var blob = buildBlob([array])
blob = blob.webkitSlice(1, 11);
readBlobAsBinaryString(testFiles, blob);
}
@@ -146,7 +146,7 @@
var array1 = new Uint8Array([0, 1, 2]);
var array2 = new Uint8Array([128, 129, 130]);
var array3 = new Uint8Array([253, 254, 255]);
- var blob = buildBlob([array1.buffer, array2.buffer, array3.buffer]);
+ var blob = buildBlob([array1, array2, array3]);
readBlobAsBinaryString(testFiles, blob);
}
@@ -154,7 +154,7 @@
{
log("Test reading a hybrid blob");
var array = new Uint8Array([48, 49, 50]);
- var blob = buildBlob(['First', testFiles['file1'], 'Second', testFiles['file2'], testFiles['file3'], 'Third', array.buffer]);
+ var blob = buildBlob(['First', testFiles['file1'], 'Second', testFiles['file2'], testFiles['file3'], 'Third', array]);
readBlobAsBinaryString(testFiles, blob);
}
@@ -162,7 +162,7 @@
{
log("Test reading a sliced hybrid blob");
var array = new Uint8Array([48, 49, 50]);
- var blob = buildBlob(['First', testFiles['file1'], 'Second', testFiles['file2'], testFiles['file3'], 'Third', array.buffer]);
+ var blob = buildBlob(['First', testFiles['file1'], 'Second', testFiles['file2'], testFiles['file3'], 'Third', array]);
var blob = blob.webkitSlice(7, 19);
readBlobAsBinaryString(testFiles, blob);
}
@@ -171,7 +171,7 @@
{
log("Test reading a triple-sliced hybrid blob");
var array = new Uint8Array([48, 49, 50]);
- var items = ['First', testFiles['file1'].webkitSlice(1, 11), testFiles['empty-file'], 'Second', testFiles['file2'], testFiles['file3'], 'Third', array.buffer];
+ var items = ['First', testFiles['file1'].webkitSlice(1, 11), testFiles['empty-file'], 'Second', testFiles['file2'], testFiles['file3'], 'Third', array];
var blob = buildBlob(items);
var blob = blob.webkitSlice(7, 19);
var blob2 = buildBlob(items.concat(['Foo', blob, 'Bar']));