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

Unified Diff: third_party/WebKit/LayoutTests/webaudio/constructor/waveshaper.html

Issue 2707243006: [SharedArrayBuffer] Prevent SharedArrayBuffer being used in Web APIs (Closed)
Patch Set: update comment, add TODO 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
Index: third_party/WebKit/LayoutTests/webaudio/constructor/waveshaper.html
diff --git a/third_party/WebKit/LayoutTests/webaudio/constructor/waveshaper.html b/third_party/WebKit/LayoutTests/webaudio/constructor/waveshaper.html
index 40c262413aef9d8dc9489e4c413625dda3ea258b..2968b1c6115a9ba788aa546608eddda12828b8fb 100644
--- a/third_party/WebKit/LayoutTests/webaudio/constructor/waveshaper.html
+++ b/third_party/WebKit/LayoutTests/webaudio/constructor/waveshaper.html
@@ -96,6 +96,17 @@
taskDone();
});
+ if (window.SharedArrayBuffer) {
+ audit.defineTask("invalid setCurve", function (taskDone) {
+ var node = new WaveShaperNode(context);
+
+ Should("WaveShaper.curve = SharedArrayBuffer view", function () {
+ node.curve = new Float32Array(new SharedArrayBuffer(16));
+ }).throw("TypeError");
+ taskDone();
+ });
+ }
+
audit.runTasks();
</script>
</body>

Powered by Google App Engine
This is Rietveld 408576698