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

Unified Diff: LayoutTests/media/autoplay-with-preload-none.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/media/autoplay.html ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: LayoutTests/media/autoplay-with-preload-none.html
diff --git a/LayoutTests/media/autoplay-with-preload-none.html b/LayoutTests/media/autoplay-with-preload-none.html
index 732295c2d7610ba02686e6fb846c2a88dc977e2e..5128c9a310b550269fa2ccf066344df60cfaf0e2 100644
--- a/LayoutTests/media/autoplay-with-preload-none.html
+++ b/LayoutTests/media/autoplay-with-preload-none.html
@@ -10,6 +10,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.preload = "none";
e.autoplay = true;
« no previous file with comments | « LayoutTests/media/autoplay.html ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698