Throw TypeError if easing string is invalid.
Currently, if an animation is created with options containing an
invalid value for 'easing', it is ignored and the default easing is
used instead. This patch changes the implementation to throw a
TypeError as specced
(
http://w3c.github.io/web-animations/#dom-animationeffecttiming-easing).
As described in the bug referenced below, we are temporarily exempting
"function (a){return a}" from throwing a TypeError. A TODO is added to
remove this exemption for M54.
This patch also adds a layout test animation-effect-timing-easing.html
that is equivalent to the unit test ParseAnimationTimingFunction
in AnimationInputHelpersTest.cpp. This enables the test results to
be compared against those of other browsers. Note that the test is
therefore duplicated because the unit test is not removed.
BUG=
601672
Committed:
https://crrev.com/84a58b756e4c8c2746cdfc8f326c11f06d0b2865
Cr-Commit-Position: refs/heads/master@{#387250}