| Index: third_party/WebKit/LayoutTests/webaudio/unit-tests/audit-failures.html
|
| diff --git a/third_party/WebKit/LayoutTests/webaudio/unit-tests/audit-failures.html b/third_party/WebKit/LayoutTests/webaudio/unit-tests/audit-failures.html
|
| index ea959d546da6c768d9a3fece4c371c95a86999b2..ccb863aa119a1cc4696964715ae24f732dee28df 100644
|
| --- a/third_party/WebKit/LayoutTests/webaudio/unit-tests/audit-failures.html
|
| +++ b/third_party/WebKit/LayoutTests/webaudio/unit-tests/audit-failures.html
|
| @@ -85,6 +85,20 @@
|
| task.done();
|
| });
|
|
|
| + // Testing the failure handling of Audit.loadFileFromUrl().
|
| + audit.define({
|
| + label: 'load-file-in-should',
|
| + description: 'Testing the failure handling of Audit.loadFileFromUrl().'
|
| + }, (task, should) => {
|
| + let url = 'non-existent-audio-file.wav';
|
| + let promise = should(
|
| + Audit.loadFileFromUrl(url),
|
| + 'Loading non-existent file within should().beResolved()')
|
| + .beResolved();
|
| + promise.then(() => { task.done() });
|
| + }
|
| + );
|
| +
|
| // With no argument, this executes all tasks in the order defined.
|
| audit.run();
|
| </script>
|
|
|