Add comment about incorrect tests for file url range requests. Fmt and manifest update

This commit is contained in:
Fernando Jiménez Moreno 2018-11-26 09:54:32 +01:00
parent 4561a97309
commit b23dd0587b
4 changed files with 19 additions and 13 deletions

View file

@ -610,7 +610,8 @@ fn scheme_fetch(
Err(_) => None,
};
let mut response = Response::new(url, ResourceFetchTiming::new(request.timing_type()));
let mut response =
Response::new(url, ResourceFetchTiming::new(request.timing_type()));
let range_header = request.headers.typed_get::<Range>();
let is_range_request = range_header.is_some();

View file

@ -36,7 +36,8 @@ use net::test::HttpState;
use net_traits::request::{Destination, Origin, RedirectMode, Referrer, Request, RequestMode};
use net_traits::response::{CacheState, Response, ResponseBody, ResponseType};
use net_traits::{
FetchTaskTarget, IncludeSubdomains, NetworkError, ReferrerPolicy, ResourceFetchTiming, ResourceTimingType,
FetchTaskTarget, IncludeSubdomains, NetworkError, ReferrerPolicy, ResourceFetchTiming,
ResourceTimingType,
};
use servo_url::{ImmutableOrigin, ServoUrl};
use std::fs::File;

View file

@ -14269,13 +14269,13 @@
"/_mozilla/mozilla/range_deleteContents.html",
{}
]
],
],
"mozilla/range_request_blob_url.html": [
[
"/_mozilla/mozilla/range_request_blob_url.html",
"/_mozilla/mozilla/range_request_blob_url.html",
{}
]
],
],
"mozilla/range_request_file_url.html": [
[
"/_mozilla/mozilla/range_request_file_url.html",
@ -27070,7 +27070,7 @@
"testharness"
],
"mozilla/interfaces.html": [
"ad17e930ddb5bc2daecb86216efe8885ae399173",
"ad17e930ddb5bc2daecb86216efe8885ae399173",
"testharness"
],
"mozilla/interfaces.js": [
@ -27078,7 +27078,7 @@
"support"
],
"mozilla/interfaces.worker.js": [
"a5f2e00f234ea66b80e8a9bd4dbbc5433926191f",
"a5f2e00f234ea66b80e8a9bd4dbbc5433926191f",
"testharness"
],
"mozilla/invalid-this.html": [
@ -27244,13 +27244,13 @@
"mozilla/range_deleteContents.html": [
"8de03455bcb0d18258f76af20f58c14868fe1c21",
"testharness"
],
],
"mozilla/range_request_blob_url.html": [
"075397620e989dafc814c0ed2bca46bd476bccf6",
"075397620e989dafc814c0ed2bca46bd476bccf6",
"testharness"
],
],
"mozilla/range_request_file_url.html": [
"65fe13fe93d97cebc2846ff7d7deab3eb84c1787",
"4fd4ddc8b1a9959e90b243795267c220d6a05f5e",
"testharness"
],
"mozilla/referrer-policy/OWNERS": [
@ -32914,11 +32914,11 @@
"testharness"
],
"mozilla/window_performance.html": [
"690870b7080e179481ca0255f7c30337e8b6636a",
"690870b7080e179481ca0255f7c30337e8b6636a",
"testharness"
],
"mozilla/window_performance_topLevelDomComplete.html": [
"50bbc2917b5ac900b5061a0b2c30b6c1fef1067e",
"50bbc2917b5ac900b5061a0b2c30b6c1fef1067e",
"testharness"
],
"mozilla/window_requestAnimationFrame.html": [

View file

@ -3,6 +3,10 @@
<script src="/resources/testharness.js"></script>
<script src="/resources/testharnessreport.js"></script>
<script>
// FIXME(ferjm) https://github.com/servo/servo/issues/22269
// This is not using file:// urls.
[{
file: "resources/range_small.txt",
range: "bytes=0-",