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"); |