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

Side by Side Diff: LayoutTests/media/activation-behavior-accesskey.html

Issue 208483002: Implement the activation behavior of media elements (click to play/pause) (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: cancel activation behavior in a failing fullscreen test Created 6 years, 9 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 unified diff | Download patch | Annotate | Revision Log
OLDNEW
(Empty)
1 <!doctype html>
2 <title>activation behavior using accesskey</title>
3 <script src="../resources/testharness.js"></script>
4 <script src="../resources/testharnessreport.js"></script>
5 <video controls accesskey="x"></video>
6 <script>
7 function pressAccessKey(key)
8 {
9 if (navigator.userAgent.search(/\bMac OS X\b/) != -1)
10 modifiers = ["ctrlKey", "altKey"];
11 else
12 modifiers = ["altKey"];
13 eventSender.keyDown(key, modifiers);
14 }
15
16 test(function()
17 {
18 var v = document.querySelector("video");
19 assert_true(v.paused, "paused state before access key press");
20 pressAccessKey("x");
21 assert_false(v.paused, "paused state before access key press");
22 });
23 </script>
OLDNEW
« no previous file with comments | « LayoutTests/media/activation-behavior.html ('k') | LayoutTests/media/activation-behavior-accesskey-expected.txt » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698