From 5f8de423f190bbb79a62f804151bc24824fa32d8 Mon Sep 17 00:00:00 2001 From: "Matt A. Tobin" Date: Fri, 2 Feb 2018 04:16:08 -0500 Subject: Add m-esr52 at 52.6.0 --- dom/animation/test/chrome.ini | 17 + dom/animation/test/chrome/file_animate_xrays.html | 19 + dom/animation/test/chrome/test_animate_xrays.html | 31 + .../test/chrome/test_animation_observers.html | 1177 ++++++++++++++++++++ .../chrome/test_animation_performance_warning.html | 957 ++++++++++++++++ .../test/chrome/test_animation_properties.html | 993 +++++++++++++++++ .../test_generated_content_getAnimations.html | 83 ++ .../test/chrome/test_observers_for_sync_api.html | 854 ++++++++++++++ dom/animation/test/chrome/test_restyles.html | 815 ++++++++++++++ .../test/chrome/test_running_on_compositor.html | 966 ++++++++++++++++ dom/animation/test/crashtests/1216842-1.html | 35 + dom/animation/test/crashtests/1216842-2.html | 35 + dom/animation/test/crashtests/1216842-3.html | 27 + dom/animation/test/crashtests/1216842-4.html | 27 + dom/animation/test/crashtests/1216842-5.html | 38 + dom/animation/test/crashtests/1216842-6.html | 38 + dom/animation/test/crashtests/1239889-1.html | 12 + dom/animation/test/crashtests/1244595-1.html | 3 + dom/animation/test/crashtests/1272475-1.html | 20 + dom/animation/test/crashtests/1272475-2.html | 20 + dom/animation/test/crashtests/1277272-1-inner.html | 19 + dom/animation/test/crashtests/1277272-1.html | 26 + dom/animation/test/crashtests/1278485-1.html | 26 + dom/animation/test/crashtests/1290535-1.html | 20 + dom/animation/test/crashtests/crashtests.list | 13 + .../test/css-animations/file_animation-cancel.html | 154 +++ .../file_animation-computed-timing.html | 566 ++++++++++ .../css-animations/file_animation-currenttime.html | 345 ++++++ .../test/css-animations/file_animation-finish.html | 97 ++ .../css-animations/file_animation-finished.html | 93 ++ .../test/css-animations/file_animation-id.html | 24 + .../css-animations/file_animation-pausing.html | 165 +++ .../css-animations/file_animation-playstate.html | 71 ++ .../test/css-animations/file_animation-ready.html | 149 +++ .../css-animations/file_animation-reverse.html | 29 + .../css-animations/file_animation-starttime.html | 383 +++++++ .../file_animations-dynamic-changes.html | 154 +++ .../file_cssanimation-animationname.html | 37 + .../file_document-get-animations.html | 276 +++++ .../test/css-animations/file_effect-target.html | 54 + .../file_element-get-animations.html | 445 ++++++++ .../file_keyframeeffect-getkeyframes.html | 672 +++++++++++ .../file_pseudoElement-get-animations.html | 70 ++ .../test/css-animations/test_animation-cancel.html | 15 + .../test_animation-computed-timing.html | 16 + .../css-animations/test_animation-currenttime.html | 15 + .../test/css-animations/test_animation-finish.html | 15 + .../css-animations/test_animation-finished.html | 15 + .../test/css-animations/test_animation-id.html | 15 + .../css-animations/test_animation-pausing.html | 15 + .../css-animations/test_animation-playstate.html | 15 + .../test/css-animations/test_animation-ready.html | 15 + .../css-animations/test_animation-reverse.html | 15 + .../css-animations/test_animation-starttime.html | 15 + .../test_animations-dynamic-changes.html | 15 + .../test_cssanimation-animationname.html | 15 + .../test_document-get-animations.html | 15 + .../test/css-animations/test_effect-target.html | 15 + .../test_element-get-animations.html | 15 + .../test_keyframeeffect-getkeyframes.html | 15 + .../test_pseudoElement-get-animations.html | 14 + .../css-transitions/file_animation-cancel.html | 165 +++ .../file_animation-computed-timing.html | 315 ++++++ .../file_animation-currenttime.html | 307 +++++ .../css-transitions/file_animation-finished.html | 61 + .../css-transitions/file_animation-pausing.html | 50 + .../test/css-transitions/file_animation-ready.html | 96 ++ .../css-transitions/file_animation-starttime.html | 284 +++++ .../css-transitions/file_csstransition-events.html | 223 ++++ .../file_csstransition-transitionproperty.html | 24 + .../file_document-get-animations.html | 93 ++ .../test/css-transitions/file_effect-target.html | 66 ++ .../file_element-get-animations.html | 147 +++ .../file_keyframeeffect-getkeyframes.html | 95 ++ .../file_pseudoElement-get-animations.html | 45 + .../test/css-transitions/file_setting-effect.html | 91 ++ .../css-transitions/test_animation-cancel.html | 14 + .../test_animation-computed-timing.html | 16 + .../test_animation-currenttime.html | 14 + .../css-transitions/test_animation-finished.html | 14 + .../css-transitions/test_animation-pausing.html | 14 + .../test/css-transitions/test_animation-ready.html | 14 + .../css-transitions/test_animation-starttime.html | 14 + .../css-transitions/test_csstransition-events.html | 14 + .../test_csstransition-transitionproperty.html | 14 + .../test_document-get-animations.html | 15 + .../test/css-transitions/test_effect-target.html | 14 + .../test_element-get-animations.html | 14 + .../test_keyframeeffect-getkeyframes.html | 14 + .../test_pseudoElement-get-animations.html | 14 + .../test/css-transitions/test_setting-effect.html | 14 + .../document-timeline/file_document-timeline.html | 135 +++ .../document-timeline/test_document-timeline.html | 14 + .../test_request_animation_frame.html | 27 + dom/animation/test/mochitest.ini | 111 ++ .../test/mozilla/file_cubic_bezier_limits.html | 167 +++ .../test/mozilla/file_deferred_start.html | 121 ++ .../mozilla/file_disable_animations_api_core.html | 30 + .../test/mozilla/file_disabled_properties.html | 73 ++ .../test/mozilla/file_discrete-animations.html | 170 +++ .../file_document-timeline-origin-time-range.html | 30 + dom/animation/test/mozilla/file_hide_and_show.html | 162 +++ .../test/mozilla/file_partial_keyframes.html | 41 + dom/animation/test/mozilla/file_set-easing.html | 34 + .../test/mozilla/file_spacing_property_order.html | 33 + .../test/mozilla/file_spacing_transform.html | 240 ++++ .../test/mozilla/file_transform_limits.html | 55 + .../file_transition_finish_on_compositor.html | 67 ++ .../mozilla/file_underlying-discrete-value.html | 192 ++++ .../test/mozilla/test_cubic_bezier_limits.html | 14 + .../test/mozilla/test_deferred_start.html | 14 + .../mozilla/test_disable_animations_api_core.html | 14 + .../test/mozilla/test_disabled_properties.html | 14 + .../test/mozilla/test_discrete-animations.html | 18 + .../test_document-timeline-origin-time-range.html | 14 + dom/animation/test/mozilla/test_hide_and_show.html | 14 + .../test/mozilla/test_partial_keyframes.html | 14 + dom/animation/test/mozilla/test_set-easing.html | 14 + .../test/mozilla/test_spacing_property_order.html | 14 + .../test/mozilla/test_spacing_transform.html | 14 + .../test/mozilla/test_transform_limits.html | 14 + .../test_transition_finish_on_compositor.html | 14 + .../mozilla/test_underlying-discrete-value.html | 15 + .../file_animation-seeking-with-current-time.html | 121 ++ .../file_animation-seeking-with-start-time.html | 121 ++ .../test/style/file_animation-setting-effect.html | 125 +++ .../test/style/file_animation-setting-spacing.html | 111 ++ .../test_animation-seeking-with-current-time.html | 15 + .../test_animation-seeking-with-start-time.html | 15 + .../test/style/test_animation-setting-effect.html | 15 + .../test/style/test_animation-setting-spacing.html | 14 + dom/animation/test/testcommon.js | 216 ++++ 132 files changed, 15256 insertions(+) create mode 100644 dom/animation/test/chrome.ini create mode 100644 dom/animation/test/chrome/file_animate_xrays.html create mode 100644 dom/animation/test/chrome/test_animate_xrays.html create mode 100644 dom/animation/test/chrome/test_animation_observers.html create mode 100644 dom/animation/test/chrome/test_animation_performance_warning.html create mode 100644 dom/animation/test/chrome/test_animation_properties.html create mode 100644 dom/animation/test/chrome/test_generated_content_getAnimations.html create mode 100644 dom/animation/test/chrome/test_observers_for_sync_api.html create mode 100644 dom/animation/test/chrome/test_restyles.html create mode 100644 dom/animation/test/chrome/test_running_on_compositor.html create mode 100644 dom/animation/test/crashtests/1216842-1.html create mode 100644 dom/animation/test/crashtests/1216842-2.html create mode 100644 dom/animation/test/crashtests/1216842-3.html create mode 100644 dom/animation/test/crashtests/1216842-4.html create mode 100644 dom/animation/test/crashtests/1216842-5.html create mode 100644 dom/animation/test/crashtests/1216842-6.html create mode 100644 dom/animation/test/crashtests/1239889-1.html create mode 100644 dom/animation/test/crashtests/1244595-1.html create mode 100644 dom/animation/test/crashtests/1272475-1.html create mode 100644 dom/animation/test/crashtests/1272475-2.html create mode 100644 dom/animation/test/crashtests/1277272-1-inner.html create mode 100644 dom/animation/test/crashtests/1277272-1.html create mode 100644 dom/animation/test/crashtests/1278485-1.html create mode 100644 dom/animation/test/crashtests/1290535-1.html create mode 100644 dom/animation/test/crashtests/crashtests.list create mode 100644 dom/animation/test/css-animations/file_animation-cancel.html create mode 100644 dom/animation/test/css-animations/file_animation-computed-timing.html create mode 100644 dom/animation/test/css-animations/file_animation-currenttime.html create mode 100644 dom/animation/test/css-animations/file_animation-finish.html create mode 100644 dom/animation/test/css-animations/file_animation-finished.html create mode 100644 dom/animation/test/css-animations/file_animation-id.html create mode 100644 dom/animation/test/css-animations/file_animation-pausing.html create mode 100644 dom/animation/test/css-animations/file_animation-playstate.html create mode 100644 dom/animation/test/css-animations/file_animation-ready.html create mode 100644 dom/animation/test/css-animations/file_animation-reverse.html create mode 100644 dom/animation/test/css-animations/file_animation-starttime.html create mode 100644 dom/animation/test/css-animations/file_animations-dynamic-changes.html create mode 100644 dom/animation/test/css-animations/file_cssanimation-animationname.html create mode 100644 dom/animation/test/css-animations/file_document-get-animations.html create mode 100644 dom/animation/test/css-animations/file_effect-target.html create mode 100644 dom/animation/test/css-animations/file_element-get-animations.html create mode 100644 dom/animation/test/css-animations/file_keyframeeffect-getkeyframes.html create mode 100644 dom/animation/test/css-animations/file_pseudoElement-get-animations.html create mode 100644 dom/animation/test/css-animations/test_animation-cancel.html create mode 100644 dom/animation/test/css-animations/test_animation-computed-timing.html create mode 100644 dom/animation/test/css-animations/test_animation-currenttime.html create mode 100644 dom/animation/test/css-animations/test_animation-finish.html create mode 100644 dom/animation/test/css-animations/test_animation-finished.html create mode 100644 dom/animation/test/css-animations/test_animation-id.html create mode 100644 dom/animation/test/css-animations/test_animation-pausing.html create mode 100644 dom/animation/test/css-animations/test_animation-playstate.html create mode 100644 dom/animation/test/css-animations/test_animation-ready.html create mode 100644 dom/animation/test/css-animations/test_animation-reverse.html create mode 100644 dom/animation/test/css-animations/test_animation-starttime.html create mode 100644 dom/animation/test/css-animations/test_animations-dynamic-changes.html create mode 100644 dom/animation/test/css-animations/test_cssanimation-animationname.html create mode 100644 dom/animation/test/css-animations/test_document-get-animations.html create mode 100644 dom/animation/test/css-animations/test_effect-target.html create mode 100644 dom/animation/test/css-animations/test_element-get-animations.html create mode 100644 dom/animation/test/css-animations/test_keyframeeffect-getkeyframes.html create mode 100644 dom/animation/test/css-animations/test_pseudoElement-get-animations.html create mode 100644 dom/animation/test/css-transitions/file_animation-cancel.html create mode 100644 dom/animation/test/css-transitions/file_animation-computed-timing.html create mode 100644 dom/animation/test/css-transitions/file_animation-currenttime.html create mode 100644 dom/animation/test/css-transitions/file_animation-finished.html create mode 100644 dom/animation/test/css-transitions/file_animation-pausing.html create mode 100644 dom/animation/test/css-transitions/file_animation-ready.html create mode 100644 dom/animation/test/css-transitions/file_animation-starttime.html create mode 100644 dom/animation/test/css-transitions/file_csstransition-events.html create mode 100644 dom/animation/test/css-transitions/file_csstransition-transitionproperty.html create mode 100644 dom/animation/test/css-transitions/file_document-get-animations.html create mode 100644 dom/animation/test/css-transitions/file_effect-target.html create mode 100644 dom/animation/test/css-transitions/file_element-get-animations.html create mode 100644 dom/animation/test/css-transitions/file_keyframeeffect-getkeyframes.html create mode 100644 dom/animation/test/css-transitions/file_pseudoElement-get-animations.html create mode 100644 dom/animation/test/css-transitions/file_setting-effect.html create mode 100644 dom/animation/test/css-transitions/test_animation-cancel.html create mode 100644 dom/animation/test/css-transitions/test_animation-computed-timing.html create mode 100644 dom/animation/test/css-transitions/test_animation-currenttime.html create mode 100644 dom/animation/test/css-transitions/test_animation-finished.html create mode 100644 dom/animation/test/css-transitions/test_animation-pausing.html create mode 100644 dom/animation/test/css-transitions/test_animation-ready.html create mode 100644 dom/animation/test/css-transitions/test_animation-starttime.html create mode 100644 dom/animation/test/css-transitions/test_csstransition-events.html create mode 100644 dom/animation/test/css-transitions/test_csstransition-transitionproperty.html create mode 100644 dom/animation/test/css-transitions/test_document-get-animations.html create mode 100644 dom/animation/test/css-transitions/test_effect-target.html create mode 100644 dom/animation/test/css-transitions/test_element-get-animations.html create mode 100644 dom/animation/test/css-transitions/test_keyframeeffect-getkeyframes.html create mode 100644 dom/animation/test/css-transitions/test_pseudoElement-get-animations.html create mode 100644 dom/animation/test/css-transitions/test_setting-effect.html create mode 100644 dom/animation/test/document-timeline/file_document-timeline.html create mode 100644 dom/animation/test/document-timeline/test_document-timeline.html create mode 100644 dom/animation/test/document-timeline/test_request_animation_frame.html create mode 100644 dom/animation/test/mochitest.ini create mode 100644 dom/animation/test/mozilla/file_cubic_bezier_limits.html create mode 100644 dom/animation/test/mozilla/file_deferred_start.html create mode 100644 dom/animation/test/mozilla/file_disable_animations_api_core.html create mode 100644 dom/animation/test/mozilla/file_disabled_properties.html create mode 100644 dom/animation/test/mozilla/file_discrete-animations.html create mode 100644 dom/animation/test/mozilla/file_document-timeline-origin-time-range.html create mode 100644 dom/animation/test/mozilla/file_hide_and_show.html create mode 100644 dom/animation/test/mozilla/file_partial_keyframes.html create mode 100644 dom/animation/test/mozilla/file_set-easing.html create mode 100644 dom/animation/test/mozilla/file_spacing_property_order.html create mode 100644 dom/animation/test/mozilla/file_spacing_transform.html create mode 100644 dom/animation/test/mozilla/file_transform_limits.html create mode 100644 dom/animation/test/mozilla/file_transition_finish_on_compositor.html create mode 100644 dom/animation/test/mozilla/file_underlying-discrete-value.html create mode 100644 dom/animation/test/mozilla/test_cubic_bezier_limits.html create mode 100644 dom/animation/test/mozilla/test_deferred_start.html create mode 100644 dom/animation/test/mozilla/test_disable_animations_api_core.html create mode 100644 dom/animation/test/mozilla/test_disabled_properties.html create mode 100644 dom/animation/test/mozilla/test_discrete-animations.html create mode 100644 dom/animation/test/mozilla/test_document-timeline-origin-time-range.html create mode 100644 dom/animation/test/mozilla/test_hide_and_show.html create mode 100644 dom/animation/test/mozilla/test_partial_keyframes.html create mode 100644 dom/animation/test/mozilla/test_set-easing.html create mode 100644 dom/animation/test/mozilla/test_spacing_property_order.html create mode 100644 dom/animation/test/mozilla/test_spacing_transform.html create mode 100644 dom/animation/test/mozilla/test_transform_limits.html create mode 100644 dom/animation/test/mozilla/test_transition_finish_on_compositor.html create mode 100644 dom/animation/test/mozilla/test_underlying-discrete-value.html create mode 100644 dom/animation/test/style/file_animation-seeking-with-current-time.html create mode 100644 dom/animation/test/style/file_animation-seeking-with-start-time.html create mode 100644 dom/animation/test/style/file_animation-setting-effect.html create mode 100644 dom/animation/test/style/file_animation-setting-spacing.html create mode 100644 dom/animation/test/style/test_animation-seeking-with-current-time.html create mode 100644 dom/animation/test/style/test_animation-seeking-with-start-time.html create mode 100644 dom/animation/test/style/test_animation-setting-effect.html create mode 100644 dom/animation/test/style/test_animation-setting-spacing.html create mode 100644 dom/animation/test/testcommon.js (limited to 'dom/animation/test') diff --git a/dom/animation/test/chrome.ini b/dom/animation/test/chrome.ini new file mode 100644 index 000000000..9026bcbd2 --- /dev/null +++ b/dom/animation/test/chrome.ini @@ -0,0 +1,17 @@ +[DEFAULT] +support-files = + testcommon.js + ../../imptests/testharness.js + ../../imptests/testharnessreport.js + !/dom/animation/test/chrome/file_animate_xrays.html + +[chrome/test_animate_xrays.html] +# file_animate_xrays.html needs to go in mochitest.ini since it is served +# over HTTP +[chrome/test_animation_observers.html] +[chrome/test_animation_performance_warning.html] +[chrome/test_animation_properties.html] +[chrome/test_generated_content_getAnimations.html] +[chrome/test_observers_for_sync_api.html] +[chrome/test_restyles.html] +[chrome/test_running_on_compositor.html] diff --git a/dom/animation/test/chrome/file_animate_xrays.html b/dom/animation/test/chrome/file_animate_xrays.html new file mode 100644 index 000000000..8a68fc548 --- /dev/null +++ b/dom/animation/test/chrome/file_animate_xrays.html @@ -0,0 +1,19 @@ + + + + + + +
+ + diff --git a/dom/animation/test/chrome/test_animate_xrays.html b/dom/animation/test/chrome/test_animate_xrays.html new file mode 100644 index 000000000..56b981bf1 --- /dev/null +++ b/dom/animation/test/chrome/test_animate_xrays.html @@ -0,0 +1,31 @@ + + + + + + + + +Mozilla Bug 1045994 +
+ + + diff --git a/dom/animation/test/chrome/test_animation_observers.html b/dom/animation/test/chrome/test_animation_observers.html new file mode 100644 index 000000000..237128e04 --- /dev/null +++ b/dom/animation/test/chrome/test_animation_observers.html @@ -0,0 +1,1177 @@ + + +Test chrome-only MutationObserver animation notifications + + + + + +
+ diff --git a/dom/animation/test/chrome/test_animation_performance_warning.html b/dom/animation/test/chrome/test_animation_performance_warning.html new file mode 100644 index 000000000..a3bd63efc --- /dev/null +++ b/dom/animation/test/chrome/test_animation_performance_warning.html @@ -0,0 +1,957 @@ + + + +Bug 1196114 - Test metadata related to which animation properties + are running on the compositor + + + + + + +Mozilla Bug 1196114 +
+ + + diff --git a/dom/animation/test/chrome/test_animation_properties.html b/dom/animation/test/chrome/test_animation_properties.html new file mode 100644 index 000000000..534901306 --- /dev/null +++ b/dom/animation/test/chrome/test_animation_properties.html @@ -0,0 +1,993 @@ + + + +Bug 1254419 - Test the values returned by + KeyframeEffectReadOnly.getProperties() + + + + + +Mozilla Bug 1254419 +
+ + + diff --git a/dom/animation/test/chrome/test_generated_content_getAnimations.html b/dom/animation/test/chrome/test_generated_content_getAnimations.html new file mode 100644 index 000000000..04e0f9bd0 --- /dev/null +++ b/dom/animation/test/chrome/test_generated_content_getAnimations.html @@ -0,0 +1,83 @@ + + + +Test getAnimations() for generated-content elements + + + + + + +
+
+
+
+ + diff --git a/dom/animation/test/chrome/test_observers_for_sync_api.html b/dom/animation/test/chrome/test_observers_for_sync_api.html new file mode 100644 index 000000000..20c3f3670 --- /dev/null +++ b/dom/animation/test/chrome/test_observers_for_sync_api.html @@ -0,0 +1,854 @@ + + + +Test chrome-only MutationObserver animation notifications for sync APIs + + + + +
+ + diff --git a/dom/animation/test/chrome/test_restyles.html b/dom/animation/test/chrome/test_restyles.html new file mode 100644 index 000000000..e59967c19 --- /dev/null +++ b/dom/animation/test/chrome/test_restyles.html @@ -0,0 +1,815 @@ + + + +Tests restyles caused by animations + + + + + + + + + + + diff --git a/dom/animation/test/chrome/test_running_on_compositor.html b/dom/animation/test/chrome/test_running_on_compositor.html new file mode 100644 index 000000000..cd6c679b8 --- /dev/null +++ b/dom/animation/test/chrome/test_running_on_compositor.html @@ -0,0 +1,966 @@ + + + +Bug 1045994 - Add a chrome-only property to inspect if an animation is + running on the compositor or not + + + + + + +Mozilla Bug 1045994 +
+ + diff --git a/dom/animation/test/crashtests/1216842-1.html b/dom/animation/test/crashtests/1216842-1.html new file mode 100644 index 000000000..8df6808ae --- /dev/null +++ b/dom/animation/test/crashtests/1216842-1.html @@ -0,0 +1,35 @@ + + + + Bug 1216842: effect-level easing function produces negative values (compositor thread) + + + +
+ + + diff --git a/dom/animation/test/crashtests/1216842-2.html b/dom/animation/test/crashtests/1216842-2.html new file mode 100644 index 000000000..ec2a2e167 --- /dev/null +++ b/dom/animation/test/crashtests/1216842-2.html @@ -0,0 +1,35 @@ + + + + Bug 1216842: effect-level easing function produces values greater than 1 (compositor thread) + + + +
+ + + diff --git a/dom/animation/test/crashtests/1216842-3.html b/dom/animation/test/crashtests/1216842-3.html new file mode 100644 index 000000000..2e5a762aa --- /dev/null +++ b/dom/animation/test/crashtests/1216842-3.html @@ -0,0 +1,27 @@ + + + + Bug 1216842: effect-level easing function produces values greater than 1 (main-thread) + + +
+ + + diff --git a/dom/animation/test/crashtests/1216842-4.html b/dom/animation/test/crashtests/1216842-4.html new file mode 100644 index 000000000..2951adc95 --- /dev/null +++ b/dom/animation/test/crashtests/1216842-4.html @@ -0,0 +1,27 @@ + + + + Bug 1216842: effect-level easing function produces negative values (main-thread) + + +
+ + + diff --git a/dom/animation/test/crashtests/1216842-5.html b/dom/animation/test/crashtests/1216842-5.html new file mode 100644 index 000000000..65c64fa48 --- /dev/null +++ b/dom/animation/test/crashtests/1216842-5.html @@ -0,0 +1,38 @@ + + + + + Bug 1216842: effect-level easing function produces negative values passed + to step-end function (compositor thread) + + + + +
+ + + diff --git a/dom/animation/test/crashtests/1216842-6.html b/dom/animation/test/crashtests/1216842-6.html new file mode 100644 index 000000000..a588c68f1 --- /dev/null +++ b/dom/animation/test/crashtests/1216842-6.html @@ -0,0 +1,38 @@ + + + + + Bug 1216842: effect-level easing function produces values greater than 1 + which are passed to step-end function (compositor thread) + + + + +
+ + + diff --git a/dom/animation/test/crashtests/1239889-1.html b/dom/animation/test/crashtests/1239889-1.html new file mode 100644 index 000000000..476f3322b --- /dev/null +++ b/dom/animation/test/crashtests/1239889-1.html @@ -0,0 +1,12 @@ + + + + Bug 1239889 + + + + + diff --git a/dom/animation/test/crashtests/1244595-1.html b/dom/animation/test/crashtests/1244595-1.html new file mode 100644 index 000000000..13b2e2d7e --- /dev/null +++ b/dom/animation/test/crashtests/1244595-1.html @@ -0,0 +1,3 @@ +
diff --git a/dom/animation/test/crashtests/1272475-1.html b/dom/animation/test/crashtests/1272475-1.html new file mode 100644 index 000000000..e0b049538 --- /dev/null +++ b/dom/animation/test/crashtests/1272475-1.html @@ -0,0 +1,20 @@ + + + + Bug 1272475 - scale function with an extreme large value + + + + + diff --git a/dom/animation/test/crashtests/1272475-2.html b/dom/animation/test/crashtests/1272475-2.html new file mode 100644 index 000000000..da0e8605b --- /dev/null +++ b/dom/animation/test/crashtests/1272475-2.html @@ -0,0 +1,20 @@ + + + + Bug 1272475 - rotate function with an extreme large value + + + + + diff --git a/dom/animation/test/crashtests/1277272-1-inner.html b/dom/animation/test/crashtests/1277272-1-inner.html new file mode 100644 index 000000000..2ba52174d --- /dev/null +++ b/dom/animation/test/crashtests/1277272-1-inner.html @@ -0,0 +1,19 @@ + + + + + + + diff --git a/dom/animation/test/crashtests/1277272-1.html b/dom/animation/test/crashtests/1277272-1.html new file mode 100644 index 000000000..f398bcf6d --- /dev/null +++ b/dom/animation/test/crashtests/1277272-1.html @@ -0,0 +1,26 @@ + + + + + + + + + diff --git a/dom/animation/test/document-timeline/test_document-timeline.html b/dom/animation/test/document-timeline/test_document-timeline.html new file mode 100644 index 000000000..812d88ef2 --- /dev/null +++ b/dom/animation/test/document-timeline/test_document-timeline.html @@ -0,0 +1,14 @@ + + + + +
+ diff --git a/dom/animation/test/document-timeline/test_request_animation_frame.html b/dom/animation/test/document-timeline/test_request_animation_frame.html new file mode 100644 index 000000000..302a385b7 --- /dev/null +++ b/dom/animation/test/document-timeline/test_request_animation_frame.html @@ -0,0 +1,27 @@ + + +Test RequestAnimationFrame Timestamps are monotonically increasing + + + diff --git a/dom/animation/test/mochitest.ini b/dom/animation/test/mochitest.ini new file mode 100644 index 000000000..feb424518 --- /dev/null +++ b/dom/animation/test/mochitest.ini @@ -0,0 +1,111 @@ +[DEFAULT] +# Support files for chrome tests that we want to load over HTTP need +# to go in here, not chrome.ini. +support-files = + chrome/file_animate_xrays.html + css-animations/file_animation-cancel.html + css-animations/file_animation-computed-timing.html + css-animations/file_animation-currenttime.html + css-animations/file_animation-finish.html + css-animations/file_animation-finished.html + css-animations/file_animation-id.html + css-animations/file_animation-pausing.html + css-animations/file_animation-playstate.html + css-animations/file_animation-ready.html + css-animations/file_animation-reverse.html + css-animations/file_animation-starttime.html + css-animations/file_animations-dynamic-changes.html + css-animations/file_cssanimation-animationname.html + css-animations/file_document-get-animations.html + css-animations/file_effect-target.html + css-animations/file_element-get-animations.html + css-animations/file_keyframeeffect-getkeyframes.html + css-animations/file_pseudoElement-get-animations.html + css-transitions/file_animation-cancel.html + css-transitions/file_animation-computed-timing.html + css-transitions/file_animation-currenttime.html + css-transitions/file_animation-finished.html + css-transitions/file_animation-pausing.html + css-transitions/file_animation-ready.html + css-transitions/file_animation-starttime.html + css-transitions/file_csstransition-transitionproperty.html + css-transitions/file_document-get-animations.html + css-transitions/file_effect-target.html + css-transitions/file_element-get-animations.html + css-transitions/file_keyframeeffect-getkeyframes.html + css-transitions/file_pseudoElement-get-animations.html + css-transitions/file_setting-effect.html + document-timeline/file_document-timeline.html + mozilla/file_cubic_bezier_limits.html + mozilla/file_deferred_start.html + mozilla/file_disabled_properties.html + mozilla/file_disable_animations_api_core.html + mozilla/file_discrete-animations.html + mozilla/file_document-timeline-origin-time-range.html + mozilla/file_hide_and_show.html + mozilla/file_partial_keyframes.html + mozilla/file_spacing_property_order.html + mozilla/file_spacing_transform.html + mozilla/file_transform_limits.html + mozilla/file_transition_finish_on_compositor.html + mozilla/file_underlying-discrete-value.html + mozilla/file_set-easing.html + style/file_animation-seeking-with-current-time.html + style/file_animation-seeking-with-start-time.html + style/file_animation-setting-effect.html + style/file_animation-setting-spacing.html + testcommon.js + +[css-animations/test_animations-dynamic-changes.html] +[css-animations/test_animation-cancel.html] +[css-animations/test_animation-computed-timing.html] +[css-animations/test_animation-currenttime.html] +[css-animations/test_animation-finish.html] +[css-animations/test_animation-finished.html] +[css-animations/test_animation-id.html] +[css-animations/test_animation-pausing.html] +[css-animations/test_animation-playstate.html] +[css-animations/test_animation-ready.html] +[css-animations/test_animation-reverse.html] +[css-animations/test_animation-starttime.html] +[css-animations/test_cssanimation-animationname.html] +[css-animations/test_document-get-animations.html] +[css-animations/test_effect-target.html] +[css-animations/test_element-get-animations.html] +[css-animations/test_keyframeeffect-getkeyframes.html] +[css-animations/test_pseudoElement-get-animations.html] +[css-transitions/test_animation-cancel.html] +[css-transitions/test_animation-computed-timing.html] +[css-transitions/test_animation-currenttime.html] +[css-transitions/test_animation-finished.html] +[css-transitions/test_animation-pausing.html] +[css-transitions/test_animation-ready.html] +[css-transitions/test_animation-starttime.html] +[css-transitions/test_csstransition-transitionproperty.html] +[css-transitions/test_document-get-animations.html] +[css-transitions/test_effect-target.html] +[css-transitions/test_element-get-animations.html] +[css-transitions/test_keyframeeffect-getkeyframes.html] +[css-transitions/test_pseudoElement-get-animations.html] +[css-transitions/test_setting-effect.html] +[document-timeline/test_document-timeline.html] +[document-timeline/test_request_animation_frame.html] +[mozilla/test_cubic_bezier_limits.html] +[mozilla/test_deferred_start.html] +[mozilla/test_disable_animations_api_core.html] +[mozilla/test_disabled_properties.html] +[mozilla/test_discrete-animations.html] +[mozilla/test_document-timeline-origin-time-range.html] +[mozilla/test_hide_and_show.html] +[mozilla/test_partial_keyframes.html] +[mozilla/test_set-easing.html] +[mozilla/test_spacing_property_order.html] +[mozilla/test_spacing_transform.html] +[mozilla/test_transform_limits.html] +[mozilla/test_transition_finish_on_compositor.html] +skip-if = toolkit == 'android' +[mozilla/test_underlying-discrete-value.html] +[style/test_animation-seeking-with-current-time.html] +[style/test_animation-seeking-with-start-time.html] +[style/test_animation-setting-effect.html] +[style/test_animation-setting-spacing.html] diff --git a/dom/animation/test/mozilla/file_cubic_bezier_limits.html b/dom/animation/test/mozilla/file_cubic_bezier_limits.html new file mode 100644 index 000000000..a0378f395 --- /dev/null +++ b/dom/animation/test/mozilla/file_cubic_bezier_limits.html @@ -0,0 +1,167 @@ + + + + + + + diff --git a/dom/animation/test/mozilla/file_deferred_start.html b/dom/animation/test/mozilla/file_deferred_start.html new file mode 100644 index 000000000..3be3f56aa --- /dev/null +++ b/dom/animation/test/mozilla/file_deferred_start.html @@ -0,0 +1,121 @@ + + + + + + + + diff --git a/dom/animation/test/mozilla/file_disable_animations_api_core.html b/dom/animation/test/mozilla/file_disable_animations_api_core.html new file mode 100644 index 000000000..ef77988d9 --- /dev/null +++ b/dom/animation/test/mozilla/file_disable_animations_api_core.html @@ -0,0 +1,30 @@ + + + + + + diff --git a/dom/animation/test/mozilla/file_disabled_properties.html b/dom/animation/test/mozilla/file_disabled_properties.html new file mode 100644 index 000000000..f1b72973f --- /dev/null +++ b/dom/animation/test/mozilla/file_disabled_properties.html @@ -0,0 +1,73 @@ + + + + + + diff --git a/dom/animation/test/mozilla/file_discrete-animations.html b/dom/animation/test/mozilla/file_discrete-animations.html new file mode 100644 index 000000000..35e818a90 --- /dev/null +++ b/dom/animation/test/mozilla/file_discrete-animations.html @@ -0,0 +1,170 @@ + + + +Test Mozilla-specific discrete animatable properties + + + + + diff --git a/dom/animation/test/mozilla/file_document-timeline-origin-time-range.html b/dom/animation/test/mozilla/file_document-timeline-origin-time-range.html new file mode 100644 index 000000000..083bf0903 --- /dev/null +++ b/dom/animation/test/mozilla/file_document-timeline-origin-time-range.html @@ -0,0 +1,30 @@ + + + + + + diff --git a/dom/animation/test/mozilla/file_hide_and_show.html b/dom/animation/test/mozilla/file_hide_and_show.html new file mode 100644 index 000000000..0771fcce1 --- /dev/null +++ b/dom/animation/test/mozilla/file_hide_and_show.html @@ -0,0 +1,162 @@ + + + + + + + diff --git a/dom/animation/test/mozilla/file_partial_keyframes.html b/dom/animation/test/mozilla/file_partial_keyframes.html new file mode 100644 index 000000000..68832be7a --- /dev/null +++ b/dom/animation/test/mozilla/file_partial_keyframes.html @@ -0,0 +1,41 @@ + + + + + + diff --git a/dom/animation/test/mozilla/file_set-easing.html b/dom/animation/test/mozilla/file_set-easing.html new file mode 100644 index 000000000..072b125cb --- /dev/null +++ b/dom/animation/test/mozilla/file_set-easing.html @@ -0,0 +1,34 @@ + + + +Test setting easing in sandbox + + + + + diff --git a/dom/animation/test/mozilla/file_spacing_property_order.html b/dom/animation/test/mozilla/file_spacing_property_order.html new file mode 100644 index 000000000..1338d6081 --- /dev/null +++ b/dom/animation/test/mozilla/file_spacing_property_order.html @@ -0,0 +1,33 @@ + + + + + + diff --git a/dom/animation/test/mozilla/file_spacing_transform.html b/dom/animation/test/mozilla/file_spacing_transform.html new file mode 100644 index 000000000..0de773786 --- /dev/null +++ b/dom/animation/test/mozilla/file_spacing_transform.html @@ -0,0 +1,240 @@ + + + + + + diff --git a/dom/animation/test/mozilla/file_transform_limits.html b/dom/animation/test/mozilla/file_transform_limits.html new file mode 100644 index 000000000..d4c813c67 --- /dev/null +++ b/dom/animation/test/mozilla/file_transform_limits.html @@ -0,0 +1,55 @@ + + + + + + diff --git a/dom/animation/test/mozilla/file_transition_finish_on_compositor.html b/dom/animation/test/mozilla/file_transition_finish_on_compositor.html new file mode 100644 index 000000000..4912d05dd --- /dev/null +++ b/dom/animation/test/mozilla/file_transition_finish_on_compositor.html @@ -0,0 +1,67 @@ + + + + + + + + diff --git a/dom/animation/test/mozilla/file_underlying-discrete-value.html b/dom/animation/test/mozilla/file_underlying-discrete-value.html new file mode 100644 index 000000000..3be01b904 --- /dev/null +++ b/dom/animation/test/mozilla/file_underlying-discrete-value.html @@ -0,0 +1,192 @@ + + + + + + diff --git a/dom/animation/test/mozilla/test_cubic_bezier_limits.html b/dom/animation/test/mozilla/test_cubic_bezier_limits.html new file mode 100644 index 000000000..e67e5dbbb --- /dev/null +++ b/dom/animation/test/mozilla/test_cubic_bezier_limits.html @@ -0,0 +1,14 @@ + + + + +
+ diff --git a/dom/animation/test/mozilla/test_deferred_start.html b/dom/animation/test/mozilla/test_deferred_start.html new file mode 100644 index 000000000..4db4bf676 --- /dev/null +++ b/dom/animation/test/mozilla/test_deferred_start.html @@ -0,0 +1,14 @@ + + + + +
+ diff --git a/dom/animation/test/mozilla/test_disable_animations_api_core.html b/dom/animation/test/mozilla/test_disable_animations_api_core.html new file mode 100644 index 000000000..cfb64e537 --- /dev/null +++ b/dom/animation/test/mozilla/test_disable_animations_api_core.html @@ -0,0 +1,14 @@ + + + + +
+ diff --git a/dom/animation/test/mozilla/test_disabled_properties.html b/dom/animation/test/mozilla/test_disabled_properties.html new file mode 100644 index 000000000..86d02e6b6 --- /dev/null +++ b/dom/animation/test/mozilla/test_disabled_properties.html @@ -0,0 +1,14 @@ + + + + +
+ diff --git a/dom/animation/test/mozilla/test_discrete-animations.html b/dom/animation/test/mozilla/test_discrete-animations.html new file mode 100644 index 000000000..2a36bd50e --- /dev/null +++ b/dom/animation/test/mozilla/test_discrete-animations.html @@ -0,0 +1,18 @@ + + + + +
+ diff --git a/dom/animation/test/mozilla/test_document-timeline-origin-time-range.html b/dom/animation/test/mozilla/test_document-timeline-origin-time-range.html new file mode 100644 index 000000000..f73c233d3 --- /dev/null +++ b/dom/animation/test/mozilla/test_document-timeline-origin-time-range.html @@ -0,0 +1,14 @@ + + + + +
+ diff --git a/dom/animation/test/mozilla/test_hide_and_show.html b/dom/animation/test/mozilla/test_hide_and_show.html new file mode 100644 index 000000000..929a31bd4 --- /dev/null +++ b/dom/animation/test/mozilla/test_hide_and_show.html @@ -0,0 +1,14 @@ + + + + +
+ diff --git a/dom/animation/test/mozilla/test_partial_keyframes.html b/dom/animation/test/mozilla/test_partial_keyframes.html new file mode 100644 index 000000000..28eb4c588 --- /dev/null +++ b/dom/animation/test/mozilla/test_partial_keyframes.html @@ -0,0 +1,14 @@ + + + + +
+ diff --git a/dom/animation/test/mozilla/test_set-easing.html b/dom/animation/test/mozilla/test_set-easing.html new file mode 100644 index 000000000..e0069ff1c --- /dev/null +++ b/dom/animation/test/mozilla/test_set-easing.html @@ -0,0 +1,14 @@ + + + + +
+ diff --git a/dom/animation/test/mozilla/test_spacing_property_order.html b/dom/animation/test/mozilla/test_spacing_property_order.html new file mode 100644 index 000000000..afcc12bed --- /dev/null +++ b/dom/animation/test/mozilla/test_spacing_property_order.html @@ -0,0 +1,14 @@ + + + + +
+ diff --git a/dom/animation/test/mozilla/test_spacing_transform.html b/dom/animation/test/mozilla/test_spacing_transform.html new file mode 100644 index 000000000..38dce7e99 --- /dev/null +++ b/dom/animation/test/mozilla/test_spacing_transform.html @@ -0,0 +1,14 @@ + + + + +
+ diff --git a/dom/animation/test/mozilla/test_transform_limits.html b/dom/animation/test/mozilla/test_transform_limits.html new file mode 100644 index 000000000..6c9b5e4fa --- /dev/null +++ b/dom/animation/test/mozilla/test_transform_limits.html @@ -0,0 +1,14 @@ + + + + +
+ diff --git a/dom/animation/test/mozilla/test_transition_finish_on_compositor.html b/dom/animation/test/mozilla/test_transition_finish_on_compositor.html new file mode 100644 index 000000000..357e5297e --- /dev/null +++ b/dom/animation/test/mozilla/test_transition_finish_on_compositor.html @@ -0,0 +1,14 @@ + + + + +
+ diff --git a/dom/animation/test/mozilla/test_underlying-discrete-value.html b/dom/animation/test/mozilla/test_underlying-discrete-value.html new file mode 100644 index 000000000..7feee53a1 --- /dev/null +++ b/dom/animation/test/mozilla/test_underlying-discrete-value.html @@ -0,0 +1,15 @@ + + + + +
+ + diff --git a/dom/animation/test/style/file_animation-seeking-with-current-time.html b/dom/animation/test/style/file_animation-seeking-with-current-time.html new file mode 100644 index 000000000..c3a590394 --- /dev/null +++ b/dom/animation/test/style/file_animation-seeking-with-current-time.html @@ -0,0 +1,121 @@ + + + + + Tests for seeking using Animation.currentTime + + + + + + + diff --git a/dom/animation/test/style/file_animation-seeking-with-start-time.html b/dom/animation/test/style/file_animation-seeking-with-start-time.html new file mode 100644 index 000000000..ba09827c6 --- /dev/null +++ b/dom/animation/test/style/file_animation-seeking-with-start-time.html @@ -0,0 +1,121 @@ + + + + + Tests for seeking using Animation.startTime + + + + + + + diff --git a/dom/animation/test/style/file_animation-setting-effect.html b/dom/animation/test/style/file_animation-setting-effect.html new file mode 100644 index 000000000..cf50cf2ce --- /dev/null +++ b/dom/animation/test/style/file_animation-setting-effect.html @@ -0,0 +1,125 @@ + + + + + Tests for setting effects by using Animation.effect + + + + + + diff --git a/dom/animation/test/style/file_animation-setting-spacing.html b/dom/animation/test/style/file_animation-setting-spacing.html new file mode 100644 index 000000000..6098b7433 --- /dev/null +++ b/dom/animation/test/style/file_animation-setting-spacing.html @@ -0,0 +1,111 @@ + + + +Tests for setting spacing by using KeyframeEffect.spacing + + + + + diff --git a/dom/animation/test/style/test_animation-seeking-with-current-time.html b/dom/animation/test/style/test_animation-seeking-with-current-time.html new file mode 100644 index 000000000..386e57788 --- /dev/null +++ b/dom/animation/test/style/test_animation-seeking-with-current-time.html @@ -0,0 +1,15 @@ + + + + +
+ + diff --git a/dom/animation/test/style/test_animation-seeking-with-start-time.html b/dom/animation/test/style/test_animation-seeking-with-start-time.html new file mode 100644 index 000000000..0a1691a08 --- /dev/null +++ b/dom/animation/test/style/test_animation-seeking-with-start-time.html @@ -0,0 +1,15 @@ + + + + +
+ + diff --git a/dom/animation/test/style/test_animation-setting-effect.html b/dom/animation/test/style/test_animation-setting-effect.html new file mode 100644 index 000000000..1199b3e75 --- /dev/null +++ b/dom/animation/test/style/test_animation-setting-effect.html @@ -0,0 +1,15 @@ + + + + +
+ + diff --git a/dom/animation/test/style/test_animation-setting-spacing.html b/dom/animation/test/style/test_animation-setting-spacing.html new file mode 100644 index 000000000..1c703e2a3 --- /dev/null +++ b/dom/animation/test/style/test_animation-setting-spacing.html @@ -0,0 +1,14 @@ + + + + +
+ diff --git a/dom/animation/test/testcommon.js b/dom/animation/test/testcommon.js new file mode 100644 index 000000000..b9001e4f4 --- /dev/null +++ b/dom/animation/test/testcommon.js @@ -0,0 +1,216 @@ +/* Any copyright is dedicated to the Public Domain. + * http://creativecommons.org/publicdomain/zero/1.0/ */ + +/** + * Use this variable if you specify duration or some other properties + * for script animation. + * E.g., div.animate({ opacity: [0, 1] }, 100 * MS_PER_SEC); + * + * NOTE: Creating animations with short duration may cause intermittent + * failures in asynchronous test. For example, the short duration animation + * might be finished when animation.ready has been fulfilled because of slow + * platforms or busyness of the main thread. + * Setting short duration to cancel its animation does not matter but + * if you don't want to cancel the animation, consider using longer duration. + */ +const MS_PER_SEC = 1000; + +/* The recommended minimum precision to use for time values[1]. + * + * [1] https://w3c.github.io/web-animations/#precision-of-time-values + */ +var TIME_PRECISION = 0.0005; // ms + +/* + * Allow implementations to substitute an alternative method for comparing + * times based on their precision requirements. + */ +function assert_times_equal(actual, expected, description) { + assert_approx_equals(actual, expected, TIME_PRECISION, description); +} + +/** + * Appends a div to the document body and creates an animation on the div. + * NOTE: This function asserts when trying to create animations with durations + * shorter than 100s because the shorter duration may cause intermittent + * failures. If you are not sure how long it is suitable, use 100s; it's + * long enough but shorter than our test framework timeout (330s). + * If you really need to use shorter durations, use animate() function directly. + * + * @param t The testharness.js Test object. If provided, this will be used + * to register a cleanup callback to remove the div when the test + * finishes. + * @param attrs A dictionary object with attribute names and values to set on + * the div. + * @param frames The keyframes passed to Element.animate(). + * @param options The options passed to Element.animate(). + */ +function addDivAndAnimate(t, attrs, frames, options) { + let animDur = (typeof options === 'object') ? + options.duration : options; + assert_greater_than_equal(animDur, 100 * MS_PER_SEC, + 'Clients of this addDivAndAnimate API must request a duration ' + + 'of at least 100s, to avoid intermittent failures from e.g.' + + 'the main thread being busy for an extended period'); + + return addDiv(t, attrs).animate(frames, options); +} + +/** + * Appends a div to the document body. + * + * @param t The testharness.js Test object. If provided, this will be used + * to register a cleanup callback to remove the div when the test + * finishes. + * + * @param attrs A dictionary object with attribute names and values to set on + * the div. + */ +function addDiv(t, attrs) { + var div = document.createElement('div'); + if (attrs) { + for (var attrName in attrs) { + div.setAttribute(attrName, attrs[attrName]); + } + } + document.body.appendChild(div); + if (t && typeof t.add_cleanup === 'function') { + t.add_cleanup(function() { + if (div.parentNode) { + div.parentNode.removeChild(div); + } + }); + } + return div; +} + +/** + * Appends a style div to the document head. + * + * @param t The testharness.js Test object. If provided, this will be used + * to register a cleanup callback to remove the style element + * when the test finishes. + * + * @param rules A dictionary object with selector names and rules to set on + * the style sheet. + */ +function addStyle(t, rules) { + var extraStyle = document.createElement('style'); + document.head.appendChild(extraStyle); + if (rules) { + var sheet = extraStyle.sheet; + for (var selector in rules) { + sheet.insertRule(selector + '{' + rules[selector] + '}', + sheet.cssRules.length); + } + } + + if (t && typeof t.add_cleanup === 'function') { + t.add_cleanup(function() { + extraStyle.remove(); + }); + } +} + +/** + * Promise wrapper for requestAnimationFrame. + */ +function waitForFrame() { + return new Promise(function(resolve, reject) { + window.requestAnimationFrame(resolve); + }); +} + +/** + * Returns a Promise that is resolved after the given number of consecutive + * animation frames have occured (using requestAnimationFrame callbacks). + * + * @param frameCount The number of animation frames. + * @param onFrame An optional function to be processed in each animation frame. + */ +function waitForAnimationFrames(frameCount, onFrame) { + return new Promise(function(resolve, reject) { + function handleFrame() { + if (onFrame && typeof onFrame === 'function') { + onFrame(); + } + if (--frameCount <= 0) { + resolve(); + } else { + window.requestAnimationFrame(handleFrame); // wait another frame + } + } + window.requestAnimationFrame(handleFrame); + }); +} + +/** + * Wrapper that takes a sequence of N animations and returns: + * + * Promise.all([animations[0].ready, animations[1].ready, ... animations[N-1].ready]); + */ +function waitForAllAnimations(animations) { + return Promise.all(animations.map(function(animation) { + return animation.ready; + })); +} + +/** + * Flush the computed style for the given element. This is useful, for example, + * when we are testing a transition and need the initial value of a property + * to be computed so that when we synchronouslyet set it to a different value + * we actually get a transition instead of that being the initial value. + */ +function flushComputedStyle(elem) { + var cs = window.getComputedStyle(elem); + cs.marginLeft; +} + +if (opener) { + for (var funcName of ["async_test", "assert_not_equals", "assert_equals", + "assert_approx_equals", "assert_less_than", + "assert_less_than_equal", "assert_greater_than", + "assert_between_inclusive", + "assert_true", "assert_false", + "assert_class_string", "assert_throws", + "assert_unreached", "promise_test", "test"]) { + window[funcName] = opener[funcName].bind(opener); + } + + window.EventWatcher = opener.EventWatcher; + + function done() { + opener.add_completion_callback(function() { + self.close(); + }); + opener.done(); + } +} + +/** + * Return a new MutaionObserver which started observing |target| element + * with { animations: true, subtree: |subtree| } option. + * NOTE: This observer should be used only with takeRecords(). If any of + * MutationRecords are observed in the callback of the MutationObserver, + * it will raise an assertion. + */ +function setupSynchronousObserver(t, target, subtree) { + var observer = new MutationObserver(records => { + assert_unreached("Any MutationRecords should not be observed in this " + + "callback"); + }); + t.add_cleanup(() => { + observer.disconnect(); + }); + observer.observe(target, { animations: true, subtree: subtree }); + return observer; +} + +/** + * Returns true if off-main-thread animations. + */ +function isOMTAEnabled() { + const OMTAPrefKey = 'layers.offmainthreadcomposition.async-animations'; + return SpecialPowers.DOMWindowUtils.layerManagerRemote && + SpecialPowers.getBoolPref(OMTAPrefKey); +} -- cgit v1.2.3