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

Side by Side Diff: third_party/WebKit/LayoutTests/animations/multiple-same-animations-asan-crash.html

Issue 1402143004: Preserve running CSS Animations across changes to animation styles according to same name index (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Semilcelon Created 5 years, 2 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
« no previous file with comments | « no previous file | third_party/WebKit/LayoutTests/animations/multiple-same-name-css-animations.html » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 <script src="../resources/testharness.js"></script> 1 <script src="../resources/testharness.js"></script>
2 <script src="../resources/testharnessreport.js"></script> 2 <script src="../resources/testharnessreport.js"></script>
3 <style> 3 <style>
4 #target { 4 #target {
5 animation: test 1s, test 2s; 5 animation: test 1s, test 2s;
6 } 6 }
7 @keyframes test { 7 @keyframes test {
8 to { color: green; } 8 to { color: green; }
9 } 9 }
10 </style> 10 </style>
11 <div id="target"></div> 11 <div id="target"></div>
12 <script> 12 <script>
13 var asyncHandle = async_test('Don\'t crash ASAN when updating style with an elem ent that has two animations with the same keyframes name and different timings.' ); 13 var asyncHandle = async_test('Don\'t crash ASAN when updating style with an elem ent that has two animations with the same keyframes name and different timings.' );
14 // Wait a frame to let the animations get created. 14 // Wait a frame to let the animations get created.
15 requestAnimationFrame(function() { 15 requestAnimationFrame(function() {
16 // Force the next style recalc to be non-animation triggered. 16 // Force the next style recalc to be non-animation triggered.
17 target.style.color = 'blue'; 17 target.style.color = 'blue';
18 requestAnimationFrame(function() { 18 requestAnimationFrame(function() {
19 // Clear the running animations to avoid hitting a debug assertion. (crbug.c om/487092)
20 target.style.animation = 'none';
21 asyncHandle.done(); 19 asyncHandle.done();
22 }); 20 });
23 }); 21 });
24 </script> 22 </script>
OLDNEW
« no previous file with comments | « no previous file | third_party/WebKit/LayoutTests/animations/multiple-same-name-css-animations.html » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698