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

Unified Diff: third_party/WebKit/Source/web/tests/MediaElementFillingViewportTest.cpp

Issue 2885313003: [scheduler] Fix --disable-background-timer-throttling flag. (Closed)
Patch Set: fix test crash Created 3 years, 7 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/web/tests/MediaElementFillingViewportTest.cpp
diff --git a/third_party/WebKit/Source/web/tests/MediaElementFillingViewportTest.cpp b/third_party/WebKit/Source/web/tests/MediaElementFillingViewportTest.cpp
index ecccacab6efb974bbf3402786b17733010292b7a..364f547c3423b82c45c279c334025fb47ef5d181 100644
--- a/third_party/WebKit/Source/web/tests/MediaElementFillingViewportTest.cpp
+++ b/third_party/WebKit/Source/web/tests/MediaElementFillingViewportTest.cpp
@@ -15,7 +15,12 @@ namespace blink {
class MediaElementFillingViewportTest : public SimTest {
protected:
- MediaElementFillingViewportTest() { WebView().Resize(WebSize(640, 480)); }
+ MediaElementFillingViewportTest() {}
+
+ void SetUp() override {
+ SimTest::SetUp();
+ WebView().Resize(WebSize(640, 480));
+ }
bool IsMostlyFillingViewport(HTMLMediaElement* element) {
return element->mostly_filling_viewport_;

Powered by Google App Engine
This is Rietveld 408576698