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

Unified Diff: third_party/WebKit/LayoutTests/media/video-controls-download-button-not-displayed-mediastream.html

Issue 2293273002: Add a download button to the media player (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@media-controls
Patch Set: Created 4 years, 3 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/video-controls-download-button-not-displayed-mediastream.html
diff --git a/third_party/WebKit/LayoutTests/media/video-controls-download-button-not-displayed-mediastream.html b/third_party/WebKit/LayoutTests/media/video-controls-download-button-not-displayed-mediastream.html
new file mode 100644
index 0000000000000000000000000000000000000000..c0d2fb8be26407002edc2ab7fedcdb386ef35a41
--- /dev/null
+++ b/third_party/WebKit/LayoutTests/media/video-controls-download-button-not-displayed-mediastream.html
@@ -0,0 +1,20 @@
+<!DOCTYPE HTML>
+<title>Download button should not appear for MediaStream videos.</title>
+<script src="../resources/testharness.js"></script>
+<script src="../resources/testharnessreport.js"></script>
+<script src="media-controls.js"></script>
+<video controls></video>
+<script>
+
+async_test(function(t) {
+ var v = document.querySelector('video');
+ v.srcObject = (new AudioContext()).createMediaStreamDestination().stream;
+
+ var controlID = "-internal-download-button";
+ var downloadButton = mediaControlsElement(internals.shadowRoot(v).firstChild, controlID);
+ setTimeout(t.step_func_done(function() {
+ assert_equals(getComputedStyle(downloadButton).display, "none");
+ v.srcObject = null;
+ }), 0);
+});
+</script>

Powered by Google App Engine
This is Rietveld 408576698