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

Side by Side Diff: LayoutTests/transitions/transition-currentcolor.html

Issue 1113173003: Web Animations: Update naming to reflect spec changes (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: No, really. Created 5 years, 7 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 | Annotate | Revision Log
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 div { 5 div {
6 border-left-color: currentColor; 6 border-left-color: currentColor;
7 border-top-color: initial; 7 border-top-color: initial;
8 transition: 100s; 8 transition: 100s;
9 } 9 }
10 </style> 10 </style>
11 <div id="target1"></div> 11 <div id="target1"></div>
12 <div id="target2"></div> 12 <div id="target2"></div>
13 <script> 13 <script>
14 var test1 = async_test("A property set to currentColor shouldn't transition when color changes"); 14 var test1 = async_test("A property set to currentColor shouldn't transition when color changes");
15 var test2 = async_test("A property set should transition from currentColor to an explicit color"); 15 var test2 = async_test("A property set should transition from currentColor to an explicit color");
16 requestAnimationFrame(function() { 16 requestAnimationFrame(function() {
17 target1.style.color = "orange"; 17 target1.style.color = "orange";
18 target2.style.borderLeftColor = "orange"; 18 target2.style.borderLeftColor = "orange";
19 requestAnimationFrame(function() { 19 requestAnimationFrame(function() {
20 // Only 'color' should transition 20 // Only 'color' should transition
21 test1.step(function() { assert_equals(target1.getAnimationPlayers().length, 1); }); 21 test1.step(function() { assert_equals(target1.getAnimations().length, 1); }) ;
22 test2.step(function() { assert_equals(target2.getAnimationPlayers().length, 1); }); 22 test2.step(function() { assert_equals(target2.getAnimations().length, 1); }) ;
23 test1.done(); 23 test1.done();
24 test2.done(); 24 test2.done();
25 }); 25 });
26 }); 26 });
27 </script> 27 </script>
OLDNEW
« no previous file with comments | « LayoutTests/transitions/repeated-firing-background-color.html ('k') | LayoutTests/transitions/webkit-clip-path-equality.html » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698