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

Unified Diff: content/test/data/gpu/pixel_video_mp4.html

Issue 2803823005: Check for readyState in video pixel tests (Closed)
Patch Set: Created 3 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
« no previous file with comments | « no previous file | content/test/data/gpu/pixel_video_vp9.html » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: content/test/data/gpu/pixel_video_mp4.html
diff --git a/content/test/data/gpu/pixel_video_mp4.html b/content/test/data/gpu/pixel_video_mp4.html
index 2a2bf900eb347758ce28ca10ad59607788d6e53d..0346bfe2fd7771734f1208d6b685e21b778fedf9 100644
--- a/content/test/data/gpu/pixel_video_mp4.html
+++ b/content/test/data/gpu/pixel_video_mp4.html
@@ -21,7 +21,11 @@ var video;
function main()
{
video = document.getElementById("video");
- video.addEventListener('canplaythrough', waitForFinish, true);
+ if (video.readyState >= 4) {
+ waitForFinish();
+ } else {
+ video.addEventListener('canplaythrough', waitForFinish, true);
+ }
}
function waitForFinish()
« no previous file with comments | « no previous file | content/test/data/gpu/pixel_video_vp9.html » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698