[Web Animations] Turn Web Animations with CSS integration on for test runners
authorgraouts@webkit.org <graouts@webkit.org@268f45cc-cd09-0410-ab3c-d52691b4dbfc>
Fri, 18 May 2018 19:01:00 +0000 (19:01 +0000)
committergraouts@webkit.org <graouts@webkit.org@268f45cc-cd09-0410-ab3c-d52691b4dbfc>
Fri, 18 May 2018 19:01:00 +0000 (19:01 +0000)
https://bugs.webkit.org/show_bug.cgi?id=184819
<rdar://problem/39597337>

Unreviewed. Rolling out the patch for this bug, it caused some flaky timeouts for animation suspension tests.

LayoutTests/imported/mozilla:

* 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_animations-dynamic-changes.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_event-dispatch.html:
* css-animations/test_event-order.html:
* css-animations/test_keyframeeffect-getkeyframes.html:
* css-animations/test_pseudoElement-get-animations.html:
* css-animations/test_setting-effect.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_event-dispatch.html:
* css-transitions/test_keyframeeffect-getkeyframes.html:
* css-transitions/test_pseudoElement-get-animations.html:
* css-transitions/test_setting-effect.html:

LayoutTests/imported/w3c:

* web-platform-tests/css-timing-1/frames-timing-functions-output.html:
* web-platform-tests/web-animations/interfaces/Animatable/animate-expected.txt:
* web-platform-tests/web-animations/interfaces/Animation/ready.html:
* web-platform-tests/web-animations/timing-model/animations/playing-an-animation.html:
* web-platform-tests/web-animations/timing-model/animations/reversing-an-animation.html:

Source/WebCore:

Tests: animations/animation-internals-api-multiple-keyframes.html
       animations/animation-internals-api.html
       transitions/transition-drt-api-delay.html
       transitions/transition-drt-api.html

* dom/Element.cpp:
(WebCore::Element::removedFromAncestor):
* dom/PseudoElement.cpp:
(WebCore::PseudoElement::clearHostElement):
* page/FrameView.cpp:
(WebCore::FrameView::didDestroyRenderTree):
* page/RuntimeEnabledFeatures.h:
* rendering/updating/RenderTreeUpdater.cpp:
(WebCore::RenderTreeUpdater::tearDownRenderers):

Source/WebKit:

* Shared/WebPreferences.yaml:

Tools:

* DumpRenderTree/TestOptions.cpp:
(TestOptions::TestOptions):
* DumpRenderTree/TestOptions.h:
* DumpRenderTree/mac/DumpRenderTree.mm:
(runTest):
(shouldOverrideAndDisableWebAnimationsCSSIntegrationPreference): Deleted.
* WebKitTestRunner/TestController.cpp:
(WTR::TestController::resetPreferencesToConsistentValues):
(WTR::updateTestOptionsFromTestHeader):
* WebKitTestRunner/TestOptions.cpp:
(WTR::TestOptions::TestOptions):
(WTR::isLegacyAnimationEngineTestPath): Deleted.
* WebKitTestRunner/TestOptions.h:

LayoutTests:

* TestExpectations:
* animations/3d/matrix-transform-type-animation.html:
* animations/3d/replace-filling-transform.html:
* animations/3d/transform-origin-vs-functions.html:
* animations/3d/transform-perspective.html:
* animations/additive-transform-animations.html:
* animations/animation-border-overflow.html:
* animations/animation-callback-timestamp.html:
* animations/animation-controller-drt-api.html:
* animations/animation-direction-alternate-reverse-expected.txt:
* animations/animation-direction-alternate-reverse.html:
* animations/animation-direction-reverse-fill-mode-hardware.html:
* animations/animation-direction-reverse-hardware-opacity.html:
* animations/animation-direction-reverse-hardware.html:
* animations/animation-direction-reverse-non-hardware.html:
* animations/animation-direction-reverse-timing-functions-hardware.html:
* animations/animation-direction-reverse-timing-functions.html:
* animations/animation-direction.html:
* animations/animation-followed-by-transition.html:
* animations/animation-hit-test-transform.html:
* animations/animation-hit-test.html:
* animations/animation-internals-api-expected.txt: Added.
* animations/animation-internals-api-multiple-keyframes-expected.txt: Added.
* animations/animation-internals-api-multiple-keyframes.html: Added.
* animations/animation-internals-api.html: Added.
* animations/animation-offscreen-to-onscreen.html:
* animations/big-rotation-expected.txt:
* animations/big-rotation.html:
* animations/change-completed-animation-transform.html:
* animations/change-keyframes.html:
* animations/combo-transform-rotate+scale.html:
* animations/cross-fade-background-image.html:
* animations/cross-fade-border-image-source.html:
* animations/cross-fade-list-style-image.html:
* animations/cross-fade-webkit-mask-box-image.html:
* animations/duplicate-keys-expected.html:
* animations/duplicate-keys.html:
* animations/duplicated-keyframes-name.html:
* animations/fill-forwards-end-state.html:
* animations/fill-mode-forwards-zero-duration-expected.txt:
* animations/fill-mode-forwards-zero-duration.html:
* animations/font-variations/font-stretch.html:
* animations/font-variations/font-style.html:
* animations/font-variations/font-variation-settings-order.html:
* animations/font-variations/font-variation-settings-unlike.html:
* animations/font-variations/font-variation-settings.html:
* animations/font-variations/font-weight.html:
* animations/generic-from-to.html:
* animations/import.html:
* animations/keyframe-multiple-timing-functions-transform.html:
* animations/keyframe-timing-functions-transform.html:
* animations/keyframe-timing-functions.html:
* animations/keyframe-timing-functions2.html:
* animations/keyframes-comma-separated.html:
* animations/keyframes-dynamic.html:
* animations/keyframes-infinite-iterations.html:
* animations/keyframes-invalid-keys.html:
* animations/keyframes-out-of-order.html:
* animations/keyframes.html:
* animations/lineheight-animation.html:
* animations/longhand-timing-function.html:
* animations/matrix-anim.html:
* animations/missing-from-to-transforms.html:
* animations/missing-from-to.html:
* animations/missing-keyframe-properties-repeating.html:
* animations/missing-keyframe-properties-timing-function.html:
* animations/missing-keyframe-properties.html:
* animations/missing-values-first-keyframe.html:
* animations/missing-values-last-keyframe.html:
* animations/multiple-animations-timing-function.html:
* animations/multiple-animations.html:
* animations/multiple-keyframes.html:
* animations/negative-delay.html:
* animations/pause-crash.html:
* animations/play-state-start-paused.html:
* animations/simultaneous-start-left.html:
* animations/simultaneous-start-transform.html:
* animations/spring-function.html:
* animations/stacking-context-unchanged-while-running.html:
* animations/timing-functions.html:
* animations/transition-and-animation-1.html:
* animations/transition-and-animation-2.html:
* animations/transition-and-animation-3.html:
* animations/unanimated-style.html:
* animations/unprefixed-keyframes.html:
* animations/width-using-ems.html:
* compositing/animation/animated-composited-inside-hidden.html:
* compositing/animation/computed-style-during-delay.html:
* compositing/animation/layer-for-filling-animation.html:
* compositing/backing/backface-visibility-flip.html:
* compositing/contents-scale/animating.html:
* compositing/layer-creation/animation-overlap-with-children.html:
* compositing/layer-creation/mismatched-rotated-transform-animation-overlap.html:
* compositing/layer-creation/multiple-keyframes-animation-overlap.html:
* compositing/layer-creation/overlap-animation-clipping.html:
* compositing/layer-creation/overlap-animation-container.html:
* compositing/layer-creation/overlap-animation.html:
* compositing/layer-creation/scale-rotation-animation-overlap.html:
* compositing/layer-creation/translate-animation-overlap.html:
* compositing/layer-creation/translate-scale-animation-overlap.html:
* compositing/overflow/overflow-positioning.html:
* compositing/reflections/animation-inside-reflection.html:
* compositing/reflections/nested-reflection-animated.html:
* compositing/reflections/nested-reflection-transition.html:
* compositing/transitions/scale-transition-no-start.html:
* compositing/transitions/singular-scale-transition.html:
* compositing/visible-rect/animated.html:
* css3/calc/transitions-dependent.html:
* css3/calc/transitions.html:
* css3/filters/backdrop/animation.html:
* css3/filters/composited-during-animation.html:
* css3/filters/filter-animation-from-none-hw.html:
* css3/filters/filter-animation-from-none-multi-hw.html:
* css3/filters/filter-animation-from-none-multi.html:
* css3/filters/filter-animation-from-none.html:
* css3/filters/filter-animation-hw.html:
* css3/filters/filter-animation-multi-hw.html:
* css3/filters/filter-animation-multi.html:
* css3/filters/filter-animation.html:
* css3/masking/clip-path-animation.html:
* fast/animation/css-animation-resuming-when-visible-with-style-change.html:
* fast/animation/css-animation-resuming-when-visible.html:
* fast/animation/css-animation-throttling-lowPowerMode.html:
* fast/css-generated-content/pseudo-animation.html:
* fast/css-generated-content/pseudo-transition.html:
* fast/filter-image/filter-image-animation.html:
* fast/shapes/shape-outside-floats/shape-outside-animation.html:
* fast/shapes/shape-outside-floats/shape-outside-shape-image-threshold-animation.html:
* fast/shapes/shape-outside-floats/shape-outside-shape-margin-animation.html:
* imported/blink/transitions/unprefixed-transform.html:
* platform/ios/TestExpectations:
* platform/win/TestExpectations:
* transitions/background-position-transitions.html:
* transitions/background-transitions.html:
* transitions/blendmode-transitions.html:
* transitions/border-radius-transition.html:
* transitions/clip-path-path-transitions.html:
* transitions/clip-path-transitions.html:
* transitions/clip-transition.html:
* transitions/color-transition-all.html:
* transitions/color-transition-premultiplied.html:
* transitions/color-transition-rounding.html:
* transitions/cross-fade-background-image.html:
* transitions/cross-fade-border-image.html:
* transitions/cubic-bezier-overflow-color.html:
* transitions/cubic-bezier-overflow-length.html:
* transitions/cubic-bezier-overflow-shadow.html:
* transitions/cubic-bezier-overflow-svg-length.html:
* transitions/cubic-bezier-overflow-transform.html:
* transitions/default-timing-function.html:
* transitions/delay.html:
* transitions/flex-transitions.html:
* transitions/font-family-during-transition.html:
* transitions/frames-timing-function.html:
* transitions/interrupted-all-transition.html:
* transitions/longhand-vs-shorthand-initial.html:
* transitions/mask-transitions.html:
* transitions/min-max-width-height-transitions.html:
* transitions/mismatched-shadow-styles.html:
* transitions/mismatched-shadow-transitions.html:
* transitions/mixed-type.html:
* transitions/move-after-transition.html:
* transitions/multiple-background-size-transitions.html:
* transitions/multiple-background-transitions.html:
* transitions/multiple-mask-transitions.html:
* transitions/multiple-shadow-transitions.html:
* transitions/negative-delay.html:
* transitions/opacity-transition-zindex.html:
* transitions/remove-transition-style.html:
* transitions/shape-outside-transitions.html:
* transitions/shorthand-border-transitions.html:
* transitions/shorthand-transitions.html:
* transitions/steps-timing-function.html:
* transitions/svg-layout-transition.html:
* transitions/svg-text-shadow-transition.html:
* transitions/svg-transitions.html:
* transitions/text-indent-transition.html:
* transitions/transform-op-list-match.html:
* transitions/transform-op-list-no-match.html:
* transitions/transition-drt-api-delay-expected.txt: Added.
* transitions/transition-drt-api-delay.html: Added.
* transitions/transition-drt-api-expected.txt: Added.
* transitions/transition-drt-api.html: Added.
* transitions/transition-end-event-rendering.html:
* transitions/transition-hit-test-transform.html:
* transitions/transition-hit-test.html:
* transitions/transition-in-delay-phase.html:
* transitions/transition-on-element-with-content.html:
* transitions/transition-shorthand-delay.html:
* transitions/transition-timing-function.html:
* transitions/transition-to-from-auto.html:
* transitions/transition-to-from-undefined.html:
* transitions/visited-link-color.html:
* transitions/zero-duration-in-list.html:
* transitions/zero-duration-with-non-zero-delay-end.html:
* transitions/zero-duration-with-non-zero-delay-start.html:
* webanimations/css-animations.html:
* webanimations/css-transitions.html:

git-svn-id: https://svn.webkit.org/repository/webkit/trunk@231977 268f45cc-cd09-0410-ab3c-d52691b4dbfc

257 files changed:
LayoutTests/ChangeLog
LayoutTests/TestExpectations
LayoutTests/animations/3d/matrix-transform-type-animation.html
LayoutTests/animations/3d/replace-filling-transform.html
LayoutTests/animations/3d/transform-origin-vs-functions.html
LayoutTests/animations/3d/transform-perspective.html
LayoutTests/animations/additive-transform-animations.html
LayoutTests/animations/animation-border-overflow.html
LayoutTests/animations/animation-callback-timestamp.html
LayoutTests/animations/animation-controller-drt-api.html
LayoutTests/animations/animation-direction-alternate-reverse-expected.txt
LayoutTests/animations/animation-direction-alternate-reverse.html
LayoutTests/animations/animation-direction-reverse-fill-mode-hardware.html
LayoutTests/animations/animation-direction-reverse-hardware-opacity.html
LayoutTests/animations/animation-direction-reverse-hardware.html
LayoutTests/animations/animation-direction-reverse-non-hardware.html
LayoutTests/animations/animation-direction-reverse-timing-functions-hardware.html
LayoutTests/animations/animation-direction-reverse-timing-functions.html
LayoutTests/animations/animation-direction.html
LayoutTests/animations/animation-followed-by-transition.html
LayoutTests/animations/animation-hit-test-transform.html
LayoutTests/animations/animation-hit-test.html
LayoutTests/animations/animation-internals-api-expected.txt [new file with mode: 0644]
LayoutTests/animations/animation-internals-api-multiple-keyframes-expected.txt [new file with mode: 0644]
LayoutTests/animations/animation-internals-api-multiple-keyframes.html [new file with mode: 0644]
LayoutTests/animations/animation-internals-api.html [new file with mode: 0644]
LayoutTests/animations/animation-offscreen-to-onscreen.html
LayoutTests/animations/big-rotation-expected.txt
LayoutTests/animations/big-rotation.html
LayoutTests/animations/change-completed-animation-transform.html
LayoutTests/animations/change-keyframes.html
LayoutTests/animations/combo-transform-rotate+scale.html
LayoutTests/animations/cross-fade-background-image.html
LayoutTests/animations/cross-fade-border-image-source.html
LayoutTests/animations/cross-fade-list-style-image.html
LayoutTests/animations/cross-fade-webkit-mask-box-image.html
LayoutTests/animations/duplicate-keys-expected.html
LayoutTests/animations/duplicate-keys.html
LayoutTests/animations/duplicated-keyframes-name.html
LayoutTests/animations/fill-forwards-end-state.html
LayoutTests/animations/fill-mode-forwards-zero-duration-expected.txt
LayoutTests/animations/fill-mode-forwards-zero-duration.html
LayoutTests/animations/font-variations/font-stretch.html
LayoutTests/animations/font-variations/font-style.html
LayoutTests/animations/font-variations/font-variation-settings-order.html
LayoutTests/animations/font-variations/font-variation-settings-unlike.html
LayoutTests/animations/font-variations/font-variation-settings.html
LayoutTests/animations/font-variations/font-weight.html
LayoutTests/animations/generic-from-to.html
LayoutTests/animations/import.html
LayoutTests/animations/keyframe-multiple-timing-functions-transform.html
LayoutTests/animations/keyframe-timing-functions-transform.html
LayoutTests/animations/keyframe-timing-functions.html
LayoutTests/animations/keyframe-timing-functions2.html
LayoutTests/animations/keyframes-comma-separated.html
LayoutTests/animations/keyframes-dynamic.html
LayoutTests/animations/keyframes-infinite-iterations.html
LayoutTests/animations/keyframes-invalid-keys.html
LayoutTests/animations/keyframes-out-of-order.html
LayoutTests/animations/keyframes.html
LayoutTests/animations/lineheight-animation.html
LayoutTests/animations/longhand-timing-function.html
LayoutTests/animations/matrix-anim.html
LayoutTests/animations/missing-from-to-transforms.html
LayoutTests/animations/missing-from-to.html
LayoutTests/animations/missing-keyframe-properties-repeating.html
LayoutTests/animations/missing-keyframe-properties-timing-function.html
LayoutTests/animations/missing-keyframe-properties.html
LayoutTests/animations/missing-values-first-keyframe.html
LayoutTests/animations/missing-values-last-keyframe.html
LayoutTests/animations/multiple-animations-timing-function.html
LayoutTests/animations/multiple-animations.html
LayoutTests/animations/multiple-keyframes.html
LayoutTests/animations/negative-delay.html
LayoutTests/animations/pause-crash.html
LayoutTests/animations/play-state-start-paused.html
LayoutTests/animations/simultaneous-start-left.html
LayoutTests/animations/simultaneous-start-transform.html
LayoutTests/animations/spring-function.html
LayoutTests/animations/stacking-context-unchanged-while-running.html
LayoutTests/animations/timing-functions.html
LayoutTests/animations/transition-and-animation-1.html
LayoutTests/animations/transition-and-animation-2.html
LayoutTests/animations/transition-and-animation-3.html
LayoutTests/animations/unanimated-style.html
LayoutTests/animations/unprefixed-keyframes.html
LayoutTests/animations/width-using-ems.html
LayoutTests/compositing/animation/animated-composited-inside-hidden.html
LayoutTests/compositing/animation/computed-style-during-delay.html
LayoutTests/compositing/animation/layer-for-filling-animation.html
LayoutTests/compositing/backing/backface-visibility-flip.html
LayoutTests/compositing/contents-scale/animating.html
LayoutTests/compositing/layer-creation/animation-overlap-with-children.html
LayoutTests/compositing/layer-creation/mismatched-rotated-transform-animation-overlap.html
LayoutTests/compositing/layer-creation/multiple-keyframes-animation-overlap.html
LayoutTests/compositing/layer-creation/overlap-animation-clipping.html
LayoutTests/compositing/layer-creation/overlap-animation-container.html
LayoutTests/compositing/layer-creation/overlap-animation.html
LayoutTests/compositing/layer-creation/scale-rotation-animation-overlap.html
LayoutTests/compositing/layer-creation/translate-animation-overlap.html
LayoutTests/compositing/layer-creation/translate-scale-animation-overlap.html
LayoutTests/compositing/overflow/overflow-positioning.html
LayoutTests/compositing/reflections/animation-inside-reflection.html
LayoutTests/compositing/reflections/nested-reflection-animated.html
LayoutTests/compositing/reflections/nested-reflection-transition.html
LayoutTests/compositing/transitions/scale-transition-no-start.html
LayoutTests/compositing/transitions/singular-scale-transition.html
LayoutTests/compositing/visible-rect/animated.html
LayoutTests/css3/calc/transitions-dependent.html
LayoutTests/css3/calc/transitions.html
LayoutTests/css3/filters/backdrop/animation.html
LayoutTests/css3/filters/composited-during-animation.html
LayoutTests/css3/filters/filter-animation-from-none-hw.html
LayoutTests/css3/filters/filter-animation-from-none-multi-hw.html
LayoutTests/css3/filters/filter-animation-from-none-multi.html
LayoutTests/css3/filters/filter-animation-from-none.html
LayoutTests/css3/filters/filter-animation-hw.html
LayoutTests/css3/filters/filter-animation-multi-hw.html
LayoutTests/css3/filters/filter-animation-multi.html
LayoutTests/css3/filters/filter-animation.html
LayoutTests/css3/masking/clip-path-animation.html
LayoutTests/fast/animation/css-animation-resuming-when-visible-with-style-change.html
LayoutTests/fast/animation/css-animation-resuming-when-visible.html
LayoutTests/fast/animation/css-animation-throttling-lowPowerMode.html
LayoutTests/fast/css-generated-content/pseudo-animation.html
LayoutTests/fast/css-generated-content/pseudo-transition.html
LayoutTests/fast/filter-image/filter-image-animation.html
LayoutTests/fast/shapes/shape-outside-floats/shape-outside-animation.html
LayoutTests/fast/shapes/shape-outside-floats/shape-outside-shape-image-threshold-animation.html
LayoutTests/fast/shapes/shape-outside-floats/shape-outside-shape-margin-animation.html
LayoutTests/imported/blink/transitions/unprefixed-transform.html
LayoutTests/imported/mozilla/ChangeLog
LayoutTests/imported/mozilla/css-animations/test_animation-cancel.html
LayoutTests/imported/mozilla/css-animations/test_animation-computed-timing.html
LayoutTests/imported/mozilla/css-animations/test_animation-currenttime.html
LayoutTests/imported/mozilla/css-animations/test_animation-finish.html
LayoutTests/imported/mozilla/css-animations/test_animation-finished.html
LayoutTests/imported/mozilla/css-animations/test_animation-id.html
LayoutTests/imported/mozilla/css-animations/test_animation-pausing.html
LayoutTests/imported/mozilla/css-animations/test_animation-playstate.html
LayoutTests/imported/mozilla/css-animations/test_animation-ready.html
LayoutTests/imported/mozilla/css-animations/test_animation-reverse.html
LayoutTests/imported/mozilla/css-animations/test_animation-starttime.html
LayoutTests/imported/mozilla/css-animations/test_animations-dynamic-changes.html
LayoutTests/imported/mozilla/css-animations/test_cssanimation-animationname.html
LayoutTests/imported/mozilla/css-animations/test_document-get-animations.html
LayoutTests/imported/mozilla/css-animations/test_effect-target.html
LayoutTests/imported/mozilla/css-animations/test_element-get-animations.html
LayoutTests/imported/mozilla/css-animations/test_event-dispatch.html
LayoutTests/imported/mozilla/css-animations/test_event-order.html
LayoutTests/imported/mozilla/css-animations/test_keyframeeffect-getkeyframes.html
LayoutTests/imported/mozilla/css-animations/test_pseudoElement-get-animations.html
LayoutTests/imported/mozilla/css-animations/test_setting-effect.html
LayoutTests/imported/mozilla/css-transitions/test_animation-cancel.html
LayoutTests/imported/mozilla/css-transitions/test_animation-computed-timing.html
LayoutTests/imported/mozilla/css-transitions/test_animation-currenttime.html
LayoutTests/imported/mozilla/css-transitions/test_animation-finished.html
LayoutTests/imported/mozilla/css-transitions/test_animation-pausing.html
LayoutTests/imported/mozilla/css-transitions/test_animation-ready.html
LayoutTests/imported/mozilla/css-transitions/test_animation-starttime.html
LayoutTests/imported/mozilla/css-transitions/test_csstransition-transitionproperty.html
LayoutTests/imported/mozilla/css-transitions/test_document-get-animations.html
LayoutTests/imported/mozilla/css-transitions/test_effect-target.html
LayoutTests/imported/mozilla/css-transitions/test_element-get-animations.html
LayoutTests/imported/mozilla/css-transitions/test_event-dispatch.html
LayoutTests/imported/mozilla/css-transitions/test_keyframeeffect-getkeyframes.html
LayoutTests/imported/mozilla/css-transitions/test_pseudoElement-get-animations.html
LayoutTests/imported/mozilla/css-transitions/test_setting-effect.html
LayoutTests/imported/w3c/ChangeLog
LayoutTests/imported/w3c/web-platform-tests/css-timing-1/frames-timing-functions-output.html
LayoutTests/imported/w3c/web-platform-tests/web-animations/interfaces/Animatable/animate-expected.txt
LayoutTests/imported/w3c/web-platform-tests/web-animations/interfaces/Animation/ready.html
LayoutTests/imported/w3c/web-platform-tests/web-animations/timing-model/animations/playing-an-animation.html
LayoutTests/imported/w3c/web-platform-tests/web-animations/timing-model/animations/reversing-an-animation.html
LayoutTests/platform/ios/TestExpectations
LayoutTests/platform/win/TestExpectations
LayoutTests/transitions/background-position-transitions.html
LayoutTests/transitions/background-transitions.html
LayoutTests/transitions/blendmode-transitions.html
LayoutTests/transitions/border-radius-transition.html
LayoutTests/transitions/clip-path-path-transitions.html
LayoutTests/transitions/clip-path-transitions.html
LayoutTests/transitions/clip-transition.html
LayoutTests/transitions/color-transition-all.html
LayoutTests/transitions/color-transition-premultiplied.html
LayoutTests/transitions/color-transition-rounding.html
LayoutTests/transitions/cross-fade-background-image.html
LayoutTests/transitions/cross-fade-border-image.html
LayoutTests/transitions/cubic-bezier-overflow-color.html
LayoutTests/transitions/cubic-bezier-overflow-length.html
LayoutTests/transitions/cubic-bezier-overflow-shadow.html
LayoutTests/transitions/cubic-bezier-overflow-svg-length.html
LayoutTests/transitions/cubic-bezier-overflow-transform.html
LayoutTests/transitions/default-timing-function.html
LayoutTests/transitions/delay.html
LayoutTests/transitions/flex-transitions.html
LayoutTests/transitions/font-family-during-transition.html
LayoutTests/transitions/frames-timing-function.html
LayoutTests/transitions/interrupted-all-transition.html
LayoutTests/transitions/longhand-vs-shorthand-initial.html
LayoutTests/transitions/mask-transitions.html
LayoutTests/transitions/min-max-width-height-transitions.html
LayoutTests/transitions/mismatched-shadow-styles.html
LayoutTests/transitions/mismatched-shadow-transitions.html
LayoutTests/transitions/mixed-type.html
LayoutTests/transitions/move-after-transition.html
LayoutTests/transitions/multiple-background-size-transitions.html
LayoutTests/transitions/multiple-background-transitions.html
LayoutTests/transitions/multiple-mask-transitions.html
LayoutTests/transitions/multiple-shadow-transitions.html
LayoutTests/transitions/negative-delay.html
LayoutTests/transitions/opacity-transition-zindex.html
LayoutTests/transitions/remove-transition-style.html
LayoutTests/transitions/shape-outside-transitions.html
LayoutTests/transitions/shorthand-border-transitions.html
LayoutTests/transitions/shorthand-transitions.html
LayoutTests/transitions/steps-timing-function.html
LayoutTests/transitions/svg-layout-transition.html
LayoutTests/transitions/svg-text-shadow-transition.html
LayoutTests/transitions/svg-transitions.html
LayoutTests/transitions/text-indent-transition.html
LayoutTests/transitions/transform-op-list-match.html
LayoutTests/transitions/transform-op-list-no-match.html
LayoutTests/transitions/transition-drt-api-delay-expected.txt [new file with mode: 0644]
LayoutTests/transitions/transition-drt-api-delay.html [new file with mode: 0644]
LayoutTests/transitions/transition-drt-api-expected.txt [new file with mode: 0644]
LayoutTests/transitions/transition-drt-api.html [new file with mode: 0644]
LayoutTests/transitions/transition-end-event-rendering.html
LayoutTests/transitions/transition-hit-test-transform.html
LayoutTests/transitions/transition-hit-test.html
LayoutTests/transitions/transition-in-delay-phase.html
LayoutTests/transitions/transition-on-element-with-content.html
LayoutTests/transitions/transition-shorthand-delay.html
LayoutTests/transitions/transition-timing-function.html
LayoutTests/transitions/transition-to-from-auto.html
LayoutTests/transitions/transition-to-from-undefined.html
LayoutTests/transitions/visited-link-color.html
LayoutTests/transitions/zero-duration-in-list.html
LayoutTests/transitions/zero-duration-with-non-zero-delay-end.html
LayoutTests/transitions/zero-duration-with-non-zero-delay-start.html
LayoutTests/webanimations/css-animations.html
LayoutTests/webanimations/css-transitions.html
Source/WebCore/ChangeLog
Source/WebCore/dom/Element.cpp
Source/WebCore/dom/PseudoElement.cpp
Source/WebCore/page/FrameView.cpp
Source/WebCore/page/RuntimeEnabledFeatures.h
Source/WebCore/rendering/updating/RenderTreeUpdater.cpp
Source/WebKit/ChangeLog
Source/WebKit/Shared/WebPreferences.yaml
Tools/ChangeLog
Tools/DumpRenderTree/TestOptions.cpp
Tools/DumpRenderTree/TestOptions.h
Tools/DumpRenderTree/mac/DumpRenderTree.mm
Tools/WebKitTestRunner/TestController.cpp
Tools/WebKitTestRunner/TestOptions.cpp
Tools/WebKitTestRunner/TestOptions.h

