Commit db02d452 authored by Tommy Steimel's avatar Tommy Steimel Committed by Commit Bot

Enable test mode for flaky media controls tests

This CL adds test mode to two flaky layout tests to avoid race
conditions causing the flake.

Bug: 835513
Change-Id: I43dfe19852ed064e1016b147f055f99d2d51f969
Reviewed-on: https://chromium-review.googlesource.com/1023043Reviewed-by: default avatarBecca Hughes <beccahughes@chromium.org>
Commit-Queue: Tommy Steimel <steimel@chromium.org>
Cr-Commit-Position: refs/heads/master@{#552831}
parent 9183512b
...@@ -11,6 +11,7 @@ video-enter-exit-fullscreen-without-hovering-doesnt-show-controls.html</title> ...@@ -11,6 +11,7 @@ video-enter-exit-fullscreen-without-hovering-doesnt-show-controls.html</title>
<script> <script>
async_test(function(t) { async_test(function(t) {
var video = document.querySelector("video"); var video = document.querySelector("video");
enableTestMode(video);
video.oncanplaythrough = t.step_func(function() { video.oncanplaythrough = t.step_func(function() {
video.oncanplaythrough = null; video.oncanplaythrough = null;
......
...@@ -12,6 +12,7 @@ video-enter-exit-fullscreen-while-hovering-shows-controls.html</title> ...@@ -12,6 +12,7 @@ video-enter-exit-fullscreen-while-hovering-shows-controls.html</title>
<script> <script>
async_test(function(t) { async_test(function(t) {
var video = document.querySelector("video"); var video = document.querySelector("video");
enableTestMode(video);
video.oncanplaythrough = t.step_func(function() { video.oncanplaythrough = t.step_func(function() {
video.oncanplaythrough = null; video.oncanplaythrough = null;
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment