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

Side by Side Diff: third_party/WebKit/LayoutTests/webaudio/IIRFilter/iirfilter-basic.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 Basic IIRFilterNode Properties</title> 4 <title>Test Basic IIRFilterNode Properties</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 </head> 9 </head>
10 10
(...skipping 170 matching lines...) Expand 10 before | Expand all | Expand 10 after
181 181
182 success = Should( 182 success = Should(
183 "getFrequencyResponse(new Float32Array(10), new Float32Array(20), new Float32Array(30))", 183 "getFrequencyResponse(new Float32Array(10), new Float32Array(20), new Float32Array(30))",
184 function () { 184 function () {
185 // Ok if magResponse and phaseResponse have different lengths as lon g as they're longer 185 // Ok if magResponse and phaseResponse have different lengths as lon g as they're longer
186 // than frequencyHz. 186 // than frequencyHz.
187 f.getFrequencyResponse(new Float32Array(10), new Float32Array(20), n ew Float32Array( 187 f.getFrequencyResponse(new Float32Array(10), new Float32Array(20), n ew Float32Array(
188 30)); 188 30));
189 }).notThrow() && success; 189 }).notThrow() && success;
190 190
191 if (window.SharedArrayBuffer) {
192 var shared_view = new Float32Array(new SharedArrayBuffer(4));
193 var nonshared_view = new Float32Array(1);
194
195 success = Should(
196 "getFrequencyResponse(shared_view, nonshared_view, nonshared_view) ",
197 function () {
198 f.getFrequencyResponse(shared_view, nonshared_view, nonshared_vi ew);
199 }).throw("TypeError") && success;
200 success = Should(
201 "getFrequencyResponse(nonshared_view, shared_view, nonshared_view) ",
202 function () {
203 f.getFrequencyResponse(nonshared_view, shared_view, nonshared_vi ew);
204 }).throw("TypeError") && success;
205 success = Should(
206 "getFrequencyResponse(nonshared_view, nonshared_view, shared_view) ",
207 function () {
208 f.getFrequencyResponse(nonshared_view, nonshared_view, shared_vi ew);
209 }).throw("TypeError") && success;
210 }
211
191 Should("getFrequencyResponse exceptions handled", success) 212 Should("getFrequencyResponse exceptions handled", success)
192 .summarize("correctly", "incorrectly"); 213 .summarize("correctly", "incorrectly");
193 done(); 214 done();
194 }); 215 });
195 216
196 audit.runTasks(); 217 audit.runTasks();
197 </script> 218 </script>
198 </body> 219 </body>
199 </html> 220 </html>
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698