webdriver: Fix spelling of unhandledPromptBehavior (#97)
authorJason Juang <juangj@gmail.com>
Tue, 23 May 2017 15:50:02 +0100
changeset 428149 ff1dfad59f1d4586e0cb3a9290aad485deb646ca
parent 428148 86fe71dae7ff44b7c21530cb04f762ef819f0fea
child 428150 49bd9d2ba19f5bc4bea9d2bf55a3a47cc83855e4
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: Fix spelling of unhandledPromptBehavior (#97) The W3C spec requires the American spelling. Source-Repo: https://github.com/mozilla/webdriver-rust Source-Revision: bdd5efda8cf6acb5be1207a77be86e16e1fb5128 committer: Andreas Tolfsen <ato@mozilla.com>
testing/webdriver/src/capabilities.rs
--- a/testing/webdriver/src/capabilities.rs
+++ b/testing/webdriver/src/capabilities.rs
@@ -100,17 +100,17 @@ impl SpecNewSessionParameters {
                     try!(SpecNewSessionParameters::validate_page_load_strategy(value))
                 }
                 "proxy" => {
                     try!(SpecNewSessionParameters::validate_proxy(value))
                 },
                 "timeouts" => {
                     try!(SpecNewSessionParameters::validate_timeouts(value))
                 },
-                "unhandledPromptBehaviour" => {
+                "unhandledPromptBehavior" => {
                     try!(SpecNewSessionParameters::validate_unhandled_prompt_behaviour(value))
                 }
                 x => {
                     if !x.contains(":") {
                         return Err(WebDriverError::new(ErrorStatus::InvalidArgument,
                                                        format!("{} was not a the name of a known capability or a valid extension capability", x)))
                     } else {
                         try!(browser_capabilities.validate_custom(x, value));
@@ -289,22 +289,22 @@ impl SpecNewSessionParameters {
             }
         }
         Ok(())
     }
 
     fn validate_unhandled_prompt_behaviour(value: &Json) -> WebDriverResult<()> {
         let behaviour = try_opt!(value.as_string(),
                                  ErrorStatus::InvalidArgument,
-                                 "unhandledPromptBehaviour capability was not a string");
+                                 "unhandledPromptBehavior capability was not a string");
         match behaviour {
             "dismiss" |
             "accept" => {},
             x => return Err(WebDriverError::new(ErrorStatus::InvalidArgument,
-                                                format!("{} was not a valid unhandledPromptBehaviour value", x)))        }
+                                                format!("{} was not a valid unhandledPromptBehavior value", x)))        }
         Ok(())
     }
 }
 
 impl Parameters for SpecNewSessionParameters {
     fn from_json(body: &Json) -> WebDriverResult<SpecNewSessionParameters> {
         let data = try_opt!(body.as_object(),
                             ErrorStatus::UnknownError,