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

Unified Diff: LayoutTests/inspector/animation/animation-timeline.html

Issue 1218433007: Devtools Animations: Add buffer and effect selection to animation timeline (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Fix test Created 5 years, 3 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
« no previous file with comments | « LayoutTests/http/tests/inspector/elements-test.js ('k') | Source/devtools/devtools.gypi » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: LayoutTests/inspector/animation/animation-timeline.html
diff --git a/LayoutTests/inspector/animation/animation-timeline.html b/LayoutTests/inspector/animation/animation-timeline.html
index e3f178ff71e5b24b20ea33833b7582c745c6482f..63e8abd28b3cd38bd8c46220300b994a13ffd286 100644
--- a/LayoutTests/inspector/animation/animation-timeline.html
+++ b/LayoutTests/inspector/animation/animation-timeline.html
@@ -21,7 +21,6 @@
<script src="../../http/tests/inspector/inspector-test.js"></script>
<script src="../../http/tests/inspector/elements-test.js"></script>
<script>
-
var player;
function startAnimationWithDelay()
@@ -69,7 +68,7 @@ function test()
WebInspector.AnimationTimeline.prototype.width = function() { return 1000; }
// Override animation color for testing
// FIXME: Set animation name of Web Animation instead; not supported yet
- WebInspector.AnimationUI.prototype._color = function() { return "black"; }
+ WebInspector.AnimationUI.Color = function() { return "black"; }
function step1()
{
@@ -77,8 +76,10 @@ function test()
InspectorTest.evaluateInPage("startAnimationWithDelay()");
}
- function step2()
+ function step2(group)
{
+ timeline._selectAnimationGroup(group);
+ timeline._redraw();
InspectorTest.addResult(">>>> Animation with start delay only");
InspectorTest.dumpAnimationTimeline(timeline);
timeline._reset();
@@ -86,8 +87,10 @@ function test()
InspectorTest.evaluateInPage("startAnimationWithEndDelay()");
}
- function step3()
+ function step3(group)
{
+ timeline._selectAnimationGroup(group);
+ timeline._redraw();
InspectorTest.addResult(">>>> Animation with start and end delay");
InspectorTest.dumpAnimationTimeline(timeline);
InspectorTest.addSniffer(WebInspector.AnimationTimeline.prototype, "_cancelAnimation", step4);
@@ -105,8 +108,10 @@ function test()
InspectorTest.evaluateInPage("startAnimationWithStepTiming()");
}
- function step5()
+ function step5(group)
{
+ timeline._selectAnimationGroup(group);
+ timeline._redraw();
InspectorTest.addResult(">>>> Animation with step timing function");
InspectorTest.dumpAnimationTimeline(timeline);
timeline._reset();
@@ -114,8 +119,10 @@ function test()
InspectorTest.evaluateInPage("startCSSAnimation()");
}
- function step6()
+ function step6(group)
{
+ timeline._selectAnimationGroup(group);
+ timeline._redraw();
InspectorTest.addResult(">>>> CSS animation started");
InspectorTest.dumpAnimationTimeline(timeline);
timeline._reset();
@@ -123,8 +130,10 @@ function test()
InspectorTest.evaluateInPage("startCSSTransition()");
}
- function step7()
+ function step7(group)
{
+ timeline._selectAnimationGroup(group);
+ timeline._redraw();
InspectorTest.addResult(">>>> CSS transition started");
InspectorTest.dumpAnimationTimeline(timeline);
InspectorTest.completeTest();
« no previous file with comments | « LayoutTests/http/tests/inspector/elements-test.js ('k') | Source/devtools/devtools.gypi » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698