Skip to content
Permalink
Browse files

Update web-platform-tests to revision 112ad5ca55d55f6da2ccc7468e6dcc9…

…1b4e5d223
  • Loading branch information
servo-wpt-sync committed Jan 2, 2020
1 parent 106a018 commit ca3784874ce32eda10962efed636f6feee05be24
"testharness"
],
"html/rendering/replaced-elements/attributes-for-embedded-content-and-images/img-aspect-ratio.html": [
"5b155c1047da85d2bd8301effaa3ef9d9096b0ad",
"3000032978082356086930b2b5bee96b73947dc8",
"testharness"
],
"html/rendering/replaced-elements/attributes-for-embedded-content-and-images/img-dim-ref.html": [
@@ -0,0 +1,2 @@
[max-width-018.xht]
expected: FAIL
@@ -9,3 +9,6 @@
[throws if handleEvent is thruthy and not callable]
expected: NOTRUN

[looks up handleEvent method on every event dispatch]
expected: FAIL

@@ -2,6 +2,3 @@
[listeners are called when <iframe> is resized]
expected: FAIL

[listeners are called correct number of times]
expected: FAIL

@@ -0,0 +1,4 @@
[elementFromPoint-001.html]
[CSSOM View - 5 - extensions to the Document interface]
expected: FAIL

@@ -0,0 +1,4 @@
[elementsFromPoint-invalid-cases.html]
[The root element is the last element returned for otherwise empty queries within the viewport]
expected: FAIL

@@ -321,9 +321,6 @@
[<iframe>: separate response Content-Type: text/html */*]
expected: FAIL

[<iframe>: separate response Content-Type: text/html;x=" text/plain]
expected: FAIL

[<iframe>: combined response Content-Type: text/html;x=" text/plain]
expected: FAIL

@@ -53,3 +53,6 @@
[combined text/javascript ]
expected: FAIL

[separate text/javascript x/x]
expected: FAIL

@@ -11,6 +11,6 @@
[X-Content-Type-Options%3A%20nosniff%0C]
expected: FAIL

[X-Content-Type-Options%3A%0D%0AX-Content-Type-Options%3A%20nosniff]
[X-Content-Type-Options%3A%20'NosniFF']
expected: FAIL

@@ -5,17 +5,14 @@
expected: FAIL

[Embedded credentials are treated as network errors in frames.]
expected: FAIL
expected: TIMEOUT

[Embedded credentials are treated as network errors in new windows.]
expected: TIMEOUT

[Embedded credentials matching the top-level are treated as network errors for cross-origin URLs.]
expected: TIMEOUT

[Embedded credentials matching the top-level are not treated as network errors for same-origin URLs.]
expected: TIMEOUT

[Embedded credentials matching the top-level are not treated as network errors for relative URLs.]
expected: TIMEOUT

@@ -1,6 +1,5 @@
[iframe_sandbox_popups_nonescaping-3.html]
type: testharness
expected: TIMEOUT
[Check that popups from a sandboxed iframe do not escape the sandbox]
expected: NOTRUN
expected: FAIL

This file was deleted.

@@ -0,0 +1,5 @@
[018.html]
expected: TIMEOUT
[origin of the script that invoked the method, javascript:]
expected: TIMEOUT

@@ -1,4 +1,5 @@
[005.html]
expected: ERROR
[dedicated worker in shared worker in dedicated worker]
expected: FAIL

@@ -12,6 +12,8 @@
<img src="/images/green.png">
<img src="/images/green.png" width=100 height=125>
<img src="" width=100 height=125>
<img src="error.png" width=100 height=125>
<img src="error.png">
<script>
let t = async_test("Image width and height attributes are used to infer aspect-ratio");
function assert_ratio(img, expected) {
@@ -47,9 +49,10 @@

onload = t.step_func_done(function() {
let images = document.querySelectorAll("img");
assert_ratio(images[3], 1.266); // 1.266 is the original aspect ratio of blue.png
assert_equals(getComputedStyle(images[2]).height, "0px"); // aspect-ratio doesn't override intrinsic size of images that don't have any src.
assert_ratio(images[1], 2.0); // 2.0 is the original aspect ratio of green.png
assert_ratio(images[0], 2.0); // Loaded image's aspect ratio, at least by default, overrides width / height ratio.
assert_ratio(images[1], 2.0); // 2.0 is the original aspect ratio of green.png
assert_equals(getComputedStyle(images[2]).height, "0px"); // aspect-ratio doesn't override intrinsic size of images that don't have any src.
assert_equals(getComputedStyle(images[3]).height, getComputedStyle(images[4]).height); // aspect-ratio doesn't override intrinsic size of error images.
assert_ratio(images[5], 1.266); // 1.266 is the original aspect ratio of blue.png
});
</script>

0 comments on commit ca37848

Please sign in to comment.
You can’t perform that action at this time.