Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(896)

Unified Diff: third_party/WebKit/LayoutTests/animations/step-middle-timing-function-deprecated.html

Issue 2927123005: Deprecate step timing with position 'middle' (Closed)
Patch Set: Rebase Created 3 years, 6 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
Index: third_party/WebKit/LayoutTests/animations/step-middle-timing-function-deprecated.html
diff --git a/third_party/WebKit/LayoutTests/animations/step-middle-timing-function-deprecated.html b/third_party/WebKit/LayoutTests/animations/step-middle-timing-function-deprecated.html
new file mode 100644
index 0000000000000000000000000000000000000000..bda90b46667e7965e9c67ed88f8aefb2ee8eb272
--- /dev/null
+++ b/third_party/WebKit/LayoutTests/animations/step-middle-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 = 'steps(3, middle)';
+ document.documentElement.appendChild(element);
+ assert_equals(getComputedStyle(element).animationTimingFunction, 'ease');
+ assert_false(internals.isUseCounted(document, kDeprecatedTimingFunctionStepMiddle));
+}, 'The step timing function with step position \'middle\' does not function outside of Web Animations.');
+
+test(() => {
+ assert_false(internals.isUseCounted(document, kDeprecatedTimingFunctionStepMiddle));
+ document.documentElement.animate([], { easing: 'steps(3, middle)' });
+ assert_true(internals.isUseCounted(document, kDeprecatedTimingFunctionStepMiddle));
+}, 'The step timing function with step position \'middle\' is deprecated in Web Animations.');
+
+</script>

Powered by Google App Engine
This is Rietveld 408576698