Commit cc695e68 authored by Chromium WPT Sync's avatar Chromium WPT Sync Committed by Commit Bot

Import wpt@4a17ca2d26765ab3b1409fc7a66662cd0e834146

Using wpt-import in Chromium 638337f7.
With Chromium commits locally applied on WPT:
2928474c "Revert "Add WPT tests for feature policy""
9f32e9c0 "S13nServiceWorker: Add tests for network fallback for navigations with request bodies"


Build: https://ci.chromium.org/buildbot/chromium.infra.cron/wpt-importer/11049

Note to sheriffs: This CL imports external tests and adds
expectations for those tests; if this CL is large and causes
a few new failures, please fix the failures by adding new
lines to TestExpectations rather than reverting. See:
https://chromium.googlesource.com/chromium/src/+/master/docs/testing/web_platform_tests.md

Directory owners for changes in this CL:
kojii@chromium.org:
  external/wpt/css/css-writing-modes

TBR=leon.han@intel.com

No-Export: true
Change-Id: I10c8592ef1adacd417aa017273926f8c55abd4e4
Reviewed-on: https://chromium-review.googlesource.com/890060
Commit-Queue: Blink WPT Bot <blink-w3c-test-autoroller@chromium.org>
Reviewed-by: default avatarBlink WPT Bot <blink-w3c-test-autoroller@chromium.org>
Cr-Commit-Position: refs/heads/master@{#532176}
parent f3b6dfc5
......@@ -1748,6 +1748,9 @@ crbug.com/805061 external/wpt/custom-elements/upgrading/Node-cloneNode.html [ Cr
crbug.com/805463 external/wpt/acid/acid3/numbered-tests.html [ Skip ]
# ====== New tests from wpt-importer added here ======
crbug.com/626703 [ Linux Mac ] external/wpt/css/css-writing-modes/mongolian-orientation-002.html [ Failure ]
crbug.com/626703 external/wpt/css/css-writing-modes/mongolian-orientation-001.html [ Failure ]
crbug.com/626703 [ Android ] virtual/media-gpu-accelerated/external/wpt/media-source/mediasource-config-change-mp4-v-framerate.html [ Crash ]
crbug.com/626703 external/wpt/css/css-display/display-contents-fieldset-nested-legend.html [ Failure ]
crbug.com/626703 external/wpt/css/css-ui/text-overflow-026.html [ Failure ]
crbug.com/626703 external/wpt/svg/path/closepath/segment-completing.svg [ Failure ]
......
......@@ -29,17 +29,18 @@ function makeInvalidBlob() {
}
function makeBrokenImage() {
return new Promise(resolve => {
return new Promise((resolve, reject) => {
const image = new Image();
image.src = "data:,x";
image.onload = reject;
image.onerror = () => resolve(image);
});
}
function makeAvailableButBrokenImage() {
function makeAvailableButBrokenImage(path) {
return new Promise((resolve, reject) => {
const image = new Image();
image.src = "/images/broken.png";
image.src = path;
image.onload = () => resolve(image);
image.onerror = reject;
});
......@@ -138,12 +139,26 @@ promise_test( t => {
}, "createImageBitmap with a broken image source.");
promise_test( t => {
return makeAvailableButBrokenImage().then(image => {
return makeAvailableButBrokenImage("/images/broken.png").then(image => {
return promise_rejects(t, "InvalidStateError",
createImageBitmap(image));
});
}, "createImageBitmap with an available but undecodable image source.");
promise_test( t => {
return makeAvailableButBrokenImage("/images/red-zeroheight.svg").then(image => {
return promise_rejects(t, "InvalidStateError",
createImageBitmap(image));
});
}, "createImageBitmap with an available but zero height image source.");
promise_test( t => {
return makeAvailableButBrokenImage("/images/red-zerowidth.svg").then(image => {
return promise_rejects(t, "InvalidStateError",
createImageBitmap(image));
});
}, "createImageBitmap with an available but zero width image source.");
promise_test( t => {
return makeImageBitmap().then(bitmap => {
bitmap.close()
......
<!DOCTYPE html>
<meta charset="utf-8">
<title>CSS Writing Modes Test: orientation of mongolian</title>
<link rel="author" title="Florian Rivoal" href="https://florian.rivoal.net/">
<link rel="help" href="https://www.w3.org/TR/css-writing-modes-3/#text-orientation">
<link rel="match" href="reference/mongolian-orientation-001-ref.html">
<meta name="assert" content="Mongolian is intrinsicly vertical, mixed and upright text-orientation are expected to be the same.">
<style>
div {
font-family: "Mongolian White"; /* Not required for the test to work,
but it helps make it look not ugly if you have the font installed.*/
font-size: 2em;
margin: 1em;
writing-mode: vertical-lr;
float: left;
}
div:nth-of-type(1) { text-orientation: mixed; }
div:nth-of-type(2) { text-orientation: upright; }
</style>
<p>The test passes if you see two identical lines of vertical text (in Mongolian).
<div>ᠮᠣᠨᠭᠭᠣᠯ ᠬᠡᠯᠡ</div>
<div>ᠮᠣᠨᠭᠭᠣᠯ ᠬᠡᠯᠡ</div>
<!DOCTYPE html>
<meta charset="utf-8">
<title>CSS Writing Modes Test: orientation of mongolian</title>
<link rel="author" title="Florian Rivoal" href="https://florian.rivoal.net/">
<link rel="help" href="https://www.w3.org/TR/css-writing-modes-3/#text-orientation">
<link rel="match" href="reference/mongolian-orientation-001-ref.html">
<meta name="assert" content="In Mongolian, in horizontal text, glyphs are typeset in a 90° counter-clockwise rotation from their intrisic vertical orientation. text-orientation:sideways causes all text to be typeset sideways, as if in a horizontal layout, but rotated 90° clockwise. text-orientation:mixed causes typographic character units from vertical scripts are typeset with their intrinsic orientation. These two should therefore result in the same thing">
<style>
div {
font-family: "Mongolian White"; /* Not required for the test to work,
but it helps make it look not ugly if you have the font installed.*/
font-size: 2em;
margin: 1em;
writing-mode: vertical-lr;
float: left;
}
div:nth-of-type(1) { text-orientation: mixed; }
div:nth-of-type(2) { text-orientation: sideways; }
</style>
<p>The test passes if you see two identical lines of vertical text (in Mongolian).
<div>ᠮᠣᠨᠭᠭᠣᠯ ᠬᠡᠯᠡ</div>
<div>ᠮᠣᠨᠭᠭᠣᠯ ᠬᠡᠯᠡ</div>
<!DOCTYPE html>
<meta charset="utf-8">
<title>CSS Writing Modes Test Reference</title>
<link rel="author" title="Florian Rivoal" href="https://florian.rivoal.net/">
<style>
div {
font-family: "Mongolian White";
font-size: 2em;
margin: 1em;
writing-mode: vertical-lr;
float: left;
}
div:nth-of-type(1) { text-orientation: sideways; }
div:nth-of-type(2) { text-orientation: sideways; }
</style>
<p>The test passes if you see two identical lines of vertical text (in Mongolian).
<div>ᠮᠣᠨᠭᠭᠣᠯ ᠬᠡᠯᠡ</div>
<div>ᠮᠣᠨᠭᠭᠣᠯ ᠬᠡᠯᠡ</div>
......@@ -1330,7 +1330,6 @@ interface mixin CanvasPath {
void quadraticCurveTo(unrestricted double cpx, unrestricted double cpy, unrestricted double x, unrestricted double y);
void bezierCurveTo(unrestricted double cp1x, unrestricted double cp1y, unrestricted double cp2x, unrestricted double cp2y, unrestricted double x, unrestricted double y);
void arcTo(unrestricted double x1, unrestricted double y1, unrestricted double x2, unrestricted double y2, unrestricted double radius);
void arcTo(unrestricted double x1, unrestricted double y1, unrestricted double x2, unrestricted double y2, unrestricted double radiusX, unrestricted double radiusY, unrestricted double rotation);
void rect(unrestricted double x, unrestricted double y, unrestricted double w, unrestricted double h);
void arc(unrestricted double x, unrestricted double y, unrestricted double radius, unrestricted double startAngle, unrestricted double endAngle, optional boolean anticlockwise = false);
void ellipse(unrestricted double x, unrestricted double y, unrestricted double radiusX, unrestricted double radiusY, unrestricted double rotation, unrestricted double startAngle, unrestricted double endAngle, optional boolean anticlockwise = false);
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment