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

Side by Side Diff: third_party/WebKit/LayoutTests/webaudio/panner-automation-position.html

Issue 2200413005: Update WebAudio layout tests for Android (arm32) (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Minor cleanups. Created 4 years, 4 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 <script src="../resources/js-test.js"></script> 4 <script src="../resources/js-test.js"></script>
5 <script src="resources/compatibility.js"></script> 5 <script src="resources/compatibility.js"></script>
6 <script src="resources/audio-testing.js"></script> 6 <script src="resources/audio-testing.js"></script>
7 <script src="resources/panner-formulas.js"></script> 7 <script src="resources/panner-formulas.js"></script>
8 <title>Test Automation of PannerNode Positions</title> 8 <title>Test Automation of PannerNode Positions</title>
9 </head> 9 </head>
10 10
(...skipping 233 matching lines...) Expand 10 before | Expand all | Expand 10 after
244 + options.startPosition[2] + "] -> [" 244 + options.startPosition[2] + "] -> ["
245 + options.endPosition[0] + ", " 245 + options.endPosition[0] + ", "
246 + options.endPosition[1] + ", " 246 + options.endPosition[1] + ", "
247 + options.endPosition[2] + "]: "; 247 + options.endPosition[2] + "]: ";
248 248
249 var errorThreshold = 0; 249 var errorThreshold = 0;
250 250
251 if (options.errorThreshold) 251 if (options.errorThreshold)
252 errorThreshold = options.errorThreshold[channelCount - 1] 252 errorThreshold = options.errorThreshold[channelCount - 1]
253 253
254 Should(prefix + "distanceModel: " + info + ", left channel", data0) 254 Should(prefix + "distanceModel: " + info + ", left channel", data0, {
255 precision: 5
256 })
255 .beCloseToArray(expected0, errorThreshold); 257 .beCloseToArray(expected0, errorThreshold);
256 Should(prefix + "distanceModel: " + info + ", right channel", data1) 258 Should(prefix + "distanceModel: " + info + ", right channel", data1, {
259 precision: 5
260 })
257 .beCloseToArray(expected1, errorThreshold); 261 .beCloseToArray(expected1, errorThreshold);
258 }); 262 });
259 } 263 }
260 </script> 264 </script>
261 </body> 265 </body>
262 </html> 266 </html>
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698