Bug 1448700 [wpt PR 10171] - Web Animations: remove timing objects, a=testonly

Automatic update from web-platform-testsWeb Animations: remove timing objects

The upstream spec has removed the 'timing' objects and replaced them
with updateTiming/getTiming methods on AnimationEffect. It also removed
and renamed a few timing idl interfaces; see the bug for full details.

This CL also refactors the timing input parsing, aiming to make the
public TimingInput API match what the spec requires and not expose
other unnecessary methods.

See https://github.com/w3c/csswg-drafts/pull/2432 for the spec change.

Bug: 823384, 823386
Change-Id: I40c82e46be29c16e2e4b53d69bbadc95c8bff324
Reviewed-on: https://chromium-review.googlesource.com/975923
Reviewed-by: Robert Flack <flackr@chromium.org>
Reviewed-by: Xida Chen <xidachen@chromium.org>
Commit-Queue: Stephen McGruer <smcgruer@chromium.org>
Cr-Commit-Position: refs/heads/master@{#548403}

wpt-commits: f6c1d7b9aafaa94ab53239634e1bbc433e32adb4
wpt-pr: 10171
wpt-commits: f6c1d7b9aafaa94ab53239634e1bbc433e32adb4
wpt-pr: 10171
This commit is contained in:
Stephen McGruer 2018-04-09 22:15:09 +00:00 committed by James Graham
parent 50264a81e5
commit c8b5418c5b
2 changed files with 2 additions and 2 deletions

View File

@ -518304,7 +518304,7 @@
"support"
],
"css/css-timing/cubic-bezier-timing-functions-output.html": [
"77a45437209844f7e5128bd6aa2efeeacf876187",
"2d60e1bcdad1f454373ecde2367bb9a9a223cd12",
"testharness"
],
"css/css-timing/frames-timing-functions-output.html": [

View File

@ -15,7 +15,7 @@ href="https://drafts.csswg.org/css-timing/#cubic-bezier-timing-functions">
function assert_style_left_at(animation, time, easingFunction) {
animation.currentTime = time;
var portion = time / animation.effect.timing.duration;
var portion = time / animation.effect.getTiming()['duration'];
assert_approx_equals(pxToNum(getComputedStyle(animation.effect.target).left),
easingFunction(portion) * 100,
0.01,