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

Unified Diff: LayoutTests/media/activation-behavior-shadow.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-shadow.html
diff --git a/LayoutTests/media/activation-behavior-shadow.html b/LayoutTests/media/activation-behavior-shadow.html
deleted file mode 100644
index aa18ecdebc302acd40881cef64e406d35e5c6cc9..0000000000000000000000000000000000000000
--- a/LayoutTests/media/activation-behavior-shadow.html
+++ /dev/null
@@ -1,32 +0,0 @@
-<!doctype html>
-<title>activation behavior with shadow children</title>
-<script src="../resources/testharness.js"></script>
-<script src="../resources/testharnessreport.js"></script>
-<video controls></video>
-<script>
-function shouldTogglePlayState(shadowChild)
-{
- var id = internals.shadowPseudoId(shadowChild);
- if (id == "-webkit-media-controls")
- return true;
- if (id == "-webkit-media-controls-play-button")
- return true;
- if (id == "-webkit-media-controls-panel")
- return false;
- return shouldTogglePlayState(shadowChild.parentNode);
-}
-
-test(function()
-{
- var v = document.querySelector("video");
- var shadowChildren = internals.shadowRoot(v).querySelectorAll("*");
- Array.prototype.forEach.call(shadowChildren, function(shadowChild)
- {
- v.pause();
- shadowChild.click();
- assert_equals(v.paused, !shouldTogglePlayState(shadowChild),
- "paused state after click element with pseudo id '"
- + internals.shadowPseudoId(shadowChild) + "'");
- });
-});
-</script>

Powered by Google App Engine
This is Rietveld 408576698