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

Side by Side Diff: third_party/WebKit/LayoutTests/webaudio/dom-exceptions.html

Issue 2803913003: Add options.omitErrorMessage for should.throw() (Closed)
Patch Set: Add [error message omitted] Created 3 years, 8 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
« no previous file with comments | « no previous file | third_party/WebKit/LayoutTests/webaudio/dom-exceptions-expected.txt » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 <!doctype html> 1 <!doctype html>
2 <html> 2 <html>
3 <head> 3 <head>
4 <script src="../resources/testharness.js"></script> 4 <script src="../resources/testharness.js"></script>
5 <script src="../resources/testharnessreport.js"></script> 5 <script src="../resources/testharnessreport.js"></script>
6 <script src="resources/audit-util.js"></script> 6 <script src="resources/audit-util.js"></script>
7 <script src="resources/audit.js"></script> 7 <script src="resources/audit.js"></script>
8 <script src="resources/biquad-testing.js"></script> 8 <script src="resources/biquad-testing.js"></script>
9 </head> 9 </head>
10 10
(...skipping 305 matching lines...) Expand 10 before | Expand all | Expand 10 after
316 .notThrow(); 316 .notThrow();
317 should(node.channelInterpretation, 'node.channelInterpretation') 317 should(node.channelInterpretation, 'node.channelInterpretation')
318 .beEqualTo(currentInterpretation); 318 .beEqualTo(currentInterpretation);
319 // Destination node channel count: should throw IndexSizeError on invalid 319 // Destination node channel count: should throw IndexSizeError on invalid
320 // channel count. shouldNotThrow() method cannot be used because the error 320 // channel count. shouldNotThrow() method cannot be used because the error
321 // message includes the number of channels, which can change depending on 321 // message includes the number of channels, which can change depending on
322 // the actual attached hardware. 322 // the actual attached hardware.
323 should( 323 should(
324 () => context.destination.channelCount = 99, 324 () => context.destination.channelCount = 99,
325 'context.destination.channelCount = 99') 325 'context.destination.channelCount = 99')
326 .throw('IndexSizeError'); 326 .throw('IndexSizeError', { omitErrorMessage: true });
327 327
328 task.done(); 328 task.done();
329 }); 329 });
330 330
331 audit.define('audioparam', (task, should) => { 331 audit.define('audioparam', (task, should) => {
332 // AudioParams 332 // AudioParams
333 param = context.createGain().gain; 333 param = context.createGain().gain;
334 should( 334 should(
335 () => param.setValueCurveAtTime(null, 0, 0), 335 () => param.setValueCurveAtTime(null, 0, 0),
336 'param.setValueCurveAtTime(null, 0, 0)') 336 'param.setValueCurveAtTime(null, 0, 0)')
(...skipping 364 matching lines...) Expand 10 before | Expand all | Expand 10 after
701 should(source.noteOn, 'source.noteOn').beEqualTo(undefined); 701 should(source.noteOn, 'source.noteOn').beEqualTo(undefined);
702 should(source.noteOff, 'source.noteOff').beEqualTo(undefined); 702 should(source.noteOff, 'source.noteOff').beEqualTo(undefined);
703 703
704 task.done(); 704 task.done();
705 }); 705 });
706 706
707 audit.run(); 707 audit.run();
708 </script> 708 </script>
709 </body> 709 </body>
710 </html> 710 </html>
OLDNEW
« no previous file with comments | « no previous file | third_party/WebKit/LayoutTests/webaudio/dom-exceptions-expected.txt » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698