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