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

Unified Diff: third_party/WebKit/LayoutTests/imported/wpt/web-animations/animation-model/keyframe-effects/spacing-keyframes.html

Issue 2408083002: Revert of Import wpt@357b83b809e3cbc7a1805e7c3ca108a7980d782f (Closed)
Patch Set: Created 4 years, 2 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/imported/wpt/web-animations/animation-model/keyframe-effects/spacing-keyframes.html
diff --git a/third_party/WebKit/LayoutTests/imported/wpt/web-animations/animation-model/keyframe-effects/spacing-keyframes.html b/third_party/WebKit/LayoutTests/imported/wpt/web-animations/animation-model/keyframe-effects/spacing-keyframes.html
index 90e26d276d8ca80a909fe0ef6aa1a2bfaa5a70e2..14dc32bf57eeb9f0334c477d6ce4b1c2bbccfd47 100644
--- a/third_party/WebKit/LayoutTests/imported/wpt/web-animations/animation-model/keyframe-effects/spacing-keyframes.html
+++ b/third_party/WebKit/LayoutTests/imported/wpt/web-animations/animation-model/keyframe-effects/spacing-keyframes.html
@@ -322,70 +322,7 @@
'and falling back to distribute spacing for the reset with some specific ' +
'offsets');
-// Tests for setting spacing by KeyframeEffect.spacing.
-
-test(function(t) {
- var anim = createDiv(t).animate([ { marginLeft: '0px' },
- { marginLeft: '-20px' },
- { marginLeft: '100px' },
- { marginLeft: '50px' } ],
- { duration: 100 * MS_PER_SEC });
-
- anim.effect.spacing = 'paced(margin-left)';
-
- var frames = anim.effect.getKeyframes();
- var cumDist = [0, 20, 140, 190];
- assert_equals(frames[0].computedOffset, 0.0,
- '1st frame offset');
- assert_equals(frames[1].computedOffset, cumDist[1] / cumDist[3],
- '2nd frame offset');
- assert_equals(frames[2].computedOffset, cumDist[2] / cumDist[3],
- '3rd frame offset');
- assert_equals(frames[3].computedOffset, 1.0,
- 'last frame offset');
-}, 'Test paced spacing by setter');
-
-test(function(t) {
- var anim = createDiv(t).animate([ { marginLeft: '0px' },
- { marginLeft: '-20px' },
- { marginLeft: '100px' },
- { marginLeft: '50px' } ],
- { duration: 100 * MS_PER_SEC,
- spacing: 'paced(margin-left)' });
-
- anim.effect.spacing = 'distribute';
-
- var frames = anim.effect.getKeyframes();
- var slots = frames.length - 1;
- assert_equals(frames[0].computedOffset, 0.0, '1st frame offset');
- assert_equals(frames[1].computedOffset, 1.0 / slots, '2nd frame offset');
- assert_equals(frames[2].computedOffset, 2.0 / slots, '3rd frame offset');
- assert_equals(frames[3].computedOffset, 1.0, 'last frame offset');
-}, 'Test distribute spacing by setter');
-
-test(function(t) {
- var anim =
- createDiv(t).animate([ { marginLeft: '0px', borderRadius: '0%' },
- { marginLeft: '-20px', borderRadius: '50%' },
- { marginLeft: '100px', borderRadius: '25%' },
- { marginLeft: '50px', borderRadius: '100%' } ],
- { duration: 100 * MS_PER_SEC,
- spacing: 'paced(margin-left)' });
-
- anim.effect.spacing = 'paced(border-radius)';
-
- var frames = anim.effect.getKeyframes();
- var cumDist = [0, 50, 50 + 25, 50 + 25 + 75];
-
- assert_equals(frames[0].computedOffset, 0.0,
- '1st frame offset');
- assert_equals(frames[1].computedOffset, cumDist[1] / cumDist[3],
- '2nd frame offset');
- assert_equals(frames[2].computedOffset, cumDist[2] / cumDist[3],
- '3rd frame offset');
- assert_equals(frames[3].computedOffset, 1.0,
- 'last frame offset');
-}, 'Test paced spacing by changing the paced property');
+// Bug 1276193: Test for mixing percent and pixel values.
</script>
</body>

Powered by Google App Engine
This is Rietveld 408576698