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

Side by Side Diff: third_party/WebKit/LayoutTests/animations/usecounters/function-easing-use-counters-linear.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 UseCounter.h 6 // From UseCounter.h
7 var WebAnimationsEasingAsFunctionLinear = 1295; 7 var WebAnimationsEasingAsFunctionLinear = 1295;
8 var WebAnimationsEasingAsFunctionOther = 1296; 8 var WebAnimationsEasingAsFunctionOther = 1296;
9 9
10 test(() => { 10 test(() => {
(...skipping 16 matching lines...) Expand all
27 // This linear function value is the one expected from uses of the unpatched 27 // This linear function value is the one expected from uses of the unpatched
28 // Web Animations polyfill (i.e. old versions lacking 28 // Web Animations polyfill (i.e. old versions lacking
29 // https://github.com/web-animations/web-animations-next/pull/423). 29 // https://github.com/web-animations/web-animations-next/pull/423).
30 assert_throws( 30 assert_throws(
31 {name: 'TypeError'}, 31 {name: 'TypeError'},
32 function() { document.documentElement.animate([], { easing: 'function (a){ return a}' }) }); 32 function() { document.documentElement.animate([], { easing: 'function (a){ return a}' }) });
33 assert_true(internals.isUseCounted(document, WebAnimationsEasingAsFunctionLine ar)); 33 assert_true(internals.isUseCounted(document, WebAnimationsEasingAsFunctionLine ar));
34 assert_false(internals.isUseCounted(document, WebAnimationsEasingAsFunctionOth er)); 34 assert_false(internals.isUseCounted(document, WebAnimationsEasingAsFunctionOth er));
35 }, 'A specific linear function for easing is counted in WebAnimationsEasingAsFun ctionLinear.'); 35 }, 'A specific linear function for easing is counted in WebAnimationsEasingAsFun ctionLinear.');
36 </script> 36 </script>
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698