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

Unified Diff: third_party/WebKit/LayoutTests/animations/animation-css-cancel-update-crash.html

Issue 1500443002: CSS Animations: Fix crash where update isn't applied (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 5 years 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 side-by-side diff with in-line comments
Download patch
« no previous file with comments | « no previous file | third_party/WebKit/Source/core/animation/css/CSSAnimations.cpp » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: third_party/WebKit/LayoutTests/animations/animation-css-cancel-update-crash.html
diff --git a/third_party/WebKit/LayoutTests/animations/animation-css-cancel-update-crash.html b/third_party/WebKit/LayoutTests/animations/animation-css-cancel-update-crash.html
new file mode 100644
index 0000000000000000000000000000000000000000..6ab6a4fbf29bba2cfc10eef38596527c8e4b1f70
--- /dev/null
+++ b/third_party/WebKit/LayoutTests/animations/animation-css-cancel-update-crash.html
@@ -0,0 +1,23 @@
+<!DOCTYPE html>
+<script src="../resources/testharness.js"></script>
+<script src="../resources/testharnessreport.js"></script>
+<style>
+ @keyframes anim {
+ from { background-color: blue; }
+ to { background-color: red; }
+ }
+
+ @keyframes anim2 {
+ from { opacity: 0; }
+ to { opacity: 1; }
+ }
+</style>
+<div id="target"></div>
+<script>
+ test(function() {
+ target.style.animation = "anim 1s, anim2 1s";
+ target.offsetTop;
+ target.style.animation = "anim2 2s";
+ target.offsetTop;
+ }, "Check that cancelling one running animation and updating another doesn't crash");
+</script>
« no previous file with comments | « no previous file | third_party/WebKit/Source/core/animation/css/CSSAnimations.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698