| 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>
|
|
|