Skip to content

Commit

Permalink
Update web-platform-tests to revision 6be7f242bbcec40802cda8f670bbec3…
Browse files Browse the repository at this point in the history
…1570dd077
  • Loading branch information
servo-wpt-sync committed Feb 15, 2018
1 parent 2b9acb1 commit 9882351
Show file tree
Hide file tree
Showing 78 changed files with 1,910 additions and 117 deletions.
611 changes: 595 additions & 16 deletions tests/wpt/metadata/MANIFEST.json

Large diffs are not rendered by default.

Expand Up @@ -5,3 +5,6 @@
[font-feature-settings should be serialized with double quotes, and the default value of 1 should be omitted]
expected: FAIL

[font-feature-settings should serialize 0 instead of off, given it's shorter]
expected: FAIL
@@ -0,0 +1,7 @@
[serializing-html-fragments.html]
["is" value should be serialized if the custom element has no "is" content attribute]
expected: FAIL

["is" value should be serialized even for an undefined element]
expected: FAIL

@@ -0,0 +1,7 @@
[redirect-empty-location-worker.html]
[redirect response with empty Location, follow mode]
expected: FAIL

[redirect response with empty Location, manual mode]
expected: FAIL

@@ -0,0 +1,7 @@
[redirect-empty-location.html]
[redirect response with empty Location, follow mode]
expected: FAIL

[redirect response with empty Location, manual mode]
expected: FAIL

@@ -0,0 +1,4 @@
[script-html-correctly-labeled.tentative.sub.html]
[Untitled]
expected: FAIL

@@ -0,0 +1,4 @@
[script-js-mislabeled-as-html-nosniff.sub.html]
[Untitled]
expected: FAIL

13 changes: 13 additions & 0 deletions tests/wpt/metadata/fetch/nosniff/stylesheet.html.ini
@@ -0,0 +1,13 @@
[stylesheet.html]
[URL query: text/html]
expected: FAIL

[URL query: text/json]
expected: FAIL

[Revalidated URL query: text/html]
expected: FAIL

[Revalidated URL query: text/json]
expected: FAIL

@@ -1,5 +1,5 @@
[xmlhttprequest-sync-default-feature-policy.sub.html]
expected: ERROR
expected: TIMEOUT
[Default "sync-xhr" feature policy ["*"\] allows same-origin iframes.]
expected: TIMEOUT

Expand Down
@@ -0,0 +1,13 @@
<!DOCTYPE html>
<title>Reference for specifying flex:none on wrappable content should give content its full width</title>

<style>
span {
font-family: Ahem;
color: green;
}
</style>

<div><span>XXX XXX XXX</span></div>

<div style="margin-top: 1em;">You should see three green rectangles above, all on the same line.</div>
@@ -0,0 +1,20 @@
<!DOCTYPE html>
<title>Specifying flex:none on wrappable content should give content its full width</title>
<link rel="help" href="http://www.w3.org/TR/css-flexbox-1/#flex-common">
<meta name="assert" content="When content has flex:none, it should be given its full width">
<link rel="match" href="flexbox_flex-none-wrappable-content-ref.html">

<style>
span {
font-family: Ahem;
color: green;
}
</style>

<div style="display: flex; width: 5px;">
<div style="flex: none;">
<span>XXX XXX XXX</span>
</div>
</div>

<div style="margin-top: 1em;">You should see three green rectangles above, all on the same line.</div>
Expand Up @@ -13,14 +13,22 @@
#test1 {
font-feature-settings: 'vert' 1;
}
#test2 {
font-feature-settings: "vert" off;
}
</style>
<div id="test"></div>
<div id="test1"></div>
<div id="test2"></div>
<script>
const div = document.querySelector("#test");
const div1 = document.querySelector("#test1");
const div2 = document.querySelector("#test2");
test(function() {
assert_equals(getComputedStyle(div).fontFeatureSettings, '"vert"');
assert_equals(getComputedStyle(div1).fontFeatureSettings, '"vert"');
}, "font-feature-settings should be serialized with double quotes, and the default value of 1 should be omitted");
test(function() {
assert_equals(getComputedStyle(div2).fontFeatureSettings, '"vert" 0');
}, "font-feature-settings should serialize 0 instead of off, given it's shorter");
</script>
31 changes: 31 additions & 0 deletions tests/wpt/web-platform-tests/css/css-fonts/font-variant-05-ref.xht
@@ -0,0 +1,31 @@
<!DOCTYPE html>
<html xmlns="http://www.w3.org/1999/xhtml" lang="en">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<title>CSS Test: font-variant: none; low level equivalence</title>
<link rel="author" title="Mike Bremford" href="mike@bfo.com" />
<style>
@font-face {
font-family: fwf;
src: url(support/fonts/FontWithFancyFeatures.otf);
}
.test {
font-family: fwf;
font-size: 2.4em;
line-height: 0.5;
color: purple;
}
</style>
</head>
<body>
<p>Test passes if the six lines below are identical, with five check marks.</p>
<section class="test">
<p>AAAAA</p>
<p>AAAAA</p>
<p>AAAAA</p>
<p>AAAAA</p>
<p>AAAAA</p>
<p>AAAAA</p>
</section>
</body>
</html>
69 changes: 69 additions & 0 deletions tests/wpt/web-platform-tests/css/css-fonts/font-variant-05.xht
@@ -0,0 +1,69 @@
<!DOCTYPE html>
<html xmlns="http://www.w3.org/1999/xhtml" lang="en">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<title>CSS Test: font-variant in @font-face rule is overriden by equivalent style rules</title>
<link rel="author" title="Mike Bremford" href="mike@bfo.com" />
<link rel="help" href="https://www.w3.org/TR/css-fonts-3/#font-variant-prop" />
<link rel="help" href="https://www.w3.org/TR/css-fonts-3/#font-feature-settings-prop" />
<link rel="match" href="font-variant-05-ref.xht" />
<meta name="assert" content="Setting ‘font-variant-ligatures’ properties will override the same properties set in the @font-face rule. But properties set there and not explicitly turned off or on later remain set." />
<style>
@font-face {
font-family: fwf;
src: url(support/fonts/FontWithFancyFeatures.otf);
font-variant: no-common-ligatures no-contextual discretionary-ligatures historical-ligatures;
}
.test {
font-family: fwf;
font-size: 2.4em;
line-height: 0.5;
color: purple;
}
.line1 { }
.line2 { font-variant-ligatures: normal; }
.line3 { font-variant-ligatures: common-ligatures contextual; }
.line4 { font-variant-ligatures: common-ligatures contextual discretionary-ligatures historical-ligatures; }
.line5 { font-feature-settings: "liga" on, "clig" on, "calt" on, "hlig" on, "dlig" on }
/**
* Some notes on this test case, which aims to explore the
* font-variant precedence rules and the exact value of
* "normal" for font-variant-ligatures.
*
* line1:
* font-variant is completely set in the @font-face rule.
*
* line2:
* font-variant-ligatures: normal will reset "common-ligatures"
* and "contextual" both to true. Discretionary and historical
* ligatures are off by default, but they are not explicitly
* disabled with a value of "normal". As stated in section 7.1,
* "Individual features are only disabled when explicitly
* overridden by the author". These features were turned on in
* the @font-face rule, so remain on.
*
* line3:
* identical to line2 except that instead of "normal" for
* font-variant-ligatures we use the expanded equivalent,
* explicitly turning on common-ligatures and contextual, and
* leaving discretionary and historical unchanged.
*
* line4:
* we explicitly reset all values of font-variant-ligatures
* properties to the same values as are set in the @font-face
* rule.
*/
</style>
</head>
<body>
<p>Test passes if the six lines below are identical, with five check marks.</p>
<section class="test">
<p class="line1">AAAFE</p>
<p class="line2">CDGFE</p>
<p class="line3">CDGFE</p>
<p class="line4">CDGFE</p>
<p class="line5">CDGFE</p>
<p>AAAAA</p>
</section>
</body>
</html>
34 changes: 34 additions & 0 deletions tests/wpt/web-platform-tests/css/css-fonts/font-variant-06-ref.xht
@@ -0,0 +1,34 @@
<!DOCTYPE html>
<html xmlns="http://www.w3.org/1999/xhtml" lang="en">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<title>CSS Test: font-variant in @font-face rule is overriden by equivalent style rules</title>
<link rel="author" title="Mike Bremford" href="mike@bfo.com" />
<link rel="help" href="https://www.w3.org/TR/css-fonts-3/#feature-precedence" />
<style>
@font-face {
font-family: fwf;
src: url(support/fonts/FontWithFancyFeatures.otf);
}
.test {
font-family: fwf;
font-size: 2.4em;
color: green;
}
</style>
</head>
<body>
<p>Test passes if there are nine check marks below and no red visible.</p>
<section class="test">
<span>A</span>
<span>A</span>
<span>A</span>
<span>A</span>
<span>A</span>
<span>A</span>
<span>A</span>
<span>A</span>
<span>A</span>
</section>
</body>
</html>
82 changes: 82 additions & 0 deletions tests/wpt/web-platform-tests/css/css-fonts/font-variant-06.xht
@@ -0,0 +1,82 @@
<!DOCTYPE html>
<html xmlns="http://www.w3.org/1999/xhtml" lang="en">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<title>CSS Test: font-variant in @font-face rule is overriden by equivalent style rules</title>
<link rel="author" title="Mike Bremford" href="mike@bfo.com" />
<link rel="help" href="https://www.w3.org/TR/css-fonts-3/#font-variant-prop" />
<link rel="help" href="https://www.w3.org/TR/css-fonts-3/#feature-precedence" />
<link rel="match" href="font-variant-06-ref.xht" />
<meta name="assert" content="‘font-variant-numeric’ cannot turn OFF features turned ON in @font-face" />
<style>
@font-face {
font-family: fwf;
src: url(support/fonts/FontWithFancyFeatures.otf);
font-variant: oldstyle-nums;
}
.test, .ref {
font-family: fwf;
font-size: 2.4em;
position: absolute;
}
.test {
color: green;
}
.ref {
color: red;
}
.t1 { }
.t2 { font-variant-numeric: oldstyle-nums; }
.t3 { font-variant-numeric: normal; }
.t4 { font-variant-numeric: slashed-zero; }
.t5 { font-variant-numeric: invalid-value; }
.t6 { font-variant: none; }
.t7 { font-variant: normal; }
.t8 { font-variant: initial; }
.t9 { font-variant: invalid-value; }
/**
* Some notes on this test.
*
* t1
* the font-variant property from @font-face is applied.
* t2
* simply restating the value set in the @font-face rule
* t3
* "font-variant-numeric: normal" does not turn off the "on" value
* for oldstyle-nums, which remains on as set in @font-face
* t4
* "font-variant-numeric: slashed-zero" is valid, but does not
* change the "on" value for oldstyle-nums as set in @font-face
* t6, t7, t8
these font-variant values all set font-variant-numeric to normal
* t5, r9
* an invalid value means the rule is invalid, and should be ignored.
*/
</style>
</head>
<body>
<p>Test passes if there are nine check marks below and no red visible.</p>
<section class="ref">
<span>A</span>
<span>A</span>
<span>A</span>
<span>A</span>
<span>A</span>
<span>A</span>
<span>A</span>
<span>A</span>
<span>A</span>
</section>
<section class="test">
<span class="t1">Q</span>
<span class="t2">Q</span>
<span class="t3">Q</span>
<span class="t4">Q</span>
<span class="t5">Q</span>
<span class="t6">Q</span>
<span class="t7">Q</span>
<span class="t8">Q</span>
<span class="t9">Q</span>
</section>
</body>
</html>
@@ -0,0 +1,24 @@
<!doctype html>
<meta charset="utf-8">
<title>'animation-direction' property</title>
<link rel="help" href="https://drafts.css-houdini.org/css-typed-om-1/#dom-stylepropertymap-get">
<link rel="help" href="https://drafts.css-houdini.org/css-typed-om-1/#dom-stylepropertymap-set">
<link rel="help" href="https://drafts.css-houdini.org/css-typed-om-1/#property-stle-value-normalization">
<script src="/resources/testharness.js"></script>
<script src="/resources/testharnessreport.js"></script>
<script src="../../resources/testhelper.js"></script>
<script src="resources/testsuite.js"></script>
<body>
<div id="log"></div>
<script>
'use strict';

