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

Side by Side Diff: third_party/WebKit/LayoutTests/media/video-controls-download-button-saves-media.html

Issue 2334803002: Implementation of media controls download button. (Closed)
Patch Set: fixed tests 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 unified diff | Download patch
« no previous file with comments | « no previous file | third_party/WebKit/LayoutTests/media/video-controls-download-button-saves-media-expected.txt » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
(Empty)
1 <!DOCTYPE html>
2 <title>Clicking on the download button should download media.</title>
3 <script src="../resources/testharness.js"></script>
4 <script src="../resources/testharnessreport.js"></script>
5 <script src="media-controls.js"></script>
6 <script src="media-file.js"></script>
7 <script src="overflow-menu.js"></script>
8 <!--Padding ensures the overflow menu is visible for the tests. -->
9 <body style="padding-top: 200px; padding-left: 100px">
10 <video controls></video>
11 <script>
12 if (window.testRunner) {
13 // Ensures that a file is downloaded and the printed output of the test
14 // is the same as video-controls-download-button-saves-media-expected.txt
15 testRunner.waitUntilExternalURLLoad();
16 }
17 async_test(function(t) {
18 if (window.internals)
19 window.internals.runtimeFlags.mediaControlsDownloadButtonEnabled = true;
20 // Set up video
21 var video = document.querySelector("video");
22 video.src = findMediaFile("video", "content/test");
23 var controlID = "-internal-download-button";
24 var downloadButton = mediaControlsElement(internals.shadowRoot(video).firstChi ld, controlID);
25
26 video.onloadeddata = t.step_func(function() {
27 // Click on the download button
28 var coords = elementCoordinates(downloadButton);
29 clickAtCoordinates(coords[0], coords[1]);
30 });
31 });
32 </script>
33 </body>
OLDNEW
« no previous file with comments | « no previous file | third_party/WebKit/LayoutTests/media/video-controls-download-button-saves-media-expected.txt » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698