index 680712d..1868510 100644 (file)
@@ -1,3 +1,210 @@
+2018-05-18  Antoine Quint  <graouts@apple.com>
+
+        [Web Animations] Turn Web Animations with CSS integration on for test runners
+        https://bugs.webkit.org/show_bug.cgi?id=184819
+        <rdar://problem/39597337>
+
+        Unreviewed. Rolling out the patch for this bug, it caused some flaky timeouts for animation suspension tests.
+
+        * TestExpectations:
+        * animations/3d/matrix-transform-type-animation.html:
+        * animations/3d/replace-filling-transform.html:
+        * animations/3d/transform-origin-vs-functions.html:
+        * animations/3d/transform-perspective.html:
+        * animations/additive-transform-animations.html:
+        * animations/animation-border-overflow.html:
+        * animations/animation-callback-timestamp.html:
+        * animations/animation-controller-drt-api.html:
+        * animations/animation-direction-alternate-reverse-expected.txt:
+        * animations/animation-direction-alternate-reverse.html:
+        * animations/animation-direction-reverse-fill-mode-hardware.html:
+        * animations/animation-direction-reverse-hardware-opacity.html:
+        * animations/animation-direction-reverse-hardware.html:
+        * animations/animation-direction-reverse-non-hardware.html:
+        * animations/animation-direction-reverse-timing-functions-hardware.html:
+        * animations/animation-direction-reverse-timing-functions.html:
+        * animations/animation-direction.html:
+        * animations/animation-followed-by-transition.html:
+        * animations/animation-hit-test-transform.html:
+        * animations/animation-hit-test.html:
+        * animations/animation-internals-api-expected.txt: Added.
+        * animations/animation-internals-api-multiple-keyframes-expected.txt: Added.
+        * animations/animation-internals-api-multiple-keyframes.html: Added.
+        * animations/animation-internals-api.html: Added.
+        * animations/animation-offscreen-to-onscreen.html:
+        * animations/big-rotation-expected.txt:
+        * animations/big-rotation.html:
+        * animations/change-completed-animation-transform.html:
+        * animations/change-keyframes.html:
+        * animations/combo-transform-rotate+scale.html:
+        * animations/cross-fade-background-image.html:
+        * animations/cross-fade-border-image-source.html:
+        * animations/cross-fade-list-style-image.html:
+        * animations/cross-fade-webkit-mask-box-image.html:
+        * animations/duplicate-keys-expected.html:
+        * animations/duplicate-keys.html:
+        * animations/duplicated-keyframes-name.html:
+        * animations/fill-forwards-end-state.html:
+        * animations/fill-mode-forwards-zero-duration-expected.txt:
+        * animations/fill-mode-forwards-zero-duration.html:
+        * animations/font-variations/font-stretch.html:
+        * animations/font-variations/font-style.html:
+        * animations/font-variations/font-variation-settings-order.html:
+        * animations/font-variations/font-variation-settings-unlike.html:
+        * animations/font-variations/font-variation-settings.html:
+        * animations/font-variations/font-weight.html:
+        * animations/generic-from-to.html:
+        * animations/import.html:
+        * animations/keyframe-multiple-timing-functions-transform.html:
+        * animations/keyframe-timing-functions-transform.html:
+        * animations/keyframe-timing-functions.html:
+        * animations/keyframe-timing-functions2.html:
+        * animations/keyframes-comma-separated.html:
+        * animations/keyframes-dynamic.html:
+        * animations/keyframes-infinite-iterations.html:
+        * animations/keyframes-invalid-keys.html:
+        * animations/keyframes-out-of-order.html:
+        * animations/keyframes.html:
+        * animations/lineheight-animation.html:
+        * animations/longhand-timing-function.html:
+        * animations/matrix-anim.html:
+        * animations/missing-from-to-transforms.html:
+        * animations/missing-from-to.html:
+        * animations/missing-keyframe-properties-repeating.html:
+        * animations/missing-keyframe-properties-timing-function.html:
+        * animations/missing-keyframe-properties.html:
+        * animations/missing-values-first-keyframe.html:
+        * animations/missing-values-last-keyframe.html:
+        * animations/multiple-animations-timing-function.html:
+        * animations/multiple-animations.html:
+        * animations/multiple-keyframes.html:
+        * animations/negative-delay.html:
+        * animations/pause-crash.html:
+        * animations/play-state-start-paused.html:
+        * animations/simultaneous-start-left.html:
+        * animations/simultaneous-start-transform.html:
+        * animations/spring-function.html:
+        * animations/stacking-context-unchanged-while-running.html:
+        * animations/timing-functions.html:
+        * animations/transition-and-animation-1.html:
+        * animations/transition-and-animation-2.html:
+        * animations/transition-and-animation-3.html:
+        * animations/unanimated-style.html:
+        * animations/unprefixed-keyframes.html:
+        * animations/width-using-ems.html:
+        * compositing/animation/animated-composited-inside-hidden.html:
+        * compositing/animation/computed-style-during-delay.html:
+        * compositing/animation/layer-for-filling-animation.html:
+        * compositing/backing/backface-visibility-flip.html:
+        * compositing/contents-scale/animating.html:
+        * compositing/layer-creation/animation-overlap-with-children.html:
+        * compositing/layer-creation/mismatched-rotated-transform-animation-overlap.html:
+        * compositing/layer-creation/multiple-keyframes-animation-overlap.html:
+        * compositing/layer-creation/overlap-animation-clipping.html:
+        * compositing/layer-creation/overlap-animation-container.html:
+        * compositing/layer-creation/overlap-animation.html:
+        * compositing/layer-creation/scale-rotation-animation-overlap.html:
+        * compositing/layer-creation/translate-animation-overlap.html:
+        * compositing/layer-creation/translate-scale-animation-overlap.html:
+        * compositing/overflow/overflow-positioning.html:
+        * compositing/reflections/animation-inside-reflection.html:
+        * compositing/reflections/nested-reflection-animated.html:
+        * compositing/reflections/nested-reflection-transition.html:
+        * compositing/transitions/scale-transition-no-start.html:
+        * compositing/transitions/singular-scale-transition.html:
+        * compositing/visible-rect/animated.html:
+        * css3/calc/transitions-dependent.html:
+        * css3/calc/transitions.html:
+        * css3/filters/backdrop/animation.html:
+        * css3/filters/composited-during-animation.html:
+        * css3/filters/filter-animation-from-none-hw.html:
+        * css3/filters/filter-animation-from-none-multi-hw.html:
+        * css3/filters/filter-animation-from-none-multi.html:
+        * css3/filters/filter-animation-from-none.html:
+        * css3/filters/filter-animation-hw.html:
+        * css3/filters/filter-animation-multi-hw.html:
+        * css3/filters/filter-animation-multi.html:
+        * css3/filters/filter-animation.html:
+        * css3/masking/clip-path-animation.html:
+        * fast/animation/css-animation-resuming-when-visible-with-style-change.html:
+        * fast/animation/css-animation-resuming-when-visible.html:
+        * fast/animation/css-animation-throttling-lowPowerMode.html:
+        * fast/css-generated-content/pseudo-animation.html:
+        * fast/css-generated-content/pseudo-transition.html:
+        * fast/filter-image/filter-image-animation.html:
+        * fast/shapes/shape-outside-floats/shape-outside-animation.html:
+        * fast/shapes/shape-outside-floats/shape-outside-shape-image-threshold-animation.html:
+        * fast/shapes/shape-outside-floats/shape-outside-shape-margin-animation.html:
+        * imported/blink/transitions/unprefixed-transform.html:
+        * platform/ios/TestExpectations:
+        * platform/win/TestExpectations:
+        * transitions/background-position-transitions.html:
+        * transitions/background-transitions.html:
+        * transitions/blendmode-transitions.html:
+        * transitions/border-radius-transition.html:
+        * transitions/clip-path-path-transitions.html:
+        * transitions/clip-path-transitions.html:
+        * transitions/clip-transition.html:
+        * transitions/color-transition-all.html:
+        * transitions/color-transition-premultiplied.html:
+        * transitions/color-transition-rounding.html:
+        * transitions/cross-fade-background-image.html:
+        * transitions/cross-fade-border-image.html:
+        * transitions/cubic-bezier-overflow-color.html:
+        * transitions/cubic-bezier-overflow-length.html:
+        * transitions/cubic-bezier-overflow-shadow.html:
+        * transitions/cubic-bezier-overflow-svg-length.html:
+        * transitions/cubic-bezier-overflow-transform.html:
+        * transitions/default-timing-function.html:
+        * transitions/delay.html:
+        * transitions/flex-transitions.html:
+        * transitions/font-family-during-transition.html:
+        * transitions/frames-timing-function.html:
+        * transitions/interrupted-all-transition.html:
+        * transitions/longhand-vs-shorthand-initial.html:
+        * transitions/mask-transitions.html:
+        * transitions/min-max-width-height-transitions.html:
+        * transitions/mismatched-shadow-styles.html:
+        * transitions/mismatched-shadow-transitions.html:
+        * transitions/mixed-type.html:
+        * transitions/move-after-transition.html:
+        * transitions/multiple-background-size-transitions.html:
+        * transitions/multiple-background-transitions.html:
+        * transitions/multiple-mask-transitions.html:
+        * transitions/multiple-shadow-transitions.html:
+        * transitions/negative-delay.html:
+        * transitions/opacity-transition-zindex.html:
+        * transitions/remove-transition-style.html:
+        * transitions/shape-outside-transitions.html:
+        * transitions/shorthand-border-transitions.html:
+        * transitions/shorthand-transitions.html:
+        * transitions/steps-timing-function.html:
+        * transitions/svg-layout-transition.html:
+        * transitions/svg-text-shadow-transition.html:
+        * transitions/svg-transitions.html:
+        * transitions/text-indent-transition.html:
+        * transitions/transform-op-list-match.html:
+        * transitions/transform-op-list-no-match.html:
+        * transitions/transition-drt-api-delay-expected.txt: Added.
+        * transitions/transition-drt-api-delay.html: Added.
+        * transitions/transition-drt-api-expected.txt: Added.
+        * transitions/transition-drt-api.html: Added.
+        * transitions/transition-end-event-rendering.html:
+        * transitions/transition-hit-test-transform.html:
+        * transitions/transition-hit-test.html:
+        * transitions/transition-in-delay-phase.html:
+        * transitions/transition-on-element-with-content.html:
+        * transitions/transition-shorthand-delay.html:
+        * transitions/transition-timing-function.html:
+        * transitions/transition-to-from-auto.html:
+        * transitions/transition-to-from-undefined.html:
+        * transitions/visited-link-color.html:
+        * transitions/zero-duration-in-list.html:
+        * transitions/zero-duration-with-non-zero-delay-end.html:
+        * transitions/zero-duration-with-non-zero-delay-start.html:
+        * webanimations/css-animations.html:
+        * webanimations/css-transitions.html:
+
 2018-05-18  Basuke Suzuki  <Basuke.Suzuki@sony.com>
 
         [Curl] Bug fix on suspend/resume behavior.
index d6f7643..84cc00f 100644 (file)
@@ -1903,19 +1903,6 @@ webkit.org/b/48451 animations/play-state.html [ Pass Failure ]
 webkit.org/b/48451 animations/suspend-resume-animation.html [ Pass Failure ]
 webkit.org/b/48451 animations/3d/transform-origin-vs-functions.html [ Pass Failure ]
 
-# Regressions in the new animation engine.
-webkit.org/b/184563 animations/trigger-container-scroll-boundaries.html [ Failure ]
-webkit.org/b/184563 animations/trigger-container-scroll-empty.html [ Failure ]
-webkit.org/b/184563 animations/trigger-container-scroll-simple.html [ Failure ]
-webkit.org/b/184564 imported/blink/transitions/zero-duration-should-not-cancel.html [ Failure ]
-webkit.org/b/184565 compositing/layer-creation/mismatched-rotated-transform-transition-overlap.html [ Failure ]
-webkit.org/b/184565 compositing/layer-creation/mismatched-transform-transition-overlap.html [ Failure ]
-webkit.org/b/184565 compositing/layer-creation/scale-rotation-transition-overlap.html [ Failure ]
-webkit.org/b/184565 compositing/layer-creation/translate-scale-transition-overlap.html [ Failure ]
-webkit.org/b/184565 compositing/layer-creation/translate-transition-overlap.html [ Failure ]
-webkit.org/b/184566 compositing/backing/transform-transition-from-outside-view.html [ Failure ]
-webkit.org/b/184579 fast/animation/css-animation-resuming-when-visible-with-style-change2.html [ Pass Failure ]
-
 webkit.org/b/184800 http/tests/workers/worker-importScripts-banned-mimetype.html [ Pass Timeout ]
 
 webkit.org/b/184802 http/tests/security/contentTypeOptions/nosniff-importScript-blocked.html [ Pass Timeout ]
index f8e7a14..20214b5 100644 (file)
@@ -1,4 +1,4 @@
-<!DOCTYPE html>
+<!DOCTYPE html><!-- webkit-test-runner [ enableWebAnimationsCSSIntegration=true ] -->
 <html>
 <head>
   <style type="text/css">
index 09ec341..a1f57cc 100644 (file)
@@ -1,4 +1,4 @@
-<!DOCTYPE html>
+<!DOCTYPE html><!-- webkit-test-runner [ enableWebAnimationsCSSIntegration=true ] -->
 <html>
 <head>
     <style>
index 4859c3a..5ad295a 100644 (file)
@@ -1,4 +1,4 @@
-<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01//EN" "http://www.w3.org/TR/html4/strict.dtd">
+<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01//EN" "http://www.w3.org/TR/html4/strict.dtd"><!-- webkit-test-runner [ enableWebAnimationsCSSIntegration=true ] -->
 <html>
   <head>
     <meta http-equiv="Content-type" content="text/html; charset=utf-8">
index af9e4a9..3d75147 100644 (file)
@@ -1,4 +1,4 @@
-<!DOCTYPE html>
+<!DOCTYPE html><!-- webkit-test-runner [ enableWebAnimationsCSSIntegration=true ] -->
 
 <html>
 <head>
index 8762512..c0c7d2f 100644 (file)
@@ -1,4 +1,4 @@
-<!DOCTYPE html>
+<!DOCTYPE html><!-- webkit-test-runner [ enableWebAnimationsCSSIntegration=true ] -->
 
 <html>
 <head>
index d46f789..3a3b786 100644 (file)
@@ -1,4 +1,4 @@
-<!DOCTYPE html>
+<!DOCTYPE html><!-- webkit-test-runner [ enableWebAnimationsCSSIntegration=true ] -->
 <html>
 <head>
 <title>Unfilled Animation Test</title>
index 6d45632..c3c8cbc 100644 (file)
@@ -1,4 +1,4 @@
-<!DOCTYPE HTML>
+<!DOCTYPE HTML><!-- webkit-test-runner [ enableWebAnimationsCSSIntegration=true ] -->
 <html>
 <head>
     <script src="../resources/js-test-pre.js"></script>
index 57622af..810c119 100644 (file)
@@ -1,4 +1,4 @@
-<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
+<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd"><!-- webkit-test-runner [ enableWebAnimationsCSSIntegration=true ] -->
 
 <html lang="en">
 <head>
index 636ce26..282fa27 100644 (file)
@@ -1,5 +1,5 @@
 PASS - "left" property for "box" element at 1s saw something close to: 200
 PASS - "left" property for "box" element at 2s saw something close to: 0
 PASS - "left" property for "box" element at 3s saw something close to: 200
-PASS - "left" property for "box" element at 4s saw something close to: 0
+PASS - "left" property for "box" element at 4s saw something close to: 400
 
index 98627aa..66a1613 100644 (file)
@@ -40,8 +40,9 @@
       // [animation-name, time, element-id, property, expected-value, tolerance]
       ["move", 1.0, "box", "left", 200, 20],
       ["move", 2.0, "box", "left", 0, 20],
+
       ["move", 3.0, "box", "left", 200, 20],
-      ["move", 4.0, "box", "left", 0, 20],
+      ["move", 4.0, "box", "left", 400, 20],
     ];
     
     runAnimationTest(expectedValues);
index 858f7f3..ecc5e69 100644 (file)
@@ -1,4 +1,4 @@
-<!doctype html>
+<!doctype html><!-- webkit-test-runner [ enableWebAnimationsCSSIntegration=true ] -->
 <html>
 <head>
   <title>Test simple fill mode on transform</title>
index edcb440..9b2c1e2 100644 (file)
@@ -1,4 +1,4 @@
-<!doctype html>
+<!doctype html><!-- webkit-test-runner [ enableWebAnimationsCSSIntegration=true ] -->
 <html>
 <head>
   <title>Test of -webkit-animation-direction on composited elements (opacity)</title>
index 9a8b428..3238433 100644 (file)
@@ -1,4 +1,4 @@
-<!doctype html>
+<!doctype html><!-- webkit-test-runner [ enableWebAnimationsCSSIntegration=true ] -->
 <html>
 <head>
   <title>Test of -webkit-animation-direction on composited elements</title>
index 673c2e4..61825b4 100644 (file)
@@ -1,4 +1,4 @@
-<!doctype html>
+<!doctype html><!-- webkit-test-runner [ enableWebAnimationsCSSIntegration=true ] -->
 <html>
 <head>
   <title>Test of -webkit-animation-direction reverse on non-composited elements</title>
index bab61e0..ee0e7af 100644 (file)
@@ -1,4 +1,4 @@
-<!doctype html>
+<!doctype html><!-- webkit-test-runner [ enableWebAnimationsCSSIntegration=true ] -->
 <html lang="en">
 <head>
   <title>Test of -webkit-animation-direction timing functions on composited elements</title>
index 2b4c380..38cff3c 100644 (file)
@@ -1,4 +1,4 @@
-<!doctype html>
+<!doctype html><!-- webkit-test-runner [ enableWebAnimationsCSSIntegration=true ] -->
 <html lang="en">
 <head>
   <title>Test of -webkit-animation-direction timing functions</title>
index bc6dfce..1714249 100644 (file)
@@ -1,4 +1,4 @@
-<!DOCTYPE html>
+<!DOCTYPE html><!-- webkit-test-runner [ enableWebAnimationsCSSIntegration=true ] -->
 
 <html>
 <head>
index fe1f238..39ef621 100644 (file)
@@ -1,4 +1,4 @@
-<!DOCTYPE html>
+<!DOCTYPE html><!-- webkit-test-runner [ enableWebAnimationsCSSIntegration=true ] -->
 <html>
 <head>
     <style>
index d6d526c..2223f34 100644 (file)
@@ -1,4 +1,4 @@
-<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
+<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd"><!-- webkit-test-runner [ enableWebAnimationsCSSIntegration=true ] -->
 
 <html lang="en">
 <head>
index e74e861..d6ceb4d 100644 (file)
@@ -1,4 +1,4 @@
-<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
+<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd"><!-- webkit-test-runner [ enableWebAnimationsCSSIntegration=true ] -->
 
 <html lang="en">
 <head>
