Index: third_party/WebKit/LayoutTests/fast/files/blob-constructor.html |
diff --git a/third_party/WebKit/LayoutTests/fast/files/blob-constructor.html b/third_party/WebKit/LayoutTests/fast/files/blob-constructor.html |
index 5261d19ff472233378cc26b2fdd4c7469f3729df..df34b9cd2bb8a728c2ea63e433bf538128942e61 100644 |
--- a/third_party/WebKit/LayoutTests/fast/files/blob-constructor.html |
+++ b/third_party/WebKit/LayoutTests/fast/files/blob-constructor.html |
@@ -123,6 +123,11 @@ shouldBe("new Blob([(new Float64Array(100)).buffer]).size", "800"); |
shouldBe("new Blob([(new Float64Array(100)).buffer, (new Int32Array(100)).buffer, (new Uint8Array(100)).buffer, (new DataView(new ArrayBuffer(100))).buffer]).size", "1400"); |
shouldBe("new Blob([new Blob([(new Int32Array(100)).buffer]), (new Uint8Array(100)).buffer, (new Float32Array(100)).buffer, (new DataView(new ArrayBuffer(100))).buffer]).size", "1000"); |
+if (window.SharedArrayBuffer) { |
+ // Test SharedArrayBuffer parameters. |
+ shouldThrow("new Blob([new Uint8Array(new SharedArrayBuffer(4))])", '"TypeError: Failed to construct \'Blob\': The provided ArrayBufferView value must not be shared."'); |
+} |
+ |
// Test passing blob parts in objects with indexed properties. |
// (This depends on the bindings code handling of sequence<T>) |
shouldBe("new Blob({length: 0}).size", "0"); |