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

Unified Diff: LayoutTests/fast/events/media-focus-in-standalone-media-document.html

Issue 22791003: Make media controls keyboard accessible Base URL: http://src.chromium.org/blink/trunk/
Patch Set: Created 7 years, 4 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 | LayoutTests/fast/events/media-focus-in-standalone-media-document-expected.txt » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: LayoutTests/fast/events/media-focus-in-standalone-media-document.html
===================================================================
--- LayoutTests/fast/events/media-focus-in-standalone-media-document.html (revision 156221)
+++ LayoutTests/fast/events/media-focus-in-standalone-media-document.html (working copy)
@@ -28,13 +28,14 @@
function testFocus()
{
- consoleWrite("<br>*** Should not focus video element by calling focus() method.");
+ consoleWrite("<br>*** Should focus video element by calling focus() method.");
videoElement.focus();
- testExpected("standaloneMediaDocument.activeElement", videoElement, "!=");
+ testExpected("standaloneMediaDocument.activeElement", videoElement, "==");
}
function testFocusbyMouseClick()
{
+ videoElement.blur();
// Simulate click event to try focus video element.
consoleWrite("<br>*** Should not focus video element by mouse click.");
var click = document.createEvent("MouseEvents");
@@ -46,7 +47,7 @@
</head>
<body>
<p>
- This tests that media element in a standalone media document cannot be focused directly using focus() method or by mouse click.
+ This tests that media element in a standalone media document can be focused directly using focus() method and not by mouse click.
</p>
<iframe id="videoframe" width=380 height=330 onload="frameLoaded()"></iframe>
<script type="text/javascript">
« no previous file with comments | « no previous file | LayoutTests/fast/events/media-focus-in-standalone-media-document-expected.txt » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698