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

Side by Side Diff: third_party/WebKit/LayoutTests/animations/deprecated-hyphen.html

Issue 2093423002: Move web-animations-api tests not being upstreamed (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Undo move of reject-hyphen.html Created 4 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 <div id="target"></div> 4 <div id="target"></div>
5 <script> 5 <script>
6 'use strict'; 6 'use strict';
7 7
8 test(() => { 8 test(() => {
9 var WebAnimationHyphenatedProperty = 1243; // From UseCounter.h 9 var WebAnimationHyphenatedProperty = 1243; // From UseCounter.h
10 var target = document.getElementById('target'); 10 var target = document.getElementById('target');
11 var timing = {fill: 'both'}; 11 var timing = {fill: 'both'};
12 target.animate([{'borderRadius': "1em"}], timing); 12 target.animate([{'borderRadius': "1em"}], timing);
13 assert_false(internals.isUseCounted(document, WebAnimationHyphenatedProperty )); 13 assert_false(internals.isUseCounted(document, WebAnimationHyphenatedProperty ));
14 target.animate([{'border-radius': "1em"}], timing); 14 target.animate([{'border-radius': "1em"}], timing);
15 assert_true(internals.isUseCounted(document, WebAnimationHyphenatedProperty) ); 15 assert_true(internals.isUseCounted(document, WebAnimationHyphenatedProperty) );
16 }, 'Calling element.animate() with hyphenated property is use counted.'); 16 }, 'Calling element.animate() with hyphenated property is use counted.');
17 </script> 17 </script>
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698