mirror of
https://github.com/servo/servo.git
synced 2025-07-01 20:43:39 +01:00
Update web-platform-tests to revision 3589b85af366d5c53bf03cfeb5e0ccb3ac2a38e9
This commit is contained in:
parent
1e2411d2c5
commit
a57e1a4320
11 changed files with 274 additions and 7 deletions
|
@ -14017,6 +14017,12 @@
|
|||
{}
|
||||
]
|
||||
],
|
||||
"html/editing/dnd/the-datatransfer-interface/DataTransfer-types-manual.html": [
|
||||
[
|
||||
"/html/editing/dnd/the-datatransfer-interface/DataTransfer-types-manual.html",
|
||||
{}
|
||||
]
|
||||
],
|
||||
"html/editing/dnd/the-datatransfer-interface/dndTransferCases-manual.html": [
|
||||
[
|
||||
"/html/editing/dnd/the-datatransfer-interface/dndTransferCases-manual.html",
|
||||
|
@ -363996,6 +364002,42 @@
|
|||
{}
|
||||
]
|
||||
],
|
||||
"svg/scripted/text-attrs-dxdy-have-length.svg": [
|
||||
[
|
||||
"/svg/scripted/text-attrs-dxdy-have-length.svg",
|
||||
{}
|
||||
]
|
||||
],
|
||||
"svg/scripted/text-attrs-xyrotate-have-length.svg": [
|
||||
[
|
||||
"/svg/scripted/text-attrs-xyrotate-have-length.svg",
|
||||
{}
|
||||
]
|
||||
],
|
||||
"svg/scripted/text-tspan-attrs-have-length.svg": [
|
||||
[
|
||||
"/svg/scripted/text-tspan-attrs-have-length.svg",
|
||||
{}
|
||||
]
|
||||
],
|
||||
"svg/scripted/text-tspan-attrs-indexed-access.svg": [
|
||||
[
|
||||
"/svg/scripted/text-tspan-attrs-indexed-access.svg",
|
||||
{}
|
||||
]
|
||||
],
|
||||
"svg/scripted/tspan-attrs-dxdy-have-length.svg": [
|
||||
[
|
||||
"/svg/scripted/tspan-attrs-dxdy-have-length.svg",
|
||||
{}
|
||||
]
|
||||
],
|
||||
"svg/scripted/tspan-attrs-xyrotate-have-length.svg": [
|
||||
[
|
||||
"/svg/scripted/tspan-attrs-xyrotate-have-length.svg",
|
||||
{}
|
||||
]
|
||||
],
|
||||
"svg/shapes/line-getPointAtLength.svg": [
|
||||
[
|
||||
"/svg/shapes/line-getPointAtLength.svg",
|
||||
|
@ -561877,6 +561919,10 @@
|
|||
"b4f1125d620da0e1154d89f4b04a4468769a34bc",
|
||||
"support"
|
||||
],
|
||||
"html/editing/dnd/the-datatransfer-interface/DataTransfer-types-manual.html": [
|
||||
"6046cb24c599762f378e178228b605b2afdc19a8",
|
||||
"manual"
|
||||
],
|
||||
"html/editing/dnd/the-datatransfer-interface/dndTransferCases-manual.html": [
|
||||
"78d645a13235dbed9cdca67814221dac80fd7788",
|
||||
"manual"
|
||||
|
@ -599753,6 +599799,30 @@
|
|||
"b85e9086b134478e4c4b468cb19cc4e57aca06ae",
|
||||
"support"
|
||||
],
|
||||
"svg/scripted/text-attrs-dxdy-have-length.svg": [
|
||||
"91cd3e09332fa52800b05346d8c183bb599d7f46",
|
||||
"testharness"
|
||||
],
|
||||
"svg/scripted/text-attrs-xyrotate-have-length.svg": [
|
||||
"d1b14475ba78f55748e7a79384bb008d7d6c8220",
|
||||
"testharness"
|
||||
],
|
||||
"svg/scripted/text-tspan-attrs-have-length.svg": [
|
||||
"9932e4c5bd9c1d2153dca13f0498bf4c0729aee5",
|
||||
"testharness"
|
||||
],
|
||||
"svg/scripted/text-tspan-attrs-indexed-access.svg": [
|
||||
"80e12ce0c456a1abd1b520f09af36fde8f6efff4",
|
||||
"testharness"
|
||||
],
|
||||
"svg/scripted/tspan-attrs-dxdy-have-length.svg": [
|
||||
"66d29c494c41bf575270a777897032425b03618e",
|
||||
"testharness"
|
||||
],
|
||||
"svg/scripted/tspan-attrs-xyrotate-have-length.svg": [
|
||||
"1660ebba379a218ba1ce74a655df2725d788622c",
|
||||
"testharness"
|
||||
],
|
||||
"svg/shapes/line-dasharray-ref.svg": [
|
||||
"1703bd2fa544c3b2a0cd9a2ff3ff329089f19e6a",
|
||||
"support"
|
||||
|
|
|
@ -1,2 +0,0 @@
|
|||
[vh_not_refreshing_on_chrome.html]
|
||||
expected: FAIL
|
|
@ -0,0 +1,2 @@
|
|||
[hide_after_load.html]
|
||||
expected: TIMEOUT
|
|
@ -1,5 +0,0 @@
|
|||
[shader-with-non-reserved-words.html]
|
||||
expected: TIMEOUT
|
||||
[Overall test]
|
||||
expected: NOTRUN
|
||||
|
|
@ -0,0 +1,30 @@
|
|||
<!DOCTYPE html>
|
||||
<meta charset="utf-8">
|
||||
<title>DataTransferItem Test: types - files</title>
|
||||
<link rel="author" title="Intel" href="http://www.intel.com">
|
||||
<link rel="help" href="https://html.spec.whatwg.org/multipage/dnd.html#dom-datatransfer-types"/>
|
||||
<meta name="flags" content="interact">
|
||||
<script src="/resources/testharness.js"></script>
|
||||
<script src="/resources/testharnessreport.js"></script>
|
||||
|
||||
<p><div id="div" style="border: 2px green solid; width: 200px; height: 200px;"></div></p>
|
||||
|
||||
<h2>Test steps:</h2>
|
||||
<p>Drag a file enter the green box, then drop file out</p>
|
||||
|
||||
<script>
|
||||
|
||||
let div = document.getElementById("div");
|
||||
|
||||
setup({explicit_done: true});
|
||||
setup({explicit_timeout: true});
|
||||
|
||||
on_event(div, "dragenter", evt => {
|
||||
let type = evt.dataTransfer.types[0];
|
||||
test(() => {
|
||||
assert_equals(type, "Files");
|
||||
}, "Check if one of the types will be the string 'Files' when drag a file");
|
||||
done();
|
||||
});
|
||||
|
||||
</script>
|
|
@ -0,0 +1,23 @@
|
|||
<?xml version="1.0" standalone="no"?>
|
||||
<svg xmlns="http://www.w3.org/2000/svg"
|
||||
xmlns:h="http://www.w3.org/1999/xhtml">
|
||||
<metadata>
|
||||
<h:link rel="help" href="https://svgwg.org/svg2-draft/single-page.html#text-TSpanNotes"/>
|
||||
<h:meta name="assert" content="dx and dy attributes on text elements are lists that support length()"/>
|
||||
</metadata>
|
||||
<text id="text" font-family="Verdana" font-size="55" fill="blue"
|
||||
y="150"
|
||||
x="120"
|
||||
dx="60 90 -30 120 60 -257"
|
||||
dy="0 12 24 12 0 -12 -24 -12 0"
|
||||
>His socks are black.</text>
|
||||
<h:script src="/resources/testharness.js"/>
|
||||
<h:script src="/resources/testharnessreport.js"/>
|
||||
<script><![CDATA[
|
||||
test(function() {
|
||||
var text = document.getElementById('text');
|
||||
assert_equals(text.dx.baseVal.length, 6);
|
||||
assert_equals(text.dy.baseVal.length, 9);
|
||||
});
|
||||
]]></script>
|
||||
</svg>
|
After Width: | Height: | Size: 857 B |
|
@ -0,0 +1,24 @@
|
|||
<?xml version="1.0" standalone="no"?>
|
||||
<svg xmlns="http://www.w3.org/2000/svg"
|
||||
xmlns:h="http://www.w3.org/1999/xhtml">
|
||||
<metadata>
|
||||
<h:link rel="help" href="https://svgwg.org/svg2-draft/single-page.html#text-TSpanNotes"/>
|
||||
<h:meta name="assert" content="x y and rotate attributes on text elements are lists that support length()"/>
|
||||
</metadata>
|
||||
<text id="text" font-family="Verdana" font-size="55" fill="blue"
|
||||
y="150 130 160"
|
||||
x="120 160 200 240"
|
||||
rotate="0 0 10, -10, 0"
|
||||
>My socks are blue.</text>
|
||||
<h:script src="/resources/testharness.js"/>
|
||||
<h:script src="/resources/testharnessreport.js"/>
|
||||
<script><![CDATA[
|
||||
/* The SVG spec requires (at least) readonly support for length */
|
||||
test(function() {
|
||||
var text = document.getElementById('text');
|
||||
assert_equals(text.y.baseVal.length, 3);
|
||||
assert_equals(text.x.baseVal.length, 4);
|
||||
assert_equals(text.rotate.baseVal.length, 5);
|
||||
});
|
||||
]]></script>
|
||||
</svg>
|
After Width: | Height: | Size: 962 B |
|
@ -0,0 +1,44 @@
|
|||
<?xml version="1.0" standalone="no"?>
|
||||
<svg xmlns="http://www.w3.org/2000/svg"
|
||||
xmlns:h="http://www.w3.org/1999/xhtml">
|
||||
<metadata>
|
||||
<h:link rel="help" href="https://svgwg.org/svg2-draft/single-page.html#text-TSpanNotes"/>
|
||||
<h:meta name="assert" content="x y dx dy and rotate attributes on text and tspan elements are lists that support length()"/>
|
||||
</metadata>
|
||||
<text id="text" font-family="Verdana" font-size="55" fill="blue"
|
||||
y="150 130 160" x="120 160 200 240" rotate="0 0 10, -10, 0">
|
||||
My <tspan id="tspan" x="280 325" y="150 155 160 165 170" rotate="-30,0,30">socks</tspan>
|
||||
are blue.
|
||||
</text>
|
||||
<h:script src="/resources/testharness.js"/>
|
||||
<h:script src="/resources/testharnessreport.js"/>
|
||||
<script><![CDATA[
|
||||
test(function() {
|
||||
/* Make sure that text.y is a list, (presumably
|
||||
* SVGAnimatedLengthList) and that the list has a
|
||||
* length() method and that it returns the right thing.
|
||||
*
|
||||
* This test is for a change in SVG for 2.0, since 1.x, to add
|
||||
* a length property.
|
||||
*/
|
||||
var text = document.getElementById('text');
|
||||
assert_equals(text.y.baseVal.length, 3);
|
||||
assert_equals(text.x.baseVal.length, 4);
|
||||
assert_equals(text.rotate.baseVal.length, 5);
|
||||
|
||||
/* same for tspan */
|
||||
var tspan = document.getElementById('tspan');
|
||||
assert_equals(tspan.x.baseVal.length, 2);
|
||||
assert_equals(tspan.y.baseVal.length, 5);
|
||||
assert_equals(tspan.rotate.baseVal.length, 3);
|
||||
|
||||
/* Note, we only have to test that the length property
|
||||
* is there (and interoperable) when there is a list given;
|
||||
* in practice it's there with value 0 when the attributes are
|
||||
* absent, but that's not required, the attribute could be implemented
|
||||
* as a plain string in that case, or absent entirely, I think
|
||||
* - Liam Quin 2018
|
||||
*/
|
||||
});
|
||||
]]></script>
|
||||
</svg>
|
After Width: | Height: | Size: 1.8 KiB |
|
@ -0,0 +1,33 @@
|
|||
<?xml version="1.0" standalone="no"?>
|
||||
<svg xmlns="http://www.w3.org/2000/svg"
|
||||
xmlns:h="http://www.w3.org/1999/xhtml">
|
||||
<metadata>
|
||||
<h:link rel="help" href="https://svgwg.org/svg2-draft/single-page.html#text-TSpanNotes"/>
|
||||
<h:meta name="assert" content="x y dx dy and rotate attributes on text and tspan elements are lists that support length()"/>
|
||||
</metadata>
|
||||
<text id="text" font-family="Verdana" font-size="55" fill="blue"
|
||||
y="150 130 160" x="120 160 200 240" rotate="0 0 10, -10, 0">
|
||||
My <tspan id="tspan" x="280 325" y="150 155 160 165 170" rotate="-30,0,30">socks</tspan>
|
||||
are blue.
|
||||
</text>
|
||||
<h:script src="/resources/testharness.js"/>
|
||||
<h:script src="/resources/testharnessreport.js"/>
|
||||
<script><![CDATA[
|
||||
test(function() {
|
||||
/* Make sure that we can get at list items with indexed access.
|
||||
*/
|
||||
var text = document.getElementById('text');
|
||||
assert_equals(text.x.baseVal[0].value, 120);
|
||||
assert_equals(text.y.baseVal[2].value, 160);
|
||||
assert_equals(text.rotate.baseVal[3].value, -10);
|
||||
assert_equals(text.rotate.baseVal[0].value, 0);
|
||||
|
||||
/* same for tspan */
|
||||
var tspan = document.getElementById('tspan');
|
||||
assert_equals(tspan.x.baseVal[1].value, 325);
|
||||
assert_equals(tspan.y.baseVal[4].value, 170);
|
||||
assert_equals(tspan.rotate.baseVal[0].value, -30);
|
||||
});
|
||||
|
||||
]]></script>
|
||||
</svg>
|
After Width: | Height: | Size: 1.3 KiB |
|
@ -0,0 +1,24 @@
|
|||
<?xml version="1.0" standalone="no"?>
|
||||
<svg xmlns="http://www.w3.org/2000/svg"
|
||||
xmlns:h="http://www.w3.org/1999/xhtml">
|
||||
<metadata>
|
||||
<h:link rel="help" href="https://svgwg.org/svg2-draft/single-page.html#text-TSpanNotes"/>
|
||||
<h:meta name="assert" content="dx, dy attrs on tspan support length()"/>
|
||||
</metadata>
|
||||
<text id="text" font-family="Verdana" font-size="55" fill="blue"
|
||||
y="150"
|
||||
x="120"
|
||||
>His socks are <tspan id="tsp"
|
||||
dx="60 90 -30 120 60 -257"
|
||||
dy="0 12 24 12 0 -12 -24 -12 0"
|
||||
>very</tspan> clean.</text>
|
||||
<h:script src="/resources/testharness.js"/>
|
||||
<h:script src="/resources/testharnessreport.js"/>
|
||||
<script><![CDATA[
|
||||
test(function() {
|
||||
var tspan = document.getElementById('tsp');
|
||||
assert_equals(tspan.dx.baseVal.length, 6);
|
||||
assert_equals(tspan.dy.baseVal.length, 9);
|
||||
});
|
||||
]]></script>
|
||||
</svg>
|
After Width: | Height: | Size: 862 B |
|
@ -0,0 +1,24 @@
|
|||
<?xml version="1.0" standalone="no"?>
|
||||
<svg xmlns="http://www.w3.org/2000/svg"
|
||||
xmlns:h="http://www.w3.org/1999/xhtml">
|
||||
<metadata>
|
||||
<h:link rel="help" href="https://svgwg.org/svg2-draft/single-page.html#text-TSpanNotes"/>
|
||||
<h:meta name="assert" content="dx and dy attributes on text elements are lists that support length()"/>
|
||||
</metadata>
|
||||
<text id="text" font-family="Verdana" font-size="55" fill="blue"
|
||||
y="150"
|
||||
x="120"
|
||||
>Her socks were <tspan id="tsp"
|
||||
x="280 325" y="150 155 160 165 170" rotate="-30,0,30"
|
||||
>stained</tspan> with blood.</text>
|
||||
<h:script src="/resources/testharness.js"/>
|
||||
<h:script src="/resources/testharnessreport.js"/>
|
||||
<script><![CDATA[
|
||||
test(function() {
|
||||
var tspan = document.getElementById('tsp');
|
||||
assert_equals(tspan.x.baseVal.length, 2);
|
||||
assert_equals(tspan.y.baseVal.length, 5);
|
||||
assert_equals(tspan.rotate.baseVal.length, 3);
|
||||
});
|
||||
]]></script>
|
||||
</svg>
|
After Width: | Height: | Size: 944 B |
Loading…
Add table
Add a link
Reference in a new issue