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

Unified Diff: third_party/WebKit/LayoutTests/inspector/animation/animation-transition-setTiming-crash.html

Issue 2732223002: Update DevTools animation timeline to handle TransitionKeyframeEffectModels (Closed)
Patch Set: timout-expectations Created 3 years, 9 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 side-by-side diff with in-line comments
Download patch
Index: third_party/WebKit/LayoutTests/inspector/animation/animation-transition-setTiming-crash.html
diff --git a/third_party/WebKit/LayoutTests/inspector/animation/animation-transition-setTiming-crash.html b/third_party/WebKit/LayoutTests/inspector/animation/animation-transition-setTiming-crash.html
new file mode 100644
index 0000000000000000000000000000000000000000..88f3a898159abb940adf6ba31297d070bd68e6c0
--- /dev/null
+++ b/third_party/WebKit/LayoutTests/inspector/animation/animation-transition-setTiming-crash.html
@@ -0,0 +1,45 @@
+<html>
+<head>
+<style>
+#node {
+ transition: left 100s;
+ left: 0px;
+}
+</style>
+<script src="../../http/tests/inspector/inspector-test.js"></script>
+<script src="../../http/tests/inspector/elements-test.js"></script>
+<script>
+function startCSSTransition() {
+ // Force style recalcs that will trigger a transition.
+ getComputedStyle(node).left;
+ node.style.left = "100px";
+ getComputedStyle(node).left;
+}
+
+var initialize_Animations = function() {
+ InspectorTest.preloadModule("animation");
+}
+
+function test() {
+ UI.viewManager.showView("animations");
+ var timeline = self.runtime.sharedInstance(Animation.AnimationTimeline);
+ InspectorTest.evaluateInPage("startCSSTransition()");
+ InspectorTest.waitForAnimationAdded(animationAdded);
+ function animationAdded(group) {
+ group.animations()[0].setTiming(1, 0);
+ InspectorTest.completeTest();
+ }
+}
+
+</script>
+</head>
+
+<body onload="runTest()">
+<p>
+This test passes if it does not crash.
+</p>
+
+<div id="node"></div>
+
+</body>
+</html>

Powered by Google App Engine
This is Rietveld 408576698