Chromium Code Reviews| 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..5ccb7ce1d712c35ae7287d6de7adb68340f53f23 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 needxi |
|
philipj_slow
2016/04/06 09:05:37
s/needxi/need/
wolenetz
2016/04/06 20:16:04
Done :)
|
| + // to increase it further. |
| + setTimeout(endTest, 750); |
| }) |
| </script> |