Bug 1414256 - [webdriver] Fix spelling error for unknown capabilities. r=jgraham,whimboo
authorSteve Armand <stevea1@mac.com>
Sat, 04 Nov 2017 19:00:48 -0400
changeset 443582 192367ec09cb28841dd2dc85e5ab942c6f3d07dc
parent 443581 c760f9b3e6c9b2c8a00e95971f7df33ea4681377
child 443583 749437068f048b341ffe50a6b29cdee4403ee3c4
push id1618
push userCallek@gmail.com
push dateThu, 11 Jan 2018 17:45:48 +0000
treeherdermozilla-release@882ca853e05a [default view] [failures only]
perfherder[talos] [build metrics] [platform microbench] (compared to previous push)
reviewersjgraham, whimboo
bugs1414256
milestone58.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
Bug 1414256 - [webdriver] Fix spelling error for unknown capabilities. r=jgraham,whimboo MozReview-Commit-ID: 5mrQLw81loK
testing/webdriver/src/capabilities.rs
--- a/testing/webdriver/src/capabilities.rs
+++ b/testing/webdriver/src/capabilities.rs
@@ -105,17 +105,17 @@ impl SpecNewSessionParameters {
                     try!(SpecNewSessionParameters::validate_timeouts(value))
                 },
                 "unhandledPromptBehavior" => {
                     try!(SpecNewSessionParameters::validate_unhandled_prompt_behaviour(value))
                 }
                 x => {
                     if !x.contains(":") {
                         return Err(WebDriverError::new(ErrorStatus::InvalidArgument,
-                                                       format!("{} is not a the name of a known capability or a valid extension capability", x)))
+                                                       format!("{} is not the name of a known capability or a valid extension capability", x)))
                     } else {
                         try!(browser_capabilities.validate_custom(x, value));
                     }
                 }
             }
         }
         Ok(capabilities)
     }
@@ -125,17 +125,17 @@ impl SpecNewSessionParameters {
             &Json::String(ref x) => {
                 match &**x {
                     "normal" |
                     "eager" |
                     "none" => {},
                     x => {
                         return Err(WebDriverError::new(
                             ErrorStatus::InvalidArgument,
-                            format!("\"{}\" not a valid page load strategy", x)))
+                            format!("\"{}\" is not a valid page load strategy", x)))
                     }
                 }
             }
             _ => return Err(WebDriverError::new(ErrorStatus::InvalidArgument,
                                                 "pageLoadStrategy is not a string"))
         }
         Ok(())
     }