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

Unified Diff: third_party/WebKit/Source/web/tests/DeferredLoadingTest.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/DeferredLoadingTest.cpp
diff --git a/third_party/WebKit/Source/web/tests/DeferredLoadingTest.cpp b/third_party/WebKit/Source/web/tests/DeferredLoadingTest.cpp
index d7f80b15decb078aa7cd49e9613527b74290df90..b5304770da9b4911948844c8f4084ce415834c1f 100644
--- a/third_party/WebKit/Source/web/tests/DeferredLoadingTest.cpp
+++ b/third_party/WebKit/Source/web/tests/DeferredLoadingTest.cpp
@@ -18,7 +18,12 @@ static const char kHistogramName[] =
class DeferredLoadingTest : public SimTest {
protected:
- DeferredLoadingTest() { WebView().Resize(WebSize(640, 480)); }
+ DeferredLoadingTest() {}
+
+ void SetUp() override {
+ SimTest::SetUp();
+ WebView().Resize(WebSize(640, 480));
+ }
void CompositeFrame() {
while (Compositor().NeedsBeginFrame()) {
Compositor().BeginFrame();

Powered by Google App Engine
This is Rietveld 408576698