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

Unified Diff: third_party/WebKit/Source/web/tests/sim/SimTest.cpp

Issue 2732483004: Reinitialize WindowProxy on navigations. (Closed)
Patch Set: . Created 3 years, 10 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/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 0ec638384be008294dcff6140b0506780043cf6d..de789a3db2837837a0037bf7987fa6afae807e67 100644
--- a/third_party/WebKit/Source/web/tests/sim/SimTest.cpp
+++ b/third_party/WebKit/Source/web/tests/sim/SimTest.cpp
@@ -15,7 +15,7 @@
namespace blink {
-SimTest::SimTest() : m_webViewClient(m_compositor) {
+SimTest::SimTest() : m_webViewClient(m_compositor), m_webFrameClient(*this) {
Document::setThreadedParsingEnabledForTesting(false);
// Use the mock theme to get more predictable code paths, this also avoids
// the OS callbacks in ScrollAnimatorMac which can schedule frames
@@ -25,7 +25,7 @@ SimTest::SimTest() : m_webViewClient(m_compositor) {
// in the middle of a test.
LayoutTestSupport::setMockThemeEnabledForTest(true);
ScrollbarTheme::setMockScrollbarsEnabled(true);
- m_webViewHelper.initialize(true, nullptr, &m_webViewClient);
+ m_webViewHelper.initialize(true, &m_webFrameClient, &m_webViewClient);
m_compositor.setWebViewImpl(webView());
m_page.setPage(webView().page());
}
@@ -73,4 +73,8 @@ SimCompositor& SimTest::compositor() {
return m_compositor;
}
+void SimTest::addConsoleMessage(const String& message) {
+ m_consoleMessages.push_back(message);
+}
+
} // namespace blink
« no previous file with comments | « third_party/WebKit/Source/web/tests/sim/SimTest.h ('k') | third_party/WebKit/Source/web/tests/sim/SimWebFrameClient.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698