diff options
author | yurys@chromium.org <yurys@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2010-06-18 13:29:39 +0000 |
---|---|---|
committer | yurys@chromium.org <yurys@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2010-06-18 13:29:39 +0000 |
commit | 7869f47d58149dc27a2e42de61d32f459c04d241 (patch) | |
tree | 6146a50b3d11e69437a6586251c8b3fbde106b6f /webkit/tools/test_shell/layout_test_controller.cc | |
parent | 6e746ddc52d4557648d76ac8125604396ee39726 (diff) | |
download | chromium_src-7869f47d58149dc27a2e42de61d32f459c04d241.zip chromium_src-7869f47d58149dc27a2e42de61d32f459c04d241.tar.gz chromium_src-7869f47d58149dc27a2e42de61d32f459c04d241.tar.bz2 |
DevTools:
* allow to close devtools window from tests.
* implement TestShellDevToolsAgent::createClientMessageLoop
Review URL: http://codereview.chromium.org/2825011
git-svn-id: svn://svn.chromium.org/chrome/trunk/src@50233 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'webkit/tools/test_shell/layout_test_controller.cc')
-rw-r--r-- | webkit/tools/test_shell/layout_test_controller.cc | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/webkit/tools/test_shell/layout_test_controller.cc b/webkit/tools/test_shell/layout_test_controller.cc index 392767fa..79d3dff 100644 --- a/webkit/tools/test_shell/layout_test_controller.cc +++ b/webkit/tools/test_shell/layout_test_controller.cc @@ -104,6 +104,7 @@ LayoutTestController::LayoutTestController(TestShell* shell) : BindMethod("objCIdentityIsEqual", &LayoutTestController::objCIdentityIsEqual); BindMethod("setAlwaysAcceptCookies", &LayoutTestController::setAlwaysAcceptCookies); BindMethod("showWebInspector", &LayoutTestController::showWebInspector); + BindMethod("closeWebInspector", &LayoutTestController::closeWebInspector); BindMethod("setWindowIsKey", &LayoutTestController::setWindowIsKey); BindMethod("setTabKeyCyclesThroughElements", &LayoutTestController::setTabKeyCyclesThroughElements); BindMethod("setUserStyleSheetLocation", &LayoutTestController::setUserStyleSheetLocation); @@ -584,6 +585,12 @@ void LayoutTestController::showWebInspector( result->SetNull(); } +void LayoutTestController::closeWebInspector( + const CppArgumentList& args, CppVariant* result) { + shell_->CloseDevTools(); + result->SetNull(); +} + void LayoutTestController::setWindowIsKey( const CppArgumentList& args, CppVariant* result) { if (args.size() > 0 && args[0].isBool()) { |