Skip to content

Commit

Permalink
Update corresponding tests for CSS animations to make them consistent
Browse files Browse the repository at this point in the history
This is a collection of fix-ups to the corresponding tests for CSS animations to
apply the same sort of naming etc. that we have now applied to CSS transitions
tests.

bugzilla-url: https://bugzilla.mozilla.org/show_bug.cgi?id=1467344
gecko-commit: 877cdf25b483aaccf75c0ef6821194523dcce259
gecko-integration-branch: mozilla-inbound
gecko-reviewers: hiro
  • Loading branch information
birtles authored and moz-wptsync-bot committed Aug 18, 2018
1 parent 8ff1614 commit 6aef667
Show file tree
Hide file tree
Showing 18 changed files with 7 additions and 52 deletions.
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
<!doctype html>
<meta charset=utf-8>
<title>CSSAnimation.getComputedTiming()</title>
<title>AnimationEffect.getComputedTiming() for CSS animations</title>
<!-- TODO: Add a more specific link for this once it is specified. -->
<link rel="help" href="https://drafts.csswg.org/css-animations-2/#cssanimation">
<script src="/resources/testharness.js"></script>
Expand Down
2 changes: 0 additions & 2 deletions css/css-animations/CSSAnimation-animationName.tentative.html
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,6 @@
to { left: 100px }
}
</style>
<body>
<div id="log"></div>
<script>
'use strict';
Expand Down Expand Up @@ -39,4 +38,3 @@
}, 'Animation name with hex-escape');

</script>
</body>
3 changes: 0 additions & 3 deletions css/css-animations/CSSAnimation-canceling.tentative.html
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,6 @@
to { margin-left: 200px }
}
</style>
<body>
<div id="log"></div>
<script>
'use strict';
Expand Down Expand Up @@ -195,5 +194,3 @@
'descendants');

</script>
</body>
</html>
2 changes: 0 additions & 2 deletions css/css-animations/CSSAnimation-effect.tentative.html
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,6 @@
}
}
</style>
<body>
<div id="log"></div>
<script>
'use strict';
Expand Down Expand Up @@ -129,4 +128,3 @@
'it fires an animationstart event');

</script>
</body>
2 changes: 0 additions & 2 deletions css/css-animations/CSSAnimation-finished.tentative.html
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,6 @@
}
@keyframes def {}
</style>
<body>
<div id="log"></div>
<script>
'use strict';
Expand Down Expand Up @@ -84,4 +83,3 @@
}, 'finished promise is not reset when animationPlayState is set to running');

</script>
</body>
12 changes: 3 additions & 9 deletions css/css-animations/CSSAnimation-getCurrentTime.tentative.html
Original file line number Diff line number Diff line change
@@ -1,10 +1,11 @@
<!doctype html>
<html>
<head>
<meta charset=utf-8>
<title>CSSAnimation.currentTime</title>
<!-- TODO: Add a more specific link for this once it is specified. -->
<link rel="help" href="https://drafts.csswg.org/css-animations-2/#cssanimation">
<script src="/resources/testharness.js"></script>
<script src="/resources/testharnessreport.js"></script>
<script src="support/testcommon.js"></script>
<style>

.animated-div {
Expand All @@ -19,11 +20,6 @@
}

</style>
<script src="/resources/testharness.js"></script>
<script src="/resources/testharnessreport.js"></script>
<script src="support/testcommon.js"></script>
</head>
<body>
<div id="log"></div>
<script type="text/javascript">

Expand Down Expand Up @@ -70,5 +66,3 @@
}, 'Setting currentTime to null on a CSS animation throws');

</script>
</body>
</html>
2 changes: 0 additions & 2 deletions css/css-animations/CSSAnimation-id.tentative.html
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,6 @@
<style>
@keyframes abc { }
</style>
<body>
<div id="log"></div>
<script>
'use strict';
Expand All @@ -25,5 +24,4 @@
}, 'Animation.id for CSS Animations');

</script>
</body>
</html>
2 changes: 0 additions & 2 deletions css/css-animations/CSSAnimation-pausing.tentative.html
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,6 @@
100% { margin-left: 10000px }
}
</style>
<body>
<div id="log"></div>
<script>
'use strict';
Expand Down Expand Up @@ -169,4 +168,3 @@
}, 'Setting the current time completes a pending pause');

