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

Unified Diff: chrome/test/webdriver/webdriver_capabilities_parser.cc

Issue 11818029: [chromedriver] Remove support for simulating OS-level key events. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: . Created 7 years, 11 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/webdriver/webdriver_capabilities_parser.cc
diff --git a/chrome/test/webdriver/webdriver_capabilities_parser.cc b/chrome/test/webdriver/webdriver_capabilities_parser.cc
index 4e3dcb6528a4b29c0ac0dd4930664a5fcb7220f7..d8e793bfb8faa8844874dd683faa0bf96a2b2b9b 100644
--- a/chrome/test/webdriver/webdriver_capabilities_parser.cc
+++ b/chrome/test/webdriver/webdriver_capabilities_parser.cc
@@ -38,7 +38,6 @@ Capabilities::Capabilities()
detach(false),
load_async(false),
local_state(new DictionaryValue()),
- native_events(false),
no_website_testing_defaults(false),
prefs(new DictionaryValue()) {
log_levels[LogType::kDriver] = kAllLogLevel;
@@ -257,8 +256,11 @@ Error* CapabilitiesParser::ParseLoggingPrefs(const base::Value* option) {
}
Error* CapabilitiesParser::ParseNativeEvents(const Value* option) {
- if (!option->GetAsBoolean(&caps_->native_events))
+ bool native_events;
+ if (!option->GetAsBoolean(&native_events))
return CreateBadInputError("nativeEvents", Value::TYPE_BOOLEAN, option);
+ if (native_events)
+ return new Error(kUnknownError, "OS-level events are not supported");
return NULL;
}
« no previous file with comments | « chrome/test/webdriver/webdriver_capabilities_parser.h ('k') | chrome/test/webdriver/webdriver_capabilities_parser_unittest.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698