| OLD | NEW |
| 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 Loading... |
| 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> |
| OLD | NEW |