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

Side by Side Diff: third_party/WebKit/LayoutTests/animations/usecounter-tests/step-middle-timing-function-deprecated.html

Issue 2971753002: Rename usecounter-tests directory to usecounters (Closed)
Patch Set: Created 3 years, 5 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 unified diff | Download patch
OLDNEW
(Empty)
1 <!DOCTYPE html>
2 <script src="../../resources/testharness.js"></script>
3 <script src="../../resources/testharnessreport.js"></script>
4 <script>
5 'use strict';
6 // From WebFeature.h
7 var kDeprecatedTimingFunctionStepMiddle = 2024;
8
9 test(() => {
10 assert_false(internals.isUseCounted(document, kDeprecatedTimingFunctionStepMid dle));
11 var element = document.createElement('div');
12 element.style.animationTimingFunction = 'steps(3, middle)';
13 document.documentElement.appendChild(element);
14 assert_equals(getComputedStyle(element).animationTimingFunction, 'ease');
15 assert_false(internals.isUseCounted(document, kDeprecatedTimingFunctionStepMid dle));
16 }, 'The step timing function with step position \'middle\' does not function out side of Web Animations.');
17
18 test(() => {
19 assert_false(internals.isUseCounted(document, kDeprecatedTimingFunctionStepMid dle));
20 document.documentElement.animate([], { easing: 'steps(3, middle)' });
21 assert_true(internals.isUseCounted(document, kDeprecatedTimingFunctionStepMidd le));
22 }, 'The step timing function with step position \'middle\' is deprecated in Web Animations.');
23
24 </script>
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698