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

Unified Diff: content/test/data/gpu/pixel_video_vp9.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 | « content/test/data/gpu/pixel_video_mp4.html ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: content/test/data/gpu/pixel_video_vp9.html
diff --git a/content/test/data/gpu/pixel_video_vp9.html b/content/test/data/gpu/pixel_video_vp9.html
index ee300f65dd22ed89b7771f1cccbc6c6d7bc1054f..c183570def8f77f35356c0e1151e22e22001dd20 100644
--- a/content/test/data/gpu/pixel_video_vp9.html
+++ b/content/test/data/gpu/pixel_video_vp9.html
@@ -21,11 +21,16 @@ 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()
{
+ console.log("readyState" + video.readyState);
if (g_swapsBeforeAck == 0) {
domAutomationController.setAutomationId(1);
domAutomationController.send("SUCCESS");
« no previous file with comments | « content/test/data/gpu/pixel_video_mp4.html ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698