[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 08:06:57 +0000 (08:06 +0000)
committergraouts@webkit.org <graouts@webkit.org@268f45cc-cd09-0410-ab3c-d52691b4dbfc>
Fri, 18 May 2018 08:06:57 +0000 (08:06 +0000)
https://bugs.webkit.org/show_bug.cgi?id=184819
<rdar://problem/39597337>

Reviewed by Jon Lee.

LayoutTests/imported/mozilla:

Since Web Animations with CSS integration is on by default on test runners, we no longer need
the special HTML comment to turn the flag on for select 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:

LayoutTests/imported/w3c:

Since Web Animations with CSS integration is on by default on test runners, we no longer need
the special HTML comment to turn the flag on for select 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:

Source/WebCore:

We ensure we always call into both CSSAnimationController::cancelAnimations() and
AnimationTimeline::cancelDeclarativeAnimationsForElement() since we want teardown of animations
to be performed no matter which animation code path is used. What that in mind, we don't
conditionalize the CSSAnimationController-related ASSERT() in FrameView::didDestroyRenderTree().

* 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: Leave Web Animations off by default, it's up to clients
to turn it on.

Tools:

Make the test runners turn both the main Web Animations flag and the Web Animations CSS
integration flag on.

We also remove the ability to toggle the Web Animations CSS integration flag using an HTML
comment directly at the top of the file since test runners now set the flag on by default
and a dedicated directory exists for tests that need to run with this flag off.

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

LayoutTests:

Since Web Animations with CSS integration is on by default on test runners, we no longer need
the special HTML comment to turn the flag on for select 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: Removed.
* animations/animation-internals-api-multiple-keyframes-expected.txt: Removed.
* animations/animation-internals-api-multiple-keyframes.html: Removed.
* animations/animation-internals-api.html: Removed.
* 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: Removed.
* transitions/transition-drt-api-delay.html: Removed.
* transitions/transition-drt-api-expected.txt: Removed.
* transitions/transition-drt-api.html: Removed.
* 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@231948 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 [deleted file]
LayoutTests/animations/animation-internals-api-multiple-keyframes-expected.txt [deleted file]
LayoutTests/animations/animation-internals-api-multiple-keyframes.html [deleted file]
LayoutTests/animations/animation-internals-api.html [deleted file]
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 [deleted file]
LayoutTests/transitions/transition-drt-api-delay.html [deleted file]
LayoutTests/transitions/transition-drt-api-expected.txt [deleted file]
LayoutTests/transitions/transition-drt-api.html [deleted file]
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 29cac6a..293fac6 100644 (file)
@@ -1,3 +1,213 @@
+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
+        the special HTML comment to turn the flag on for select 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: Removed.
+        * animations/animation-internals-api-multiple-keyframes-expected.txt: Removed.
+        * animations/animation-internals-api-multiple-keyframes.html: Removed.
+        * animations/animation-internals-api.html: Removed.
+        * 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: Removed.
+        * transitions/transition-drt-api-delay.html: Removed.
+        * transitions/transition-drt-api-expected.txt: Removed.
+        * transitions/transition-drt-api.html: Removed.
+        * 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-17  Michael Saboff  <msaboff@apple.com>
 
         We don't throw SyntaxErrors for runtime generated regular expressions with errors
index 84cc00f..d6f7643 100644 (file)
@@ -1903,6 +1903,19 @@ 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 20214b5..f8e7a14 100644 (file)
@@ -1,4 +1,4 @@
-<!DOCTYPE html><!-- webkit-test-runner [ enableWebAnimationsCSSIntegration=true ] -->
+<!DOCTYPE html>
 <html>
 <head>
   <style type="text/css">
index a1f57cc..09ec341 100644 (file)
@@ -1,4 +1,4 @@
-<!DOCTYPE html><!-- webkit-test-runner [ enableWebAnimationsCSSIntegration=true ] -->
+<!DOCTYPE html>
 <html>
 <head>
     <style>
index 5ad295a..4859c3a 100644 (file)
@@ -1,4 +1,4 @@
-<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01//EN" "http://www.w3.org/TR/html4/strict.dtd"><!-- webkit-test-runner [ enableWebAnimationsCSSIntegration=true ] -->
+<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01//EN" "http://www.w3.org/TR/html4/strict.dtd">
 <html>
   <head>
     <meta http-equiv="Content-type" content="text/html; charset=utf-8">
index 3d75147..af9e4a9 100644 (file)
@@ -1,4 +1,4 @@
-<!DOCTYPE html><!-- webkit-test-runner [ enableWebAnimationsCSSIntegration=true ] -->
+<!DOCTYPE html>
 
 <html>
 <head>
index c0c7d2f..8762512 100644 (file)
@@ -1,4 +1,4 @@
-<!DOCTYPE html><!-- webkit-test-runner [ enableWebAnimationsCSSIntegration=true ] -->
+<!DOCTYPE html>
 
 <html>
 <head>
index 3a3b786..d46f789 100644 (file)
@@ -1,4 +1,4 @@
-<!DOCTYPE html><!-- webkit-test-runner [ enableWebAnimationsCSSIntegration=true ] -->
+<!DOCTYPE html>
 <html>
 <head>
 <title>Unfilled Animation Test</title>
index c3c8cbc..6d45632 100644 (file)
@@ -1,4 +1,4 @@
-<!DOCTYPE HTML><!-- webkit-test-runner [ enableWebAnimationsCSSIntegration=true ] -->
+<!DOCTYPE HTML>
 <html>
 <head>
     <script src="../resources/js-test-pre.js"></script>
index 810c119..57622af 100644 (file)
@@ -1,4 +1,4 @@
-<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd"><!-- webkit-test-runner [ enableWebAnimationsCSSIntegration=true ] -->
+<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
 
 <html lang="en">
 <head>
index 282fa27..636ce26 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: 400
+PASS - "left" property for "box" element at 4s saw something close to: 0
 
index 66a1613..98627aa 100644 (file)
@@ -40,9 +40,8 @@
       // [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", 400, 20],
+      ["move", 4.0, "box", "left", 0, 20],
     ];
     
     runAnimationTest(expectedValues);
index ecc5e69..858f7f3 100644 (file)
@@ -1,4 +1,4 @@
-<!doctype html><!-- webkit-test-runner [ enableWebAnimationsCSSIntegration=true ] -->
+<!doctype html>
 <html>
 <head>
   <title>Test simple fill mode on transform</title>
index 9b2c1e2..edcb440 100644 (file)
@@ -1,4 +1,4 @@
-<!doctype html><!-- webkit-test-runner [ enableWebAnimationsCSSIntegration=true ] -->
+<!doctype html>
 <html>
 <head>
   <title>Test of -webkit-animation-direction on composited elements (opacity)</title>
index 3238433..9a8b428 100644 (file)
@@ -1,4 +1,4 @@
-<!doctype html><!-- webkit-test-runner [ enableWebAnimationsCSSIntegration=true ] -->
+<!doctype html>
 <html>
 <head>
   <title>Test of -webkit-animation-direction on composited elements</title>
index 61825b4..673c2e4 100644 (file)
@@ -1,4 +1,4 @@
-<!doctype html><!-- webkit-test-runner [ enableWebAnimationsCSSIntegration=true ] -->
+<!doctype html>
 <html>
 <head>
   <title>Test of -webkit-animation-direction reverse on non-composited elements</title>
index ee0e7af..bab61e0 100644 (file)
@@ -1,4 +1,4 @@
-<!doctype html><!-- webkit-test-runner [ enableWebAnimationsCSSIntegration=true ] -->
+<!doctype html>
 <html lang="en">
 <head>
   <title>Test of -webkit-animation-direction timing functions on composited elements</title>
index 38cff3c..2b4c380 100644 (file)
@@ -1,4 +1,4 @@
-<!doctype html><!-- webkit-test-runner [ enableWebAnimationsCSSIntegration=true ] -->
+<!doctype html>
 <html lang="en">
 <head>
   <title>Test of -webkit-animation-direction timing functions</title>
index 1714249..bc6dfce 100644 (file)
@@ -1,4 +1,4 @@
-<!DOCTYPE html><!-- webkit-test-runner [ enableWebAnimationsCSSIntegration=true ] -->
+<!DOCTYPE html>
 
 <html>
 <head>
index 39ef621..fe1f238 100644 (file)
@@ -1,4 +1,4 @@
-<!DOCTYPE html><!-- webkit-test-runner [ enableWebAnimationsCSSIntegration=true ] -->
+<!DOCTYPE html>
 <html>
 <head>
     <style>
index 2223f34..d6d526c 100644 (file)
@@ -1,4 +1,4 @@
-<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd"><!-- webkit-test-runner [ enableWebAnimationsCSSIntegration=true ] -->
+<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
 
 <html lang="en">
 <head>
index d6ceb4d..e74e861 100644 (file)
@@ -1,4 +1,4 @@
-<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd"><!-- webkit-test-runner [ enableWebAnimationsCSSIntegration=true ] -->
+<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
 
 <html lang="en">
 <head>
