Chromium Code Reviews| 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..df734efafa4fd26b5e37705d4239df0ed8f68c13 |
| --- /dev/null |
| +++ b/third_party/WebKit/LayoutTests/inspector/animation/animation-transition-setTiming-crash.html |
| @@ -0,0 +1,42 @@ |
| +<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() { |
| + node.style.left = '100px'; |
|
samli
2017/03/07 17:54:25
Nit: double quotes "100px"
|
| +} |
| + |
| +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> |