Update web-platform-tests to revision ee82278e15570e573d87fb80179ff8231b6db61a

This commit is contained in:
WPT Sync Bot 2018-06-03 21:07:04 -04:00
parent d23bc4f1a4
commit 83e2dc11b0
278 changed files with 13348 additions and 10515 deletions

View file

@ -17,41 +17,43 @@ html {
<script>
'use strict';
for (const property in gCSSProperties) {
if (!isSupported(property)) {
continue;
}
const setupFunction = gCSSProperties[property].setup;
for (const animationType of gCSSProperties[property].types) {
let typeObject;
let animationTypeString;
if (typeof animationType === 'string') {
typeObject = types[animationType];
animationTypeString = animationType;
} else if (typeof animationType === 'object' &&
animationType.type && typeof animationType.type === 'string') {
typeObject = types[animationType.type];
animationTypeString = animationType.type;
test(function() {
for (const property in gCSSProperties) {
if (!isSupported(property)) {
continue;
}
// First, test that the animation type object has 'testAccumulation'.
// We use test() function here so that we can continue the remainder tests
// even if this test fails.
test(t => {
assert_own_property(typeObject, 'testAccumulation', animationTypeString +
' should have testAccumulation property');
assert_equals(typeof typeObject.testAccumulation, 'function',
'testAccumulation method should be a function');
}, `${property} (type: ${animationTypeString}) has testAccumulation`
+ ' function');
const setupFunction = gCSSProperties[property].setup;
for (const animationType of gCSSProperties[property].types) {
let typeObject;
let animationTypeString;
if (typeof animationType === 'string') {
typeObject = types[animationType];
animationTypeString = animationType;
} else if (typeof animationType === 'object' &&
animationType.type && typeof animationType.type === 'string') {
typeObject = types[animationType.type];
animationTypeString = animationType.type;
}
if (typeObject.testAccumulation &&
typeof typeObject.testAccumulation === 'function') {
typeObject.testAccumulation(property,
setupFunction,
animationType.options);
// First, test that the animation type object has 'testAccumulation'.
// We use test() function here so that we can continue the remainder tests
// even if this test fails.
test(t => {
assert_own_property(typeObject, 'testAccumulation', animationTypeString +
' should have testAccumulation property');
assert_equals(typeof typeObject.testAccumulation, 'function',
'testAccumulation method should be a function');
}, `${property} (type: ${animationTypeString}) has testAccumulation`
+ ' function');
if (typeObject.testAccumulation &&
typeof typeObject.testAccumulation === 'function') {
typeObject.testAccumulation(property,
setupFunction,
animationType.options);
}
}
}
}
}, 'Setup');
</script>

View file

@ -17,41 +17,43 @@ html {
<script>
'use strict';
for (const property in gCSSProperties) {
if (!isSupported(property)) {
continue;
}
const setupFunction = gCSSProperties[property].setup;
for (const animationType of gCSSProperties[property].types) {
let typeObject;
let animationTypeString;
if (typeof animationType === 'string') {
typeObject = types[animationType];
animationTypeString = animationType;
} else if (typeof animationType === 'object' &&
animationType.type && typeof animationType.type === 'string') {
typeObject = types[animationType.type];
animationTypeString = animationType.type;
test(function() {
for (const property in gCSSProperties) {
if (!isSupported(property)) {
continue;
}
// First, test that the animation type object has 'testAddition'.
// We use test() function here so that we can continue the remainder tests
// even if this test fails.
test(t => {
assert_own_property(typeObject, 'testAddition', animationTypeString +
' should have testAddition property');
assert_equals(typeof typeObject.testAddition, 'function',
'testAddition method should be a function');
}, `${property} (type: ${animationTypeString}) has testAddition`
+ ' function');
const setupFunction = gCSSProperties[property].setup;
for (const animationType of gCSSProperties[property].types) {
let typeObject;
let animationTypeString;
if (typeof animationType === 'string') {
typeObject = types[animationType];
animationTypeString = animationType;
} else if (typeof animationType === 'object' &&
animationType.type && typeof animationType.type === 'string') {
typeObject = types[animationType.type];
animationTypeString = animationType.type;
}
if (typeObject.testAddition &&
typeof typeObject.testAddition === 'function') {
typeObject.testAddition(property,
setupFunction,
animationType.options);
// First, test that the animation type object has 'testAddition'.
// We use test() function here so that we can continue the remainder tests
// even if this test fails.
test(t => {
assert_own_property(typeObject, 'testAddition', animationTypeString +
' should have testAddition property');
assert_equals(typeof typeObject.testAddition, 'function',
'testAddition method should be a function');
}, `${property} (type: ${animationTypeString}) has testAddition`
+ ' function');
if (typeObject.testAddition &&
typeof typeObject.testAddition === 'function') {
typeObject.testAddition(property,
setupFunction,
animationType.options);
}
}
}
}
}, "Setup");
</script>

View file

@ -17,41 +17,43 @@ html {
<script>
'use strict';
for (const property in gCSSProperties) {
if (!isSupported(property)) {
continue;
}
const setupFunction = gCSSProperties[property].setup;
for (const animationType of gCSSProperties[property].types) {
let typeObject;
let animationTypeString;
if (typeof animationType === 'string') {
typeObject = types[animationType];
animationTypeString = animationType;
} else if (typeof animationType === 'object' &&
animationType.type && typeof animationType.type === 'string') {
typeObject = types[animationType.type];
animationTypeString = animationType.type;
test(function() {
for (const property in gCSSProperties) {
if (!isSupported(property)) {
continue;
}
// First, test that the animation type object has 'testInterpolation'.
// We use test() function() here so that we can continue the remainder tests
// even if this test fails.
test(t => {
assert_own_property(typeObject, 'testInterpolation', animationTypeString +
' should have testInterpolation property');
assert_equals(typeof typeObject.testInterpolation, 'function',
'testInterpolation method should be a function');
}, `${property} (type: ${animationTypeString}) has testInterpolation`
+ ' function');
const setupFunction = gCSSProperties[property].setup;
for (const animationType of gCSSProperties[property].types) {
let typeObject;
let animationTypeString;
if (typeof animationType === 'string') {
typeObject = types[animationType];
animationTypeString = animationType;
} else if (typeof animationType === 'object' &&
animationType.type && typeof animationType.type === 'string') {
typeObject = types[animationType.type];
animationTypeString = animationType.type;
}
if (typeObject.testInterpolation &&
typeof typeObject.testInterpolation === 'function') {
typeObject.testInterpolation(property,
setupFunction,
animationType.options);
// First, test that the animation type object has 'testInterpolation'.
// We use test() function() here so that we can continue the remainder tests
// even if this test fails.
test(t => {
assert_own_property(typeObject, 'testInterpolation', animationTypeString +
' should have testInterpolation property');
assert_equals(typeof typeObject.testInterpolation, 'function',
'testInterpolation method should be a function');
}, `${property} (type: ${animationTypeString}) has testInterpolation`
+ ' function');
if (typeObject.testInterpolation &&
typeof typeObject.testInterpolation === 'function') {
typeObject.testInterpolation(property,
setupFunction,
animationType.options);
}
}
}
}
}, 'Setup');
</script>

View file

@ -1556,6 +1556,7 @@ function createTestElement(t, setup) {
function isSupported(property) {
const testKeyframe = new TestKeyframe(propertyToIDL(property));
assert_not_equals(window.KeyframeEffect, undefined, 'window.KeyframeEffect');
try {
// Since TestKeyframe returns 'undefined' for |property|,
// the KeyframeEffect constructor will throw