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

Unified Diff: LayoutTests/media/autoplay.html

Issue 441253003: Work around GC bug to fix flaky autoplay tests (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Created 6 years, 4 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
« no previous file with comments | « LayoutTests/TestExpectations ('k') | LayoutTests/media/autoplay-with-preload-none.html » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: LayoutTests/media/autoplay.html
diff --git a/LayoutTests/media/autoplay.html b/LayoutTests/media/autoplay.html
index ca59be325e0c3c18f55759b24e6354649e8b6360..fdc67a1b0fea45f36dfe2e0f14460441899984e5 100644
--- a/LayoutTests/media/autoplay.html
+++ b/LayoutTests/media/autoplay.html
@@ -11,6 +11,8 @@ function autoplay_test(tagName, src)
async_test(function(t)
{
var e = document.createElement(tagName);
+ // add to body to prevent GC pending http://crbug.com/400659
+ document.body.appendChild(e);
e.src = src;
e.autoplay = true;
var actual_events = [];
« no previous file with comments | « LayoutTests/TestExpectations ('k') | LayoutTests/media/autoplay-with-preload-none.html » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698