Upstream version 9.37.195.0
[platform/framework/web/crosswalk.git] / src / third_party / WebKit / LayoutTests / media / video-controls-show-on-focus.html
index 2503e28..42e3691 100644 (file)
@@ -18,16 +18,15 @@ video.addEventListener("playing", function()
         controls = mediaControlsButton(video, "panel");
 
         testExpected("getComputedStyle(controls).opacity", 0);
-
         video.focus();
 
-        setTimeout(function()
-        {
-            testExpected("getComputedStyle(controls).opacity", 1);
+        testExpected("getComputedStyle(controls).opacity", 1);
+
+        // We fade out when focus is lost, so the opacity is still 1
+        video.blur();
+        testExpected("getComputedStyle(controls).opacity", 1);
 
-            consoleWrite("");
-            endTest();
-        }, controlsFadeInDurationMs);
+        endTest();
     }, video);
 });
 </script>