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

Unified Diff: LayoutTests/webaudio/resources/audio-testing.js

Issue 1180613007: Allow larger arrays up to size 8192 for PeriodicWave (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Rebase and use Audit.runTasks() Created 5 years, 5 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: LayoutTests/webaudio/resources/audio-testing.js
diff --git a/LayoutTests/webaudio/resources/audio-testing.js b/LayoutTests/webaudio/resources/audio-testing.js
index 9cc82ce733e32aa04658acccd63ff3faf81b2960..ce9ceb68e8019ee979edbb0a31fb0370716b45d2 100644
--- a/LayoutTests/webaudio/resources/audio-testing.js
+++ b/LayoutTests/webaudio/resources/audio-testing.js
@@ -440,6 +440,24 @@ var Should = (function () {
this._testPassed('is not equal to ' + value);
};
+ // Check if |target| is greater than or equal to |value|.
+ //
+ // Example:
+ // Should("SNR", snr).greaterThanOrEqualTo(100);
+ // Result:
+ // "PASS SNR exceeds 100"
+ // "FAIL SNR (n) is not greater than or equal to 100"
+ ShouldModel.prototype.beGreaterThanOrEqualTo = function (value) {
+ var type = typeof value;
+ this._assert(type === 'number' || type === 'string',
+ 'value should be number or string for');
+
+ if (this.target >= value)
+ this._testPassed("is greater than or equal to " + value);
+ else
+ this._testFailed("(" + this.target + ") is not greater than or equal to " + value);
+ }
+
// Check if |func| throws an exception with a certain |errorType| correctly.
// |errorType| is optional.
//
« no previous file with comments | « LayoutTests/webaudio/periodicwave-lengths-expected.txt ('k') | Source/modules/webaudio/AbstractAudioContext.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698