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

Unified Diff: third_party/WebKit/Source/core/layout/LayoutThemeTest.cpp

Issue 2447503002: Remove newMediaPlaybackUi flag from content/ and Blink. (Closed)
Patch Set: fix mistake caught by tests Created 4 years, 2 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/layout/LayoutThemeTest.cpp
diff --git a/third_party/WebKit/Source/core/layout/LayoutThemeTest.cpp b/third_party/WebKit/Source/core/layout/LayoutThemeTest.cpp
index 4524fe1b2c7e58c3a3f7dac9899cf4e8d7661564..c16be2942964937f812067dfb24e653fb4fd246f 100644
--- a/third_party/WebKit/Source/core/layout/LayoutThemeTest.cpp
+++ b/third_party/WebKit/Source/core/layout/LayoutThemeTest.cpp
@@ -85,39 +85,22 @@ TEST_F(LayoutThemeTest, ChangeFocusRingColor) {
TEST_F(LayoutThemeTest, FormatMediaTime) {
struct {
- bool newUi;
float time;
float duration;
String expectedResult;
} tests[] = {
- {false, 1, 1, "0:01"}, {false, 1, 15, "0:01"},
- {false, 1, 600, "00:01"}, {false, 1, 3600, "0:00:01"},
- {false, 1, 7200, "0:00:01"}, {false, 15, 15, "0:15"},
- {false, 15, 600, "00:15"}, {false, 15, 3600, "0:00:15"},
- {false, 15, 7200, "0:00:15"}, {false, 600, 600, "10:00"},
- {false, 600, 3600, "0:10:00"}, {false, 600, 7200, "0:10:00"},
- {false, 3600, 3600, "1:00:00"}, {false, 3600, 7200, "1:00:00"},
- {false, 7200, 7200, "2:00:00"},
-
- {true, 1, 1, "0:01"}, {true, 1, 15, "0:01"},
- {true, 1, 600, "0:01"}, {true, 1, 3600, "00:01"},
- {true, 1, 7200, "000:01"}, {true, 15, 15, "0:15"},
- {true, 15, 600, "0:15"}, {true, 15, 3600, "00:15"},
- {true, 15, 7200, "000:15"}, {true, 600, 600, "10:00"},
- {true, 600, 3600, "10:00"}, {true, 600, 7200, "010:00"},
- {true, 3600, 3600, "60:00"}, {true, 3600, 7200, "060:00"},
- {true, 7200, 7200, "120:00"},
+ {1, 1, "0:01"}, {1, 15, "0:01"}, {1, 600, "0:01"},
+ {1, 3600, "00:01"}, {1, 7200, "000:01"}, {15, 15, "0:15"},
+ {15, 600, "0:15"}, {15, 3600, "00:15"}, {15, 7200, "000:15"},
+ {600, 600, "10:00"}, {600, 3600, "10:00"}, {600, 7200, "010:00"},
+ {3600, 3600, "60:00"}, {3600, 7200, "060:00"}, {7200, 7200, "120:00"},
};
- const bool newUi = RuntimeEnabledFeatures::newMediaPlaybackUiEnabled();
-
for (const auto& testcase : tests) {
- RuntimeEnabledFeatures::setNewMediaPlaybackUiEnabled(testcase.newUi);
EXPECT_EQ(testcase.expectedResult,
LayoutTheme::theme().formatMediaControlsCurrentTime(
testcase.time, testcase.duration));
}
- RuntimeEnabledFeatures::setNewMediaPlaybackUiEnabled(newUi);
}
} // namespace blink

Powered by Google App Engine
This is Rietveld 408576698