mirror of
https://github.com/servo/servo.git
synced 2025-08-08 23:15:33 +01:00
Make Response::url_list be a bare Vec<ServoUrl>
This commit is contained in:
parent
28f1f669bc
commit
7b16021a89
5 changed files with 29 additions and 20 deletions
|
@ -418,7 +418,7 @@ fn test_fetch_response_is_opaque_filtered() {
|
|||
assert_eq!(fetch_response.response_type, ResponseType::Opaque);
|
||||
|
||||
assert!(fetch_response.url().is_none());
|
||||
assert!(fetch_response.url_list.into_inner().len() == 0);
|
||||
assert!(fetch_response.url_list.is_empty());
|
||||
// this also asserts that status message is "the empty byte sequence"
|
||||
assert!(fetch_response.status.is_none());
|
||||
assert_eq!(fetch_response.headers, Headers::new());
|
||||
|
|
|
@ -896,8 +896,7 @@ fn test_load_succeeds_with_a_redirect_loop() {
|
|||
let _ = server_b.close();
|
||||
|
||||
let response = response.to_actual();
|
||||
assert_eq!(*response.url_list.borrow(),
|
||||
[url_a.clone(), url_b, url_a]);
|
||||
assert_eq!(response.url_list, [url_a.clone(), url_b, url_a]);
|
||||
assert_eq!(*response.body.lock().unwrap(),
|
||||
ResponseBody::Done(b"Success".to_vec()));
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue