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

Unified Diff: third_party/WebKit/LayoutTests/media/audio-autoplay-experiment-modes-expected.txt

Issue 1920863005: Disable autoplay experiments if the autoplay content settings is set to block. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@autoplay-ifsameorigin-ormuted
Patch Set: split autoplay experiment tests Created 4 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: third_party/WebKit/LayoutTests/media/audio-autoplay-experiment-modes-expected.txt
diff --git a/third_party/WebKit/LayoutTests/media/audio-autoplay-experiment-modes-expected.txt b/third_party/WebKit/LayoutTests/media/audio-autoplay-experiment-modes-expected.txt
new file mode 100644
index 0000000000000000000000000000000000000000..db6a01306de2c18052c96afc82c71d4a828a6539
--- /dev/null
+++ b/third_party/WebKit/LayoutTests/media/audio-autoplay-experiment-modes-expected.txt
@@ -0,0 +1,29 @@
+CONSOLE WARNING: Failed to execute 'play' on 'HTMLMediaElement': API can only be initiated by a user gesture.
+CONSOLE ERROR: line 71: Uncaught (in promise) NotAllowedError: play() can only be initiated by a user gesture.
+CONSOLE WARNING: Failed to execute 'play' on 'HTMLMediaElement': API can only be initiated by a user gesture.
+CONSOLE ERROR: line 71: Uncaught (in promise) NotAllowedError: play() can only be initiated by a user gesture.
+END OF TEST
+ Check if the autoplay gesture override experiment works. There are a lot
+ of config options, so this test just runs all of them.
+
+ The "results" table contains one row per config tested.
+ == Test Inputs ==
+ # - config number, in case you'd like to run just one.
+ Flags - autoplay experiment setting being tested.
+ a - "foraudio"
+ v - "forvideo"
+ V - "ifviewport"
+ P - "ifpagevisible"
+ M - "ifmuted"
+ p - "playmuted"
+ m - "ifmobile"
+ For example, vM means '-forvideo-ifmuted".
+ Type - audio or video element?
+ audio -
+# Flags Type Play w/ Mute Mobile View Setting Early? Played? Muted?
+28 audio attr no no scroll enabled no no -
+30 a audio attr no no scroll enabled yes played unmuted
+31 aV audio attr no no scroll enabled no played unmuted
+32 audio play() no no scroll enabled no no -
+34 a audio play() no no scroll enabled yes played unmuted
+35 aV audio play() no no scroll enabled no played unmuted

Powered by Google App Engine
This is Rietveld 408576698