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

Unified Diff: third_party/WebKit/LayoutTests/webaudio/realtimeanalyser-freq-data.html

Issue 2072313002: Replace verbose option with brief option for Should(). (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Adjust message for default verbose output. Created 4 years, 6 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/realtimeanalyser-freq-data.html
diff --git a/third_party/WebKit/LayoutTests/webaudio/realtimeanalyser-freq-data.html b/third_party/WebKit/LayoutTests/webaudio/realtimeanalyser-freq-data.html
index acaf585b41d3c794b3d112bfb4425625f3c0db25..030c8d2dcbf9ece914735a00be67d761ccabdebc 100644
--- a/third_party/WebKit/LayoutTests/webaudio/realtimeanalyser-freq-data.html
+++ b/third_party/WebKit/LayoutTests/webaudio/realtimeanalyser-freq-data.html
@@ -184,9 +184,13 @@
var minValue = Math.min(...expected);
var maxValue = Math.max(...expected);
- basicTestsPassed = Should("Min FFT value", minValue)
+ basicTestsPassed = Should("Min FFT value", minValue, {
+ brief: true
+ })
.beLessThanOrEqualTo(analyser.minDecibels) && basicTestsPassed;
- basicTestsPassed = Should("Max FFT value", maxValue)
+ basicTestsPassed = Should("Max FFT value", maxValue, {
+ brief: true
+ })
.beGreaterThanOrEqualTo(analyser.maxDecibels) && basicTestsPassed;
// Test the byte frequency data.
@@ -198,9 +202,8 @@
var expectedByteData = convertFloatToByte(expected, analyser.minDecibels,
analyser.maxDecibels);
- basicTestsPassed = Should(analyser.fftSize + "-point byte FFT", byteFreqData, {
- verbose: true
- }).beCloseToArray(expectedByteData, 0) && basicTestsPassed;
+ basicTestsPassed = Should(analyser.fftSize + "-point byte FFT", byteFreqData)
+ .beCloseToArray(expectedByteData, 0) && basicTestsPassed;
}).then(context.resume.bind(context));

Powered by Google App Engine
This is Rietveld 408576698