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

Side by Side Diff: third_party/WebKit/LayoutTests/animations/usecounters/function-easing-use-counters-other1.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(() => {
11 assert_throws( 11 assert_throws(
12 {name: 'TypeError'}, 12 {name: 'TypeError'},
13 function() { document.documentElement.animate([], { easing: 'function (x){ return x}' }) }); 13 function() { document.documentElement.animate([], { easing: 'function (x){ return x}' }) });
14 assert_false(internals.isUseCounted(document, WebAnimationsEasingAsFunctionLin ear)); 14 assert_false(internals.isUseCounted(document, WebAnimationsEasingAsFunctionLin ear));
15 assert_true(internals.isUseCounted(document, WebAnimationsEasingAsFunctionOthe r)); 15 assert_true(internals.isUseCounted(document, WebAnimationsEasingAsFunctionOthe r));
16 }, 'Any linear function for easing other than "function (a){return a}" is counte d in WebAnimationsEasingAsFunctionOther.'); 16 }, 'Any linear function for easing other than "function (a){return a}" is counte d in WebAnimationsEasingAsFunctionOther.');
17 </script> 17 </script>
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698