diff options
author | tc@google.com <tc@google.com@0039d316-1c4b-4281-b951-d872f2087c98> | 2008-12-11 00:36:16 +0000 |
---|---|---|
committer | tc@google.com <tc@google.com@0039d316-1c4b-4281-b951-d872f2087c98> | 2008-12-11 00:36:16 +0000 |
commit | a6aae4a0266149529cdb28b9db4ad8cb19741b80 (patch) | |
tree | 3aa520dcac0b75a501df9e44116139b810cdc7ae /webkit/tools/test_shell/test_shell.h | |
parent | 4e0f0aeb701d1920df37216a6bdf4f851074e41e (diff) | |
download | chromium_src-a6aae4a0266149529cdb28b9db4ad8cb19741b80.zip chromium_src-a6aae4a0266149529cdb28b9db4ad8cb19741b80.tar.gz chromium_src-a6aae4a0266149529cdb28b9db4ad8cb19741b80.tar.bz2 |
Second attempt at adding setSmartInsertDeleteEnabled and
setSelectTrailingWhitespaceEnabled.
Now we allow both to be true because that's what we do on Windows.
Review URL: http://codereview.chromium.org/13213
git-svn-id: svn://svn.chromium.org/chrome/trunk/src@6761 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'webkit/tools/test_shell/test_shell.h')
-rw-r--r-- | webkit/tools/test_shell/test_shell.h | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/webkit/tools/test_shell/test_shell.h b/webkit/tools/test_shell/test_shell.h index 95b0d47..ef9de09 100644 --- a/webkit/tools/test_shell/test_shell.h +++ b/webkit/tools/test_shell/test_shell.h @@ -119,6 +119,14 @@ public: void ResetTestController() { layout_test_controller_->Reset(); event_sending_controller_->Reset(); + + // Reset state in the test webview delegate. + delegate()->SetSmartInsertDeleteEnabled(true); +#if defined(OS_WIN) + delegate()->SetSelectTrailingWhitespaceEnabled(true); +#else + delegate()->SetSelectTrailingWhitespaceEnabled(false); +#endif } // Passes options from LayoutTestController through to the delegate (or |