Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(97)

Unified Diff: third_party/WebKit/LayoutTests/webaudio/decodeAudioData/decode-audio-data-neuter.html

Issue 2826263002: Make DOMArrayBuffer::Transfer neuter v8::ArrayBuffers (Closed)
Patch Set: add test and use to_transfer Created 3 years, 8 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « no previous file | third_party/WebKit/Source/bindings/core/v8/SerializedScriptValue.cpp » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: third_party/WebKit/LayoutTests/webaudio/decodeAudioData/decode-audio-data-neuter.html
diff --git a/third_party/WebKit/LayoutTests/webaudio/decodeAudioData/decode-audio-data-neuter.html b/third_party/WebKit/LayoutTests/webaudio/decodeAudioData/decode-audio-data-neuter.html
index 0374bef3a4247c1e1a2894577f5a3fa88e39c3f2..e112223ea1206236c88d8cc655af6f387b010ca8 100644
--- a/third_party/WebKit/LayoutTests/webaudio/decodeAudioData/decode-audio-data-neuter.html
+++ b/third_party/WebKit/LayoutTests/webaudio/decodeAudioData/decode-audio-data-neuter.html
@@ -62,6 +62,19 @@
.then(() => task.done());
});
+ audit.define('decode neuters buffer and view', (task, should) => {
+ // The ArrayBuffer and any views of the ArrayBuffer must be neutered.
+ let buffer = new ArrayBuffer(1000);
+ let view = new Uint32Array(buffer);
+
+ context.decodeAudioData(buffer);
+
+ // Now buffer and view should be neutered.
+ should(buffer.byteLength, 'buffer.byteLength').beEqualTo(0);
+ should(view.length, 'view.length').beEqualTo(0);
+ task.done();
+ });
+
audit.run();
</script>
</body>
« no previous file with comments | « no previous file | third_party/WebKit/Source/bindings/core/v8/SerializedScriptValue.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698