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

Unified Diff: LayoutTests/media/activation-behavior-accesskey.html

Issue 249483002: Disable the activation behavior of media elements (click to play/pause) (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Created 6 years, 8 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
Index: LayoutTests/media/activation-behavior-accesskey.html
diff --git a/LayoutTests/media/activation-behavior-accesskey.html b/LayoutTests/media/activation-behavior-accesskey.html
deleted file mode 100644
index a0df852db07d5774f1c6bb65128311f3676ab685..0000000000000000000000000000000000000000
--- a/LayoutTests/media/activation-behavior-accesskey.html
+++ /dev/null
@@ -1,23 +0,0 @@
-<!doctype html>
-<title>activation behavior using accesskey</title>
-<script src="../resources/testharness.js"></script>
-<script src="../resources/testharnessreport.js"></script>
-<video controls accesskey="x"></video>
-<script>
-function pressAccessKey(key)
-{
- if (navigator.userAgent.search(/\bMac OS X\b/) != -1)
- modifiers = ["ctrlKey", "altKey"];
- else
- modifiers = ["altKey"];
- eventSender.keyDown(key, modifiers);
-}
-
-test(function()
-{
- var v = document.querySelector("video");
- assert_true(v.paused, "paused state before access key press");
- pressAccessKey("x");
- assert_false(v.paused, "paused state before access key press");
-});
-</script>
« 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