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

Side by Side Diff: third_party/WebKit/LayoutTests/webaudio/Panner/panner-distance-clamping.html

Issue 2768983002: Fix duplicate test names in WebAudio tests (Closed)
Patch Set: Created 3 years, 9 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 Clamping of Distance for PannerNode</title> 4 <title>Test Clamping of Distance for PannerNode</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 180 matching lines...) Expand 10 before | Expand all | Expand 10 after
191 191
192 pannerRef.positionZ.setValueAtTime(xRef, 0); 192 pannerRef.positionZ.setValueAtTime(xRef, 0);
193 pannerTest.positionZ.setValueAtTime(xTest, 0); 193 pannerTest.positionZ.setValueAtTime(xTest, 0);
194 194
195 src.start(); 195 src.start();
196 196
197 return context.startRendering().then(function (resultBuffer) { 197 return context.startRendering().then(function (resultBuffer) {
198 var actual = resultBuffer.getChannelData(0); 198 var actual = resultBuffer.getChannelData(0);
199 var expected = resultBuffer.getChannelData(1); 199 var expected = resultBuffer.getChannelData(1);
200 200
201 Should("Distance (" + xTest + ") is outside the range [" + 201 Should("Model: " + options.distanceModel + ": Distance (" + xTest + ") is outside the range [" +
202 pannerRef.refDistance + ", " + pannerRef.maxDistance + "]", 202 pannerRef.refDistance + ", " + pannerRef.maxDistance + "]",
203 xTest < pannerRef.refDistance || xTest > pannerRef.maxDistance) 203 xTest < pannerRef.refDistance || xTest > pannerRef.maxDistance)
204 .beEqualTo(true); 204 .beEqualTo(true);
205 Should("Test panner output " + JSON.stringify(options), actual) 205 Should("Test panner output " + JSON.stringify(options), actual)
206 .beEqualToArray(expected); 206 .beEqualToArray(expected);
207 }); 207 });
208 } 208 }
209 209
210 audit.runTasks(); 210 audit.runTasks();
211 </script> 211 </script>
212 </body> 212 </body>
213 </html> 213 </html>
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698