OLD | NEW |
1 <!DOCTYPE html> | 1 <!DOCTYPE html> |
2 <html> | 2 <html> |
3 <head> | 3 <head> |
4 <title>AudioBufferSourceNode - playbackRate test</title> | 4 <title>AudioBufferSourceNode - playbackRate test</title> |
5 <script src="../resources/js-test.js"></script> | 5 <script src="../../resources/js-test.js"></script> |
6 <script src="resources/compatibility.js"></script> | 6 <script src="../resources/compatibility.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 <body> | 10 <body> |
11 <script> | 11 <script> |
12 description("Test if AudioBufferSourceNode.playbackRate can playback at differ
ent rates properly."); | 12 description("Test if AudioBufferSourceNode.playbackRate can playback at differ
ent rates properly."); |
13 window.jsTestIsAsync = true; | 13 window.jsTestIsAsync = true; |
14 | 14 |
15 // Any sample rate mutiple of 128 is valid for this test, but here it uses | 15 // Any sample rate mutiple of 128 is valid for this test, but here it uses |
16 // 48000Hz because it is a commonly used number that happens to be multiple | 16 // 48000Hz because it is a commonly used number that happens to be multiple |
17 // of 128. | 17 // of 128. |
18 var sampleRate = 48000; | 18 var sampleRate = 48000; |
(...skipping 90 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
109 compareBuffersWithConstraints(octaveActual, octaveExpected, testConstraint
s[i]); | 109 compareBuffersWithConstraints(octaveActual, octaveExpected, testConstraint
s[i]); |
110 } | 110 } |
111 | 111 |
112 finishJSTest(); | 112 finishJSTest(); |
113 }); | 113 }); |
114 | 114 |
115 successfullyParsed = true; | 115 successfullyParsed = true; |
116 </script> | 116 </script> |
117 </body> | 117 </body> |
118 </html> | 118 </html> |
OLD | NEW |