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

Unified Diff: third_party/WebKit/LayoutTests/webaudio/mixing.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 side-by-side diff with in-line comments
Download patch
Index: third_party/WebKit/LayoutTests/webaudio/mixing.html
diff --git a/third_party/WebKit/LayoutTests/webaudio/mixing.html b/third_party/WebKit/LayoutTests/webaudio/mixing.html
index 6c7967cb046c79f43b7ec0b714625f7e05403ff3..3f3f047bb67ec5084d71dc90e5a3c952114d79dd 100644
--- a/third_party/WebKit/LayoutTests/webaudio/mixing.html
+++ b/third_party/WebKit/LayoutTests/webaudio/mixing.html
@@ -68,10 +68,12 @@ function runTest(context, bufferList, should, testThresholds) {
should(bufferList[1].numberOfChannels, 'Number of channels in mono source')
.beEqualTo(1);
- return context.startRendering().then(verifyResult);
+ return context.startRendering().then(audioBuffer => {
+ verifyResult(audioBuffer, context, bufferList, testThresholds, should);
+ });
}
-function verifyResult(renderedBuffer) {
+function verifyResult(renderedBuffer, context, bufferList, testThresholds, should) {
// Test only works if we have a stereo result.
should(
renderedBuffer.numberOfChannels, 'Number of channels in rendered output')

Powered by Google App Engine
This is Rietveld 408576698