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

Unified Diff: third_party/WebKit/Source/web/tests/sim/SimTest.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
« no previous file with comments | « third_party/WebKit/Source/web/tests/sim/SimTest.h ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: third_party/WebKit/Source/web/tests/sim/SimTest.cpp
diff --git a/third_party/WebKit/Source/web/tests/sim/SimTest.cpp b/third_party/WebKit/Source/web/tests/sim/SimTest.cpp
index 33767adff521a10405836c56c8ae8baa1907d3e4..e173ef2ea2ec42e433be57f0e6f506a1fa2a9e3c 100644
--- a/third_party/WebKit/Source/web/tests/sim/SimTest.cpp
+++ b/third_party/WebKit/Source/web/tests/sim/SimTest.cpp
@@ -25,9 +25,6 @@ SimTest::SimTest() : web_view_client_(compositor_), web_frame_client_(*this) {
// in the middle of a test.
LayoutTestSupport::SetMockThemeEnabledForTest(true);
ScrollbarTheme::SetMockScrollbarsEnabled(true);
- web_view_helper_.Initialize(true, &web_frame_client_, &web_view_client_);
- compositor_.SetWebView(WebView());
- page_.SetPage(WebView().GetPage());
}
SimTest::~SimTest() {
@@ -40,6 +37,14 @@ SimTest::~SimTest() {
WebCache::Clear();
}
+void SimTest::SetUp() {
+ Test::SetUp();
+
+ web_view_helper_.Initialize(true, &web_frame_client_, &web_view_client_);
+ compositor_.SetWebView(WebView());
+ page_.SetPage(WebView().GetPage());
+}
+
void SimTest::LoadURL(const String& url) {
WebURLRequest request(KURL(kParsedURLString, url));
WebView().MainFrameImpl()->LoadRequest(request);
« no previous file with comments | « third_party/WebKit/Source/web/tests/sim/SimTest.h ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698