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

Unified Diff: third_party/WebKit/LayoutTests/external/wpt/web-animations/interfaces/Animatable/animate.html

Issue 2695813009: Import wpt@503f5b5f78ec4e87d144f78609f363f0ed0ea8db (Closed)
Patch Set: Skip some tests Created 3 years, 10 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
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);

Powered by Google App Engine
This is Rietveld 408576698