| Index: third_party/WebKit/LayoutTests/external/wpt/web-animations/interfaces/Animatable/animate.html
|
| diff --git a/third_party/WebKit/LayoutTests/external/wpt/web-animations/interfaces/Animatable/animate.html b/third_party/WebKit/LayoutTests/external/wpt/web-animations/interfaces/Animatable/animate.html
|
| index a54298aa4f4f6a55d957b43f858c02c24bbbe6eb..6c5dae0717a0e996991089cbc17cfc5956a652c2 100644
|
| --- a/third_party/WebKit/LayoutTests/external/wpt/web-animations/interfaces/Animatable/animate.html
|
| +++ b/third_party/WebKit/LayoutTests/external/wpt/web-animations/interfaces/Animatable/animate.html
|
| @@ -5,6 +5,7 @@
|
| <script src="/resources/testharness.js"></script>
|
| <script src="/resources/testharnessreport.js"></script>
|
| <script src="../../testcommon.js"></script>
|
| +<script src="../../resources/easing-tests.js"></script>
|
| <script src="../../resources/keyframe-utils.js"></script>
|
| <body>
|
| <div id="log"></div>
|
| @@ -96,6 +97,15 @@ gInvalidKeyframesTests.forEach(function(subtest) {
|
| }, 'Element.animate() does not accept ' + subtest.desc);
|
| });
|
|
|
| +gInvalidEasings.forEach(invalidEasing => {
|
| + test(function(t) {
|
| + var div = createDiv(t);
|
| + assert_throws(new TypeError, () => {
|
| + div.animate({ easing: invalidEasing }, 2000);
|
| + });
|
| + }, `Element.animate() does not accept invalid easing: '${invalidEasing}'`);
|
| +});
|
| +
|
| test(function(t) {
|
| var div = createDiv(t);
|
| var anim = div.animate({ opacity: [ 0, 1 ] }, 2000);
|
|
|