Bug 1407000 - Fix error for string WebDriver capabilities. r=automatedtester

MozReview-Commit-ID: I4Il8CoUBiz

--HG--
extra : rebase_source : 8c128eb9b5a9a4130816eed4227ff39b6566e2d2
This commit is contained in:
Andreas Tolfsen 2017-10-09 19:05:59 +01:00
Родитель f9e18f3217
Коммит 4c2629b200
1 изменённых файлов: 1 добавлений и 1 удалений

Просмотреть файл

@ -93,7 +93,7 @@ impl SpecNewSessionParameters {
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))