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

Unified Diff: third_party/WebKit/LayoutTests/webaudio/unit-tests/audit-failures.html

Issue 2766883002: Allow status = 0 when XHR is completed in Audit.loadFileFromUrl(). (Closed)
Patch Set: Fixed threshold after revert Created 3 years, 9 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/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>

Powered by Google App Engine
This is Rietveld 408576698