forked from nwjs/chromium.src
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Update DevTools animation timeline to handle TransitionKeyframeEffect…
…Models CSS Transitions was refactored to use TransitionKeyframes instead of AnimatableValueKeyframes in https://codereview.chromium.org/2680923005. This patch updates the DevTools animation timeline to handle the new data type for transitions. BUG=698669 Review-Url: https://codereview.chromium.org/2732223002 Cr-Commit-Position: refs/heads/master@{#455333} (cherry picked from commit a7a57ec) Review-Url: https://codereview.chromium.org/2737263003 . Cr-Commit-Position: refs/branch-heads/3029@{nwjs#78} Cr-Branched-From: 939b32e-refs/heads/master@{#454471}
- Loading branch information
1 parent
c71044e
commit 3b90437
Showing
3 changed files
with
56 additions
and
3 deletions.
There are no files selected for viewing
3 changes: 3 additions & 0 deletions
3
.../WebKit/LayoutTests/inspector/animation/animation-transition-setTiming-crash-expected.txt
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,3 @@ | ||
This test passes if it does not crash. | ||
|
||
|
42 changes: 42 additions & 0 deletions
42
third_party/WebKit/LayoutTests/inspector/animation/animation-transition-setTiming-crash.html
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -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"; | ||
} | ||
|
||
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> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters