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

Side by Side Diff: third_party/WebKit/LayoutTests/animations/reject-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: Move two additional tests 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 <style> 4 <style>
5 5
6 div { font-size: 10px; } 6 div { font-size: 10px; }
7 7
8 </style> 8 </style>
9 <div id='element'></div> 9 <div id='element'></div>
10 <script> 10 <script>
11 11
12 var element = document.getElementById('element'); 12 var element = document.getElementById('element');
13 13
14 test(function() { 14 test(function() {
15 element.animate({'font-size': '20px'}, {fill: 'forwards'}); 15 element.animate({'font-size': '20px'}, {fill: 'forwards'});
16 assert_equals(getComputedStyle(element).fontSize, '10px'); 16 assert_equals(getComputedStyle(element).fontSize, '10px');
17 17
18 element.animate({'fontSize': '30px'}, {fill: 'forwards'}); 18 element.animate({'fontSize': '30px'}, {fill: 'forwards'});
19 assert_equals(getComputedStyle(element).fontSize, '30px'); 19 assert_equals(getComputedStyle(element).fontSize, '30px');
20 }, 'Hyphenated propery names are ignored.'); 20 }, 'Hyphenated propery names are ignored.');
alancutter (OOO until 2018) 2016/06/29 05:47:25 This should be part of WPT.
21 21
22 </script> 22 </script>
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698