Skip to content

Commit

Permalink
Update wpt-tests metadata
Browse files Browse the repository at this point in the history
  • Loading branch information
utsavoza committed May 19, 2020
1 parent 4c637e0 commit 9b0b03a
Show file tree
Hide file tree
Showing 16 changed files with 62 additions and 60 deletions.
1 change: 0 additions & 1 deletion components/script/dom/blob.rs
Expand Up @@ -60,7 +60,6 @@ impl Blob {
blobParts: Option<Vec<ArrayBufferOrArrayBufferViewOrBlobOrString>>,
blobPropertyBag: &BlobBinding::BlobPropertyBag,
) -> Fallible<DomRoot<Blob>> {
// TODO: accept other blobParts types - ArrayBuffer or ArrayBufferView
let bytes: Vec<u8> = match blobParts {
None => Vec::new(),
Some(blobparts) => match blob_parts_to_bytes(blobparts) {
Expand Down
1 change: 0 additions & 1 deletion components/script/dom/document.rs
Expand Up @@ -586,7 +586,6 @@ impl Document {
if document_url.as_str() == "about:srcdoc" && container_base_url.is_some() {
return container_base_url.unwrap();
}

// Step 2: If document's URL is about:blank, and document's browsing
// context's creator base URL is non-null, then return that creator base URL.
if document_url.as_str() == "about:blank" && browsing_context.has_creator_base_url() {
Expand Down
2 changes: 1 addition & 1 deletion components/script/dom/url.rs
Expand Up @@ -155,7 +155,7 @@ impl URL {
result.push('/');

// Step 5
result.push_str(&id.to_simple().to_string());
result.push_str(&id.to_string());

result
}
Expand Down
39 changes: 39 additions & 0 deletions tests/wpt/metadata/FileAPI/url/sandboxed-iframe.html.ini
@@ -1,4 +1,43 @@
[sandboxed-iframe.html]
expected: TIMEOUT
[Blob URLs can be used in <script> tags]
expected: TIMEOUT

[Blob URLs can be used in iframes, and are treated same origin]
expected: FAIL

[Blob URL fragment is implemented.]
expected: TIMEOUT

[Blob URLs can be used in XHR]
expected: FAIL

[XHR with a fragment should succeed]
expected: FAIL

[Only exact matches should revoke URLs, using XHR]
expected: FAIL

[Revoke blob URL after open(), will fetch]
expected: FAIL

[Blob URLs can be used in fetch]
expected: FAIL

[fetch with a fragment should succeed]
expected: FAIL

[Only exact matches should revoke URLs, using fetch]
expected: FAIL

[fetch should return Content-Type from Blob]
expected: FAIL

[Revoke blob URL after creating Request, will fetch]
expected: FAIL

[Revoke blob URL after calling fetch, fetch should succeed]
expected: FAIL

[XHR should return Content-Type from Blob]
expected: FAIL
7 changes: 0 additions & 7 deletions tests/wpt/metadata/FileAPI/url/url-format.any.js.ini
Expand Up @@ -2,14 +2,7 @@
[Generated Blob URLs are unique]
expected: FAIL

[Blob URL parses correctly]
expected: FAIL


[url-format.any.html]
[Generated Blob URLs are unique]
expected: FAIL

[Blob URL parses correctly]
expected: FAIL

This file was deleted.

Expand Up @@ -18,39 +18,11 @@
[Fetch: /images/green-1x1.png?<\\t=block]
expected: FAIL

[<img id="dangling" src="/images/green-1x1.png?img=&lt;b">]
[<img id="dangling" src="/images/green-1x1.png?img=&#10;&lt;b">]
expected: FAIL

[<img id="dangling" src="/images/green-1x1.png?img=&#10;b">]
[<img id="dangling" src="/images/green-1x1.png?img=&lt;&#10;b">]
expected: FAIL

[<img id="dangling" src="/images/green-1x1.png?img=&amp;#10;b">]
[\\n <img id="dangling" src="/images/green-1x1.png?img=\\n &lt;\\n &#10;b\\n ">\\n ]
expected: FAIL

[<img id="dangling" src="/images/green-1x1.png?img=&amp;lt;b">]
expected: FAIL

[<img id="dangling" src="/images/green-1x1.png?img=&amp;#10;b&amp;lt;c">]
expected: FAIL

[\\n <img id="dangling" src="\\n /images/green-1x1.png?img=\\n ">\\n ]
expected: FAIL

[\\n <img id="dangling" src="\\n /images/green-1x1.png?img=&amp;lt;\\n ">\\n ]
expected: FAIL

[\\n <img id="dangling" src="\\n /images/green-1x1.png?img=&amp;#10;\\n ">\\n ]
expected: FAIL

[<img id="dangling" src="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAAEAAAABCAQAAAC1HAwCAAAAC0lEQVR42mNkYAAAAAYAAjCB0C8AAAAASUVORK5CYII=">]
expected: FAIL

[<img id="dangling" src="data:image/png;base64,&#10;iVBORw0KGgoAAAANSUhEUgAAAAEAAAABCAQAAAC1HAwCAAAAC0lEQVR42mNkYAAAAAYAAjCB0C8AAAAASUVORK5CYII=">]
expected: FAIL

[<img id="dangling" src="data:image/png;base64,i&#10;VBORw0KGgoAAAANSUhEUgAAAAEAAAABCAQAAAC1HAwCAAAAC0lEQVR42mNkYAAAAAYAAjCB0C8AAAAASUVORK5CYII=">]
expected: FAIL

[<img id="dangling" src="data:image/svg+xml;utf8,\\n <svg width='1' height='1' xmlns='http://www.w3.org/2000/svg'>\\n <rect width='100%' height='100%' fill='rebeccapurple'/>\\n <rect x='10%' y='10%' width='80%' height='80%' fill='lightgreen'/>\\n </svg>">]
expected: FAIL

This file was deleted.

@@ -1,5 +1,6 @@
[iframe_sandbox_anchor_download_allow_downloads.sub.tentative.html]
expected: TIMEOUT
[<a download> triggered download in sandbox is allowed by allow-downloads.]
expected: TIMEOUT
expected: FAIL

[<a download> triggered download in sandbox is blocked]
expected: FAIL
@@ -0,0 +1,3 @@
[iframe_sandbox_anchor_download_block_downloads.sub.tentative.html]
[<a download> triggered download in sandbox is blocked.]
expected: FAIL
@@ -1,5 +1,6 @@
[iframe_sandbox_navigation_download_allow_downloads.sub.tentative.html]
expected: TIMEOUT
[Navigation resulted download in sandbox is allowed by allow-downloads.]
expected: TIMEOUT
expected: FAIL

[Navigation resulted download in sandbox is blocked.]
expected: FAIL
@@ -0,0 +1,3 @@
[iframe_sandbox_navigation_download_block_downloads.sub.tentative.html]
[Navigation resulted download in sandbox is blocked.]
expected: FAIL
@@ -1,2 +1,4 @@
[move-element-and-scroll.html]
expected: ERROR
[Test that <img> below viewport is not loaded when moved to another document and then scrolled to]
expected: FAIL
@@ -0,0 +1,2 @@
[sizes-dynamic-001-ref.html]
expected: FAIL
@@ -0,0 +1,2 @@
[sizes-dynamic-001.html]
expected: FAIL
@@ -1,9 +1,5 @@
[sandboxed-iframe-with-opaque-origin.html]
type: testharness
expected: TIMEOUT
[Sandboxed iframe with opaque origin doesn't send referrers.]
expected: TIMEOUT
[Sandboxed iframe with tuple origin sends referrers.]
expected: TIMEOUT
expected: FAIL

0 comments on commit 9b0b03a

Please sign in to comment.