mirror of
https://github.com/servo/servo.git
synced 2025-10-04 02:29:12 +01:00
Update web-platform-tests to revision 86579034357501943927f3dc4abf75d76c477383
This commit is contained in:
parent
9c1c58a498
commit
f708edc5ea
20 changed files with 160 additions and 81 deletions
|
@ -0,0 +1,15 @@
|
|||
<!doctype html>
|
||||
<title>CSS Test: Groove border with default color should actually show a groove border</title>
|
||||
<link rel="help" href="https://drafts.csswg.org/css2/box.html#border-style-properties">
|
||||
<link rel="help" href="https://bugzilla.mozilla.org/show_bug.cgi?id=1488294">
|
||||
<link rel="author" href="mailto:emilio@crisal.io" title="Emilio Cobos Álvarez">
|
||||
<link rel="author" href="https://www.mozilla.org" title="Mozilla">
|
||||
<link rel="mismatch" href="groove-ridge-default-notref.html">
|
||||
<style>
|
||||
div {
|
||||
width: 100px;
|
||||
height: 100px;
|
||||
border: 10px groove;
|
||||
}
|
||||
</style>
|
||||
<div></div>
|
|
@ -0,0 +1,12 @@
|
|||
<!doctype html>
|
||||
<title>CSS Test Reference</title>
|
||||
<link rel="author" href="mailto:emilio@crisal.io" title="Emilio Cobos Álvarez">
|
||||
<link rel="author" href="https://www.mozilla.org" title="Mozilla">
|
||||
<style>
|
||||
div {
|
||||
width: 100px;
|
||||
height: 100px;
|
||||
border: 10px solid;
|
||||
}
|
||||
</style>
|
||||
<div></div>
|
|
@ -0,0 +1,15 @@
|
|||
<!doctype html>
|
||||
<title>CSS Test: ridge border with default color should actually show a ridge border</title>
|
||||
<link rel="help" href="https://drafts.csswg.org/css2/box.html#border-style-properties">
|
||||
<link rel="help" href="https://bugzilla.mozilla.org/show_bug.cgi?id=1488294">
|
||||
<link rel="author" href="mailto:emilio@crisal.io" title="Emilio Cobos Álvarez">
|
||||
<link rel="author" href="https://www.mozilla.org" title="Mozilla">
|
||||
<link rel="mismatch" href="groove-ridge-default-notref.html">
|
||||
<style>
|
||||
div {
|
||||
width: 100px;
|
||||
height: 100px;
|
||||
border: 10px ridge;
|
||||
}
|
||||
</style>
|
||||
<div></div>
|
|
@ -75,9 +75,9 @@
|
|||
|
||||
// Single value, calc
|
||||
{ value: "calc(100.5)", isValid: true, expectedValue: "100.5", description: "Simple calc value" },
|
||||
{ value: "calc(1001)", isValid: false, description: "Out-of-range simple calc value" },
|
||||
{ value: "calc(1001)", isValid: true, description: "Out-of-range simple calc value (should be clamped)" },
|
||||
{ value: "calc(100.5*3 + 50.5)", isValid: true, expectedValue: "352", description: "Valid calc expression" },
|
||||
{ value: "calc(100.5*3 + 800)", isValid: false, description: "Valid calc expression with out-of-range value" },
|
||||
{ value: "calc(100.5*3 + 800)", isValid: true, description: "Valid calc expression with out-of-range value (should be clamped)" },
|
||||
{ value: "calc(100.5px + 50.5px)", isValid: false, description: "Valid calc expression with units" },
|
||||
|
||||
// Value range
|
||||
|
|
|
@ -15,8 +15,8 @@
|
|||
|
||||
runPropertyTests('color-interpolation', [
|
||||
{ syntax: 'auto' },
|
||||
{ syntax: 'sRGB' },
|
||||
{ syntax: 'linearRGB' },
|
||||
{ syntax: 'srgb' },
|
||||
{ syntax: 'linearrgb' },
|
||||
]);
|
||||
|
||||
</script>
|
||||
|
|
|
@ -161,9 +161,9 @@ Test is finished.
|
|||
promise_test(test_function, name, properties)
|
||||
```
|
||||
|
||||
`test_function` is a function that receives a test as an argument and returns a
|
||||
promise. The test completes when the returned promise resolves. The test fails
|
||||
if the returned promise rejects.
|
||||
`test_function` is a function that receives a test as an argument. It must
|
||||
return a promise. The test completes when the returned promise resolves. The
|
||||
test fails if the returned promise rejects.
|
||||
|
||||
E.g.:
|
||||
|
||||
|
|
|
@ -100,11 +100,15 @@ promise_test(
|
|||
function() {
|
||||
return true;
|
||||
},
|
||||
"promise_test with function that doesn't return a Promise");
|
||||
"promise_test with function that doesn't return a Promise (should FAIL)");
|
||||
|
||||
promise_test(function(){},
|
||||
"promise_test with function that doesn't return anything");
|
||||
|
||||
promise_test(
|
||||
function() { return { then: 23 }; },
|
||||
"promise_test that returns a non-thenable (should FAIL)");
|
||||
|
||||
promise_test(
|
||||
function() {
|
||||
return Promise.reject("Expected rejection");
|
||||
|
@ -170,15 +174,21 @@ promise_test(
|
|||
"properties": {}
|
||||
},
|
||||
{
|
||||
"status_string": "PASS",
|
||||
"name": "promise_test with function that doesn't return a Promise",
|
||||
"message": null,
|
||||
"status_string": "FAIL",
|
||||
"name": "promise_test with function that doesn't return a Promise (should FAIL)",
|
||||
"message": "promise_test: test body must return a 'thenable' object (received an object with no `then` method)",
|
||||
"properties": {}
|
||||
},
|
||||
{
|
||||
"status_string": "FAIL",
|
||||
"name": "promise_test with function that doesn't return anything",
|
||||
"message": "assert_not_equals: got disallowed value undefined",
|
||||
"message": "promise_test: test body must return a 'thenable' object (received undefined)",
|
||||
"properties": {}
|
||||
},
|
||||
{
|
||||
"status_string": "FAIL",
|
||||
"name": "promise_test that returns a non-thenable (should FAIL)",
|
||||
"message": "promise_test: test body must return a 'thenable' object (received an object with no `then` method)",
|
||||
"properties": {}
|
||||
},
|
||||
{
|
||||
|
|
|
@ -576,7 +576,12 @@ policies and contribution forms [3].
|
|||
var promise = test.step(func, test, test);
|
||||
|
||||
test.step(function() {
|
||||
assert_not_equals(promise, undefined);
|
||||
assert(!!promise, "promise_test", null,
|
||||
"test body must return a 'thenable' object (received ${value})",
|
||||
{value:promise});
|
||||
assert(typeof promise.then === "function", "promise_test", null,
|
||||
"test body must return a 'thenable' object (received an object with no `then` method)",
|
||||
null);
|
||||
});
|
||||
|
||||
// Test authors may use the `step` method within a
|
||||
|
|
|
@ -361,13 +361,13 @@ const gCSSProperties = {
|
|||
'color-interpolation': {
|
||||
// https://svgwg.org/svg2-draft/painting.html#ColorInterpolationProperty
|
||||
types: [
|
||||
{ type: 'discrete', options: [ [ 'linearRGB', 'auto' ] ] }
|
||||
{ type: 'discrete', options: [ [ 'linearrgb', 'auto' ] ] }
|
||||
]
|
||||
},
|
||||
'color-interpolation-filters': {
|
||||
// https://drafts.fxtf.org/filters-1/#propdef-color-interpolation-filters
|
||||
types: [
|
||||
{ type: 'discrete', options: [ [ 'sRGB', 'linearRGB' ] ] }
|
||||
{ type: 'discrete', options: [ [ 'srgb', 'linearrgb' ] ] }
|
||||
]
|
||||
},
|
||||
'column-count': {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue