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

Side by Side 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 unified diff | Download patch
OLDNEW
1 <!doctype html> 1 <!doctype html>
2 <html> 2 <html>
3 <head> 3 <head>
4 <title>Test Constructor: WaveShaper</title> 4 <title>Test Constructor: WaveShaper</title>
5 <script src="../../resources/testharness.js"></script> 5 <script src="../../resources/testharness.js"></script>
6 <script src="../../resources/testharnessreport.js"></script> 6 <script src="../../resources/testharnessreport.js"></script>
7 <script src="../resources/audit-util.js"></script> 7 <script src="../resources/audit-util.js"></script>
8 <script src="../resources/audio-testing.js"></script> 8 <script src="../resources/audio-testing.js"></script>
9 <script src="audionodeoptions.js"></script> 9 <script src="audionodeoptions.js"></script>
10 </head> 10 </head>
(...skipping 78 matching lines...) Expand 10 before | Expand all | Expand 10 after
89 .beEqualTo(options.oversample) && success; 89 .beEqualTo(options.oversample) && success;
90 90
91 Should("new WaveShaper() with options", success) 91 Should("new WaveShaper() with options", success)
92 .summarize( 92 .summarize(
93 "constructed with correct attributes", 93 "constructed with correct attributes",
94 "was not constructed correctly"); 94 "was not constructed correctly");
95 95
96 taskDone(); 96 taskDone();
97 }); 97 });
98 98
99 if (window.SharedArrayBuffer) {
100 audit.defineTask("invalid setCurve", function (taskDone) {
101 var node = new WaveShaperNode(context);
102
103 Should("WaveShaper.curve = SharedArrayBuffer view", function () {
104 node.curve = new Float32Array(new SharedArrayBuffer(16));
105 }).throw("TypeError");
106 taskDone();
107 });
108 }
109
99 audit.runTasks(); 110 audit.runTasks();
100 </script> 111 </script>
101 </body> 112 </body>
102 </html> 113 </html>
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698