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

Unified Diff: third_party/WebKit/LayoutTests/media/media-reparent.html

Issue 1858073002: Media: Report HTMLMediaElement player errors to devtools console Base URL: https://chromium.googlesource.com/chromium/src.git@fix_472253_1
Patch Set: Rebase, attempt to fix 1 regressed expectation, temporary logging for investigating 2 other regress… Created 4 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 side-by-side diff with in-line comments
Download patch
Index: third_party/WebKit/LayoutTests/media/media-reparent.html
diff --git a/third_party/WebKit/LayoutTests/media/media-reparent.html b/third_party/WebKit/LayoutTests/media/media-reparent.html
index 59a6c811b05c0350f2d59644173f4a3d7563b917..1b475db321849d6c3366c823755326a60d88e661 100644
--- a/third_party/WebKit/LayoutTests/media/media-reparent.html
+++ b/third_party/WebKit/LayoutTests/media/media-reparent.html
@@ -8,10 +8,17 @@ setTimeout(function(){
document.documentElement.appendChild(f);
var w = f.contentWindow;
var div = w.document.createElement('div');
- div.innerHTML = '<audio src="1">';
+ div.innerHTML = '<audio src="1">'; // Attempt to load this URL should fail.
var node = div;
f.parentNode.removeChild(f);
document.body.appendChild(node);
- endTestLater();
+
+ // TODO(wolenetz,philipj): Avoid large timeout here by using
+ // waitForEventAndEnd('error') once that error event is reliably
+ // deliverable to the new parent. See https://crbug.com/600849.
+ // Larger than 250ms endTestLater() timeout is used here to prevent
+ // flakily missing console error log. If flakes recur, we may need
+ // to increase it further.
+ setTimeout(endTest, 750);
})
</script>

Powered by Google App Engine
This is Rietveld 408576698