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

Unified Diff: third_party/WebKit/Source/core/html/shadow/MediaControlsTest.cpp

Issue 2728193003: Show download button even when preload=none (Closed)
Patch Set: Fix incorrect download button unit test and rebase Created 3 years, 9 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/Source/core/html/shadow/MediaControlsTest.cpp
diff --git a/third_party/WebKit/Source/core/html/shadow/MediaControlsTest.cpp b/third_party/WebKit/Source/core/html/shadow/MediaControlsTest.cpp
index 19caa77d06e23f5d97f51275f8c21f9d241465f0..12daa4291017cc145ca83bb58e8545b86682aaf6 100644
--- a/third_party/WebKit/Source/core/html/shadow/MediaControlsTest.cpp
+++ b/third_party/WebKit/Source/core/html/shadow/MediaControlsTest.cpp
@@ -400,7 +400,7 @@ TEST_F(MediaControlsTest, DownloadButtonDisplayedHiddenAndDisplayed) {
// Hide button.
mediaControls().mediaElement().setSrc("");
testing::runPendingTasks();
- EXPECT_TRUE(isElementVisible(*downloadButton));
+ EXPECT_FALSE(isElementVisible(*downloadButton));
histogramTester().expectBucketCount("Media.Controls.Download",
DownloadActionMetrics::Shown, 1);
whywhat 2017/03/07 12:50:56 Strange you don't need to update that. Shouldn't t
steimel 2017/03/07 15:26:21 Hmm I'm not actually sure what that's measuring ex

Powered by Google App Engine
This is Rietveld 408576698