mirror of
https://github.com/mozilla/gecko-dev.git
synced 2024-10-23 02:05:42 +00:00
Bug 1581617 [wpt PR 19098] - Update WPT for csswg-drafts pull request #4306, a=testonly
Automatic update from web-platform-tests Update WPT for csswg-drafts pull request #4306 https://github.com/w3c/csswg-drafts/pull/4306 Change-Id: Icb7d01affc85d997e9a3e06f09bae77b4cd915a3 Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/1807297 Reviewed-by: Stephen McGruer <smcgruer@chromium.org> Commit-Queue: George Steel <gtsteel@chromium.org> Auto-Submit: George Steel <gtsteel@chromium.org> Cr-Commit-Position: refs/heads/master@{#699372} -- wpt-commits: 3c8f32fd9be68d23ac9c7dd6dceaa6c625e4c6ba wpt-pr: 19098
This commit is contained in:
parent
daada5f341
commit
c3128f5f22
@ -162,10 +162,21 @@ test(t => {
|
||||
div.style.marginLeft = '10px';
|
||||
|
||||
const effect = div.getAnimations()[0].effect;
|
||||
assert_equals(effect.getComputedTiming().easing, 'linear',
|
||||
assert_equals(effect.getComputedTiming().easing, 'ease',
|
||||
'Initial value of easing');
|
||||
}, 'easing of a new transition');
|
||||
|
||||
test(t => {
|
||||
const div = addDiv(t, { class: 'animated-div' });
|
||||
div.style.transition = 'margin-left 10s steps(4)';
|
||||
getComputedStyle(div).marginLeft;
|
||||
div.style.marginLeft = '10px';
|
||||
|
||||
const effect = div.getAnimations()[0].effect;
|
||||
assert_equals(effect.getComputedTiming().easing, 'steps(4)',
|
||||
'Initial value of easing');
|
||||
}, 'non-default easing of a new transition');
|
||||
|
||||
|
||||
// ------------------------------
|
||||
// endTime
|
||||
|
@ -45,7 +45,7 @@ test(t => {
|
||||
const expected = [
|
||||
{ offset: 0,
|
||||
computedOffset: 0,
|
||||
easing: 'ease',
|
||||
easing: 'linear',
|
||||
composite: 'auto',
|
||||
left: '0px',
|
||||
},
|
||||
@ -80,7 +80,7 @@ test(t => {
|
||||
{
|
||||
offset: 0,
|
||||
computedOffset: 0,
|
||||
easing: 'steps(2)',
|
||||
easing: 'linear',
|
||||
composite: 'auto',
|
||||
left: '0px',
|
||||
},
|
||||
@ -96,8 +96,7 @@ test(t => {
|
||||
for (let i = 0; i < frames.length; i++) {
|
||||
assert_frames_equal(frames[i], expected[i], `ComputedKeyframe #${i}`);
|
||||
}
|
||||
}, 'KeyframeEffect.getKeyframes() returns expected frames for a simple'
|
||||
+ ' transition with a non-default easing function');
|
||||
}, 'KeyframeEffect.getKeyframes() returns frames unaffected by a non-default easing function');
|
||||
|
||||
test(t => {
|
||||
const div = addDiv(t);
|
||||
@ -114,7 +113,7 @@ test(t => {
|
||||
{
|
||||
offset: 0,
|
||||
computedOffset: 0,
|
||||
easing: 'ease',
|
||||
easing: 'linear',
|
||||
composite: 'auto',
|
||||
left: '0px',
|
||||
},
|
||||
|
Loading…
Reference in New Issue
Block a user