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

Side by Side Diff: third_party/WebKit/LayoutTests/animations/usecounters/step-middle-keyword-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
1 <!DOCTYPE html> 1 <!DOCTYPE html>
2 <script src="../../resources/testharness.js"></script> 2 <script src="../../resources/testharness.js"></script>
3 <script src="../../resources/testharnessreport.js"></script> 3 <script src="../../resources/testharnessreport.js"></script>
4 <script> 4 <script>
5 'use strict'; 5 'use strict';
6 // From WebFeature.h 6 // From WebFeature.h
7 var kDeprecatedTimingFunctionStepMiddle = 2024; 7 var kDeprecatedTimingFunctionStepMiddle = 2024;
8 8
9 test(() => { 9 test(() => {
10 assert_false(internals.isUseCounted(document, kDeprecatedTimingFunctionStepMid dle)); 10 assert_false(internals.isUseCounted(document, kDeprecatedTimingFunctionStepMid dle));
11 var element = document.createElement('div'); 11 var element = document.createElement('div');
12 element.style.animationTimingFunction = 'step-middle'; 12 element.style.animationTimingFunction = 'step-middle';
13 document.documentElement.appendChild(element); 13 document.documentElement.appendChild(element);
14 assert_equals(getComputedStyle(element).animationTimingFunction, 'ease'); 14 assert_equals(getComputedStyle(element).animationTimingFunction, 'ease');
15 assert_false(internals.isUseCounted(document, kDeprecatedTimingFunctionStepMid dle)); 15 assert_false(internals.isUseCounted(document, kDeprecatedTimingFunctionStepMid dle));
16 }, 'The step-middle timing function does not function outside of Web Animations. '); 16 }, 'The step-middle timing function does not function outside of Web Animations. ');
17 17
18 test(() => { 18 test(() => {
19 assert_false(internals.isUseCounted(document, kDeprecatedTimingFunctionStepMid dle)); 19 assert_false(internals.isUseCounted(document, kDeprecatedTimingFunctionStepMid dle));
20 document.documentElement.animate([], { easing: 'step-middle' }); 20 document.documentElement.animate([], { easing: 'step-middle' });
21 assert_true(internals.isUseCounted(document, kDeprecatedTimingFunctionStepMidd le)); 21 assert_true(internals.isUseCounted(document, kDeprecatedTimingFunctionStepMidd le));
22 }, 'The step-middle timing function is deprecated in Web Animations.'); 22 }, 'The step-middle timing function is deprecated in Web Animations.');
23 23
24 </script> 24 </script>
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698