mirror of
https://github.com/servo/servo.git
synced 2025-08-11 08:25:32 +01:00
Updated the unit tests to include NetworkError
This commit is contained in:
parent
5e6f32a59b
commit
945a2c66e1
4 changed files with 22 additions and 23 deletions
|
@ -309,13 +309,13 @@ impl HttpRequest for WrappedHttpRequest {
|
|||
|
||||
#[derive(Debug)]
|
||||
pub struct LoadError {
|
||||
url: Url,
|
||||
error: LoadErrorType,
|
||||
reason: String,
|
||||
pub url: Url,
|
||||
pub error: LoadErrorType,
|
||||
pub reason: String,
|
||||
}
|
||||
|
||||
impl LoadError {
|
||||
fn new(url: Url, error: LoadErrorType, reason: String) -> LoadError {
|
||||
pub fn new(url: Url, error: LoadErrorType, reason: String) -> LoadError {
|
||||
LoadError {
|
||||
url: url,
|
||||
error: error,
|
||||
|
@ -324,7 +324,7 @@ impl LoadError {
|
|||
}
|
||||
}
|
||||
|
||||
#[derive(Debug)]
|
||||
#[derive(Eq, PartialEq, Debug)]
|
||||
pub enum LoadErrorType {
|
||||
Cancelled,
|
||||
Connection,
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue