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

Unified Diff: chrome/test/pyautolib/pyautolib.cc

Issue 8395044: Disable the Developer Tools when Javascript is disabled. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 9 years, 2 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: chrome/test/pyautolib/pyautolib.cc
diff --git a/chrome/test/pyautolib/pyautolib.cc b/chrome/test/pyautolib/pyautolib.cc
index c178995d6f7fd968fd5b51ccb72097e191c1d877..b625af85bcca56302bdea641c0c9e7aa6168e9ac 100644
--- a/chrome/test/pyautolib/pyautolib.cc
+++ b/chrome/test/pyautolib/pyautolib.cc
@@ -125,6 +125,14 @@ bool PyUITestBase::RunCommand(int browser_command, int window_index) {
return browser_proxy->RunCommand(browser_command);
}
+bool PyUITestBase::IsMenuCommandEnabled(int id, int window_index) {
+ scoped_refptr<BrowserProxy> browser_proxy =
+ automation()->GetBrowserWindow(window_index);
Paweł Hajdan Jr. 2011/10/27 08:26:21 Please NULL-check this. It *will* crash randomly i
Joao da Silva 2011/11/03 18:00:10 Thanks for driving-by :-) Done.
+ bool enabled = true;
+ EXPECT_TRUE(browser_proxy->IsMenuCommandEnabled(id, &enabled));
+ return enabled;
+}
+
bool PyUITestBase::ActivateTab(int tab_index, int window_index) {
scoped_refptr<BrowserProxy> browser_proxy =
automation()->GetBrowserWindow(window_index);

Powered by Google App Engine
This is Rietveld 408576698