</script>
</body>
2 changes: 0 additions & 2 deletions css/css-animations/CSSAnimation-playState.tentative.html
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,6 @@
<style>
@keyframes anim { }
</style>
<body>
<div id="log"></div>
<script>
'use strict';
Expand Down Expand Up @@ -54,4 +53,3 @@
}, 'Animation returns correct playState when canceled');

</script>
</body>
2 changes: 0 additions & 2 deletions css/css-animations/CSSAnimation-ready.tentative.html
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,6 @@
to { transform: translate(10px) }
}
</style>
<body>
<div id="log"></div>
<script>
'use strict';
Expand Down Expand Up @@ -97,4 +96,3 @@
}, 'Pausing twice re-uses the same Promise');

</script>
</body>
12 changes: 3 additions & 9 deletions css/css-animations/CSSAnimation-startTime.tentative.html
Original file line number Diff line number Diff line change
@@ -1,10 +1,11 @@
<!doctype html>
<html>
<head>
<meta charset=utf-8>
<title>CSSAnimation.startTime</title>
<!-- TODO: Add a more specific link for this once it is specified. -->
<link rel="help" href="https://drafts.csswg.org/css-animations-2/#cssanimation">
<script src="/resources/testharness.js"></script>
<script src="/resources/testharnessreport.js"></script>
<script src="support/testcommon.js"></script>
<style>

.animated-div {
Expand All @@ -19,11 +20,6 @@
}

</style>
<script src="/resources/testharness.js"></script>
<script src="/resources/testharnessreport.js"></script>
<script src="support/testcommon.js"></script>
</head>
<body>
<div id="log"></div>
<script type="text/javascript">

Expand Down Expand Up @@ -71,5 +67,3 @@
}, 'Seeking a CSS animation using the start time dispatches animation events');

</script>
</body>
</html>
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,6 @@
content: '';
}
</style>
<body>
<div id="log"></div>
<script>
'use strict';
Expand Down Expand Up @@ -74,4 +73,3 @@
'animations in the expected order');

</script>
</body>
2 changes: 0 additions & 2 deletions css/css-animations/Document-getAnimations.tentative.html
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,6 @@
content: ''
}
</style>
<body>
<div id="log"></div>
<script>
'use strict';
Expand Down Expand Up @@ -283,4 +282,3 @@
'after sorting');

</script>
</body>
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,6 @@
}
@keyframes anim2 { }
</style>
<body>
<div id="log"></div>
<script>
'use strict';
Expand Down Expand Up @@ -162,4 +161,3 @@
}, 'Animation state is preserved when interleaving animations in list');

</script>
</body>
2 changes: 0 additions & 2 deletions css/css-animations/Element-getAnimations.tentative.html
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,6 @@
}
@keyframes empty { }
</style>
<body>
<div id="log"></div>
<script>
'use strict';
Expand Down Expand Up @@ -446,4 +445,3 @@
+ ' from all the descendants');

</script>
</body>
2 changes: 0 additions & 2 deletions css/css-animations/KeyframeEffect-target.tentative.html
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,6 @@
content: ''
}
</style>
<body>
<div id="log"></div>
<script>
'use strict';
Expand Down Expand Up @@ -62,4 +61,3 @@
'CSSPseudoElement object as that from the CSS generated animation');

</script>
</body>
3 changes: 0 additions & 3 deletions css/css-animations/event-dispatch.tentative.html
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,6 @@
to { margin-left: 100px; }
}
</style>
<body>
<div id="log"></div>
<script>
'use strict';
Expand Down Expand Up @@ -419,5 +418,3 @@
}, 'Cancel the animation after clearing the target effect.');

</script>
</body>
</html>
3 changes: 0 additions & 3 deletions css/css-animations/event-order.tentative.html
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,6 @@
to { margin-left: 100px; }
}
</style>
<body>
<div id="log"></div>
<script type='text/javascript'>
'use strict';
Expand Down Expand Up @@ -160,5 +159,3 @@
}, 'Test start and end events are sorted correctly when fired simultaneously');

</script>
</body>
</html>

0 comments on commit 6aef667

Please sign in to comment.