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

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: 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 c4a791ce57a2cfcb567a4a8bc112c9ba4f1e8c91..3cd09aeda4c6e980d97d49cc844b2d2fdb141e9e 100644
--- a/LayoutTests/webaudio/resources/audio-testing.js
+++ b/LayoutTests/webaudio/resources/audio-testing.js
@@ -429,6 +429,23 @@ 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"
hongchan 2015/07/22 21:01:19 We previously agreed to add the example message fr
Raymond Toy 2015/07/23 15:33:09 Done.
+ 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.
//

Powered by Google App Engine
This is Rietveld 408576698