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

Side by Side Diff: third_party/WebKit/LayoutTests/webaudio/audioparam-setTargetAtTime-continuous.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 unified diff | Download patch
OLDNEW
1 <!doctype html> 1 <!doctype html>
2 <html> 2 <html>
3 <head> 3 <head>
4 <script src="../resources/js-test.js"></script> 4 <script src="../resources/js-test.js"></script>
5 <script src="resources/compatibility.js"></script> 5 <script src="resources/compatibility.js"></script>
6 <script src="resources/audio-testing.js"></script> 6 <script src="resources/audio-testing.js"></script>
7 <script src="resources/audioparam-testing.js"></script> 7 <script src="resources/audioparam-testing.js"></script>
8 <title>SetTarget Followed by Linear or Exponential Ramp Is Continuous</title > 8 <title>SetTarget Followed by Linear or Exponential Ramp Is Continuous</title >
9 </head> 9 </head>
10 10
(...skipping 197 matching lines...) Expand 10 before | Expand all | Expand 10 after
208 success = Should(prefix + ": SetTarget part", result.slice(startInde x, startIndex + 208 success = Should(prefix + ": SetTarget part", result.slice(startInde x, startIndex +
209 length)) 209 length))
210 .beCloseToArray(expected.setTargetPart, thresholdSetTarget) && suc cess; 210 .beCloseToArray(expected.setTargetPart, thresholdSetTarget) && suc cess;
211 } else { 211 } else {
212 testPassed("SetTarget part was correctly replaced by the ramp"); 212 testPassed("SetTarget part was correctly replaced by the ramp");
213 } 213 }
214 214
215 // Verify the ramp part of the curve 215 // Verify the ramp part of the curve
216 startIndex += length; 216 startIndex += length;
217 length = expected.rampPart.length; 217 length = expected.rampPart.length;
218 success = Should(prefix, result.slice(startIndex, startIndex + length) , { 218 success = Should(prefix, result.slice(startIndex, startIndex + length) )
219 verbose: true 219 .beCloseToArray(expected.rampPart, thresholdRamp) && success;
220 }).beCloseToArray(expected.rampPart, thresholdRamp) && success;
221 220
222 // Verify that the end of the curve after the ramp (if any) is a const ant. 221 // Verify that the end of the curve after the ramp (if any) is a const ant.
223 startIndex += length; 222 startIndex += length;
224 success = Should(prefix + ": Tail part", result.slice(startIndex)) 223 success = Should(prefix + ": Tail part", result.slice(startIndex))
225 .beCloseToArray(expected.tailPart, 0) && success; 224 .beCloseToArray(expected.tailPart, 0) && success;
226 225
227 if (success) 226 if (success)
228 testPassed(prefix + " preceded by SetTarget is continuous.\n"); 227 testPassed(prefix + " preceded by SetTarget is continuous.\n");
229 else 228 else
230 testFailed(prefix + " preceded by SetTarget was not continuous.\n"); 229 testFailed(prefix + " preceded by SetTarget was not continuous.\n");
231 }); 230 });
232 } 231 }
233 </script> 232 </script>
234 </body> 233 </body>
235 </html> 234 </html>
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698