Bug 1407000 - Fix error for string WebDriver capabilities. r?whimboo draft
authorAndreas Tolfsen <ato@sny.no>
Mon, 09 Oct 2017 19:05:59 +0100
changeset 676776 9105e71eb20428d0e28c9fa6822c5907d43c42e5
parent 676775 1db601511bf3022b991420ebc1fffb4867a37f69
child 676777 696501b8a443abb3e629291699b87f582a35feb5
push id83637
push userbmo:ato@sny.no
push dateMon, 09 Oct 2017 18:12:52 +0000
reviewerswhimboo
bugs1407000
milestone58.0a1
Bug 1407000 - Fix error for string WebDriver capabilities. r?whimboo MozReview-Commit-ID: I4Il8CoUBiz
testing/webdriver/src/capabilities.rs
--- a/testing/webdriver/src/capabilities.rs
+++ b/testing/webdriver/src/capabilities.rs
@@ -88,17 +88,17 @@ impl SpecNewSessionParameters {
                 "acceptInsecureCerts" => if !value.is_boolean() {
                         return Err(WebDriverError::new(ErrorStatus::InvalidArgument,
                                                        "acceptInsecureCerts was not a boolean"))
                     },
                 x @ "browserName" |
                 x @ "browserVersion" |
                 x @ "platformName" => if !value.is_string() {
                         return Err(WebDriverError::new(ErrorStatus::InvalidArgument,
-                                                       format!("{} was not a boolean", x)))
+                                                       format!("{} is not a string", x)))
                     },
                 "pageLoadStrategy" => {
                     try!(SpecNewSessionParameters::validate_page_load_strategy(value))
                 }
                 "proxy" => {
                     try!(SpecNewSessionParameters::validate_proxy(value))
                 },
                 "timeouts" => {