Index: webkit/tools/test_shell/test_shell.cc |
=================================================================== |
--- webkit/tools/test_shell/test_shell.cc (revision 12999) |
+++ webkit/tools/test_shell/test_shell.cc (working copy) |
@@ -449,6 +449,15 @@ |
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); |
} |