diff --git a/LayoutTests/animations/animation-internals-api-expected.txt b/LayoutTests/animations/animation-internals-api-expected.txt
new file mode 100644 (file)
index 0000000..ece4993
--- /dev/null
@@ -0,0 +1 @@
+PASS: correctly paused animation
diff --git a/LayoutTests/animations/animation-internals-api-multiple-keyframes-expected.txt b/LayoutTests/animations/animation-internals-api-multiple-keyframes-expected.txt
new file mode 100644 (file)
index 0000000..ece4993
--- /dev/null
@@ -0,0 +1 @@
+PASS: correctly paused animation
diff --git a/LayoutTests/animations/animation-internals-api-multiple-keyframes.html b/LayoutTests/animations/animation-internals-api-multiple-keyframes.html
new file mode 100644 (file)
index 0000000..4f3f46c
--- /dev/null
@@ -0,0 +1,60 @@
+<!DOCTYPE html>
+
+<html>
+<head>
+  <style>
+    #target {
+      position: relative;
+      left: 100px;
+      height: 100px;
+      width: 100px;
+      background-color: blue;
+      -webkit-animation-duration: 1s;
+      -webkit-animation-timing-function: linear;
+    }
+
+    @-webkit-keyframes anim {
+      from { left: 10px; }
+      40% { left: 30px; }
+      60% { left: 15px; }
+      to { left: 20px; }
+    }
+   </style>
+
+   <script src="resources/animation-test-helpers.js"></script>
+   <script>
+    if (window.testRunner)
+      testRunner.dumpAsText();
+
+    function animationStarted()
+    {
+      if (window.testRunner) {
+        var target = document.getElementById('target');
+        var paused = internals.pauseAnimationAtTimeOnElement("anim", 1, target);
+        var result;
+        if (paused)
+          result = "PASS: correctly paused animation";
+        else
+          result = "FAIL: failed to pause animation";
+
+        document.getElementById('results').innerText = result;
+        testRunner.notifyDone();
+      } else
+        document.getElementById('results').innerText = "This test requires WebCore Internals";
+    }
+
+    function startTest()
+    {
+      var target = document.getElementById('target');
+      target.style.webkitAnimationName = "anim";
+      waitForAnimationToStart(target, animationStarted);
+    }
+   </script>
+</head>
+<body onload="startTest()">
+  <!-- Test for Internals' pauseAnimationAtTimeOnElement() API on animations with multiple keyframes -->
+  <div id="target"></div>
+  <div id="results"></div>
+
+</body>
+</html>
diff --git a/LayoutTests/animations/animation-internals-api.html b/LayoutTests/animations/animation-internals-api.html
new file mode 100644 (file)
index 0000000..0545419
--- /dev/null
@@ -0,0 +1,61 @@
+<!DOCTYPE html>
+<html>
+<head>
+  <style>
+    #target {
+      position: relative;
+      left: 100px;
+      height: 100px;
+      width: 100px;
+      background-color: blue;
+      -webkit-animation-duration: 1s;
+      -webkit-animation-timing-function: linear;
+    }
+
+    @-webkit-keyframes bounce {
+      from {
+        left: 100px;
+      }
+      to {
+        left: 200px;
+      }
+    }
+
+  </style>
+
+  <script src="resources/animation-test-helpers.js"></script>
+  <script>
+    if (window.testRunner)
+      testRunner.dumpAsText();
+
+    function animationStarted()
+    {
+      if (window.testRunner) {
+        var target = document.getElementById('target');
+        var paused = internals.pauseAnimationAtTimeOnElement("bounce", 1.0, target);
+        var result = "";
+        if (paused)
+          result = "PASS: correctly paused animation";
+        else
+          result = "FAIL: failed to pause animation";
+
+        document.getElementById('results').innerText = result;
+        testRunner.notifyDone();
+      } else
+        document.getElementById('results').innerText = "This test requires WebCore Internals";
+    }
+
+    function startTest()
+    {
+      var target = document.getElementById('target');
+      target.style.webkitAnimationName = "bounce";
+      waitForAnimationToStart(target, animationStarted);
+    }
+   </script>
+</head>
+<body onload="startTest()">
+  <!-- Test for Internals pauseAnimationAtTimeOnElement() API -->
+  <div id="target"></div>
+  <div id="results"></div>
+</body>
+</html>
index ec4b024..699ccc7 100644 (file)
@@ -1,4 +1,4 @@
-<!DOCTYPE html>
+<!DOCTYPE html><!-- webkit-test-runner [ enableWebAnimationsCSSIntegration=true ] -->
 <html>
 <head>
   <style type="text/css" media="screen">
index 1dd516a..d5d082a 100644 (file)
@@ -2,5 +2,5 @@ This test shows rotation of > 180 degrees. The box should make one and a half ro
 
 PASS - "webkitTransform" property for "box" element at 1s saw something close to: -1,0,0,-1
 PASS - "webkitTransform" property for "box" element at 2s saw something close to: 1,0,0,1
-PASS - "webkitTransform" property for "box" element at 3s saw something close to: none
+PASS - "webkitTransform" property for "box" element at 3s saw something close to: -1,0,0,-1
 
index 416760d..27baf83 100644 (file)
@@ -25,7 +25,7 @@
       // [animation-name, time, element-id, property, expected-value, tolerance]
       ["rotate", 1, "box", "webkitTransform", [-1,0,0,-1], 0.2],
       ["rotate", 2, "box", "webkitTransform", [1,0,0,1], 0.2],
-      ["rotate", 3, "box", "webkitTransform", "none", 0.2],
+      ["rotate", 3, "box", "webkitTransform", [-1,0,0,-1], 0.2],
     ];
     
     runAnimationTest(expectedValues);
index f8405fe..2059fbf 100644 (file)
@@ -1,4 +1,4 @@
-<!DOCTYPE html>
+<!DOCTYPE html><!-- webkit-test-runner [ enableWebAnimationsCSSIntegration=true ] -->
 <html>
 <head>
     <style>
index 1a8d3d7..dc491d0 100644 (file)
@@ -1,4 +1,4 @@
-<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
+<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd"><!-- webkit-test-runner [ enableWebAnimationsCSSIntegration=true ] -->
 
 <html lang="en">
 <head>
index 68169e5..77e2f58 100644 (file)
@@ -1,4 +1,4 @@
-<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
+<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd"><!-- webkit-test-runner [ enableWebAnimationsCSSIntegration=true ] -->
 
 <html lang="en">
 <head>
index 513199d..54c2fc3 100644 (file)
@@ -1,4 +1,4 @@
-<!DOCTYPE html>
+<!DOCTYPE html><!-- webkit-test-runner [ enableWebAnimationsCSSIntegration=true ] -->
 <html>
 <head>
   <style>
index 883f4be..467c3eb 100644 (file)
@@ -1,3 +1,4 @@
+<!-- webkit-test-runner [ enableWebAnimationsCSSIntegration=true ] -->
 <html>
 <head>
   <style>
