Chromium Code Reviews| Index: third_party/WebKit/LayoutTests/webaudio/unit-tests/audit.html |
| diff --git a/third_party/WebKit/LayoutTests/webaudio/unit-tests/audit.html b/third_party/WebKit/LayoutTests/webaudio/unit-tests/audit.html |
| index 27bc852522a96e9162b0804ab017e3be08495d9d..adb2d78512b4572b6f5e65edb723036ad644cda2 100644 |
| --- a/third_party/WebKit/LayoutTests/webaudio/unit-tests/audit.html |
| +++ b/third_party/WebKit/LayoutTests/webaudio/unit-tests/audit.html |
| @@ -65,6 +65,20 @@ |
| } |
| ); |
| + // Test Audit.loadFileFromUrl() within |should| assertion. |
| + // See: crbug.com/701813 |
| + audit.define({ |
| + label: 'load-file-in-should', |
| + description: 'Test Audit.loadFileFromUrl() within |should| assertion.' |
| + }, (task, should) => { |
| + let url = '../resources/hyper-reality/laughter.wav'; |
| + let promise = should(Audit.loadFileFromUrl(url), |
| + 'Loading file within should().beResolved()') |
| + .beResolved(); |
| + promise.then(() => { task.done() }); |
| + } |
| + ); |
| + |
| // The task headline needs to be printed even if there is no description is |
| // given. |
| @@ -89,7 +103,8 @@ |
| // You can enumerate tasks you want to execute in the order, or simply pass |
| // no argument to run all the defined tasks. |
| - audit.run('numerical', 'basic', 'dummy-label-string', 'dummy-label-object'); |
| + audit.run('numerical', 'basic', 'load-file-in-should', |
|
Raymond Toy
2017/03/21 21:16:33
What's the reason for maintaining this list? Is it
hongchan
2017/03/21 23:07:57
This is the example that the list can be arranged
Raymond Toy
2017/03/21 23:13:36
Acknowledged.
|
| + 'dummy-label-string', 'dummy-label-object'); |
| </script> |
| </body> |
| </html> |