Brian Birtles
efd02d2a25
Bug 1339648 - Fix flaky file_transitions_replacement_on_busy_frame.html test; r=hiro
...
There are two issues with this test:
(a) It fails to flush style when it intends to trigger the first transition.
Specifically, `getComputedStyle(div)` alone does not flush style. Instead we
need `getComputedStyle(div).transform`.
This patch replaces that line with a call to `div.getAnimations()` which
*does* flush style ensuring the first transition is triggered.
(b) It fails to ensure that the first transition has progressed past the first
frame on the main thread before triggering the second transition.
If the first transition is still on its first frame, the computed value of
'transform' will be 'matrix(1, 0, 0, 1, 0, 0)'. If we then update the
specified value of 'transform' to 'translateX(0px)', no transition will be
generated (although the first transition will be canceled) since there is no
change.
This patch fixes that by making the end point of the second transition NOT
match the start point of the first transition (and not be somewhere inside
the range of the first transition).
As an extra precautionary measure, to be sure that the animation has started
progressing on both the main thread and compositor, this patch alters the
initial wait condition for the first transition to also wait on the first
transition's ready promise.
MozReview-Commit-ID: E1OJuHBSMfr
--HG--
extra : rebase_source : aede0fa00f261e1c7d1be61857b6fd0537a0f7e7
2017-08-23 18:17:31 +09:00
..
2017-08-20 09:15:58 +02:00
2017-07-26 11:44:16 +01:00
2017-08-23 18:17:31 +09:00
2017-01-27 10:51:02 +01:00
2017-06-23 17:05:42 +09:00
2017-06-23 17:05:42 +09:00
2017-06-22 12:12:42 +09:00
2017-07-06 11:34:03 -07:00
2017-01-13 10:41:03 -05:00
2017-06-19 15:45:43 +10:00
2017-04-13 16:17:03 +08:00
2017-06-20 19:19:52 +10:00
2017-06-20 19:19:52 +10:00
2017-06-04 03:45:05 -07:00
2017-07-12 18:13:07 -07:00
2017-07-24 16:12:57 -07:00
2017-07-24 16:12:57 -07:00
2017-06-27 16:25:07 -07:00
2017-06-27 16:25:07 -07:00
2017-05-19 16:12:34 +10:00
2017-05-19 16:12:34 +10:00
2017-05-19 16:12:34 +10:00
2017-05-19 16:12:34 +10:00
2016-12-01 10:37:43 -08:00
2017-03-09 17:37:38 +11:00
2017-03-09 17:37:38 +11:00
2017-05-11 14:11:15 +02:00
2017-05-11 14:11:15 +02:00
2017-03-14 18:50:28 +11:00
2017-03-31 19:14:49 -05:00
2017-03-31 19:14:49 -05:00
2017-01-13 10:41:03 -05:00
2017-07-10 17:52:00 -04:00
2017-07-10 17:52:00 -04:00
2017-05-24 14:39:52 +10:00
2017-04-26 16:55:36 +08:00
2017-06-14 01:54:27 +02:00
2017-07-21 17:26:35 -07:00
2017-07-21 17:26:35 -07:00
2017-07-21 14:18:45 -07:00
2017-07-21 14:18:45 -07:00
2017-08-22 21:19:24 -07:00
2017-08-22 21:19:24 -07:00
2017-08-07 15:56:30 +02:00
2017-07-14 10:53:11 -04:00
2017-07-21 17:26:35 -07:00
2017-04-30 14:51:29 +08:00
2017-08-07 10:12:12 +08:00
2017-08-07 10:12:12 +08:00
2017-07-31 16:21:40 +02:00
2017-07-31 16:21:40 +02:00
2017-07-17 21:00:25 -07:00
2017-06-16 03:57:29 +02:00
2017-06-16 03:57:29 +02:00
2017-07-24 15:07:07 +02:00
2017-07-24 15:07:07 +02:00
2017-02-13 11:21:33 +08:00
2017-08-07 16:07:43 +12:00
2017-06-07 15:22:41 +02:00
2017-08-16 16:48:52 -07:00
2017-03-31 09:47:57 -04:00
2017-08-07 16:07:43 +12:00
2017-08-07 16:07:43 +12:00
2017-08-16 16:10:56 -05:00
2017-08-15 00:05:00 -04:00
2017-04-13 00:30:12 +08:00
2017-04-13 00:30:12 +08:00
2017-04-18 13:53:15 +02:00
2017-04-18 13:53:15 +02:00
2017-07-25 18:30:15 -07:00
2017-03-14 18:50:28 +11:00
2017-07-22 18:02:57 +02:00
2017-07-20 21:44:02 -07:00
2017-08-17 08:56:00 +09:00
2017-06-19 12:21:17 +09:00
2017-06-19 01:44:22 -04:00
2017-07-05 16:21:10 +10:00
2017-08-11 00:07:12 -04:00
2017-08-11 00:07:12 -04:00
2017-05-09 21:52:06 +10:00
2016-11-18 18:12:25 +08:00
2017-03-29 10:20:40 +11:00
2017-06-29 18:57:46 -07:00
2017-07-06 14:00:35 +02:00
2017-06-20 19:19:05 +10:00
2017-08-14 23:56:24 -07:00
2017-07-18 10:54:32 +10:00
2017-08-12 14:37:19 -07:00
2017-08-12 14:37:19 -07:00
2017-03-14 11:30:20 +08:00
2017-06-19 01:44:22 -04:00
2017-08-14 23:56:24 -07:00
2017-07-06 14:00:35 +02:00
2017-06-14 23:06:30 +08:00
2017-01-06 21:12:08 +11:00
2017-06-19 23:25:00 -04:00
2017-07-11 10:38:23 +08:00
2017-08-17 14:37:32 -04:00
2017-08-17 14:37:32 -04:00
2017-07-23 23:56:37 +02:00
2017-07-23 23:56:37 +02:00
2017-07-21 17:26:35 -07:00
2017-07-24 16:12:57 -07:00
2017-07-28 13:20:37 +10:00
2017-02-13 16:02:46 -08:00
2017-08-04 17:36:18 -07:00
2017-07-21 17:26:35 -07:00
2017-01-19 23:07:25 +08:00
2017-08-12 18:42:04 -04:00
2017-05-11 19:06:43 +03:00
2017-07-21 14:18:45 -07:00
2017-08-12 14:37:19 -07:00
2017-07-06 14:00:35 +02:00
2017-08-03 10:37:02 +10:00
2017-07-06 14:00:35 +02:00
2017-04-30 17:30:08 +02:00
2017-02-13 11:21:33 +08:00
2017-07-06 14:00:35 +02:00
2017-08-16 16:10:56 -05:00
2017-06-16 23:59:08 +02:00
2017-07-21 14:18:45 -07:00
2017-06-10 22:27:45 -07:00
2017-06-07 17:48:49 +02:00
2017-07-06 14:00:35 +02:00
2017-06-05 13:57:36 -07:00
2017-05-03 20:48:48 +09:00
2017-08-22 09:08:39 -05:00
2017-01-19 12:55:18 +01:00
2017-07-21 17:26:35 -07:00
2017-08-16 16:48:52 -07:00
2017-01-03 21:47:55 +02:00
2017-07-31 14:32:59 +02:00
2017-07-31 14:32:59 +02:00
2017-08-23 18:14:03 +08:00
2017-07-31 14:32:59 +02:00
2017-07-26 20:00:06 -04:00
2017-03-10 11:53:17 +09:00
2017-08-14 23:56:24 -07:00
2017-07-31 16:21:40 +02:00
2017-08-11 00:07:12 -04:00
2017-07-31 16:21:40 +02:00
2017-07-03 21:55:18 -04:00
2017-07-03 21:55:18 -04:00
2017-07-24 11:51:32 +10:00
2017-08-04 19:26:04 +10:00
2017-08-23 18:14:03 +08:00
2017-08-18 11:39:14 +08:00
2017-04-30 17:30:08 +02:00
2017-07-31 17:31:27 +08:00
2017-07-31 17:31:27 +08:00
2017-08-01 23:01:57 +08:00
2017-08-16 16:48:52 -07:00
2017-07-22 18:02:57 +02:00
2017-07-22 18:02:57 +02:00
2017-04-30 14:57:25 +08:00
2017-07-26 14:22:12 +02:00
2017-03-23 18:51:38 -07:00
2017-03-19 19:33:49 -07:00
2017-08-12 14:37:19 -07:00
2017-03-28 20:05:12 +11:00
2017-07-27 03:07:06 +02:00
2017-07-27 03:07:06 +02:00
2016-12-08 15:54:45 -10:00
2017-04-09 16:53:57 +08:00
2017-07-25 18:30:15 -07:00
2017-08-22 21:19:24 -07:00
2017-08-21 16:07:16 +10:00
2017-08-20 18:01:25 +02:00
2017-08-12 18:19:22 +08:00
2017-08-12 18:19:22 +08:00
2017-07-25 18:30:15 -07:00
2017-07-02 17:19:07 +02:00
2017-07-10 17:52:00 -04:00
2017-07-21 14:18:45 -07:00
2017-07-24 15:07:07 +02:00
2017-05-11 14:11:16 +02:00
2017-06-27 10:55:03 -07:00
2017-06-27 10:55:03 -07:00
2017-05-07 16:36:47 +02:00
2017-07-25 18:30:15 -07:00
2017-07-25 18:30:15 -07:00
2017-07-28 16:46:08 +10:00
2017-07-02 17:19:08 +02:00
2017-05-19 16:12:34 +10:00
2017-05-19 16:12:34 +10:00
2017-07-02 17:19:07 +02:00
2017-05-19 16:12:34 +10:00
2017-06-08 13:32:25 -07:00
2017-04-13 00:30:10 +08:00
2017-07-24 15:07:07 +02:00
2017-04-25 16:24:39 +02:00
2017-03-14 18:51:59 +11:00
2017-04-25 16:24:39 +02:00
2017-05-11 19:06:43 +03:00
2017-05-11 19:06:43 +03:00
2017-08-12 14:37:19 -07:00
2017-06-16 03:57:29 +02:00
2017-06-16 03:57:29 +02:00
2017-08-09 12:08:24 -07:00
2017-08-21 16:07:16 +10:00
2017-07-20 21:44:02 -07:00
2017-08-14 12:28:58 +02:00
2017-06-19 15:45:43 +10:00
2017-08-22 21:19:24 -07:00
2017-08-22 14:46:25 +08:00
2017-08-22 14:54:20 -05:00
2017-08-12 18:34:34 +08:00
2017-07-24 15:07:07 +02:00
2017-04-25 16:24:39 +02:00
2017-08-22 21:19:24 -07:00
2017-08-08 12:06:57 -07:00
2017-06-14 14:26:48 +10:00
2017-03-21 15:43:26 +09:00
2017-08-18 22:17:41 +08:00
2017-07-22 18:02:57 +02:00
2017-01-30 12:09:25 +11:00
2016-12-22 17:44:43 +01:00
2017-08-02 16:34:47 +10:00
2017-08-02 16:34:47 +10:00
2017-06-07 17:48:49 +02:00
2017-06-07 17:48:49 +02:00
2017-07-24 11:27:08 +10:00
2017-07-24 11:27:08 +10:00
2017-07-10 17:52:00 -04:00
2017-07-10 17:52:00 -04:00
2017-06-28 16:51:46 -07:00
2017-05-15 16:19:17 -07:00
2017-07-14 08:49:22 +02:00
2017-07-31 17:57:56 +08:00
2017-04-18 18:59:43 +02:00