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

Unified Diff: third_party/WebKit/LayoutTests/animations/step-middle-keyword-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
« no previous file with comments | « no previous file | third_party/WebKit/LayoutTests/animations/step-middle-keyword-timing-function-deprecated-expected.txt » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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>
« no previous file with comments | « no previous file | third_party/WebKit/LayoutTests/animations/step-middle-keyword-timing-function-deprecated-expected.txt » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698