diff --git a/LayoutTests/animations/animation-internals-api-expected.txt b/LayoutTests/animations/animation-internals-api-expected.txt
deleted file mode 100644 (file)
index ece4993..0000000
+++ /dev/null
@@ -1 +0,0 @@
-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
deleted file mode 100644 (file)
index ece4993..0000000
+++ /dev/null
@@ -1 +0,0 @@
-PASS: correctly paused animation
diff --git a/LayoutTests/animations/animation-internals-api-multiple-keyframes.html b/LayoutTests/animations/animation-internals-api-multiple-keyframes.html
deleted file mode 100644 (file)
index 4f3f46c..0000000
+++ /dev/null
@@ -1,60 +0,0 @@
-<!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
deleted file mode 100644 (file)
index 0545419..0000000
+++ /dev/null
@@ -1,61 +0,0 @@
-<!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 699ccc7..ec4b024 100644 (file)
@@ -1,4 +1,4 @@
-<!DOCTYPE html><!-- webkit-test-runner [ enableWebAnimationsCSSIntegration=true ] -->
+<!DOCTYPE html>
 <html>
 <head>
   <style type="text/css" media="screen">
index d5d082a..1dd516a 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: -1,0,0,-1
+PASS - "webkitTransform" property for "box" element at 3s saw something close to: none
 
index 27baf83..416760d 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", [-1,0,0,-1], 0.2],
+      ["rotate", 3, "box", "webkitTransform", "none", 0.2],
     ];
     
     runAnimationTest(expectedValues);
index 2059fbf..f8405fe 100644 (file)
@@ -1,4 +1,4 @@
-<!DOCTYPE html><!-- webkit-test-runner [ enableWebAnimationsCSSIntegration=true ] -->
+<!DOCTYPE html>
 <html>
 <head>
     <style>
index dc491d0..1a8d3d7 100644 (file)
@@ -1,4 +1,4 @@
-<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd"><!-- webkit-test-runner [ enableWebAnimationsCSSIntegration=true ] -->
+<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
 
 <html lang="en">
 <head>
index 77e2f58..68169e5 100644 (file)
@@ -1,4 +1,4 @@
-<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd"><!-- webkit-test-runner [ enableWebAnimationsCSSIntegration=true ] -->
+<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
 
 <html lang="en">
 <head>
index 54c2fc3..513199d 100644 (file)
@@ -1,4 +1,4 @@
-<!DOCTYPE html><!-- webkit-test-runner [ enableWebAnimationsCSSIntegration=true ] -->
+<!DOCTYPE html>
 <html>
 <head>
   <style>
index 467c3eb..883f4be 100644 (file)
@@ -1,4 +1,3 @@
-<!-- webkit-test-runner [ enableWebAnimationsCSSIntegration=true ] -->
 <html>
 <head>
   <style>
