summaryrefslogtreecommitdiffstats
path: root/webkit/tools/test_shell/test_shell.cc
diff options
context:
space:
mode:
Diffstat (limited to 'webkit/tools/test_shell/test_shell.cc')
-rwxr-xr-xwebkit/tools/test_shell/test_shell.cc9
1 files changed, 9 insertions, 0 deletions
diff --git a/webkit/tools/test_shell/test_shell.cc b/webkit/tools/test_shell/test_shell.cc
index 42193e8..8ac1e06 100755
--- a/webkit/tools/test_shell/test_shell.cc
+++ b/webkit/tools/test_shell/test_shell.cc
@@ -449,6 +449,15 @@ void TestShell::SizeToDefault() {
SizeTo(kTestWindowWidth, kTestWindowHeight);
}
+void TestShell::ResetTestController() {
+ layout_test_controller_->Reset();
+ event_sending_controller_->Reset();
+
+ // Reset state in the test webview delegate.
+ delegate_ = new TestWebViewDelegate(this);
+ webView()->SetDelegate(delegate_);
+}
+
void TestShell::LoadURL(const wchar_t* url) {
LoadURLForFrame(url, NULL);
}