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

Unified Diff: third_party/WebKit/LayoutTests/animations/compositor-start-event-timing.html

Issue 2976603002: Move animation event tests to subdirectory (Closed)
Patch Set: Created 3 years, 5 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/animations/compositor-start-event-timing.html
diff --git a/third_party/WebKit/LayoutTests/animations/compositor-start-event-timing.html b/third_party/WebKit/LayoutTests/animations/compositor-start-event-timing.html
deleted file mode 100644
index e12b8b7cb7751f65e5a48a782fd5ea2d48b83388..0000000000000000000000000000000000000000
--- a/third_party/WebKit/LayoutTests/animations/compositor-start-event-timing.html
+++ /dev/null
@@ -1,53 +0,0 @@
-<!doctype html>
-<script src="../resources/testharness.js"></script>
-<script src="../resources/testharnessreport.js"></script>
-<style>
-.start {
- animation: anim 1ms;
-}
-
-@keyframes anim {
- 0% {
- transform: translate3d(0, 0, 1px);
- }
- 100% {
- transform: translate3d(0, 0, 0);
- }
-}
-</style>
-<body>x
-<script>
-'use strict';
-async_test(function(t) {
-
- requestAnimationFrame(function() {
- document.body.classList.add('start');
-
- // Force a style resolve, to ensure the animation is created.
- document.body.offsetTop;
-
- var animation = document.body.getAnimations()[0];
- setTimeout(function() {
- if (animation.playState === 'pending') {
- var passed = false;
- document.body.addEventListener('animationstart', function() {
- passed = true;
- });
- document.body.addEventListener('animationend', function() {
- t.step(function() {
- assert_true(passed);
- t.done();
- });
- });
- } else {
- // The animation is no longer pending.
-
- // We missed the opportunity to add a start event listener
- // before the animation started. This test might flakily
- // pass even if the implementation is incorrect.
- t.done();
- }
- }, 0);
- });
-});
-</script>

Powered by Google App Engine
This is Rietveld 408576698