Auto merge of #21965 - servo:jdm-patch-13, r=asajeffrey

Return the expected response when webdriver requests a session deletion.

This fixes a mistake that I have to deal with every time I try to use our webdriver server implementation for something new. We don't have any automated tests for this functionality yet (#21370) but I want to stop stumbling over it.

---
- [x] `./mach build -d` does not report any errors
- [x] `./mach test-tidy` does not report any errors
- [x] These changes do not require tests because ¯\\\_(ツ)\_/¯

<!-- Reviewable:start -->
---
This change is [<img src="https://reviewable.io/review_button.svg" height="34" align="absmiddle" alt="Reviewable"/>](https://reviewable.io/reviews/servo/servo/21965)
<!-- Reviewable:end -->
This commit is contained in:
bors-servo 2018-10-17 13:47:11 -04:00 committed by GitHub
commit 45ac424ef7
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -369,7 +369,7 @@ impl Handler {
fn handle_delete_session(&mut self) -> WebDriverResult<WebDriverResponse> { fn handle_delete_session(&mut self) -> WebDriverResult<WebDriverResponse> {
self.session = None; self.session = None;
Ok(WebDriverResponse::Void) Ok(WebDriverResponse::DeleteSession)
} }
fn browsing_context_script_command( fn browsing_context_script_command(