From 3e9389673b929dd4e0ac73bdcafa42e37d3e6cee Mon Sep 17 00:00:00 2001 From: Alan Cutter Date: Thu, 14 Jul 2016 16:30:36 +1000 Subject: [PATCH 1/2] Upstream the-effect-value-of-a-keyframe-effect.html from Blink Import https://chromium.googlesource.com/chromium/src/+/ad40c1b8c4d5ce1bea5cd7d9e892e19ecd75a2d0/third_party/WebKit/LayoutTests/web-animations-api/the-effect-value-of-a-keyframe-effect.html --- .../the-effect-value-of-a-keyframe-effect.html | 10 ++++++++++ 1 file changed, 10 insertions(+) diff --git a/web-animations/animation-model/keyframe-effects/the-effect-value-of-a-keyframe-effect.html b/web-animations/animation-model/keyframe-effects/the-effect-value-of-a-keyframe-effect.html index eb67f669acda32..34c40795e47832 100644 --- a/web-animations/animation-model/keyframe-effects/the-effect-value-of-a-keyframe-effect.html +++ b/web-animations/animation-model/keyframe-effects/the-effect-value-of-a-keyframe-effect.html @@ -109,6 +109,16 @@ }, "Test visibility clamping behavior with an easing that has a negative component"); +test(function(t) { + var div = createDiv(t); + var anim = div.animate({ WebkitTransform: ['translateX(100px)', 'translateX(100px)'], + webkitTransform: ['translateX(100px)', 'translateX(100px)'] }, 1000); + + anim.currentTime = 0; + assert_not_equals(getComputedStyle(div).getPropertyValue('-webkit-transform'), 'translateX(100px)'); + +}, "Test prefixed properties are not supported"); + done(); From 8692af3e7987545050d25334c0d2621a84e0fa6b Mon Sep 17 00:00:00 2001 From: Alan Cutter Date: Thu, 14 Jul 2016 17:07:28 +1000 Subject: [PATCH 2/2] Review change --- .../the-effect-value-of-a-keyframe-effect.html | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/web-animations/animation-model/keyframe-effects/the-effect-value-of-a-keyframe-effect.html b/web-animations/animation-model/keyframe-effects/the-effect-value-of-a-keyframe-effect.html index 34c40795e47832..29c034351e4fee 100644 --- a/web-animations/animation-model/keyframe-effects/the-effect-value-of-a-keyframe-effect.html +++ b/web-animations/animation-model/keyframe-effects/the-effect-value-of-a-keyframe-effect.html @@ -112,7 +112,8 @@ test(function(t) { var div = createDiv(t); var anim = div.animate({ WebkitTransform: ['translateX(100px)', 'translateX(100px)'], - webkitTransform: ['translateX(100px)', 'translateX(100px)'] }, 1000); + webkitTransform: ['translateX(100px)', 'translateX(100px)'] }, + { duration: 100 * MS_PER_SEC, fill: 'both' }); anim.currentTime = 0; assert_not_equals(getComputedStyle(div).getPropertyValue('-webkit-transform'), 'translateX(100px)');