| Index: third_party/WebKit/LayoutTests/animations/step-middle-keyword-timing-function-deprecated.html
|
| diff --git a/third_party/WebKit/LayoutTests/animations/step-middle-keyword-timing-function-deprecated.html b/third_party/WebKit/LayoutTests/animations/step-middle-keyword-timing-function-deprecated.html
|
| new file mode 100644
|
| index 0000000000000000000000000000000000000000..eeee64da0d76f366a86366b067a7456980c5cc5a
|
| --- /dev/null
|
| +++ b/third_party/WebKit/LayoutTests/animations/step-middle-keyword-timing-function-deprecated.html
|
| @@ -0,0 +1,24 @@
|
| +<!DOCTYPE html>
|
| +<script src="../resources/testharness.js"></script>
|
| +<script src="../resources/testharnessreport.js"></script>
|
| +<script>
|
| +'use strict';
|
| +// From WebFeature.h
|
| +var kDeprecatedTimingFunctionStepMiddle = 2024;
|
| +
|
| +test(() => {
|
| + assert_false(internals.isUseCounted(document, kDeprecatedTimingFunctionStepMiddle));
|
| + var element = document.createElement('div');
|
| + element.style.animationTimingFunction = 'step-middle';
|
| + document.documentElement.appendChild(element);
|
| + assert_equals(getComputedStyle(element).animationTimingFunction, 'ease');
|
| + assert_false(internals.isUseCounted(document, kDeprecatedTimingFunctionStepMiddle));
|
| +}, 'The step-middle timing function does not function outside of Web Animations.');
|
| +
|
| +test(() => {
|
| + assert_false(internals.isUseCounted(document, kDeprecatedTimingFunctionStepMiddle));
|
| + document.documentElement.animate([], { easing: 'step-middle' });
|
| + assert_true(internals.isUseCounted(document, kDeprecatedTimingFunctionStepMiddle));
|
| +}, 'The step-middle timing function is deprecated in Web Animations.');
|
| +
|
| +</script>
|
|
|