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

Unified Diff: third_party/WebKit/LayoutTests/webaudio/resources/stereopanner-testing.js

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/resources/stereopanner-testing.js
diff --git a/third_party/WebKit/LayoutTests/webaudio/resources/stereopanner-testing.js b/third_party/WebKit/LayoutTests/webaudio/resources/stereopanner-testing.js
index 0e573e9650ec7569b4712bd1b6a4ea54306fddcb..7af585291952d8a596ee0d80fa3ad9df8f42d1f9 100644
--- a/third_party/WebKit/LayoutTests/webaudio/resources/stereopanner-testing.js
+++ b/third_party/WebKit/LayoutTests/webaudio/resources/stereopanner-testing.js
@@ -54,6 +54,7 @@ var StereoPannerTest = (function () {
this.success = true;
this.context = null;
+ this.prefix = options.prefix;
this.numberOfInputChannels = (options.numberOfInputChannels || 1);
switch (this.numberOfInputChannels) {
case 1:
@@ -176,16 +177,16 @@ var StereoPannerTest = (function () {
Test.prototype.showResult = function () {
- Should("Number of impulses found", this.impulseIndex)
+ Should(this.prefix + "Number of impulses found", this.impulseIndex)
.beEqualTo(gNodesToCreate);
- Should("Number of impulse at the wrong offset", this.errors.length)
+ Should(this.prefix + "Number of impulse at the wrong offset", this.errors.length)
.beEqualTo(0);
- Should("Left channel error magnitude", this.maxErrorL)
+ Should(this.prefix + "Left channel error magnitude", this.maxErrorL)
.beLessThanOrEqualTo(this.maxAllowedError);
- Should("Right channel error magnitude", this.maxErrorR)
+ Should(this.prefix + "Right channel error magnitude", this.maxErrorR)
.beLessThanOrEqualTo(this.maxAllowedError);
};

Powered by Google App Engine
This is Rietveld 408576698