webdriver: Send 'keyDown' instead of 'keyUp' for keyDown
authorMaja Frydrychowicz <mjzffr@gmail.com>
Tue, 03 Jan 2017 15:11:53 +0000
changeset 428097 cd37e2d20a0797bb4568599f4e26b73091cb5cf5
parent 428096 4d65399db9bcf33457956b8d141007f72d8abf8c
child 428098 bdd7d7c49358fb37f7e05d1853e2cc45d2d168ea
push id7761
push userjlund@mozilla.com
push dateFri, 15 Sep 2017 00:19:52 +0000
treeherdermozilla-beta@c38455951db4 [default view] [failures only]
perfherder[talos] [build metrics] [platform microbench] (compared to previous push)
milestone57.0a1
first release with
nightly linux32
nightly linux64
nightly mac
nightly win32
nightly win64
last release without
nightly linux32
nightly linux64
nightly mac
nightly win32
nightly win64
webdriver: Send 'keyDown' instead of 'keyUp' for keyDown Source-Repo: https://github.com/mozilla/webdriver-rust Source-Revision: 19e6d591aa6bda54a05a13491d28d776f1fe7421 committer: jgraham <james@hoppipolla.co.uk>
testing/webdriver/src/command.rs
--- a/testing/webdriver/src/command.rs
+++ b/testing/webdriver/src/command.rs
@@ -1460,17 +1460,17 @@ impl Parameters for KeyDownAction {
         })
     }
 }
 
 impl ToJson for KeyDownAction {
     fn to_json(&self) -> Json {
         let mut data = BTreeMap::new();
         data.insert("type".to_owned(),
-                    "keyUp".to_json());
+                    "keyDown".to_json());
         data.insert("value".to_owned(),
                     self.value.to_string().to_json());
         Json::Object(data)
     }
 }
 
 #[derive(PartialEq)]
 pub enum PointerAction {