// FIXME: animation-direction is list-valued. Run list-valued tests here too.
runPropertyTests('animation-direction', [
{ syntax: 'normal' },
{ syntax: 'reverse' },
{ syntax: 'alternate-reverse' },
{ syntax: 'alternate' },
]);

</script>
@@ -1,6 +1,6 @@
<!doctype html>
<meta charset="utf-8">
<title>'margin-top' property</title>
<title>'background-image' property</title>
<link rel="help" href="https://drafts.css-houdini.org/css-typed-om-1/#dom-stylepropertymap-get">
<link rel="help" href="https://drafts.css-houdini.org/css-typed-om-1/#dom-stylepropertymap-set">
<link rel="help" href="https://drafts.css-houdini.org/css-typed-om-1/#property-stle-value-normalization">
Expand All @@ -9,15 +9,14 @@
<script src="../../resources/testhelper.js"></script>
<script src="resources/testsuite.js"></script>
<body>
<div id="log">
<div id="log"></div>
<script>
'use strict';

runPropertyTests('margin-top', [
{ specified: '0' },
{ specified: '<ident>', examples: [new CSSKeywordValue('auto')] },
{ specified: '<percentage>' },
{ specified: '<length>' },
// FIXME: background-image is list-valued. Run list-valued tests here too.
runPropertyTests('background-image', [
{ syntax: 'none' },
{ syntax: '<image>' },
]);

</script>

0 comments on commit 9882351

Please sign in to comment.