index 0d38057..bbaa95f 100644 (file)
@@ -1,3 +1,4 @@
+<!-- webkit-test-runner [ enableWebAnimationsCSSIntegration=true ] -->
 <style>
 .box {
     height: 100px;
index a7eaa4a..4b5e20e 100644 (file)
@@ -1,3 +1,4 @@
+<!-- webkit-test-runner [ enableWebAnimationsCSSIntegration=true ] -->
 <style>
 .box {
     height: 100px;
index 1ab642c..222e16d 100644 (file)
@@ -16,7 +16,6 @@
         -webkit-animation-duration: 1s;
         -webkit-animation-timing-function: linear;
         -webkit-animation-name: anim;
-        -webkit-animation-fill-mode: forwards;
     }
     @-webkit-keyframes anim {
         from { left: 50px; }
index 62a8aad..301361d 100644 (file)
@@ -10,7 +10,8 @@
       height: 100px;
       width: 100px;
       background-color: blue;
-      animation: anim1 2s 0.2s linear forwards;
+      animation-fill-mode: forwards;
+      animation: anim1 2s 0.2s linear;
     }
     @keyframes anim1 {
         from { left: 100px; }
index da39256..df411d0 100644 (file)
@@ -1,4 +1,4 @@
 Fill-forwards state should be the last keyframe state, even with a zero-duration animation.
 
-PASS - "left" property for "box1" element at 3s saw something close to: 100
+PASS - "left" property for "box1" element at 1s saw something close to: 100
 
index c67e2b8..0ac79a9 100644 (file)
@@ -23,7 +23,7 @@
 
     const expectedValues = [
       // [animation-name, time, element-id, property, expected-value, tolerance]
-      ["anim1", 3, "box1", "left", 100, 2],
+      ["anim1", 1, "box1", "left", 100, 2],
     ];
 
     runAnimationTest(expectedValues);
index 261ac0d..739e68f 100644 (file)
@@ -1,4 +1,4 @@
-<!DOCTYPE html>
+<!DOCTYPE html><!-- webkit-test-runner [ enableWebAnimationsCSSIntegration=true ] -->
 <html>
 <head>
 <script src="../resources/animation-test-helpers.js"></script>
index d939b64..166c1dd 100644 (file)
@@ -1,4 +1,4 @@
-<!DOCTYPE html>
+<!DOCTYPE html><!-- webkit-test-runner [ enableWebAnimationsCSSIntegration=true ] -->
 <html>
 <head>
 <script src="../resources/animation-test-helpers.js"></script>
index 3aca962..ebb3a59 100644 (file)
@@ -1,4 +1,4 @@
-<!DOCTYPE html>
+<!DOCTYPE html><!-- webkit-test-runner [ enableWebAnimationsCSSIntegration=true ] -->
 <html>
 <head>
 <script src="../resources/animation-test-helpers.js"></script>
index 941a1fc..372831b 100644 (file)
@@ -1,4 +1,4 @@
-<!DOCTYPE html>
+<!DOCTYPE html><!-- webkit-test-runner [ enableWebAnimationsCSSIntegration=true ] -->
 <html>
 <head>
 <script src="../resources/animation-test-helpers.js"></script>
index 86ddefb..fa5a266 100644 (file)
@@ -1,4 +1,4 @@
-<!DOCTYPE html>
+<!DOCTYPE html><!-- webkit-test-runner [ enableWebAnimationsCSSIntegration=true ] -->
 <html>
 <head>
 <script src="../resources/animation-test-helpers.js"></script>
index 1ac90da..e6da9e1 100644 (file)
@@ -1,4 +1,4 @@
-<!DOCTYPE html>
+<!DOCTYPE html><!-- webkit-test-runner [ enableWebAnimationsCSSIntegration=true ] -->
 <html>
 <head>
 <script src="../resources/animation-test-helpers.js"></script>
index 0ea5187..7fae271 100644 (file)
@@ -1,4 +1,4 @@
-<!DOCTYPE html>
+<!DOCTYPE html><!-- webkit-test-runner [ enableWebAnimationsCSSIntegration=true ] -->
 <html lang="en">
 <head>
   <meta http-equiv="Content-Type" content="text/html; charset=utf-8">
index c1455b4..de3e970 100644 (file)
@@ -1,4 +1,4 @@
-<!DOCTYPE html>
+<!DOCTYPE html><!-- webkit-test-runner [ enableWebAnimationsCSSIntegration=true ] -->
 <html lang="en">
 <head>
   <meta http-equiv="Content-Type" content="text/html; charset=utf-8">
index c142d79..ce1c819 100644 (file)
@@ -1,4 +1,4 @@
-<!DOCTYPE html>
+<!DOCTYPE html><!-- webkit-test-runner [ enableWebAnimationsCSSIntegration=true ] -->
 
 <html>
 <head>
index 40eddba..b20c5f7 100644 (file)
@@ -1,4 +1,4 @@
-<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
+<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd"><!-- webkit-test-runner [ enableWebAnimationsCSSIntegration=true ] -->
 
 <html lang="en">
 <head>
index 18ae4a7..8d3c23a 100644 (file)
@@ -1,4 +1,4 @@
-<!DOCTYPE html>
+<!DOCTYPE html><!-- webkit-test-runner [ enableWebAnimationsCSSIntegration=true ] -->
 
 <html>
 <head>
index 49da6e3..0795932 100644 (file)
@@ -1,4 +1,4 @@
-<!DOCTYPE html>
+<!DOCTYPE html><!-- webkit-test-runner [ enableWebAnimationsCSSIntegration=true ] -->
 <html lang="en">
 <head>
   <meta http-equiv="Content-Type" content="text/html; charset=utf-8">
index 7d6bc4c..2c718a2 100644 (file)
@@ -1,4 +1,4 @@
-<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
+<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd"><!-- webkit-test-runner [ enableWebAnimationsCSSIntegration=true ] -->
 
 <html lang="en">
 <head>
index 13daab9..33114e4 100644 (file)
@@ -1,4 +1,4 @@
-<!DOCTYPE html>
+<!DOCTYPE html><!-- webkit-test-runner [ enableWebAnimationsCSSIntegration=true ] -->
 <html>
 <head>
   <style>
index 409a9b9..e7cf843 100644 (file)
@@ -1,4 +1,4 @@
-<!DOCTYPE html>
+<!DOCTYPE html><!-- webkit-test-runner [ enableWebAnimationsCSSIntegration=true ] -->
 <html lang="en">
 <head>
   <meta http-equiv="Content-Type" content="text/html; charset=utf-8">
index 8f31708..baef689 100644 (file)
@@ -1,4 +1,4 @@
-<!DOCTYPE html>
+<!DOCTYPE html><!-- webkit-test-runner [ enableWebAnimationsCSSIntegration=true ] -->
 <html lang="en">
 <head>
   <meta http-equiv="Content-Type" content="text/html; charset=utf-8">
index e52db70..b545370 100644 (file)
@@ -1,4 +1,4 @@
-<!DOCTYPE html>
+<!DOCTYPE html><!-- webkit-test-runner [ enableWebAnimationsCSSIntegration=true ] -->
 <html lang="en">
 <head>
   <meta http-equiv="Content-Type" content="text/html; charset=utf-8">
index 7eb0819..f1a3d01 100644 (file)
@@ -1,4 +1,4 @@
-<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
+<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd"><!-- webkit-test-runner [ enableWebAnimationsCSSIntegration=true ] -->
 
 <html lang="en">
 <head>
index 15e5927..97bc851 100644 (file)
@@ -1,4 +1,4 @@
-<!DOCTYPE html>
+<!DOCTYPE html><!-- webkit-test-runner [ enableWebAnimationsCSSIntegration=true ] -->
 
 <html>
 <head>
index 7ce4a30..73a5f74 100644 (file)
@@ -1,4 +1,4 @@
-<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
+<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd"><!-- webkit-test-runner [ enableWebAnimationsCSSIntegration=true ] -->
 
 <html lang="en">
 <head>
index e9d4dd4..6cfbdf6 100644 (file)
@@ -1,4 +1,4 @@
-<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
+<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd"><!-- webkit-test-runner [ enableWebAnimationsCSSIntegration=true ] -->
 
 <html lang="en">
 <head>
index 51219f4..76ce50b 100644 (file)
@@ -1,4 +1,4 @@
-<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
+<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd"><!-- webkit-test-runner [ enableWebAnimationsCSSIntegration=true ] -->
 
 <html lang="en">
 <head>
index 5dc83d4..12de6ca 100644 (file)
@@ -1,4 +1,4 @@
-<!DOCTYPE html>
+<!DOCTYPE html><!-- webkit-test-runner [ enableWebAnimationsCSSIntegration=true ] -->
 <html>
 <head>
   <style type="text/css" media="screen">
index 53927c2..b8c9e7e 100644 (file)
@@ -1,4 +1,4 @@
-<!DOCTYPE html>
+<!DOCTYPE html><!-- webkit-test-runner [ enableWebAnimationsCSSIntegration=true ] -->
 <html>
 <head>
   <style type="text/css" media="screen">
index 25bfe18..6c13d2d 100644 (file)
@@ -1,4 +1,4 @@
-<!DOCTYPE html>
+<!DOCTYPE html><!-- webkit-test-runner [ enableWebAnimationsCSSIntegration=true ] -->
 <html>
 <head>
   <style type="text/css" media="screen">
index d8798d1..70e6fcd 100644 (file)
@@ -1,4 +1,4 @@
-<!DOCTYPE html>
+<!DOCTYPE html><!-- webkit-test-runner [ enableWebAnimationsCSSIntegration=true ] -->
 <html>
 <head>
   <style type="text/css" media="screen">
index 9c7a90d..c97dafd 100644 (file)
@@ -1,4 +1,4 @@
-<!DOCTYPE html>
+<!DOCTYPE html><!-- webkit-test-runner [ enableWebAnimationsCSSIntegration=true ] -->
 <html>
 <head>
   <style type="text/css" media="screen">
index 765f93a..b6ce264 100644 (file)
@@ -1,4 +1,4 @@
-<!DOCTYPE html>
+<!DOCTYPE html><!-- webkit-test-runner [ enableWebAnimationsCSSIntegration=true ] -->
 <html>
 <head>
     <style>
index a16260c..6df3bc4 100644 (file)
@@ -1,4 +1,4 @@
-<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
+<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd"><!-- webkit-test-runner [ enableWebAnimationsCSSIntegration=true ] -->
 
 <html lang="en">
 <head>
index 226af7c..c1b2e59 100644 (file)
@@ -1,4 +1,4 @@
-<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
+<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd"><!-- webkit-test-runner [ enableWebAnimationsCSSIntegration=true ] -->
 
 <html lang="en">
 <head>
index 95bba6f..885a911 100644 (file)
@@ -1,4 +1,4 @@
-<!DOCTYPE html>
+<!DOCTYPE html><!-- webkit-test-runner [ enableWebAnimationsCSSIntegration=true ] -->
 <html>
 <head>
   <title>For Bug 26150 - Negative values for animation-delay are ignored</title>
index 863368c..c92b4d4 100644 (file)
@@ -1,4 +1,4 @@
-<!DOCTYPE html>
+<!DOCTYPE html><!-- webkit-test-runner [ enableWebAnimationsCSSIntegration=true ] -->
 <html>
 <head>
   <title>Pause and resume animation should not crash</title>
index 966a87b..a601010 100644 (file)
@@ -1,4 +1,4 @@
-<!DOCTYPE html>
+<!DOCTYPE html><!-- webkit-test-runner [ enableWebAnimationsCSSIntegration=true ] -->
 <html>
 <head>
     <style>
index af935ad..62fbccf 100644 (file)
@@ -1,4 +1,4 @@
-<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
+<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd"><!-- webkit-test-runner [ enableWebAnimationsCSSIntegration=true ] -->
 
 <html lang="en">
 <head>
index b6dfa02..c449d30 100644 (file)
@@ -1,4 +1,4 @@
-<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
+<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd"><!-- webkit-test-runner [ enableWebAnimationsCSSIntegration=true ] -->
 
 <html lang="en">
 <head>
index 24893cb..a0f0a5a 100644 (file)
@@ -1,4 +1,4 @@
-<!DOCTYPE html>
+<!DOCTYPE html><!-- webkit-test-runner [ enableWebAnimationsCSSIntegration=true ] -->
 <script>
   if (window.internals)
     internals.settings.setSpringTimingFunctionEnabled(true);
index 41a13b4..6245266 100644 (file)
@@ -1,4 +1,4 @@
-<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
+<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd"><!-- webkit-test-runner [ enableWebAnimationsCSSIntegration=true ] -->
 
 <html lang="en">
 <head>
index f93ee5e..eda1b81 100644 (file)
@@ -1,4 +1,4 @@
-<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
+<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd"><!-- webkit-test-runner [ enableWebAnimationsCSSIntegration=true ] -->
 
 <html lang="en">
 <head>
index 44e5fd9..43382fd 100644 (file)
@@ -1,4 +1,4 @@
-<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
+<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd"><!-- webkit-test-runner [ enableWebAnimationsCSSIntegration=true ] -->
 
 <html lang="en">
 <head>
index 8e7d6d9..cf73d35 100644 (file)
@@ -1,4 +1,4 @@
-<!DOCTYPE html>
+<!DOCTYPE html><!-- webkit-test-runner [ enableWebAnimationsCSSIntegration=true ] -->
 
 <html>
 <head>
index 345ecd8..a36a914 100644 (file)
@@ -1,4 +1,4 @@
-<!DOCTYPE html>
+<!DOCTYPE html><!-- webkit-test-runner [ enableWebAnimationsCSSIntegration=true ] -->
 
 <html>
 <head>
index f0ad8db..57d5dba 100644 (file)
@@ -1,4 +1,4 @@
-<!DOCTYPE html>
+<!DOCTYPE html><!-- webkit-test-runner [ enableWebAnimationsCSSIntegration=true ] -->
 <html>
 <head>
   <title>Unprefixed keyframes test</title>
index 435c20c..0658143 100644 (file)
@@ -1,4 +1,4 @@
-<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
+<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd"><!-- webkit-test-runner [ enableWebAnimationsCSSIntegration=true ] -->
 
 <html lang="en">
 <head>
index ac49971..549dcca 100644 (file)
@@ -1,4 +1,4 @@
-<!DOCTYPE html>
+<!DOCTYPE html><!-- webkit-test-runner [ enableWebAnimationsCSSIntegration=true ] -->
 
 <html>
 <head>
index ed12486..9e5ddb8 100644 (file)
@@ -1,4 +1,4 @@
-<!DOCTYPE html>
+<!DOCTYPE html><!-- webkit-test-runner [ enableWebAnimationsCSSIntegration=true ] -->
 
 <html>
 <head>
index 70972d8..b573be5 100644 (file)
@@ -1,4 +1,4 @@
-<!DOCTYPE html>
+<!DOCTYPE html><!-- webkit-test-runner [ enableWebAnimationsCSSIntegration=true ] -->
 
 <html>
 <head>
index 155be14..b2cde79 100644 (file)
@@ -1,4 +1,4 @@
-<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
+<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd"><!-- webkit-test-runner [ enableWebAnimationsCSSIntegration=true ] -->
 
 <html lang="en">
 <head>
index 5b896f5..6edf271 100644 (file)
@@ -1,4 +1,4 @@
-<!DOCTYPE html>
+<!DOCTYPE html><!-- webkit-test-runner [ enableWebAnimationsCSSIntegration=true ] -->
 <html>
 <head>
   <meta http-equiv="Content-Type" content="text/html; charset=utf-8">
index 4927117..d40ee6a 100644 (file)
@@ -1,4 +1,4 @@
-<!DOCTYPE html>
+<!DOCTYPE html><!-- webkit-test-runner [ enableWebAnimationsCSSIntegration=true ] -->
 <html>
 <head>
   <meta http-equiv="Content-Type" content="text/html; charset=utf-8">
index af5b84b..81005ea 100644 (file)
@@ -1,4 +1,4 @@
-<!DOCTYPE html>
+<!DOCTYPE html><!-- webkit-test-runner [ enableWebAnimationsCSSIntegration=true ] -->
 <html>
 <head>
   <meta http-equiv="Content-Type" content="text/html; charset=utf-8">
index bfbe32b..71fa52f 100644 (file)
@@ -1,4 +1,4 @@
-<!DOCTYPE html>
+<!DOCTYPE html><!-- webkit-test-runner [ enableWebAnimationsCSSIntegration=true ] -->
 
 <html>
 <head>
index 344753e..5b6dec3 100644 (file)
@@ -1,4 +1,4 @@
-<!DOCTYPE html>
+<!DOCTYPE html><!-- webkit-test-runner [ enableWebAnimationsCSSIntegration=true ] -->
 <style>
 .outerBlock {
     border: 1px solid black;
index 433b67f..9e0e277 100644 (file)
@@ -1,4 +1,4 @@
-<!DOCTYPE html>
+<!DOCTYPE html><!-- webkit-test-runner [ enableWebAnimationsCSSIntegration=true ] -->
 <style>
 .transitionTest {
     background-color: green;
index ca1c534..b34845b 100644 (file)
@@ -1,4 +1,4 @@
-<!DOCTYPE html>
+<!DOCTYPE html><!-- webkit-test-runner [ enableWebAnimationsCSSIntegration=true ] -->
 
 <html>
 <head>
index 3f462d0..07b3064 100644 (file)
@@ -1,4 +1,4 @@
-<!DOCTYPE html>
+<!DOCTYPE html><!-- webkit-test-runner [ enableWebAnimationsCSSIntegration=true ] -->
 
 <html>
 <head>
index 6d31b28..87f022d 100644 (file)
@@ -1,4 +1,4 @@
-<!DOCTYPE html>
+<!DOCTYPE html><!-- webkit-test-runner [ enableWebAnimationsCSSIntegration=true ] -->
 
 <html>
 <head>
index fccb343..4179a06 100644 (file)
@@ -1,4 +1,4 @@
-<!DOCTYPE html>
+<!DOCTYPE html><!-- webkit-test-runner [ enableWebAnimationsCSSIntegration=true ] -->
 
 <html>
 <head>
index 2189b30..b4a3014 100644 (file)
@@ -1,4 +1,4 @@
-<!DOCTYPE html>
+<!DOCTYPE html><!-- webkit-test-runner [ enableWebAnimationsCSSIntegration=true ] -->
 
 <html>
 <head>
index e6006ca..b41258c 100644 (file)
@@ -1,4 +1,4 @@
-<!DOCTYPE html>
+<!DOCTYPE html><!-- webkit-test-runner [ enableWebAnimationsCSSIntegration=true ] -->
 
 <html>
 <head>
index 11a28d1..f5a6d43 100644 (file)
@@ -1,4 +1,4 @@
-<!DOCTYPE html>
+<!DOCTYPE html><!-- webkit-test-runner [ enableWebAnimationsCSSIntegration=true ] -->
 
 <html>
 <head>
index 5436020..c946688 100644 (file)
@@ -1,4 +1,4 @@
-<!DOCTYPE html>
+<!DOCTYPE html><!-- webkit-test-runner [ enableWebAnimationsCSSIntegration=true ] -->
 
 <html>
 <head>
index 5436020..c946688 100644 (file)
@@ -1,4 +1,4 @@
-<!DOCTYPE html>
+<!DOCTYPE html><!-- webkit-test-runner [ enableWebAnimationsCSSIntegration=true ] -->
 
 <html>
 <head>
index 6431d7d..af0a8cc 100644 (file)
@@ -1,4 +1,4 @@
-<!DOCTYPE html>
+<!DOCTYPE html><!-- webkit-test-runner [ enableWebAnimationsCSSIntegration=true ] -->
 
 <html>
 <head>
index 21ffb9f..35cfe3a 100644 (file)
@@ -1,4 +1,4 @@
-<!DOCTYPE html>
+<!DOCTYPE html><!-- webkit-test-runner [ enableWebAnimationsCSSIntegration=true ] -->
 
 <html>
 <head>
index 330bf84..f809a98 100644 (file)
@@ -1,4 +1,4 @@
-<!DOCTYPE html>
+<!DOCTYPE html><!-- webkit-test-runner [ enableWebAnimationsCSSIntegration=true ] -->
 <html>
 <head>
 <style>
index b7d0564..5e9ff79 100644 (file)
@@ -1,4 +1,4 @@
-<!DOCTYPE html>
+<!DOCTYPE html><!-- webkit-test-runner [ enableWebAnimationsCSSIntegration=true ] -->
 <html>
 <head>
 <script src="../../resources/js-test-pre.js"></script>
index e30865a..41ce329 100644 (file)
@@ -1,4 +1,4 @@
-<!DOCTYPE html>
+<!DOCTYPE html><!-- webkit-test-runner [ enableWebAnimationsCSSIntegration=true ] -->
 
 <script src="../../resources/js-test-pre.js"></script>
 
index 9a742fe..2499e88 100644 (file)
@@ -53,33 +53,6 @@ function getPseudoComputedTop(id)
 // FIXME: This test should be modified so subpixel doesn't cause off by one
 // below and it no longer needs shouldBeCloseTo.
 
-const prefix = "-webkit-";
-const propertiesRequiringPrefix = ["-webkit-text-stroke-color", "-webkit-text-fill-color"];
-
-function pauseTransitionAtTimeOnPseudoElement(transitionProperty, time, element, pseudoId)
-{
-    const pseudoElement = internals.pseudoElement(element, pseudoId);
-    if (!pseudoElement) {
-        console.log("Failed to find pseudo element");
-        return;
-    }
-
-    if (transitionProperty.startsWith(prefix) && !propertiesRequiringPrefix.includes(transitionProperty))
-        transitionProperty = transitionProperty.substr(prefix.length);
-
-    // Otherwise, use the Web Animations API.
-    const animations = pseudoElement.getAnimations();
-    for (let animation of animations) {
-        if (animation instanceof CSSTransition && animation.transitionProperty == transitionProperty) {
-            animation.currentTime = time * 1000;
-            animation.pause();
-            return true;
-        }
-    }
-    console.log(`A transition for property ${transitionProperty} could not be found`);
-    return false;
-}
-
 function testTransition(id)
 {
     var div = document.getElementById(id);
@@ -87,14 +60,14 @@ function testTransition(id)
     window.div = div;
     shouldBe('div.offsetWidth', '52');
     if (window.internals) {
-        pauseTransitionAtTimeOnPseudoElement('width', 1.0, div, id);
+        internals.pauseTransitionAtTimeOnPseudoElement('width', 1.0, div, id);
         shouldBeCloseTo('div.offsetWidth', 20, 1);
-        pauseTransitionAtTimeOnPseudoElement('top', 1.0, div, id);
+        internals.pauseTransitionAtTimeOnPseudoElement('top', 1.0, div, id);
         computedTop = getPseudoComputedTop(id);
         shouldBeCloseTo('computedTop', 170, 1);
-        pauseTransitionAtTimeOnPseudoElement('width', 2.0, div, id);
+        internals.pauseTransitionAtTimeOnPseudoElement('width', 2.0, div, id);
         shouldBeCloseTo('div.offsetWidth', 12, 1);
-        pauseTransitionAtTimeOnPseudoElement('top', 2.0, div, id);
+        internals.pauseTransitionAtTimeOnPseudoElement('top', 2.0, div, id);
         computedTop = getPseudoComputedTop(id);
         shouldBeCloseTo('computedTop', 200, 1);
     } else {
index 6307bab..b86b059 100644 (file)
@@ -1,4 +1,4 @@
-<!DOCTYPE html>
+<!DOCTYPE html><!-- webkit-test-runner [ enableWebAnimationsCSSIntegration=true ] -->
 
 <html>
 <head>
index f7eb93b..578f880 100644 (file)
@@ -1,4 +1,4 @@
-<!DOCTYPE html>
+<!DOCTYPE html><!-- webkit-test-runner [ enableWebAnimationsCSSIntegration=true ] -->
 <div class="target">-webkit-transform 10ms</div><br>
 <div class="target">transform 10ms</div><br>
 <div class="target">transform 10ms, -webkit-transform 10ms</div><br>
index b9fc25c..09d5823 100644 (file)
@@ -4,6 +4,51 @@
         https://bugs.webkit.org/show_bug.cgi?id=184819
         <rdar://problem/39597337>
 
+        Unreviewed. Rolling out the patch for this bug, it caused some flaky timeouts for animation suspension tests.
+
+        * 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_animations-dynamic-changes.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_event-dispatch.html:
+        * css-animations/test_event-order.html:
+        * css-animations/test_keyframeeffect-getkeyframes.html:
+        * css-animations/test_pseudoElement-get-animations.html:
+        * css-animations/test_setting-effect.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_event-dispatch.html:
+        * css-transitions/test_keyframeeffect-getkeyframes.html:
+        * css-transitions/test_pseudoElement-get-animations.html:
+        * css-transitions/test_setting-effect.html:
+
+2018-05-18  Antoine Quint  <graouts@apple.com>
+
+        [Web Animations] Turn Web Animations with CSS integration on for test runners
+        https://bugs.webkit.org/show_bug.cgi?id=184819
+        <rdar://problem/39597337>
+
         Reviewed by Jon Lee.
 
         Since Web Animations with CSS integration is on by default on test runners, we no longer need
index fa877a2..7b570bb 100644 (file)
@@ -1,4 +1,4 @@
-<!doctype html>
+<!doctype html><!-- webkit-test-runner [ enableWebAnimationsCSSIntegration=true ] -->
 <meta charset=utf-8>
 <script src="../../../resources/testharness.js"></script>
 <script src="../../../resources/testharnessreport.js"></script>
index 45ae940..9769408 100644 (file)
@@ -1,4 +1,4 @@
-<!doctype html>
+<!doctype html><!-- webkit-test-runner [ enableWebAnimationsCSSIntegration=true ] -->
 <meta charset=utf-8>
 <script src="../../../resources/testharness.js"></script>
 <script src="../../../resources/testharnessreport.js"></script>
index e867fa7..e9e450c 100644 (file)
@@ -1,4 +1,4 @@
-<!doctype html>
+<!doctype html><!-- webkit-test-runner [ enableWebAnimationsCSSIntegration=true ] -->
 <html>
   <head>
     <meta charset=utf-8>
index 99ed1f2..7a2afbb 100644 (file)
@@ -1,4 +1,4 @@
-<!doctype html>
+<!doctype html><!-- webkit-test-runner [ enableWebAnimationsCSSIntegration=true ] -->
 <meta charset=utf-8>
 <script src="../../../resources/testharness.js"></script>
 <script src="../../../resources/testharnessreport.js"></script>
index 21b2df0..9eacb45 100644 (file)
@@ -1,4 +1,4 @@
-<!doctype html>
+<!doctype html><!-- webkit-test-runner [ enableWebAnimationsCSSIntegration=true ] -->
 <meta charset=utf-8>
 <script src="../../../resources/testharness.js"></script>
 <script src="../../../resources/testharnessreport.js"></script>
index e7bb605..90d76b1 100644 (file)
@@ -1,4 +1,4 @@
-<!doctype html>
+<!doctype html><!-- webkit-test-runner [ enableWebAnimationsCSSIntegration=true ] -->
 <meta charset=utf-8>
 <script src="../../../resources/testharness.js"></script>
 <script src="../../../resources/testharnessreport.js"></script>
index 00c66df..3827278 100644 (file)
@@ -1,4 +1,4 @@
-<!doctype html>
+<!doctype html><!-- webkit-test-runner [ enableWebAnimationsCSSIntegration=true ] -->
 <meta charset=utf-8>
 <script src="../../../resources/testharness.js"></script>
 <script src="../../../resources/testharnessreport.js"></script>
index 562f766..7c44319 100644 (file)
@@ -1,4 +1,4 @@
-<!doctype html>
+<!doctype html><!-- webkit-test-runner [ enableWebAnimationsCSSIntegration=true ] -->
 <meta charset=utf-8>
 <script src="../../../resources/testharness.js"></script>
 <script src="../../../resources/testharnessreport.js"></script>
index cec2bdb..0cb4990 100644 (file)
@@ -1,4 +1,4 @@
-<!doctype html>
+<!doctype html><!-- webkit-test-runner [ enableWebAnimationsCSSIntegration=true ] -->
 <meta charset=utf-8>
 <script src="../../../resources/testharness.js"></script>
 <script src="../../../resources/testharnessreport.js"></script>
index 2f4a841..0583e32 100644 (file)
@@ -1,4 +1,4 @@
-<!doctype html>
+<!doctype html><!-- webkit-test-runner [ enableWebAnimationsCSSIntegration=true ] -->
 <meta charset=utf-8>
 <script src="../../../resources/testharness.js"></script>
 <script src="../../../resources/testharnessreport.js"></script>
index 6ceb8ab..0649aa5 100644 (file)
@@ -1,4 +1,4 @@
-<!doctype html>
+<!doctype html><!-- webkit-test-runner [ enableWebAnimationsCSSIntegration=true ] -->
 <html>
   <head>
     <meta charset=utf-8>
index d213b09..0df0485 100644 (file)
@@ -1,4 +1,4 @@
-<!doctype html>
+<!doctype html><!-- webkit-test-runner [ enableWebAnimationsCSSIntegration=true ] -->
 <meta charset=utf-8>
 <script src="../../../resources/testharness.js"></script>
 <script src="../../../resources/testharnessreport.js"></script>
index 2a077b4..65cbd5e 100644 (file)
@@ -1,4 +1,4 @@
-<!doctype html>
+<!doctype html><!-- webkit-test-runner [ enableWebAnimationsCSSIntegration=true ] -->
 <meta charset=utf-8>
 <script src="../../../resources/testharness.js"></script>
 <script src="../../../resources/testharnessreport.js"></script>
index 78d830b..68354f2 100644 (file)
@@ -1,4 +1,4 @@
-<!doctype html>
+<!doctype html><!-- webkit-test-runner [ enableWebAnimationsCSSIntegration=true ] -->
 <meta charset=utf-8>
 <script src="../../../resources/testharness.js"></script>
 <script src="../../../resources/testharnessreport.js"></script>
index 73dc1eb..04b56d4 100644 (file)
@@ -1,4 +1,4 @@
-<!doctype html>
+<!doctype html><!-- webkit-test-runner [ enableWebAnimationsCSSIntegration=true ] -->
 <meta charset=utf-8>
 <script src="../../../resources/testharness.js"></script>
 <script src="../../../resources/testharnessreport.js"></script>
index c77e080..f925a14 100644 (file)
@@ -1,4 +1,4 @@
-<!doctype html>
+<!doctype html><!-- webkit-test-runner [ enableWebAnimationsCSSIntegration=true ] -->
 <meta charset=utf-8>
 <script src="../../../resources/testharness.js"></script>
 <script src="../../../resources/testharnessreport.js"></script>
index 13281f9..9983458 100644 (file)
@@ -1,4 +1,4 @@
-<!doctype html>
+<!doctype html><!-- webkit-test-runner [ enableWebAnimationsCSSIntegration=true ] -->
 <meta charset=utf-8>
 <title>Tests for CSS animation event dispatch</title>
 <link rel="help" href="https://drafts.csswg.org/css-animations-2/#event-dispatch"/>
index 9e65fe8..3a901c7 100644 (file)
@@ -1,4 +1,4 @@
-<!doctype html>
+<!doctype html><!-- webkit-test-runner [ enableWebAnimationsCSSIntegration=true ] -->
 <meta charset=utf-8>
 <title>Tests for CSS animation event order</title>
 <link rel="help" href="https://drafts.csswg.org/css-animations-2/#event-dispatch"/>
index f93f8ce..5ea99fe 100644 (file)
@@ -1,4 +1,4 @@
-<!doctype html>
+<!doctype html><!-- webkit-test-runner [ enableWebAnimationsCSSIntegration=true ] -->
 <meta charset=utf-8>
 <script src="../../../resources/testharness.js"></script>
 <script src="../../../resources/testharnessreport.js"></script>
index dfa4b0d..630c5ac 100644 (file)
@@ -1,4 +1,4 @@
-<!doctype html>
+<!doctype html><!-- webkit-test-runner [ enableWebAnimationsCSSIntegration=true ] -->
 <meta charset=utf-8>
 <script src="../../../resources/testharness.js"></script>
 <script src="../../../resources/testharnessreport.js"></script>
index 1789026..24af316 100644 (file)
@@ -1,4 +1,4 @@
-<!doctype html>
+<!doctype html><!-- webkit-test-runner [ enableWebAnimationsCSSIntegration=true ] -->
 <meta charset=utf-8>
 <script src="../../../resources/testharness.js"></script>
 <script src="../../../resources/testharnessreport.js"></script>
index ec6f464..1640503 100644 (file)
@@ -1,4 +1,4 @@
-<!doctype html>
+<!doctype html><!-- webkit-test-runner [ enableWebAnimationsCSSIntegration=true ] -->
 <meta charset=utf-8>
 <script src="../../../resources/testharness.js"></script>
 <script src="../../../resources/testharnessreport.js"></script>
index 6628a69..39cc48d 100644 (file)
@@ -1,4 +1,4 @@
-<!doctype html>
+<!doctype html><!-- webkit-test-runner [ enableWebAnimationsCSSIntegration=true ] -->
 <meta charset=utf-8>
 <script src="../../../resources/testharness.js"></script>
 <script src="../../../resources/testharnessreport.js"></script>
index c165877..653b6c3 100644 (file)
@@ -1,4 +1,4 @@
-<!doctype html>
+<!doctype html><!-- webkit-test-runner [ enableWebAnimationsCSSIntegration=true ] -->
 <html>
   <head>
     <meta charset=utf-8>
index 61f761b..bea71c6 100644 (file)
@@ -1,4 +1,4 @@
-<!doctype html>
+<!doctype html><!-- webkit-test-runner [ enableWebAnimationsCSSIntegration=true ] -->
 <meta charset=utf-8>
 <script src="../../../resources/testharness.js"></script>
 <script src="../../../resources/testharnessreport.js"></script>
index ac1a8d3..42c0635 100644 (file)
@@ -1,4 +1,4 @@
-<!doctype html>
+<!doctype html><!-- webkit-test-runner [ enableWebAnimationsCSSIntegration=true ] -->
 <meta charset=utf-8>
 <script src="../../../resources/testharness.js"></script>
 <script src="../../../resources/testharnessreport.js"></script>
index 07d5cf1..af8d64d 100644 (file)
@@ -1,4 +1,4 @@
-<!doctype html>
+<!doctype html><!-- webkit-test-runner [ enableWebAnimationsCSSIntegration=true ] -->
 <meta charset=utf-8>
 <script src="../../../resources/testharness.js"></script>
 <script src="../../../resources/testharnessreport.js"></script>
index ba4e0d2..fae6249 100644 (file)
@@ -1,4 +1,4 @@
-<!doctype html>
+<!doctype html><!-- webkit-test-runner [ enableWebAnimationsCSSIntegration=true ] -->
 <html>
   <head>
     <meta charset=utf-8>
index 9aa2ede..5c2e2b0 100644 (file)
@@ -1,4 +1,4 @@
-<!doctype html>
+<!doctype html><!-- webkit-test-runner [ enableWebAnimationsCSSIntegration=true ] -->
 <meta charset=utf-8>
 <script src="../../../resources/testharness.js"></script>
 <script src="../../../resources/testharnessreport.js"></script>
index 1902da1..94d113c 100644 (file)
@@ -1,4 +1,4 @@
-<!doctype html>
+<!doctype html><!-- webkit-test-runner [ enableWebAnimationsCSSIntegration=true ] -->
 <meta charset=utf-8>
 <script src="../../../resources/testharness.js"></script>
 <script src="../../../resources/testharnessreport.js"></script>
index ae55c1e..d3fb463 100644 (file)
@@ -1,4 +1,4 @@
-<!doctype html>
+<!doctype html><!-- webkit-test-runner [ enableWebAnimationsCSSIntegration=true ] -->
 <meta charset=utf-8>
 <script src="../../../resources/testharness.js"></script>
 <script src="../../../resources/testharnessreport.js"></script>
index cb60096..2b608bf 100644 (file)
@@ -1,4 +1,4 @@
-<!doctype html>
+<!doctype html><!-- webkit-test-runner [ enableWebAnimationsCSSIntegration=true ] -->
 <meta charset=utf-8>
 <script src="../../../resources/testharness.js"></script>
 <script src="../../../resources/testharnessreport.js"></script>
index eed71cc..a7f4706 100644 (file)
@@ -1,4 +1,4 @@
-<!doctype html>
+<!doctype html><!-- webkit-test-runner [ enableWebAnimationsCSSIntegration=true ] -->
 <meta charset=utf-8>
 <title>Tests for CSS-Transition events</title>
 <link rel="help" href="https://drafts.csswg.org/css-transitions-2/#transition-events">
index 6e88a15..af00d20 100644 (file)
@@ -1,4 +1,4 @@
-<!doctype html>
+<!doctype html><!-- webkit-test-runner [ enableWebAnimationsCSSIntegration=true ] -->
 <meta charset=utf-8>
 <script src="../../../resources/testharness.js"></script>
 <script src="../../../resources/testharnessreport.js"></script>
index d3ee0bf..1ed56f2 100644 (file)
@@ -1,4 +1,4 @@
-<!doctype html>
+<!doctype html><!-- webkit-test-runner [ enableWebAnimationsCSSIntegration=true ] -->
 <meta charset=utf-8>
 <script src="../../../resources/testharness.js"></script>
 <script src="../../../resources/testharnessreport.js"></script>
index 5e9ea5c..b8d6ebb 100644 (file)
@@ -1,4 +1,4 @@
-<!doctype html>
+<!doctype html><!-- webkit-test-runner [ enableWebAnimationsCSSIntegration=true ] -->
 <meta charset=utf-8>
 <script src="../../../resources/testharness.js"></script>
 <script src="../../../resources/testharnessreport.js"></script>
index 341cea1..f2972e9 100644 (file)
@@ -4,6 +4,20 @@
         https://bugs.webkit.org/show_bug.cgi?id=184819
         <rdar://problem/39597337>
 
+        Unreviewed. Rolling out the patch for this bug, it caused some flaky timeouts for animation suspension tests.
+
+        * web-platform-tests/css-timing-1/frames-timing-functions-output.html:
+        * web-platform-tests/web-animations/interfaces/Animatable/animate-expected.txt:
+        * web-platform-tests/web-animations/interfaces/Animation/ready.html:
+        * web-platform-tests/web-animations/timing-model/animations/playing-an-animation.html:
+        * web-platform-tests/web-animations/timing-model/animations/reversing-an-animation.html:
+
+2018-05-18  Antoine Quint  <graouts@apple.com>
+
+        [Web Animations] Turn Web Animations with CSS integration on for test runners
+        https://bugs.webkit.org/show_bug.cgi?id=184819
+        <rdar://problem/39597337>
+
         Reviewed by Jon Lee.
 
         Since Web Animations with CSS integration is on by default on test runners, we no longer need
index 40e0328..02bd146 100644 (file)
@@ -1,4 +1,4 @@
-<!DOCTYPE html>
+<!DOCTYPE html><!-- webkit-test-runner [ enableWebAnimationsCSSIntegration=true ] -->
 <meta charset=utf-8>
 <meta name="assert"
 content="This test checks the output of frame timing functions with different frame numbers" />
index 7f03af8..f2a5e73 100644 (file)
@@ -118,6 +118,6 @@ PASS Element.animate() correctly sets the id attribute
 PASS Element.animate() correctly sets the Animation's timeline 
 PASS Element.animate() correctly sets the Animation's timeline when triggered on an element in a different document 
 PASS Element.animate() calls play on the Animation 
-FAIL CSSPseudoElement.animate() creates an Animation object assert_equals: expected Element node <div class="pseudo"></div> but got null
-FAIL CSSPseudoElement.animate() creates an Animation object targeting to the correct CSSPseudoElement object assert_equals: expected Element node <div class="pseudo"></div> but got null
+FAIL CSSPseudoElement.animate() creates an Animation object assert_true: expected true got false
+FAIL CSSPseudoElement.animate() creates an Animation object targeting to the correct CSSPseudoElement object assert_true: expected true got false
 
index 461c4e9..b9af518 100644 (file)
@@ -1,4 +1,4 @@
-<!DOCTYPE html>
+<!DOCTYPE html><!-- webkit-test-runner [ enableWebAnimationsCSSIntegration=true ] -->
 <meta charset=utf-8>
 <title>Animation.ready</title>
 <link rel="help" href="https://drafts.csswg.org/web-animations/#dom-animation-ready">
index 78bfe3f..4fafa8b 100644 (file)
@@ -3298,5 +3298,3 @@ webkit.org/b/185028 imported/w3c/web-platform-tests/service-workers/service-work
 webkit.org/b/185332 animations/duplicate-keys.html [ Pass ImageOnlyFailure ]
 
 webkit.org/b/183843 imported/mozilla/css-transitions/test_event-dispatch.html [ Pass Failure ]
-
-webkit.org/b/184580 animations/stop-animation-on-suspend.html [ Failure ]
index cbf3adc..681edfa 100644 (file)
@@ -1745,9 +1745,11 @@ legacy-animation-engine/animations/transition-and-animation-2.html [ Pass Failur
 [ Debug ] legacy-animation-engine/animations/animation-hit-test-transform.html [ Skip ] # Debug assertion
 [ Debug ] animations/animation-hit-test.html [ Skip ] # Debug assertion
 [ Debug ] legacy-animation-engine/animations/animation-hit-test.html [ Skip ] # Debug assertion
+[ Debug ] animations/animation-internals-api.html [ Skip ] # Debug assertion
 [ Debug ] legacy-animation-engine/animations/animation-internals-api.html [ Skip ] # Debug assertion
 [ Debug ] animations/animation-direction-reverse-fill-mode-hardware.html [ Skip ] # Debug assertion
 [ Debug ] legacy-animation-engine/animations/animation-direction-reverse-fill-mode-hardware.html [ Skip ] # Debug assertion
+[ Debug ] animations/animation-internals-api-multiple-keyframes.html [ Skip ] # Debug assertion
 [ Debug ] legacy-animation-engine/animations/animation-internals-api-multiple-keyframes.html [ Skip ] # Debug assertion
 [ Debug ] animations/animation-shorthand-name-order.html [ Skip ] # Debug assertion
 [ Debug ] legacy-animation-engine/animations/animation-shorthand-name-order.html [ Skip ] # Debug assertion
@@ -1775,6 +1777,7 @@ legacy-animation-engine/animations/transition-and-animation-2.html [ Pass Failur
 [ Debug ] legacy-animation-engine/animations/animation-on-inline-crash.html [ Skip ] # Debug assertion
 [ Debug ] animations/animation-css-rule-types.html [ Skip ] # Debug assertion
 [ Debug ] legacy-animation-engine/animations/animation-css-rule-types.html [ Skip ] # Debug assertion
+[ Debug ] animations/animation-direction-alternate-reverse.html [ Skip ] # Debug assertion
 [ Debug ] legacy-animation-engine/animations/animation-direction-alternate-reverse.html [ Skip ] # Debug assertion
 [ Debug ] animations/animation-direction-reverse-timing-functions.html [ Skip ] # Debug assertion
 [ Debug ] legacy-animation-engine/animations/animation-direction-reverse-timing-functions.html [ Skip ] # Debug assertion
@@ -4063,12 +4066,6 @@ webkit.org/b/184482 legacy-animation-engine/compositing/reflections/nested-refle
 
 webkit.org/b/184537 fast/forms/file/entries-api/webkitEntries-nonascii-folder-name.html [ Skip ]
 
-webkit.org/b/184589 transitions/zero-duration-with-non-zero-delay-end.html [ Skip ]
-webkit.org/b/184589 animations/big-rotation.html [ Skip ]
-webkit.org/b/184589 fast/css-generated-content/pseudo-transition.html [ Skip ]
-webkit.org/b/184589 animations/animation-direction-alternate-reverse.html [ Skip ]
-webkit.org/b/184589 fast/css-generated-content/pseudo-animation.html [ Skip ]
-
 webkit.org/b/184649 css3/filters/blur-various-radii.html [ Crash ]
 
 webkit.org/b/184428 http/tests/misc/submit-post-keygen.html [ Skip ]
@@ -4092,3 +4089,5 @@ webkit.org/b/185678 animations/missing-from-to-transforms.html [ Failure ]
 webkit.org/b/185678 animations/missing-from-to.html [ Failure ]
 
 webkit.org/b/185765 fast/images/animated-image-mp4-crash.html [ Skip ]
+
+webkit.org/b/185678 fast/css-generated-content/pseudo-animation.html [ Failure ]
index cdf7494..2bbd06a 100644 (file)
@@ -1,4 +1,4 @@
-<!DOCTYPE>
+<!DOCTYPE><!-- webkit-test-runner [ enableWebAnimationsCSSIntegration=true ] -->
 
 <html>
 <head>
index ba400ca..876038b 100644 (file)
@@ -1,4 +1,4 @@
-<!DOCTYPE>
+<!DOCTYPE><!-- webkit-test-runner [ enableWebAnimationsCSSIntegration=true ] -->
 
 <html>
 <head>
index a5bfa27..dc047fb 100644 (file)
@@ -1,4 +1,4 @@
-<!DOCTYPE html>
+<!DOCTYPE html><!-- webkit-test-runner [ enableWebAnimationsCSSIntegration=true ] -->
 
 <html>
 <head>
index 563ba9c..00c9d3c 100644 (file)
@@ -1,4 +1,4 @@
-<!DOCTYPE>
+<!DOCTYPE><!-- webkit-test-runner [ enableWebAnimationsCSSIntegration=true ] -->
 
 <html>
 <head>
index c1faa5c..17a8f27 100644 (file)
@@ -1,4 +1,4 @@
-<!DOCTYPE html>
+<!DOCTYPE html><!-- webkit-test-runner [ enableWebAnimationsCSSIntegration=true ] -->
 
 <html>
 <head>
index 5e6644a..4a89030 100644 (file)
@@ -1,4 +1,4 @@
-<!DOCTYPE html>
+<!DOCTYPE html><!-- webkit-test-runner [ enableWebAnimationsCSSIntegration=true ] -->
 
 <html>
 <head>
index fde1f17..d83f962 100644 (file)
@@ -1,4 +1,4 @@
-<!DOCTYPE html>
+<!DOCTYPE html><!-- webkit-test-runner [ enableWebAnimationsCSSIntegration=true ] -->
 
 <html>
 <head>
index a492e71..b2ac54d 100644 (file)
@@ -1,4 +1,4 @@
-<!DOCTYPE>
+<!DOCTYPE><!-- webkit-test-runner [ enableWebAnimationsCSSIntegration=true ] -->
 
 <html>
 <head>
index 57c63ec..8e69d46 100644 (file)
@@ -1,4 +1,4 @@
-<!DOCTYPE html>
+<!DOCTYPE html><!-- webkit-test-runner [ enableWebAnimationsCSSIntegration=true ] -->
 
 <html>
 <head>
index caaa115..e82d6c1 100644 (file)
@@ -1,4 +1,4 @@
-<!DOCTYPE>
+<!DOCTYPE><!-- webkit-test-runner [ enableWebAnimationsCSSIntegration=true ] -->
 
 <html>
 <head>
index b8d70a2..a9771a9 100644 (file)
@@ -1,4 +1,4 @@
-<!DOCTYPE>
+<!DOCTYPE><!-- webkit-test-runner [ enableWebAnimationsCSSIntegration=true ] -->
 
 <html>
 <head>
index 87dc007..590cf83 100644 (file)
@@ -1,4 +1,4 @@
-<!DOCTYPE>
+<!DOCTYPE><!-- webkit-test-runner [ enableWebAnimationsCSSIntegration=true ] -->
 
 <html>
 <head>
index 7474f66..8aef437 100644 (file)
@@ -1,4 +1,4 @@
-<!doctype html>
+<!doctype html><!-- webkit-test-runner [ enableWebAnimationsCSSIntegration=true ] -->
 <html>
   <head>
     <title>cubic-bezier value overflow: Colors</title>
index 1b5ddaf..4e1a59a 100644 (file)
@@ -1,4 +1,4 @@
-<!doctype html>
+<!doctype html><!-- webkit-test-runner [ enableWebAnimationsCSSIntegration=true ] -->
 <html>
   <head>
     <title>cubic-bezier value overflow: Lengths</title>
index 0bcca88..729fd24 100644 (file)
@@ -1,4 +1,4 @@
-<!doctype html>
+<!doctype html><!-- webkit-test-runner [ enableWebAnimationsCSSIntegration=true ] -->
 <html>
   <head>
     <title>cubic-bezier value overflow: Shadows</title>
index 3555303..8f751ae 100644 (file)
@@ -1,4 +1,4 @@
-<!doctype html>
+<!doctype html><!-- webkit-test-runner [ enableWebAnimationsCSSIntegration=true ] -->
 <html>
   <head>
     <title>cubic-bezier value overflow: SVG Lengths</title>
index 6529112..3e5aef3 100644 (file)
@@ -1,4 +1,4 @@
-<!doctype html>
+<!doctype html><!-- webkit-test-runner [ enableWebAnimationsCSSIntegration=true ] -->
 <html>
   <head>
     <title>cubic-bezier value overflow: Transforms</title>
index 35087c3..9c197b0 100644 (file)
@@ -1,4 +1,4 @@
-<!DOCTYPE html>
+<!DOCTYPE html><!-- webkit-test-runner [ enableWebAnimationsCSSIntegration=true ] -->
 
 <html>
 <head>
index c7972cb..8c20034 100644 (file)
@@ -1,3 +1,4 @@
+<!-- webkit-test-runner [ enableWebAnimationsCSSIntegration=true ] -->
 <html>
 <head>
   <style>
index 61f456a..2c1074d 100644 (file)
@@ -1,4 +1,4 @@
-<!DOCTYPE>
+<!DOCTYPE><!-- webkit-test-runner [ enableWebAnimationsCSSIntegration=true ] -->
 <html>
 <head>
 <style>
index 03f952d..16954c4 100644 (file)
@@ -1,4 +1,4 @@
-<!DOCTYPE html>
+<!DOCTYPE html><!-- webkit-test-runner [ enableWebAnimationsCSSIntegration=true ] -->
 
 <html>
 <head>
index e8b1621..44dffde 100644 (file)
@@ -1,4 +1,4 @@
-<!DOCTYPE html>
+<!DOCTYPE html><!-- webkit-test-runner [ enableWebAnimationsCSSIntegration=true ] -->
 
 <html>
 <head>
index 9e66cd4..b0f705b 100644 (file)
@@ -1,4 +1,4 @@
-<!DOCTYPE html>
+<!DOCTYPE html><!-- webkit-test-runner [ enableWebAnimationsCSSIntegration=true ] -->
 
 <html>
 <head>
index 202e64d..f37b487 100644 (file)
@@ -1,4 +1,4 @@
-<!DOCTYPE>
+<!DOCTYPE><!-- webkit-test-runner [ enableWebAnimationsCSSIntegration=true ] -->
 
 <html>
 <head>
index 0c3d39a..cc3d2ee 100644 (file)
@@ -1,4 +1,4 @@
-<!DOCTYPE>
+<!DOCTYPE><!-- webkit-test-runner [ enableWebAnimationsCSSIntegration=true ] -->
 
 <html>
 <head>
index 9ddf393..0f478c9 100644 (file)
@@ -1,4 +1,4 @@
-<!DOCTYPE>
+<!DOCTYPE><!-- webkit-test-runner [ enableWebAnimationsCSSIntegration=true ] -->
 <html>
 <head>
   <style>
index 8723c27..b52b419 100644 (file)
@@ -1,4 +1,4 @@
-<!DOCTYPE html>
+<!DOCTYPE html><!-- webkit-test-runner [ enableWebAnimationsCSSIntegration=true ] -->
 
 <html>
 <head>
index 687d10f..d14d2c0 100644 (file)
@@ -1,4 +1,4 @@
-<!DOCTYPE>
+<!DOCTYPE><!-- webkit-test-runner [ enableWebAnimationsCSSIntegration=true ] -->
 
 <html>
 <head>
index 3332368..972e884 100644 (file)
@@ -1,4 +1,4 @@
-<!DOCTYPE html>
+<!DOCTYPE html><!-- webkit-test-runner [ enableWebAnimationsCSSIntegration=true ] -->
 <style>
 #box {
     width: 10%;
index dc4458f..5506054 100644 (file)
@@ -1,4 +1,4 @@
-<!DOCTYPE html>
+<!DOCTYPE html><!-- webkit-test-runner [ enableWebAnimationsCSSIntegration=true ] -->
 
 <html>
 <head>
index 503067c..b395f20 100644 (file)
@@ -1,4 +1,4 @@
-<!DOCTYPE>
+<!DOCTYPE><!-- webkit-test-runner [ enableWebAnimationsCSSIntegration=true ] -->
 
 <html>
 <head>
index 5cbe69f..a1e8728 100644 (file)
@@ -1,4 +1,4 @@
-<!DOCTYPE>
+<!DOCTYPE><!-- webkit-test-runner [ enableWebAnimationsCSSIntegration=true ] -->
 
 <html>
 <head>
index 4a9d4ec..b0705cd 100644 (file)
@@ -1,4 +1,4 @@
-<!DOCTYPE>
+<!DOCTYPE><!-- webkit-test-runner [ enableWebAnimationsCSSIntegration=true ] -->
 
 <html>
 <head>
index d33e4b5..ee3a7a6 100644 (file)
@@ -1,4 +1,4 @@
-<!DOCTYPE html>
+<!DOCTYPE html><!-- webkit-test-runner [ enableWebAnimationsCSSIntegration=true ] -->
 <html>
 <head>
   <style>
index 862ba02..ecbf5fb 100644 (file)
@@ -1,4 +1,4 @@
-<!DOCTYPE html>
+<!DOCTYPE html><!-- webkit-test-runner [ enableWebAnimationsCSSIntegration=true ] -->
 
 <html>
 <head>
index a52a0ba..3d8b7c9 100644 (file)
@@ -29,7 +29,7 @@
     function testTransitions()
     {
       if (window.testRunner) {
-        var numAnims = document.getAnimations().length;
+        var numAnims = internals.numberOfActiveAnimations();
         if (numAnims == 0)
           log('No running transitions: PASS');
         else
index aefc9a0..c741a45 100644 (file)
@@ -1,4 +1,4 @@
-<!DOCTYPE html>
+<!DOCTYPE html><!-- webkit-test-runner [ enableWebAnimationsCSSIntegration=true ] -->
 
 <html>
 <head>
index faa745c..5fd96b6 100644 (file)
@@ -1,4 +1,4 @@
-<!DOCTYPE html>
+<!DOCTYPE html><!-- webkit-test-runner [ enableWebAnimationsCSSIntegration=true ] -->
 
 <html>
 <head>
index b551a2c..5ca1897 100644 (file)
@@ -1,4 +1,4 @@
-<!DOCTYPE html>
+<!DOCTYPE html><!-- webkit-test-runner [ enableWebAnimationsCSSIntegration=true ] -->
 
 <html>
 <head>
index bb962bc..431582d 100644 (file)
@@ -1,4 +1,4 @@
-<!DOCTYPE html>
+<!DOCTYPE html><!-- webkit-test-runner [ enableWebAnimationsCSSIntegration=true ] -->
 
 <html>
 <head>
index 0058ab5..d7956ae 100644 (file)
@@ -1,4 +1,4 @@
-<!DOCTYPE>
+<!DOCTYPE><!-- webkit-test-runner [ enableWebAnimationsCSSIntegration=true ] -->
 
 <html>
 <head>
index 5797e5e..ba53fd9 100644 (file)
@@ -1,4 +1,4 @@
-<!DOCTYPE html>
+<!DOCTYPE html><!-- webkit-test-runner [ enableWebAnimationsCSSIntegration=true ] -->
 <html>
 <head>
     <style>
index d9724ee..1b1ce92 100644 (file)
@@ -1,3 +1,4 @@
+<!-- webkit-test-runner [ enableWebAnimationsCSSIntegration=true ] -->
 <html>
 <head>
   <style>
index 16f8af1..1fd8226 100644 (file)
@@ -1,4 +1,4 @@
-<!DOCTYPE>
+<!DOCTYPE><!-- webkit-test-runner [ enableWebAnimationsCSSIntegration=true ] -->
 <html>
 <head>
   <style>
index 0d3f33e..1c7ad31 100644 (file)
@@ -1,4 +1,4 @@
-<!DOCTYPE html>
+<!DOCTYPE html><!-- webkit-test-runner [ enableWebAnimationsCSSIntegration=true ] -->
 
 <html>
 <head>
index bf6d30d..4a0eda9 100644 (file)
@@ -1,4 +1,4 @@
-<!DOCTYPE html>
+<!DOCTYPE html><!-- webkit-test-runner [ enableWebAnimationsCSSIntegration=true ] -->
 
 <html>
 <head>
diff --git a/LayoutTests/transitions/transition-drt-api-delay-expected.txt b/LayoutTests/transitions/transition-drt-api-delay-expected.txt
new file mode 100644 (file)
index 0000000..9429f27
--- /dev/null
@@ -0,0 +1,5 @@
+Test for transition delay on testRunner API
+
+This test works only in DumpRenderTree. It uses an API exposed only there to jump to a particular time in a running transition. Tests bug 22368
+
+PASS
diff --git a/LayoutTests/transitions/transition-drt-api-delay.html b/LayoutTests/transitions/transition-drt-api-delay.html
new file mode 100644 (file)
index 0000000..01d8097
--- /dev/null
@@ -0,0 +1,62 @@
+<!DOCTYPE html>
+
+<html>
+<head>
+  <style>
+    #target {
+      position: relative;
+      left: 100px;
+      height: 50px;
+      width: 50px;
+      background-color: green;
+      -webkit-transition-property: left;
+      -webkit-transition-duration: 4s;
+      -webkit-transition-timing-function: linear;
+      -webkit-transition-delay: 1s;
+    }
+    
+    #target.moved {
+      left: 200px;
+    }
+   </style>
+   <script src="resources/transition-test-helpers.js"></script>
+   <script>
+    function endTest() {
+      if (window.testRunner) {
+        var target = document.getElementById('target');
+        internals.pauseTransitionAtTimeOnElement("left", 2.0, target);
+        var left = window.getComputedStyle(target).left;
+        var result = "PASS";
+        if (left != "125px") {
+          result = "FAIL - expected 125px got " + left;
+        }
+        document.getElementById('result').innerHTML = "<p>" + result + "</p>";
+        testRunner.notifyDone();
+      }
+    }
+    
+    function startTest() {
+      if (window.testRunner) {
+        testRunner.dumpAsText();
+        testRunner.waitUntilDone();
+      }
+      
+      document.getElementById("target").className = "moved";
+      waitForAnimationStart(endTest, 1);
+    }
+   </script>
+</head>
+<body onload="startTest()">
+  <h1>Test for transition delay on testRunner API</h1>
+  
+  <p>This test works only in DumpRenderTree. It uses an API exposed
+    only there to jump to a particular time in a running transition.
+    Tests bug <a href="https://bugs.webkit.org/show_bug.cgi?id=22368">22368</a>
+  </p>
+
+  <div id="target"></div>
+
+  <div id="result"></div>
+
+</body>
+</html>
diff --git a/LayoutTests/transitions/transition-drt-api-expected.txt b/LayoutTests/transitions/transition-drt-api-expected.txt
new file mode 100644 (file)
index 0000000..7437ece
--- /dev/null
@@ -0,0 +1 @@
+PASS: correctly paused transition
diff --git a/LayoutTests/transitions/transition-drt-api.html b/LayoutTests/transitions/transition-drt-api.html
new file mode 100644 (file)
index 0000000..15c30f0
--- /dev/null
@@ -0,0 +1,56 @@
+<!DOCTYPE html>
+
+<html>
+<head>
+  <style>
+    #target {
+      position: relative;
+      left: 100px;
+      height: 100px;
+      width: 100px;
+      background-color: blue;
+      -webkit-transition-property: left;
+      -webkit-transition-duration: 4s;
+      -webkit-transition-timing-function: linear;
+    }
+    
+    #target.moved {
+      left: 200px;
+    }
+   </style>
+   <script>
+    if (window.testRunner)
+      testRunner.dumpAsText();
+
+    function endTest() {
+      if (window.testRunner) {
+        var target = document.getElementById('target');
+        var paused = internals.pauseTransitionAtTimeOnElement("left", 1.0, target);
+        var result = "";
+        if (paused)
+          result = "PASS: correctly paused transition";
+        else
+          result = "FAIL: failed to pause transition";
+
+        document.getElementById('results').innerText = result;
+        testRunner.notifyDone();
+      } else
+        document.getElementById('results').innerText = "This test requires DRT";
+    }
+    
+    function startTest() {
+      if (window.testRunner)
+        testRunner.waitUntilDone();
+      
+      document.getElementById("target").className = "moved";
+      window.setTimeout(endTest, 0);
+    }
+   </script>
+</head>
+<body onload="startTest()">
+  <!-- Test for Interals pauseTransitionAtTimeOnElement() API -->
+  <div id="target"></div>
+  <div id="results"></div>
+
+</body>
+</html>
index 959afd6..fd04a13 100644 (file)
@@ -1,4 +1,4 @@
-<!DOCTYPE html>
+<!DOCTYPE html><!-- webkit-test-runner [ enableWebAnimationsCSSIntegration=true ] -->
 
 <html>
 <head>
index ef806c7..466a7fc 100644 (file)
@@ -1,4 +1,4 @@
-<!DOCTYPE html>
+<!DOCTYPE html><!-- webkit-test-runner [ enableWebAnimationsCSSIntegration=true ] -->
 
 <html>
 <head>
index 83a60a6..2c86688 100644 (file)
@@ -1,4 +1,4 @@
-<!DOCTYPE html>
+<!DOCTYPE html><!-- webkit-test-runner [ enableWebAnimationsCSSIntegration=true ] -->
 
 <html>
 <head>
index da3d3b7..3c7b528 100644 (file)
@@ -1,3 +1,4 @@
+<!-- webkit-test-runner [ enableWebAnimationsCSSIntegration=true ] -->
 <html>
 <head>
   <style>
index df0989d..7aff1e0 100644 (file)
@@ -1,4 +1,4 @@
-<!DOCTYPE html>
+<!DOCTYPE html><!-- webkit-test-runner [ enableWebAnimationsCSSIntegration=true ] -->
 
 <html>
 <head>
index 1e1f5f2..e2ce388 100644 (file)
@@ -1,3 +1,4 @@
+<!-- webkit-test-runner [ enableWebAnimationsCSSIntegration=true ] -->
 <html>
 <head>
   <style>
index 8c17ae0..9610323 100644 (file)
@@ -1,4 +1,4 @@
-<!DOCTYPE html>
+<!DOCTYPE html><!-- webkit-test-runner [ enableWebAnimationsCSSIntegration=true ] -->
 
 <html>
 <head>
index 628cf26..21a41d9 100644 (file)
@@ -1,4 +1,4 @@
-<!DOCTYPE html>
+<!DOCTYPE html><!-- webkit-test-runner [ enableWebAnimationsCSSIntegration=true ] -->
 
 <html>
 <head>
index 31d3f2a..0921b80 100644 (file)
@@ -1,3 +1,4 @@
+<!-- webkit-test-runner [ enableWebAnimationsCSSIntegration=true ] -->
 <html>
 <head>
 <style>
index 08d6f19..8e4d9d6 100644 (file)
@@ -1,4 +1,4 @@
-<!DOCTYPE html>
+<!DOCTYPE html><!-- webkit-test-runner [ enableWebAnimationsCSSIntegration=true ] -->
 
 <html>
 <head>
index 5fa4e3b..20c0180 100644 (file)
     }
    </style>
    <script>
-
-    function numberOfActiveAnimations()
-    {
-        return document.getAnimations().filter(animation => {
-            const playState = animation.playState;
-            return playState == "running" || playState == "paused";
-        }).length;
-    }
-
     function sample0() {
       var expected = 1;
-      var current = numberOfActiveAnimations();
+      var current = internals.numberOfActiveAnimations();
       if (current == expected)
         document.getElementById('result0').innerHTML = "Number of active animations before transition is (" + current + ") as expected";
       else
@@ -40,7 +31,7 @@
     
     function sample1() {
       var expected = 0;
-      var current = numberOfActiveAnimations();
+      var current = internals.numberOfActiveAnimations();
       if (current == expected)
         document.getElementById('result1').innerHTML = "Number of active animations after transition is (" + current + ") as expected";
       else
index 9b5c028..6c49a36 100644 (file)
@@ -1,4 +1,4 @@
-<!DOCTYPE html>
+<!DOCTYPE html><!-- webkit-test-runner [ enableWebAnimationsCSSIntegration=true ] -->
 <meta charset=utf-8>
 <title>CSS Animations</title>
 <style type="text/css" media="screen">
index 16d69e2..052e4c4 100644 (file)
@@ -1,4 +1,4 @@
-<!DOCTYPE html>
+<!DOCTYPE html><!-- webkit-test-runner [ enableWebAnimationsCSSIntegration=true ] -->
 <meta charset=utf-8>
 <title>CSS Transitions</title>
 <body>
index 3b01181..2f8254b 100644 (file)
@@ -1,3 +1,26 @@
+2018-05-18  Antoine Quint  <graouts@apple.com>
+
+        [Web Animations] Turn Web Animations with CSS integration on for test runners
+        https://bugs.webkit.org/show_bug.cgi?id=184819
+        <rdar://problem/39597337>
+
+        Unreviewed. Rolling out the patch for this bug, it caused some flaky timeouts for animation suspension tests.
+
+        Tests: animations/animation-internals-api-multiple-keyframes.html
+               animations/animation-internals-api.html
+               transitions/transition-drt-api-delay.html
+               transitions/transition-drt-api.html
+
+        * dom/Element.cpp:
+        (WebCore::Element::removedFromAncestor):
+        * dom/PseudoElement.cpp:
+        (WebCore::PseudoElement::clearHostElement):
+        * page/FrameView.cpp:
+        (WebCore::FrameView::didDestroyRenderTree):
+        * page/RuntimeEnabledFeatures.h:
+        * rendering/updating/RenderTreeUpdater.cpp:
+        (WebCore::RenderTreeUpdater::tearDownRenderers):
+
 2018-05-18  Basuke Suzuki  <Basuke.Suzuki@sony.com>
 
         [Curl] Bug fix on suspend/resume behavior.
index 8362451..06c4a06 100644 (file)
@@ -1794,11 +1794,11 @@ void Element::removedFromAncestor(RemovalType removalType, ContainerNode& oldPar
     if (hasPendingResources())
         document().accessSVGExtensions().removeElementFromPendingResources(this);
 
-    if (auto* timeline = document().existingTimeline())
-        timeline->cancelDeclarativeAnimationsForElement(*this);
-
     RefPtr<Frame> frame = document().frame();
-    if (frame)
+    if (RuntimeEnabledFeatures::sharedFeatures().webAnimationsCSSIntegrationEnabled()) {
+        if (auto* timeline = document().existingTimeline())
+            timeline->cancelDeclarativeAnimationsForElement(*this);
+    } else if (frame)
         frame->animation().cancelAnimations(*this);
 
 #if PLATFORM(MAC)
index 9a69aec..e82b447 100644 (file)
@@ -90,9 +90,10 @@ void PseudoElement::clearHostElement()
 {
     InspectorInstrumentation::pseudoElementDestroyed(document().page(), *this);
 
-    if (auto* timeline = document().existingTimeline())
-        timeline->cancelDeclarativeAnimationsForElement(*this);
-    if (auto* frame = document().frame())
+    if (RuntimeEnabledFeatures::sharedFeatures().webAnimationsCSSIntegrationEnabled()) {
+        if (auto* timeline = document().existingTimeline())
+            timeline->cancelDeclarativeAnimationsForElement(*this);
+    } else if (auto* frame = document().frame())
         frame->animation().cancelAnimations(*this);
 
     m_hostElement = nullptr;
index 8e5ecd3..bcaeeca 100644 (file)
@@ -591,7 +591,8 @@ void FrameView::didDestroyRenderTree()
     ASSERT(!m_viewportConstrainedObjects || m_viewportConstrainedObjects->isEmpty());
     ASSERT(!m_slowRepaintObjects || m_slowRepaintObjects->isEmpty());
 
-    ASSERT(!frame().animation().hasAnimations());
+    if (!RuntimeEnabledFeatures::sharedFeatures().webAnimationsCSSIntegrationEnabled())
+        ASSERT(!frame().animation().hasAnimations());
 }
 
 void FrameView::setContentsSize(const IntSize& size)
index 306c4cf..6cc92e0 100644 (file)
@@ -351,7 +351,7 @@ private:
     bool m_isWritableStreamAPIEnabled { false };
 #endif
 
-    bool m_areWebAnimationsEnabled { false };
+    bool m_areWebAnimationsEnabled { true };
     bool m_isWebAnimationsCSSIntegrationEnabled { false };
 
 #if ENABLE(WEBGL2)
index e5516f9..cbd5fcf 100644 (file)
@@ -553,9 +553,11 @@ void RenderTreeUpdater::tearDownRenderers(Element& root, TeardownType teardownTy
             auto& element = *teardownStack.takeLast();
 
             if (teardownType == TeardownType::Full || teardownType == TeardownType::RendererUpdateCancelingAnimations) {
-                if (timeline)
-                    timeline->cancelDeclarativeAnimationsForElement(element);
-                animationController.cancelAnimations(element);
+                if (RuntimeEnabledFeatures::sharedFeatures().webAnimationsCSSIntegrationEnabled()) {
+                    if (timeline)
+                        timeline->cancelDeclarativeAnimationsForElement(element);
+                } else
+                    animationController.cancelAnimations(element);
             }
 
             if (teardownType == TeardownType::Full)
index c970812..f910418 100644 (file)
@@ -1,3 +1,13 @@
+2018-05-18  Antoine Quint  <graouts@apple.com>
+
+        [Web Animations] Turn Web Animations with CSS integration on for test runners
+        https://bugs.webkit.org/show_bug.cgi?id=184819
+        <rdar://problem/39597337>
+
+        Unreviewed. Rolling out the patch for this bug, it caused some flaky timeouts for animation suspension tests.
+
+        * Shared/WebPreferences.yaml:
+
 2018-05-18  Wenson Hsieh  <wenson_hsieh@apple.com>
 
         [Extra zoom mode] Clearing text fields should dispatch input events of type "deleteContent"
index 287b81b..0ebda9c 100644 (file)
@@ -1188,7 +1188,7 @@ VisualViewportAPIEnabled:
 
 WebAnimationsEnabled:
   type: bool
-  defaultValue: false
+  defaultValue: true
   humanReadableName: "Web Animations"
   humanReadableDescription: "Web Animations prototype"
   category: experimental
index 5dc6da1..a07a8ad 100644 (file)
@@ -1,3 +1,25 @@
+2018-05-18  Antoine Quint  <graouts@apple.com>
+
+        [Web Animations] Turn Web Animations with CSS integration on for test runners
+        https://bugs.webkit.org/show_bug.cgi?id=184819
+        <rdar://problem/39597337>
+
+        Unreviewed. Rolling out the patch for this bug, it caused some flaky timeouts for animation suspension tests.
+
+        * DumpRenderTree/TestOptions.cpp:
+        (TestOptions::TestOptions):
+        * DumpRenderTree/TestOptions.h:
+        * DumpRenderTree/mac/DumpRenderTree.mm:
+        (runTest):
+        (shouldOverrideAndDisableWebAnimationsCSSIntegrationPreference): Deleted.
+        * WebKitTestRunner/TestController.cpp:
+        (WTR::TestController::resetPreferencesToConsistentValues):
+        (WTR::updateTestOptionsFromTestHeader):
+        * WebKitTestRunner/TestOptions.cpp:
+        (WTR::TestOptions::TestOptions):
+        (WTR::isLegacyAnimationEngineTestPath): Deleted.
+        * WebKitTestRunner/TestOptions.h:
+
 2018-05-18  Fujii Hironori  <Hironori.Fujii@sony.com>
 
         [Win][MiniBrowser] Create MainWindow even in transparent mode
index d5ec574..a96af07 100644 (file)
@@ -99,6 +99,8 @@ TestOptions::TestOptions(const std::string& pathOrURL, const std::string& absolu
             dumpJSConsoleLogInStdErr = parseBooleanTestHeaderValue(value);
         else if (key == "allowCrossOriginSubresourcesToAskForCredentials")
             allowCrossOriginSubresourcesToAskForCredentials = parseBooleanTestHeaderValue(value);
+        else if (key == "enableWebAnimationsCSSIntegration")
+            enableWebAnimationsCSSIntegration = parseBooleanTestHeaderValue(value);
         pairStart = pairEnd + 1;
     }
 }
index f574c0d..daf965f 100644 (file)
@@ -29,7 +29,7 @@
 
 struct TestOptions {
     bool enableAttachmentElement { false };
-    bool enableWebAnimationsCSSIntegration { true };
+    bool enableWebAnimationsCSSIntegration { false };
     bool useAcceleratedDrawing { false };
     bool enableIntersectionObserver { false };
     bool enableMenuItemElement { false };
index 7cf824c..801656f 100644 (file)
@@ -1754,11 +1754,6 @@ static bool shouldDumpAsText(const char* pathOrURL)
     return strstr(pathOrURL, "dumpAsText/");
 }
 
-static bool shouldOverrideAndDisableWebAnimationsCSSIntegrationPreference(const char* pathOrURL)
-{
-    return strstr(pathOrURL, "legacy-animation-engine/");
-}
-
 static bool shouldEnableDeveloperExtras(const char* pathOrURL)
 {
     return true;
@@ -1928,9 +1923,6 @@ static void runTest(const string& inputLine)
 
     TestOptions options { [url isFileURL] ? [url fileSystemRepresentation] : pathOrURL, command.absolutePath };
 
-    if (shouldOverrideAndDisableWebAnimationsCSSIntegrationPreference(pathOrURL.c_str()))
-        options.enableWebAnimationsCSSIntegration = false;
-
     if (!mainFrameTestOptions || !options.webViewIsCompatibleWithOptions(mainFrameTestOptions.value())) {
         if (mainFrame)
             destroyWebViewAndOffscreenWindow([mainFrame webView]);
index c92c8d2..bc34c3d 100644 (file)
@@ -714,9 +714,7 @@ void TestController::resetPreferencesToConsistentValues(const TestOptions& optio
     WKPreferencesSetWebAuthenticationEnabled(preferences, options.enableWebAuthentication);
     WKPreferencesSetIsSecureContextAttributeEnabled(preferences, options.enableIsSecureContextAttribute);
     WKPreferencesSetAllowCrossOriginSubresourcesToAskForCredentials(preferences, options.allowCrossOriginSubresourcesToAskForCredentials);
-
-    // We always want to have CSS Animations and CSS Transitions as Web Animations turned off for legacy-animation-engine directory.
-    WKPreferencesSetWebAnimationsCSSIntegrationEnabled(preferences, options.enableWebAnimationsCSSIntegration && !options.isLegacyAnimationEngineTest);
+    WKPreferencesSetWebAnimationsCSSIntegrationEnabled(preferences, options.enableWebAnimationsCSSIntegration);
 
     static WKStringRef defaultTextEncoding = WKStringCreateWithUTF8CString("ISO-8859-1");
     WKPreferencesSetDefaultTextEncodingName(preferences, defaultTextEncoding);
@@ -1115,6 +1113,8 @@ static void updateTestOptionsFromTestHeader(TestOptions& testOptions, const std:
             testOptions.applicationManifest = parseStringTestHeaderValueAsRelativePath(value, pathOrURL);
         if (key == "allowCrossOriginSubresourcesToAskForCredentials")
             testOptions.allowCrossOriginSubresourcesToAskForCredentials = parseBooleanTestHeaderValue(value);
+        if (key == "enableWebAnimationsCSSIntegration")
+            testOptions.enableWebAnimationsCSSIntegration = parseBooleanTestHeaderValue(value);
         if (key == "enableProcessSwapOnNavigation")
             testOptions.enableProcessSwapOnNavigation = parseBooleanTestHeaderValue(value);
         pairStart = pairEnd + 1;
index 004658c..d6e8ab2 100644 (file)
@@ -65,16 +65,10 @@ static float deviceScaleFactorForTest(const std::string& pathOrURL)
     return 1;
 }
 
-static bool isLegacyAnimationEngineTestPath(const std::string& pathOrURL)
-{
-    return pathContains(pathOrURL, "legacy-animation-engine/");
-}
-
 TestOptions::TestOptions(const std::string& pathOrURL)
     : useFlexibleViewport(shouldMakeViewportFlexible(pathOrURL))
     , useFixedLayout(shouldUseFixedLayout(pathOrURL))
     , isSVGTest(isSVGTestPath(pathOrURL))
-    , isLegacyAnimationEngineTest(isLegacyAnimationEngineTestPath(pathOrURL))
     , deviceScaleFactor(deviceScaleFactorForTest(pathOrURL))
 {
 }
index d33e815..d08dae9 100644 (file)
@@ -55,8 +55,7 @@ struct TestOptions {
     bool shouldShowTouches { false };
     bool dumpJSConsoleLogInStdErr { false };
     bool allowCrossOriginSubresourcesToAskForCredentials { false };
-    bool enableWebAnimationsCSSIntegration { true };
-    bool isLegacyAnimationEngineTest { false };
+    bool enableWebAnimationsCSSIntegration { false };
     bool enableProcessSwapOnNavigation { false };
 
     float deviceScaleFactor { 1 };