index bbaa95f..0d38057 100644 (file)
@@ -1,4 +1,3 @@
-<!-- webkit-test-runner [ enableWebAnimationsCSSIntegration=true ] -->
 <style>
 .box {
     height: 100px;
index 4b5e20e..a7eaa4a 100644 (file)
@@ -1,4 +1,3 @@
-<!-- webkit-test-runner [ enableWebAnimationsCSSIntegration=true ] -->
 <style>
 .box {
     height: 100px;
index 222e16d..1ab642c 100644 (file)
@@ -16,6 +16,7 @@
         -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 301361d..62a8aad 100644 (file)
@@ -10,8 +10,7 @@
       height: 100px;
       width: 100px;
       background-color: blue;
-      animation-fill-mode: forwards;
-      animation: anim1 2s 0.2s linear;
+      animation: anim1 2s 0.2s linear forwards;
     }
     @keyframes anim1 {
         from { left: 100px; }
index df411d0..da39256 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 1s saw something close to: 100
+PASS - "left" property for "box1" element at 3s saw something close to: 100
 
index 0ac79a9..c67e2b8 100644 (file)
@@ -23,7 +23,7 @@
 
     const expectedValues = [
       // [animation-name, time, element-id, property, expected-value, tolerance]
-      ["anim1", 1, "box1", "left", 100, 2],
+      ["anim1", 3, "box1", "left", 100, 2],
     ];
 
     runAnimationTest(expectedValues);
index 739e68f..261ac0d 100644 (file)
@@ -1,4 +1,4 @@
-<!DOCTYPE html><!-- webkit-test-runner [ enableWebAnimationsCSSIntegration=true ] -->
+<!DOCTYPE html>
 <html>
 <head>
 <script src="../resources/animation-test-helpers.js"></script>
index 166c1dd..d939b64 100644 (file)
@@ -1,4 +1,4 @@
-<!DOCTYPE html><!-- webkit-test-runner [ enableWebAnimationsCSSIntegration=true ] -->
+<!DOCTYPE html>
 <html>
 <head>
 <script src="../resources/animation-test-helpers.js"></script>
index ebb3a59..3aca962 100644 (file)
@@ -1,4 +1,4 @@
-<!DOCTYPE html><!-- webkit-test-runner [ enableWebAnimationsCSSIntegration=true ] -->
+<!DOCTYPE html>
 <html>
 <head>
 <script src="../resources/animation-test-helpers.js"></script>
index 372831b..941a1fc 100644 (file)
@@ -1,4 +1,4 @@
-<!DOCTYPE html><!-- webkit-test-runner [ enableWebAnimationsCSSIntegration=true ] -->
+<!DOCTYPE html>
 <html>
 <head>
 <script src="../resources/animation-test-helpers.js"></script>
index fa5a266..86ddefb 100644 (file)
@@ -1,4 +1,4 @@
-<!DOCTYPE html><!-- webkit-test-runner [ enableWebAnimationsCSSIntegration=true ] -->
+<!DOCTYPE html>
 <html>
 <head>
 <script src="../resources/animation-test-helpers.js"></script>
index e6da9e1..1ac90da 100644 (file)
@@ -1,4 +1,4 @@
-<!DOCTYPE html><!-- webkit-test-runner [ enableWebAnimationsCSSIntegration=true ] -->
+<!DOCTYPE html>
 <html>
 <head>
 <script src="../resources/animation-test-helpers.js"></script>
index 7fae271..0ea5187 100644 (file)
@@ -1,4 +1,4 @@
-<!DOCTYPE html><!-- webkit-test-runner [ enableWebAnimationsCSSIntegration=true ] -->
+<!DOCTYPE html>
 <html lang="en">
 <head>
   <meta http-equiv="Content-Type" content="text/html; charset=utf-8">
index de3e970..c1455b4 100644 (file)
@@ -1,4 +1,4 @@
-<!DOCTYPE html><!-- webkit-test-runner [ enableWebAnimationsCSSIntegration=true ] -->
+<!DOCTYPE html>
 <html lang="en">
 <head>
   <meta http-equiv="Content-Type" content="text/html; charset=utf-8">
index ce1c819..c142d79 100644 (file)
@@ -1,4 +1,4 @@
-<!DOCTYPE html><!-- webkit-test-runner [ enableWebAnimationsCSSIntegration=true ] -->
+<!DOCTYPE html>
 
 <html>
 <head>
index b20c5f7..40eddba 100644 (file)
@@ -1,4 +1,4 @@
-<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd"><!-- webkit-test-runner [ enableWebAnimationsCSSIntegration=true ] -->
+<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
 
 <html lang="en">
 <head>
index 8d3c23a..18ae4a7 100644 (file)
@@ -1,4 +1,4 @@
-<!DOCTYPE html><!-- webkit-test-runner [ enableWebAnimationsCSSIntegration=true ] -->
+<!DOCTYPE html>
 
 <html>
 <head>
index 0795932..49da6e3 100644 (file)
@@ -1,4 +1,4 @@
-<!DOCTYPE html><!-- webkit-test-runner [ enableWebAnimationsCSSIntegration=true ] -->
+<!DOCTYPE html>
 <html lang="en">
 <head>
   <meta http-equiv="Content-Type" content="text/html; charset=utf-8">
index 2c718a2..7d6bc4c 100644 (file)
@@ -1,4 +1,4 @@
-<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd"><!-- webkit-test-runner [ enableWebAnimationsCSSIntegration=true ] -->
+<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
 
 <html lang="en">
 <head>
index 33114e4..13daab9 100644 (file)
@@ -1,4 +1,4 @@
-<!DOCTYPE html><!-- webkit-test-runner [ enableWebAnimationsCSSIntegration=true ] -->
+<!DOCTYPE html>
 <html>
 <head>
   <style>
index e7cf843..409a9b9 100644 (file)
@@ -1,4 +1,4 @@
-<!DOCTYPE html><!-- webkit-test-runner [ enableWebAnimationsCSSIntegration=true ] -->
+<!DOCTYPE html>
 <html lang="en">
 <head>
   <meta http-equiv="Content-Type" content="text/html; charset=utf-8">
index baef689..8f31708 100644 (file)
@@ -1,4 +1,4 @@
-<!DOCTYPE html><!-- webkit-test-runner [ enableWebAnimationsCSSIntegration=true ] -->
+<!DOCTYPE html>
 <html lang="en">
 <head>
   <meta http-equiv="Content-Type" content="text/html; charset=utf-8">
index b545370..e52db70 100644 (file)
@@ -1,4 +1,4 @@
-<!DOCTYPE html><!-- webkit-test-runner [ enableWebAnimationsCSSIntegration=true ] -->
+<!DOCTYPE html>
 <html lang="en">
 <head>
   <meta http-equiv="Content-Type" content="text/html; charset=utf-8">
index f1a3d01..7eb0819 100644 (file)
@@ -1,4 +1,4 @@
-<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd"><!-- webkit-test-runner [ enableWebAnimationsCSSIntegration=true ] -->
+<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
 
 <html lang="en">
 <head>
index 97bc851..15e5927 100644 (file)
@@ -1,4 +1,4 @@
-<!DOCTYPE html><!-- webkit-test-runner [ enableWebAnimationsCSSIntegration=true ] -->
+<!DOCTYPE html>
 
 <html>
 <head>
index 73a5f74..7ce4a30 100644 (file)
@@ -1,4 +1,4 @@
-<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd"><!-- webkit-test-runner [ enableWebAnimationsCSSIntegration=true ] -->
+<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
 
 <html lang="en">
 <head>
index 6cfbdf6..e9d4dd4 100644 (file)
@@ -1,4 +1,4 @@
-<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd"><!-- webkit-test-runner [ enableWebAnimationsCSSIntegration=true ] -->
+<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
 
 <html lang="en">
 <head>
index 76ce50b..51219f4 100644 (file)
@@ -1,4 +1,4 @@
-<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd"><!-- webkit-test-runner [ enableWebAnimationsCSSIntegration=true ] -->
+<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
 
 <html lang="en">
 <head>
index 12de6ca..5dc83d4 100644 (file)
@@ -1,4 +1,4 @@
-<!DOCTYPE html><!-- webkit-test-runner [ enableWebAnimationsCSSIntegration=true ] -->
+<!DOCTYPE html>
 <html>
 <head>
   <style type="text/css" media="screen">
index b8c9e7e..53927c2 100644 (file)
@@ -1,4 +1,4 @@
-<!DOCTYPE html><!-- webkit-test-runner [ enableWebAnimationsCSSIntegration=true ] -->
+<!DOCTYPE html>
 <html>
 <head>
   <style type="text/css" media="screen">
index 6c13d2d..25bfe18 100644 (file)
@@ -1,4 +1,4 @@
-<!DOCTYPE html><!-- webkit-test-runner [ enableWebAnimationsCSSIntegration=true ] -->
+<!DOCTYPE html>
 <html>
 <head>
   <style type="text/css" media="screen">
index 70e6fcd..d8798d1 100644 (file)
@@ -1,4 +1,4 @@
-<!DOCTYPE html><!-- webkit-test-runner [ enableWebAnimationsCSSIntegration=true ] -->
+<!DOCTYPE html>
 <html>
 <head>
   <style type="text/css" media="screen">
index c97dafd..9c7a90d 100644 (file)
@@ -1,4 +1,4 @@
-<!DOCTYPE html><!-- webkit-test-runner [ enableWebAnimationsCSSIntegration=true ] -->
+<!DOCTYPE html>
 <html>
 <head>
   <style type="text/css" media="screen">
index b6ce264..765f93a 100644 (file)
@@ -1,4 +1,4 @@
-<!DOCTYPE html><!-- webkit-test-runner [ enableWebAnimationsCSSIntegration=true ] -->
+<!DOCTYPE html>
 <html>
 <head>
     <style>
index 6df3bc4..a16260c 100644 (file)
@@ -1,4 +1,4 @@
-<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd"><!-- webkit-test-runner [ enableWebAnimationsCSSIntegration=true ] -->
+<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
 
 <html lang="en">
 <head>
index c1b2e59..226af7c 100644 (file)
@@ -1,4 +1,4 @@
-<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd"><!-- webkit-test-runner [ enableWebAnimationsCSSIntegration=true ] -->
+<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
 
 <html lang="en">
 <head>
index 885a911..95bba6f 100644 (file)
@@ -1,4 +1,4 @@
-<!DOCTYPE html><!-- webkit-test-runner [ enableWebAnimationsCSSIntegration=true ] -->
+<!DOCTYPE html>
 <html>
 <head>
   <title>For Bug 26150 - Negative values for animation-delay are ignored</title>
index c92b4d4..863368c 100644 (file)
@@ -1,4 +1,4 @@
-<!DOCTYPE html><!-- webkit-test-runner [ enableWebAnimationsCSSIntegration=true ] -->
+<!DOCTYPE html>
 <html>
 <head>
   <title>Pause and resume animation should not crash</title>
index a601010..966a87b 100644 (file)
@@ -1,4 +1,4 @@
-<!DOCTYPE html><!-- webkit-test-runner [ enableWebAnimationsCSSIntegration=true ] -->
+<!DOCTYPE html>
 <html>
 <head>
     <style>
index 62fbccf..af935ad 100644 (file)
@@ -1,4 +1,4 @@
-<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd"><!-- webkit-test-runner [ enableWebAnimationsCSSIntegration=true ] -->
+<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
 
 <html lang="en">
 <head>
index c449d30..b6dfa02 100644 (file)
@@ -1,4 +1,4 @@
-<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd"><!-- webkit-test-runner [ enableWebAnimationsCSSIntegration=true ] -->
+<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
 
 <html lang="en">
 <head>
index a0f0a5a..24893cb 100644 (file)
@@ -1,4 +1,4 @@
-<!DOCTYPE html><!-- webkit-test-runner [ enableWebAnimationsCSSIntegration=true ] -->
+<!DOCTYPE html>
 <script>
   if (window.internals)
     internals.settings.setSpringTimingFunctionEnabled(true);
index 6245266..41a13b4 100644 (file)
@@ -1,4 +1,4 @@
-<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd"><!-- webkit-test-runner [ enableWebAnimationsCSSIntegration=true ] -->
+<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
 
 <html lang="en">
 <head>
index eda1b81..f93ee5e 100644 (file)
@@ -1,4 +1,4 @@
-<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd"><!-- webkit-test-runner [ enableWebAnimationsCSSIntegration=true ] -->
+<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
 
 <html lang="en">
 <head>
index 43382fd..44e5fd9 100644 (file)
@@ -1,4 +1,4 @@
-<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd"><!-- webkit-test-runner [ enableWebAnimationsCSSIntegration=true ] -->
+<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
 
 <html lang="en">
 <head>
index cf73d35..8e7d6d9 100644 (file)
@@ -1,4 +1,4 @@
-<!DOCTYPE html><!-- webkit-test-runner [ enableWebAnimationsCSSIntegration=true ] -->
+<!DOCTYPE html>
 
 <html>
 <head>
index a36a914..345ecd8 100644 (file)
@@ -1,4 +1,4 @@
-<!DOCTYPE html><!-- webkit-test-runner [ enableWebAnimationsCSSIntegration=true ] -->
+<!DOCTYPE html>
 
 <html>
 <head>
index 57d5dba..f0ad8db 100644 (file)
@@ -1,4 +1,4 @@
-<!DOCTYPE html><!-- webkit-test-runner [ enableWebAnimationsCSSIntegration=true ] -->
+<!DOCTYPE html>
 <html>
 <head>
   <title>Unprefixed keyframes test</title>
index 0658143..435c20c 100644 (file)
@@ -1,4 +1,4 @@
-<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd"><!-- webkit-test-runner [ enableWebAnimationsCSSIntegration=true ] -->
+<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
 
 <html lang="en">
 <head>
index 549dcca..ac49971 100644 (file)
@@ -1,4 +1,4 @@
-<!DOCTYPE html><!-- webkit-test-runner [ enableWebAnimationsCSSIntegration=true ] -->
+<!DOCTYPE html>
 
 <html>
 <head>
index 9e5ddb8..ed12486 100644 (file)
@@ -1,4 +1,4 @@
-<!DOCTYPE html><!-- webkit-test-runner [ enableWebAnimationsCSSIntegration=true ] -->
+<!DOCTYPE html>
 
 <html>
 <head>
index b573be5..70972d8 100644 (file)
@@ -1,4 +1,4 @@
-<!DOCTYPE html><!-- webkit-test-runner [ enableWebAnimationsCSSIntegration=true ] -->
+<!DOCTYPE html>
 
 <html>
 <head>
index b2cde79..155be14 100644 (file)
@@ -1,4 +1,4 @@
-<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd"><!-- webkit-test-runner [ enableWebAnimationsCSSIntegration=true ] -->
+<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
 
 <html lang="en">
 <head>
index 6edf271..5b896f5 100644 (file)
@@ -1,4 +1,4 @@
-<!DOCTYPE html><!-- webkit-test-runner [ enableWebAnimationsCSSIntegration=true ] -->
+<!DOCTYPE html>
 <html>
 <head>
   <meta http-equiv="Content-Type" content="text/html; charset=utf-8">
index d40ee6a..4927117 100644 (file)
@@ -1,4 +1,4 @@
-<!DOCTYPE html><!-- webkit-test-runner [ enableWebAnimationsCSSIntegration=true ] -->
+<!DOCTYPE html>
 <html>
 <head>
   <meta http-equiv="Content-Type" content="text/html; charset=utf-8">
index 81005ea..af5b84b 100644 (file)
@@ -1,4 +1,4 @@
-<!DOCTYPE html><!-- webkit-test-runner [ enableWebAnimationsCSSIntegration=true ] -->
+<!DOCTYPE html>
 <html>
 <head>
   <meta http-equiv="Content-Type" content="text/html; charset=utf-8">
index 71fa52f..bfbe32b 100644 (file)
@@ -1,4 +1,4 @@
-<!DOCTYPE html><!-- webkit-test-runner [ enableWebAnimationsCSSIntegration=true ] -->
+<!DOCTYPE html>
 
 <html>
 <head>
index 5b6dec3..344753e 100644 (file)
@@ -1,4 +1,4 @@
-<!DOCTYPE html><!-- webkit-test-runner [ enableWebAnimationsCSSIntegration=true ] -->
+<!DOCTYPE html>
 <style>
 .outerBlock {
     border: 1px solid black;
index 9e0e277..433b67f 100644 (file)
@@ -1,4 +1,4 @@
-<!DOCTYPE html><!-- webkit-test-runner [ enableWebAnimationsCSSIntegration=true ] -->
+<!DOCTYPE html>
 <style>
 .transitionTest {
     background-color: green;
index b34845b..ca1c534 100644 (file)
@@ -1,4 +1,4 @@
-<!DOCTYPE html><!-- webkit-test-runner [ enableWebAnimationsCSSIntegration=true ] -->
+<!DOCTYPE html>
 
 <html>
 <head>
index 07b3064..3f462d0 100644 (file)
@@ -1,4 +1,4 @@
-<!DOCTYPE html><!-- webkit-test-runner [ enableWebAnimationsCSSIntegration=true ] -->
+<!DOCTYPE html>
 
 <html>
 <head>
index 87f022d..6d31b28 100644 (file)
@@ -1,4 +1,4 @@
-<!DOCTYPE html><!-- webkit-test-runner [ enableWebAnimationsCSSIntegration=true ] -->
+<!DOCTYPE html>
 
 <html>
 <head>
index 4179a06..fccb343 100644 (file)
@@ -1,4 +1,4 @@
-<!DOCTYPE html><!-- webkit-test-runner [ enableWebAnimationsCSSIntegration=true ] -->
+<!DOCTYPE html>
 
 <html>
 <head>
index b4a3014..2189b30 100644 (file)
@@ -1,4 +1,4 @@
-<!DOCTYPE html><!-- webkit-test-runner [ enableWebAnimationsCSSIntegration=true ] -->
+<!DOCTYPE html>
 
 <html>
 <head>
index b41258c..e6006ca 100644 (file)
@@ -1,4 +1,4 @@
-<!DOCTYPE html><!-- webkit-test-runner [ enableWebAnimationsCSSIntegration=true ] -->
+<!DOCTYPE html>
 
 <html>
 <head>
index f5a6d43..11a28d1 100644 (file)
@@ -1,4 +1,4 @@
-<!DOCTYPE html><!-- webkit-test-runner [ enableWebAnimationsCSSIntegration=true ] -->
+<!DOCTYPE html>
 
 <html>
 <head>
index c946688..5436020 100644 (file)
@@ -1,4 +1,4 @@
-<!DOCTYPE html><!-- webkit-test-runner [ enableWebAnimationsCSSIntegration=true ] -->
+<!DOCTYPE html>
 
 <html>
 <head>
index c946688..5436020 100644 (file)
@@ -1,4 +1,4 @@
-<!DOCTYPE html><!-- webkit-test-runner [ enableWebAnimationsCSSIntegration=true ] -->
+<!DOCTYPE html>
 
 <html>
 <head>
index af0a8cc..6431d7d 100644 (file)
@@ -1,4 +1,4 @@
-<!DOCTYPE html><!-- webkit-test-runner [ enableWebAnimationsCSSIntegration=true ] -->
+<!DOCTYPE html>
 
 <html>
 <head>
index 35cfe3a..21ffb9f 100644 (file)
@@ -1,4 +1,4 @@
-<!DOCTYPE html><!-- webkit-test-runner [ enableWebAnimationsCSSIntegration=true ] -->
+<!DOCTYPE html>
 
 <html>
 <head>
index f809a98..330bf84 100644 (file)
@@ -1,4 +1,4 @@
-<!DOCTYPE html><!-- webkit-test-runner [ enableWebAnimationsCSSIntegration=true ] -->
+<!DOCTYPE html>
 <html>
 <head>
 <style>
index 5e9ff79..b7d0564 100644 (file)
@@ -1,4 +1,4 @@
-<!DOCTYPE html><!-- webkit-test-runner [ enableWebAnimationsCSSIntegration=true ] -->
+<!DOCTYPE html>
 <html>
 <head>
 <script src="../../resources/js-test-pre.js"></script>
index 41ce329..e30865a 100644 (file)
@@ -1,4 +1,4 @@
-<!DOCTYPE html><!-- webkit-test-runner [ enableWebAnimationsCSSIntegration=true ] -->
+<!DOCTYPE html>
 
 <script src="../../resources/js-test-pre.js"></script>
 
index 2499e88..9a742fe 100644 (file)
@@ -53,6 +53,33 @@ 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);
@@ -60,14 +87,14 @@ function testTransition(id)
     window.div = div;
     shouldBe('div.offsetWidth', '52');
     if (window.internals) {
-        internals.pauseTransitionAtTimeOnPseudoElement('width', 1.0, div, id);
+        pauseTransitionAtTimeOnPseudoElement('width', 1.0, div, id);
         shouldBeCloseTo('div.offsetWidth', 20, 1);
-        internals.pauseTransitionAtTimeOnPseudoElement('top', 1.0, div, id);
+        pauseTransitionAtTimeOnPseudoElement('top', 1.0, div, id);
         computedTop = getPseudoComputedTop(id);
         shouldBeCloseTo('computedTop', 170, 1);
-        internals.pauseTransitionAtTimeOnPseudoElement('width', 2.0, div, id);
+        pauseTransitionAtTimeOnPseudoElement('width', 2.0, div, id);
         shouldBeCloseTo('div.offsetWidth', 12, 1);
-        internals.pauseTransitionAtTimeOnPseudoElement('top', 2.0, div, id);
+        pauseTransitionAtTimeOnPseudoElement('top', 2.0, div, id);
         computedTop = getPseudoComputedTop(id);
         shouldBeCloseTo('computedTop', 200, 1);
     } else {
index b86b059..6307bab 100644 (file)
@@ -1,4 +1,4 @@
-<!DOCTYPE html><!-- webkit-test-runner [ enableWebAnimationsCSSIntegration=true ] -->
+<!DOCTYPE html>
 
 <html>
 <head>
index 578f880..f7eb93b 100644 (file)
@@ -1,4 +1,4 @@
-<!DOCTYPE html><!-- webkit-test-runner [ enableWebAnimationsCSSIntegration=true ] -->
+<!DOCTYPE html>
 <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 6aacae9..b9fc25c 100644 (file)
@@ -1,3 +1,51 @@
+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
+        the special HTML comment to turn the flag on for select 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-15  Antoine Quint  <graouts@apple.com>
 
         [Web Animations] Expose Web Animations CSS integration as an experimental feature
index 7b570bb..fa877a2 100644 (file)
@@ -1,4 +1,4 @@
-<!doctype html><!-- webkit-test-runner [ enableWebAnimationsCSSIntegration=true ] -->
+<!doctype html>
 <meta charset=utf-8>
 <script src="../../../resources/testharness.js"></script>
 <script src="../../../resources/testharnessreport.js"></script>
index 9769408..45ae940 100644 (file)
@@ -1,4 +1,4 @@
-<!doctype html><!-- webkit-test-runner [ enableWebAnimationsCSSIntegration=true ] -->
+<!doctype html>
 <meta charset=utf-8>
 <script src="../../../resources/testharness.js"></script>
 <script src="../../../resources/testharnessreport.js"></script>
index e9e450c..e867fa7 100644 (file)
@@ -1,4 +1,4 @@
-<!doctype html><!-- webkit-test-runner [ enableWebAnimationsCSSIntegration=true ] -->
+<!doctype html>
 <html>
   <head>
     <meta charset=utf-8>
index 7a2afbb..99ed1f2 100644 (file)
@@ -1,4 +1,4 @@
-<!doctype html><!-- webkit-test-runner [ enableWebAnimationsCSSIntegration=true ] -->
+<!doctype html>
 <meta charset=utf-8>
 <script src="../../../resources/testharness.js"></script>
 <script src="../../../resources/testharnessreport.js"></script>
index 9eacb45..21b2df0 100644 (file)
@@ -1,4 +1,4 @@
-<!doctype html><!-- webkit-test-runner [ enableWebAnimationsCSSIntegration=true ] -->
+<!doctype html>
 <meta charset=utf-8>
 <script src="../../../resources/testharness.js"></script>
 <script src="../../../resources/testharnessreport.js"></script>
index 90d76b1..e7bb605 100644 (file)
@@ -1,4 +1,4 @@
-<!doctype html><!-- webkit-test-runner [ enableWebAnimationsCSSIntegration=true ] -->
+<!doctype html>
 <meta charset=utf-8>
 <script src="../../../resources/testharness.js"></script>
 <script src="../../../resources/testharnessreport.js"></script>
index 3827278..00c66df 100644 (file)
@@ -1,4 +1,4 @@
-<!doctype html><!-- webkit-test-runner [ enableWebAnimationsCSSIntegration=true ] -->
+<!doctype html>
 <meta charset=utf-8>
 <script src="../../../resources/testharness.js"></script>
 <script src="../../../resources/testharnessreport.js"></script>
index 7c44319..562f766 100644 (file)
@@ -1,4 +1,4 @@
-<!doctype html><!-- webkit-test-runner [ enableWebAnimationsCSSIntegration=true ] -->
+<!doctype html>
 <meta charset=utf-8>
 <script src="../../../resources/testharness.js"></script>
 <script src="../../../resources/testharnessreport.js"></script>
index 0cb4990..cec2bdb 100644 (file)
@@ -1,4 +1,4 @@
-<!doctype html><!-- webkit-test-runner [ enableWebAnimationsCSSIntegration=true ] -->
+<!doctype html>
 <meta charset=utf-8>
 <script src="../../../resources/testharness.js"></script>
 <script src="../../../resources/testharnessreport.js"></script>
index 0583e32..2f4a841 100644 (file)
@@ -1,4 +1,4 @@
-<!doctype html><!-- webkit-test-runner [ enableWebAnimationsCSSIntegration=true ] -->
+<!doctype html>
 <meta charset=utf-8>
 <script src="../../../resources/testharness.js"></script>
 <script src="../../../resources/testharnessreport.js"></script>
index 0649aa5..6ceb8ab 100644 (file)
@@ -1,4 +1,4 @@
-<!doctype html><!-- webkit-test-runner [ enableWebAnimationsCSSIntegration=true ] -->
+<!doctype html>
 <html>
   <head>
     <meta charset=utf-8>
index 0df0485..d213b09 100644 (file)
@@ -1,4 +1,4 @@
-<!doctype html><!-- webkit-test-runner [ enableWebAnimationsCSSIntegration=true ] -->
+<!doctype html>
 <meta charset=utf-8>
 <script src="../../../resources/testharness.js"></script>
 <script src="../../../resources/testharnessreport.js"></script>
index 65cbd5e..2a077b4 100644 (file)
@@ -1,4 +1,4 @@
-<!doctype html><!-- webkit-test-runner [ enableWebAnimationsCSSIntegration=true ] -->
+<!doctype html>
 <meta charset=utf-8>
 <script src="../../../resources/testharness.js"></script>
 <script src="../../../resources/testharnessreport.js"></script>
index 68354f2..78d830b 100644 (file)
@@ -1,4 +1,4 @@
-<!doctype html><!-- webkit-test-runner [ enableWebAnimationsCSSIntegration=true ] -->
+<!doctype html>
 <meta charset=utf-8>
 <script src="../../../resources/testharness.js"></script>
 <script src="../../../resources/testharnessreport.js"></script>
index 04b56d4..73dc1eb 100644 (file)
@@ -1,4 +1,4 @@
-<!doctype html><!-- webkit-test-runner [ enableWebAnimationsCSSIntegration=true ] -->
+<!doctype html>
 <meta charset=utf-8>
 <script src="../../../resources/testharness.js"></script>
 <script src="../../../resources/testharnessreport.js"></script>
index f925a14..c77e080 100644 (file)
@@ -1,4 +1,4 @@
-<!doctype html><!-- webkit-test-runner [ enableWebAnimationsCSSIntegration=true ] -->
+<!doctype html>
 <meta charset=utf-8>
 <script src="../../../resources/testharness.js"></script>
 <script src="../../../resources/testharnessreport.js"></script>
index 9983458..13281f9 100644 (file)
@@ -1,4 +1,4 @@
-<!doctype html><!-- webkit-test-runner [ enableWebAnimationsCSSIntegration=true ] -->
+<!doctype html>
 <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 3a901c7..9e65fe8 100644 (file)
@@ -1,4 +1,4 @@
-<!doctype html><!-- webkit-test-runner [ enableWebAnimationsCSSIntegration=true ] -->
+<!doctype html>
 <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 5ea99fe..f93f8ce 100644 (file)
@@ -1,4 +1,4 @@
-<!doctype html><!-- webkit-test-runner [ enableWebAnimationsCSSIntegration=true ] -->
+<!doctype html>
 <meta charset=utf-8>
 <script src="../../../resources/testharness.js"></script>
 <script src="../../../resources/testharnessreport.js"></script>
index 630c5ac..dfa4b0d 100644 (file)
@@ -1,4 +1,4 @@
-<!doctype html><!-- webkit-test-runner [ enableWebAnimationsCSSIntegration=true ] -->
+<!doctype html>
 <meta charset=utf-8>
 <script src="../../../resources/testharness.js"></script>
 <script src="../../../resources/testharnessreport.js"></script>
index 24af316..1789026 100644 (file)
@@ -1,4 +1,4 @@
-<!doctype html><!-- webkit-test-runner [ enableWebAnimationsCSSIntegration=true ] -->
+<!doctype html>
 <meta charset=utf-8>
 <script src="../../../resources/testharness.js"></script>
 <script src="../../../resources/testharnessreport.js"></script>
index 1640503..ec6f464 100644 (file)
@@ -1,4 +1,4 @@
-<!doctype html><!-- webkit-test-runner [ enableWebAnimationsCSSIntegration=true ] -->
+<!doctype html>
 <meta charset=utf-8>
 <script src="../../../resources/testharness.js"></script>
 <script src="../../../resources/testharnessreport.js"></script>
index 39cc48d..6628a69 100644 (file)
@@ -1,4 +1,4 @@
-<!doctype html><!-- webkit-test-runner [ enableWebAnimationsCSSIntegration=true ] -->
+<!doctype html>
 <meta charset=utf-8>
 <script src="../../../resources/testharness.js"></script>
 <script src="../../../resources/testharnessreport.js"></script>
index 653b6c3..c165877 100644 (file)
@@ -1,4 +1,4 @@
-<!doctype html><!-- webkit-test-runner [ enableWebAnimationsCSSIntegration=true ] -->
+<!doctype html>
 <html>
   <head>
     <meta charset=utf-8>
index bea71c6..61f761b 100644 (file)
@@ -1,4 +1,4 @@
-<!doctype html><!-- webkit-test-runner [ enableWebAnimationsCSSIntegration=true ] -->
+<!doctype html>
 <meta charset=utf-8>
 <script src="../../../resources/testharness.js"></script>
 <script src="../../../resources/testharnessreport.js"></script>
index 42c0635..ac1a8d3 100644 (file)
@@ -1,4 +1,4 @@
-<!doctype html><!-- webkit-test-runner [ enableWebAnimationsCSSIntegration=true ] -->
+<!doctype html>
 <meta charset=utf-8>
 <script src="../../../resources/testharness.js"></script>
 <script src="../../../resources/testharnessreport.js"></script>
index af8d64d..07d5cf1 100644 (file)
@@ -1,4 +1,4 @@
-<!doctype html><!-- webkit-test-runner [ enableWebAnimationsCSSIntegration=true ] -->
+<!doctype html>
 <meta charset=utf-8>
 <script src="../../../resources/testharness.js"></script>
 <script src="../../../resources/testharnessreport.js"></script>
index fae6249..ba4e0d2 100644 (file)
@@ -1,4 +1,4 @@
-<!doctype html><!-- webkit-test-runner [ enableWebAnimationsCSSIntegration=true ] -->
+<!doctype html>
 <html>
   <head>
     <meta charset=utf-8>
index 5c2e2b0..9aa2ede 100644 (file)
@@ -1,4 +1,4 @@
-<!doctype html><!-- webkit-test-runner [ enableWebAnimationsCSSIntegration=true ] -->
+<!doctype html>
 <meta charset=utf-8>
 <script src="../../../resources/testharness.js"></script>
 <script src="../../../resources/testharnessreport.js"></script>
index 94d113c..1902da1 100644 (file)
@@ -1,4 +1,4 @@
-<!doctype html><!-- webkit-test-runner [ enableWebAnimationsCSSIntegration=true ] -->
+<!doctype html>
 <meta charset=utf-8>
 <script src="../../../resources/testharness.js"></script>
 <script src="../../../resources/testharnessreport.js"></script>
index d3fb463..ae55c1e 100644 (file)
@@ -1,4 +1,4 @@
-<!doctype html><!-- webkit-test-runner [ enableWebAnimationsCSSIntegration=true ] -->
+<!doctype html>
 <meta charset=utf-8>
 <script src="../../../resources/testharness.js"></script>
 <script src="../../../resources/testharnessreport.js"></script>
index 2b608bf..cb60096 100644 (file)
@@ -1,4 +1,4 @@
-<!doctype html><!-- webkit-test-runner [ enableWebAnimationsCSSIntegration=true ] -->
+<!doctype html>
 <meta charset=utf-8>
 <script src="../../../resources/testharness.js"></script>
 <script src="../../../resources/testharnessreport.js"></script>
index a7f4706..eed71cc 100644 (file)
@@ -1,4 +1,4 @@
-<!doctype html><!-- webkit-test-runner [ enableWebAnimationsCSSIntegration=true ] -->
+<!doctype html>
 <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 af00d20..6e88a15 100644 (file)
@@ -1,4 +1,4 @@
-<!doctype html><!-- webkit-test-runner [ enableWebAnimationsCSSIntegration=true ] -->
+<!doctype html>
 <meta charset=utf-8>
 <script src="../../../resources/testharness.js"></script>
 <script src="../../../resources/testharnessreport.js"></script>
index 1ed56f2..d3ee0bf 100644 (file)
@@ -1,4 +1,4 @@
-<!doctype html><!-- webkit-test-runner [ enableWebAnimationsCSSIntegration=true ] -->
+<!doctype html>
 <meta charset=utf-8>
 <script src="../../../resources/testharness.js"></script>
 <script src="../../../resources/testharnessreport.js"></script>
index b8d6ebb..5e9ea5c 100644 (file)
@@ -1,4 +1,4 @@
-<!doctype html><!-- webkit-test-runner [ enableWebAnimationsCSSIntegration=true ] -->
+<!doctype html>
 <meta charset=utf-8>
 <script src="../../../resources/testharness.js"></script>
 <script src="../../../resources/testharnessreport.js"></script>
index a23217e..341cea1 100644 (file)
@@ -1,3 +1,20 @@
+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
+        the special HTML comment to turn the flag on for select 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-16  Chris Nardi  <cnardi@chromium.org>
 
         Remove Document#selectedStylesheetSet/preferredStylesheetSet
index 02bd146..40e0328 100644 (file)
@@ -1,4 +1,4 @@
-<!DOCTYPE html><!-- webkit-test-runner [ enableWebAnimationsCSSIntegration=true ] -->
+<!DOCTYPE html>
 <meta charset=utf-8>
 <meta name="assert"
 content="This test checks the output of frame timing functions with different frame numbers" />
index f2a5e73..7f03af8 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_true: expected true got false
-FAIL CSSPseudoElement.animate() creates an Animation object targeting to the correct CSSPseudoElement object assert_true: expected true got false
+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
 
index b9af518..461c4e9 100644 (file)
@@ -1,4 +1,4 @@
-<!DOCTYPE html><!-- webkit-test-runner [ enableWebAnimationsCSSIntegration=true ] -->
+<!DOCTYPE html>
 <meta charset=utf-8>
 <title>Animation.ready</title>
 <link rel="help" href="https://drafts.csswg.org/web-animations/#dom-animation-ready">
index 4fafa8b..78bfe3f 100644 (file)
@@ -3298,3 +3298,5 @@ 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 d28a2d5..2aef857 100644 (file)
@@ -1745,11 +1745,9 @@ 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
@@ -1777,7 +1775,6 @@ 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
@@ -4066,6 +4063,12 @@ 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 ]
@@ -4087,4 +4090,3 @@ webkit.org/b/185471 http/tests/security/webaudio-render-remote-audio-blocked-no-
 webkit.org/b/185678 animations/keyframes-dynamic.html [ Failure ]
 webkit.org/b/185678 animations/missing-from-to-transforms.html [ Failure ]
 webkit.org/b/185678 animations/missing-from-to.html [ Failure ]
-webkit.org/b/185678 fast/css-generated-content/pseudo-animation.html [ Failure ]
index 2bbd06a..cdf7494 100644 (file)
@@ -1,4 +1,4 @@
-<!DOCTYPE><!-- webkit-test-runner [ enableWebAnimationsCSSIntegration=true ] -->
+<!DOCTYPE>
 
 <html>
 <head>
index 876038b..ba400ca 100644 (file)
@@ -1,4 +1,4 @@
-<!DOCTYPE><!-- webkit-test-runner [ enableWebAnimationsCSSIntegration=true ] -->
+<!DOCTYPE>
 
 <html>
 <head>
index dc047fb..a5bfa27 100644 (file)
@@ -1,4 +1,4 @@
-<!DOCTYPE html><!-- webkit-test-runner [ enableWebAnimationsCSSIntegration=true ] -->
+<!DOCTYPE html>
 
 <html>
 <head>
index 00c9d3c..563ba9c 100644 (file)
@@ -1,4 +1,4 @@
-<!DOCTYPE><!-- webkit-test-runner [ enableWebAnimationsCSSIntegration=true ] -->
+<!DOCTYPE>
 
 <html>
 <head>
index 17a8f27..c1faa5c 100644 (file)
@@ -1,4 +1,4 @@
-<!DOCTYPE html><!-- webkit-test-runner [ enableWebAnimationsCSSIntegration=true ] -->
+<!DOCTYPE html>
 
 <html>
 <head>
index 4a89030..5e6644a 100644 (file)
@@ -1,4 +1,4 @@
-<!DOCTYPE html><!-- webkit-test-runner [ enableWebAnimationsCSSIntegration=true ] -->
+<!DOCTYPE html>
 
 <html>
 <head>
index d83f962..fde1f17 100644 (file)
@@ -1,4 +1,4 @@
-<!DOCTYPE html><!-- webkit-test-runner [ enableWebAnimationsCSSIntegration=true ] -->
+<!DOCTYPE html>
 
 <html>
 <head>
index b2ac54d..a492e71 100644 (file)
@@ -1,4 +1,4 @@
-<!DOCTYPE><!-- webkit-test-runner [ enableWebAnimationsCSSIntegration=true ] -->
+<!DOCTYPE>
 
 <html>
 <head>
index 8e69d46..57c63ec 100644 (file)
@@ -1,4 +1,4 @@
-<!DOCTYPE html><!-- webkit-test-runner [ enableWebAnimationsCSSIntegration=true ] -->
+<!DOCTYPE html>
 
 <html>
 <head>
index e82d6c1..caaa115 100644 (file)
@@ -1,4 +1,4 @@
-<!DOCTYPE><!-- webkit-test-runner [ enableWebAnimationsCSSIntegration=true ] -->
+<!DOCTYPE>
 
 <html>
 <head>
index a9771a9..b8d70a2 100644 (file)
@@ -1,4 +1,4 @@
-<!DOCTYPE><!-- webkit-test-runner [ enableWebAnimationsCSSIntegration=true ] -->
+<!DOCTYPE>
 
 <html>
 <head>
index 590cf83..87dc007 100644 (file)
@@ -1,4 +1,4 @@
-<!DOCTYPE><!-- webkit-test-runner [ enableWebAnimationsCSSIntegration=true ] -->
+<!DOCTYPE>
 
 <html>
 <head>
index 8aef437..7474f66 100644 (file)
@@ -1,4 +1,4 @@
-<!doctype html><!-- webkit-test-runner [ enableWebAnimationsCSSIntegration=true ] -->
+<!doctype html>
 <html>
   <head>
     <title>cubic-bezier value overflow: Colors</title>
index 4e1a59a..1b5ddaf 100644 (file)
@@ -1,4 +1,4 @@
-<!doctype html><!-- webkit-test-runner [ enableWebAnimationsCSSIntegration=true ] -->
+<!doctype html>
 <html>
   <head>
     <title>cubic-bezier value overflow: Lengths</title>
index 729fd24..0bcca88 100644 (file)
@@ -1,4 +1,4 @@
-<!doctype html><!-- webkit-test-runner [ enableWebAnimationsCSSIntegration=true ] -->
+<!doctype html>
 <html>
   <head>
     <title>cubic-bezier value overflow: Shadows</title>
index 8f751ae..3555303 100644 (file)
@@ -1,4 +1,4 @@
-<!doctype html><!-- webkit-test-runner [ enableWebAnimationsCSSIntegration=true ] -->
+<!doctype html>
 <html>
   <head>
     <title>cubic-bezier value overflow: SVG Lengths</title>
index 3e5aef3..6529112 100644 (file)
@@ -1,4 +1,4 @@
-<!doctype html><!-- webkit-test-runner [ enableWebAnimationsCSSIntegration=true ] -->
+<!doctype html>
 <html>
   <head>
     <title>cubic-bezier value overflow: Transforms</title>
index 9c197b0..35087c3 100644 (file)
@@ -1,4 +1,4 @@
-<!DOCTYPE html><!-- webkit-test-runner [ enableWebAnimationsCSSIntegration=true ] -->
+<!DOCTYPE html>
 
 <html>
 <head>
index 8c20034..c7972cb 100644 (file)
@@ -1,4 +1,3 @@
-<!-- webkit-test-runner [ enableWebAnimationsCSSIntegration=true ] -->
 <html>
 <head>
   <style>
index 2c1074d..61f456a 100644 (file)
@@ -1,4 +1,4 @@
-<!DOCTYPE><!-- webkit-test-runner [ enableWebAnimationsCSSIntegration=true ] -->
+<!DOCTYPE>
 <html>
 <head>
 <style>
index 16954c4..03f952d 100644 (file)
@@ -1,4 +1,4 @@
-<!DOCTYPE html><!-- webkit-test-runner [ enableWebAnimationsCSSIntegration=true ] -->
+<!DOCTYPE html>
 
 <html>
 <head>
index 44dffde..e8b1621 100644 (file)
@@ -1,4 +1,4 @@
-<!DOCTYPE html><!-- webkit-test-runner [ enableWebAnimationsCSSIntegration=true ] -->
+<!DOCTYPE html>
 
 <html>
 <head>
index b0f705b..9e66cd4 100644 (file)
@@ -1,4 +1,4 @@
-<!DOCTYPE html><!-- webkit-test-runner [ enableWebAnimationsCSSIntegration=true ] -->
+<!DOCTYPE html>
 
 <html>
 <head>
index f37b487..202e64d 100644 (file)
@@ -1,4 +1,4 @@
-<!DOCTYPE><!-- webkit-test-runner [ enableWebAnimationsCSSIntegration=true ] -->
+<!DOCTYPE>
 
 <html>
 <head>
index cc3d2ee..0c3d39a 100644 (file)
@@ -1,4 +1,4 @@
-<!DOCTYPE><!-- webkit-test-runner [ enableWebAnimationsCSSIntegration=true ] -->
+<!DOCTYPE>
 
 <html>
 <head>
index 0f478c9..9ddf393 100644 (file)
@@ -1,4 +1,4 @@
-<!DOCTYPE><!-- webkit-test-runner [ enableWebAnimationsCSSIntegration=true ] -->
+<!DOCTYPE>
 <html>
 <head>
   <style>
index b52b419..8723c27 100644 (file)
@@ -1,4 +1,4 @@
-<!DOCTYPE html><!-- webkit-test-runner [ enableWebAnimationsCSSIntegration=true ] -->
+<!DOCTYPE html>
 
 <html>
 <head>
index d14d2c0..687d10f 100644 (file)
@@ -1,4 +1,4 @@
-<!DOCTYPE><!-- webkit-test-runner [ enableWebAnimationsCSSIntegration=true ] -->
+<!DOCTYPE>
 
 <html>
 <head>
index 972e884..3332368 100644 (file)
@@ -1,4 +1,4 @@
-<!DOCTYPE html><!-- webkit-test-runner [ enableWebAnimationsCSSIntegration=true ] -->
+<!DOCTYPE html>
 <style>
 #box {
     width: 10%;
index 5506054..dc4458f 100644 (file)
@@ -1,4 +1,4 @@
-<!DOCTYPE html><!-- webkit-test-runner [ enableWebAnimationsCSSIntegration=true ] -->
+<!DOCTYPE html>
 
 <html>
 <head>
index b395f20..503067c 100644 (file)
@@ -1,4 +1,4 @@
-<!DOCTYPE><!-- webkit-test-runner [ enableWebAnimationsCSSIntegration=true ] -->
+<!DOCTYPE>
 
 <html>
 <head>
index a1e8728..5cbe69f 100644 (file)
@@ -1,4 +1,4 @@
-<!DOCTYPE><!-- webkit-test-runner [ enableWebAnimationsCSSIntegration=true ] -->
+<!DOCTYPE>
 
 <html>
 <head>
index b0705cd..4a9d4ec 100644 (file)
@@ -1,4 +1,4 @@
-<!DOCTYPE><!-- webkit-test-runner [ enableWebAnimationsCSSIntegration=true ] -->
+<!DOCTYPE>
 
 <html>
 <head>
index ee3a7a6..d33e4b5 100644 (file)
@@ -1,4 +1,4 @@
-<!DOCTYPE html><!-- webkit-test-runner [ enableWebAnimationsCSSIntegration=true ] -->
+<!DOCTYPE html>
 <html>
 <head>
   <style>
index ecbf5fb..862ba02 100644 (file)
@@ -1,4 +1,4 @@
-<!DOCTYPE html><!-- webkit-test-runner [ enableWebAnimationsCSSIntegration=true ] -->
+<!DOCTYPE html>
 
 <html>
 <head>
index 3d8b7c9..a52a0ba 100644 (file)
@@ -29,7 +29,7 @@
     function testTransitions()
     {
       if (window.testRunner) {
-        var numAnims = internals.numberOfActiveAnimations();
+        var numAnims = document.getAnimations().length;
         if (numAnims == 0)
           log('No running transitions: PASS');
         else
index c741a45..aefc9a0 100644 (file)
@@ -1,4 +1,4 @@
-<!DOCTYPE html><!-- webkit-test-runner [ enableWebAnimationsCSSIntegration=true ] -->
+<!DOCTYPE html>
 
 <html>
 <head>
index 5fd96b6..faa745c 100644 (file)
@@ -1,4 +1,4 @@
-<!DOCTYPE html><!-- webkit-test-runner [ enableWebAnimationsCSSIntegration=true ] -->
+<!DOCTYPE html>
 
 <html>
 <head>
index 5ca1897..b551a2c 100644 (file)
@@ -1,4 +1,4 @@
-<!DOCTYPE html><!-- webkit-test-runner [ enableWebAnimationsCSSIntegration=true ] -->
+<!DOCTYPE html>
 
 <html>
 <head>
index 431582d..bb962bc 100644 (file)
@@ -1,4 +1,4 @@
-<!DOCTYPE html><!-- webkit-test-runner [ enableWebAnimationsCSSIntegration=true ] -->
+<!DOCTYPE html>
 
 <html>
 <head>
index d7956ae..0058ab5 100644 (file)
@@ -1,4 +1,4 @@
-<!DOCTYPE><!-- webkit-test-runner [ enableWebAnimationsCSSIntegration=true ] -->
+<!DOCTYPE>
 
 <html>
 <head>
index ba53fd9..5797e5e 100644 (file)
@@ -1,4 +1,4 @@
-<!DOCTYPE html><!-- webkit-test-runner [ enableWebAnimationsCSSIntegration=true ] -->
+<!DOCTYPE html>
 <html>
 <head>
     <style>
index 1b1ce92..d9724ee 100644 (file)
@@ -1,4 +1,3 @@
-<!-- webkit-test-runner [ enableWebAnimationsCSSIntegration=true ] -->
 <html>
 <head>
   <style>
index 1fd8226..16f8af1 100644 (file)
@@ -1,4 +1,4 @@
-<!DOCTYPE><!-- webkit-test-runner [ enableWebAnimationsCSSIntegration=true ] -->
+<!DOCTYPE>
 <html>
 <head>
   <style>
index 1c7ad31..0d3f33e 100644 (file)
@@ -1,4 +1,4 @@
-<!DOCTYPE html><!-- webkit-test-runner [ enableWebAnimationsCSSIntegration=true ] -->
+<!DOCTYPE html>
 
 <html>
 <head>
index 4a0eda9..bf6d30d 100644 (file)
@@ -1,4 +1,4 @@
-<!DOCTYPE html><!-- webkit-test-runner [ enableWebAnimationsCSSIntegration=true ] -->
+<!DOCTYPE html>
 
 <html>
 <head>
diff --git a/LayoutTests/transitions/transition-drt-api-delay-expected.txt b/LayoutTests/transitions/transition-drt-api-delay-expected.txt
deleted file mode 100644 (file)
index 9429f27..0000000
+++ /dev/null
@@ -1,5 +0,0 @@
-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
deleted file mode 100644 (file)
index 01d8097..0000000
+++ /dev/null
@@ -1,62 +0,0 @@
-<!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
deleted file mode 100644 (file)
index 7437ece..0000000
+++ /dev/null
@@ -1 +0,0 @@
-PASS: correctly paused transition
diff --git a/LayoutTests/transitions/transition-drt-api.html b/LayoutTests/transitions/transition-drt-api.html
deleted file mode 100644 (file)
index 15c30f0..0000000
+++ /dev/null
@@ -1,56 +0,0 @@
-<!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 fd04a13..959afd6 100644 (file)
@@ -1,4 +1,4 @@
-<!DOCTYPE html><!-- webkit-test-runner [ enableWebAnimationsCSSIntegration=true ] -->
+<!DOCTYPE html>
 
 <html>
 <head>
index 466a7fc..ef806c7 100644 (file)
@@ -1,4 +1,4 @@
-<!DOCTYPE html><!-- webkit-test-runner [ enableWebAnimationsCSSIntegration=true ] -->
+<!DOCTYPE html>
 
 <html>
 <head>
index 2c86688..83a60a6 100644 (file)
@@ -1,4 +1,4 @@
-<!DOCTYPE html><!-- webkit-test-runner [ enableWebAnimationsCSSIntegration=true ] -->
+<!DOCTYPE html>
 
 <html>
 <head>
index 3c7b528..da3d3b7 100644 (file)
@@ -1,4 +1,3 @@
-<!-- webkit-test-runner [ enableWebAnimationsCSSIntegration=true ] -->
 <html>
 <head>
   <style>
index 7aff1e0..df0989d 100644 (file)
@@ -1,4 +1,4 @@
-<!DOCTYPE html><!-- webkit-test-runner [ enableWebAnimationsCSSIntegration=true ] -->
+<!DOCTYPE html>
 
 <html>
 <head>
index e2ce388..1e1f5f2 100644 (file)
@@ -1,4 +1,3 @@
-<!-- webkit-test-runner [ enableWebAnimationsCSSIntegration=true ] -->
 <html>
 <head>
   <style>
index 9610323..8c17ae0 100644 (file)
@@ -1,4 +1,4 @@
-<!DOCTYPE html><!-- webkit-test-runner [ enableWebAnimationsCSSIntegration=true ] -->
+<!DOCTYPE html>
 
 <html>
 <head>
index 21a41d9..628cf26 100644 (file)
@@ -1,4 +1,4 @@
-<!DOCTYPE html><!-- webkit-test-runner [ enableWebAnimationsCSSIntegration=true ] -->
+<!DOCTYPE html>
 
 <html>
 <head>
index 0921b80..31d3f2a 100644 (file)
@@ -1,4 +1,3 @@
-<!-- webkit-test-runner [ enableWebAnimationsCSSIntegration=true ] -->
 <html>
 <head>
 <style>
index 8e4d9d6..08d6f19 100644 (file)
@@ -1,4 +1,4 @@
-<!DOCTYPE html><!-- webkit-test-runner [ enableWebAnimationsCSSIntegration=true ] -->
+<!DOCTYPE html>
 
 <html>
 <head>
index 20c0180..5fa4e3b 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 = internals.numberOfActiveAnimations();
+      var current = numberOfActiveAnimations();
       if (current == expected)
         document.getElementById('result0').innerHTML = "Number of active animations before transition is (" + current + ") as expected";
       else
@@ -31,7 +40,7 @@
     
     function sample1() {
       var expected = 0;
-      var current = internals.numberOfActiveAnimations();
+      var current = numberOfActiveAnimations();
       if (current == expected)
         document.getElementById('result1').innerHTML = "Number of active animations after transition is (" + current + ") as expected";
       else
index 6c49a36..9b5c028 100644 (file)
@@ -1,4 +1,4 @@
-<!DOCTYPE html><!-- webkit-test-runner [ enableWebAnimationsCSSIntegration=true ] -->
+<!DOCTYPE html>
 <meta charset=utf-8>
 <title>CSS Animations</title>
 <style type="text/css" media="screen">
index 052e4c4..16d69e2 100644 (file)
@@ -1,4 +1,4 @@
-<!DOCTYPE html><!-- webkit-test-runner [ enableWebAnimationsCSSIntegration=true ] -->
+<!DOCTYPE html>
 <meta charset=utf-8>
 <title>CSS Transitions</title>
 <body>
index 385dd61..a520243 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>
+
+        Reviewed by Jon Lee.
+
+        We ensure we always call into both CSSAnimationController::cancelAnimations() and
+        AnimationTimeline::cancelDeclarativeAnimationsForElement() since we want teardown of animations
+        to be performed no matter which animation code path is used. What that in mind, we don't
+        conditionalize the CSSAnimationController-related ASSERT() in FrameView::didDestroyRenderTree().
+
+        * 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-17  David Kilzer  <ddkilzer@apple.com>
 
         Lazily create WebCore::Timer for WebCore::Image
index 06c4a06..8362451 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 (RuntimeEnabledFeatures::sharedFeatures().webAnimationsCSSIntegrationEnabled()) {
-        if (auto* timeline = document().existingTimeline())
-            timeline->cancelDeclarativeAnimationsForElement(*this);
-    } else if (frame)
+    if (frame)
         frame->animation().cancelAnimations(*this);
 
 #if PLATFORM(MAC)
index e82b447..9a69aec 100644 (file)
@@ -90,10 +90,9 @@ void PseudoElement::clearHostElement()
 {
     InspectorInstrumentation::pseudoElementDestroyed(document().page(), *this);
 
-    if (RuntimeEnabledFeatures::sharedFeatures().webAnimationsCSSIntegrationEnabled()) {
-        if (auto* timeline = document().existingTimeline())
-            timeline->cancelDeclarativeAnimationsForElement(*this);
-    } else if (auto* frame = document().frame())
+    if (auto* timeline = document().existingTimeline())
+        timeline->cancelDeclarativeAnimationsForElement(*this);
+    if (auto* frame = document().frame())
         frame->animation().cancelAnimations(*this);
 
     m_hostElement = nullptr;
index ea6288f..d0caf8c 100644 (file)
@@ -589,8 +589,7 @@ void FrameView::didDestroyRenderTree()
     ASSERT(!m_viewportConstrainedObjects || m_viewportConstrainedObjects->isEmpty());
     ASSERT(!m_slowRepaintObjects || m_slowRepaintObjects->isEmpty());
 
-    if (!RuntimeEnabledFeatures::sharedFeatures().webAnimationsCSSIntegrationEnabled())
-        ASSERT(!frame().animation().hasAnimations());
+    ASSERT(!frame().animation().hasAnimations());
 }
 
 void FrameView::setContentsSize(const IntSize& size)
index 6cc92e0..306c4cf 100644 (file)
@@ -351,7 +351,7 @@ private:
     bool m_isWritableStreamAPIEnabled { false };
 #endif
 
-    bool m_areWebAnimationsEnabled { true };
+    bool m_areWebAnimationsEnabled { false };
     bool m_isWebAnimationsCSSIntegrationEnabled { false };
 
 #if ENABLE(WEBGL2)
index cbd5fcf..e5516f9 100644 (file)
@@ -553,11 +553,9 @@ void RenderTreeUpdater::tearDownRenderers(Element& root, TeardownType teardownTy
             auto& element = *teardownStack.takeLast();
 
             if (teardownType == TeardownType::Full || teardownType == TeardownType::RendererUpdateCancelingAnimations) {
-                if (RuntimeEnabledFeatures::sharedFeatures().webAnimationsCSSIntegrationEnabled()) {
-                    if (timeline)
-                        timeline->cancelDeclarativeAnimationsForElement(element);
-                } else
-                    animationController.cancelAnimations(element);
+                if (timeline)
+                    timeline->cancelDeclarativeAnimationsForElement(element);
+                animationController.cancelAnimations(element);
             }
 
             if (teardownType == TeardownType::Full)
index 15471e9..7de1439 100644 (file)
@@ -1,3 +1,14 @@
+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.
+
+        * Shared/WebPreferences.yaml: Leave Web Animations off by default, it's up to clients
+        to turn it on.
+
 2018-05-18  Fujii Hironori  <Hironori.Fujii@sony.com>
 
         [Curl] Remove unused SystemProxyWin.cpp
index 0ebda9c..287b81b 100644 (file)
@@ -1188,7 +1188,7 @@ VisualViewportAPIEnabled:
 
 WebAnimationsEnabled:
   type: bool
-  defaultValue: true
+  defaultValue: false
   humanReadableName: "Web Animations"
   humanReadableDescription: "Web Animations prototype"
   category: experimental
index 7f293dc..f6ac40b 100644 (file)
@@ -1,3 +1,32 @@
+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.
+
+        Make the test runners turn both the main Web Animations flag and the Web Animations CSS
+        integration flag on.
+
+        We also remove the ability to toggle the Web Animations CSS integration flag using an HTML
+        comment directly at the top of the file since test runners now set the flag on by default
+        and a dedicated directory exists for tests that need to run with this flag off.
+
+        * DumpRenderTree/TestOptions.cpp:
+        (TestOptions::TestOptions):
+        * DumpRenderTree/TestOptions.h:
+        * DumpRenderTree/mac/DumpRenderTree.mm:
+        (shouldOverrideAndDisableWebAnimationsCSSIntegrationPreference):
+        (runTest):
+        * WebKitTestRunner/TestController.cpp:
+        (WTR::TestController::resetPreferencesToConsistentValues):
+        (WTR::updateTestOptionsFromTestHeader):
+        * WebKitTestRunner/TestOptions.cpp:
+        (WTR::isLegacyAnimationEngineTestPath):
+        (WTR::TestOptions::TestOptions):
+        * WebKitTestRunner/TestOptions.h:
+
 2018-05-17  Nan Wang  <n_wang@apple.com>
 
         AX: [macOS] Expose the primary screen height through AX API
index a96af07..d5ec574 100644 (file)
@@ -99,8 +99,6 @@ 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 daf965f..f574c0d 100644 (file)
@@ -29,7 +29,7 @@
 
 struct TestOptions {
     bool enableAttachmentElement { false };
-    bool enableWebAnimationsCSSIntegration { false };
+    bool enableWebAnimationsCSSIntegration { true };
     bool useAcceleratedDrawing { false };
     bool enableIntersectionObserver { false };
     bool enableMenuItemElement { false };
index 801656f..7cf824c 100644 (file)
@@ -1754,6 +1754,11 @@ 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;
@@ -1923,6 +1928,9 @@ 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 bc34c3d..c92c8d2 100644 (file)
@@ -714,7 +714,9 @@ void TestController::resetPreferencesToConsistentValues(const TestOptions& optio
     WKPreferencesSetWebAuthenticationEnabled(preferences, options.enableWebAuthentication);
     WKPreferencesSetIsSecureContextAttributeEnabled(preferences, options.enableIsSecureContextAttribute);
     WKPreferencesSetAllowCrossOriginSubresourcesToAskForCredentials(preferences, options.allowCrossOriginSubresourcesToAskForCredentials);
-    WKPreferencesSetWebAnimationsCSSIntegrationEnabled(preferences, options.enableWebAnimationsCSSIntegration);
+
+    // 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);
 
     static WKStringRef defaultTextEncoding = WKStringCreateWithUTF8CString("ISO-8859-1");
     WKPreferencesSetDefaultTextEncodingName(preferences, defaultTextEncoding);
@@ -1113,8 +1115,6 @@ 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 d6e8ab2..004658c 100644 (file)
@@ -65,10 +65,16 @@ 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 d08dae9..d33e815 100644 (file)
@@ -55,7 +55,8 @@ struct TestOptions {
     bool shouldShowTouches { false };
     bool dumpJSConsoleLogInStdErr { false };
     bool allowCrossOriginSubresourcesToAskForCredentials { false };
-    bool enableWebAnimationsCSSIntegration { false };
+    bool enableWebAnimationsCSSIntegration { true };
+    bool isLegacyAnimationEngineTest { false };
     bool enableProcessSwapOnNavigation { false };
 
     float deviceScaleFactor { 1 };