haikuwebkit/LayoutTests/fast/images/animated-heics-draw-expecte...

15 lines
366 B
Plaintext
Raw Permalink Normal View History

[CG] Adding support for HEIF-sequence ('public.heics') images https://bugs.webkit.org/show_bug.cgi?id=197384 Patch by Said Abou-Hallawa <sabouhallawa@apple.com> on 2019-05-14 Reviewed by Simon Fraser. Source/WebCore: -- Get the image repetitionCount and the frame duration. -- Add a new function setAdditionalSupportedImageTypesForTesting() which takes a delimited String. -- Add internal APIs to retrive the image frame count and the frame duration. Tests: fast/images/animated-heics-draw.html fast/images/animated-heics-verify.html * platform/graphics/ImageSource.h: * platform/graphics/cg/ImageDecoderCG.cpp: (WebCore::animationPropertiesFromProperties): (WebCore::animationHEICSPropertiesFromProperties): (WebCore::ImageDecoderCG::repetitionCount const): (WebCore::ImageDecoderCG::frameDurationAtIndex const): * platform/graphics/cg/UTIRegistry.cpp: (WebCore::setAdditionalSupportedImageTypesForTesting): * platform/graphics/cg/UTIRegistry.h: * testing/Internals.cpp: (WebCore::Internals::imageFrameCount): (WebCore::Internals::imageFrameDurationAtIndex): * testing/Internals.h: * testing/Internals.idl: * testing/js/WebCoreTestSupport.cpp: (WebCoreTestSupport::setAdditionalSupportedImageTypesForTesting): * testing/js/WebCoreTestSupport.h: Tools: * DumpRenderTree/TestOptions.cpp: (TestOptions::TestOptions): * DumpRenderTree/TestOptions.h: * DumpRenderTree/mac/DumpRenderTree.mm: (resetWebViewToConsistentStateBeforeTesting): Parse the new webkit-test-runner paramter: additionalSupportedImageTypes. Make DRT call setAdditionalSupportedImageTypesForTesting() before starting the test. * WebKitTestRunner/InjectedBundle/InjectedBundle.cpp: (WTR::InjectedBundle::stringForKey): (WTR::InjectedBundle::beginTesting): * WebKitTestRunner/InjectedBundle/InjectedBundle.h: * WebKitTestRunner/TestController.cpp: (WTR::TestController::resetStateToConsistentValues): (WTR::updateTestOptionsFromTestHeader): * WebKitTestRunner/TestInvocation.cpp: (WTR::TestInvocation::createTestSettingsDictionary): * WebKitTestRunner/TestOptions.h: (WTR::TestOptions::hasSameInitializationOptions const): Parse the new webkit-test-runner paramter: additionalSupportedImageTypes. Make WTR call setAdditionalSupportedImageTypesForTesting() before starting the test. LayoutTests: Disable the tests for all ports and enable it only for [ Mojave+ WK2] because of <rdar://problem/42625657>. * TestExpectations: * fast/images/animated-heics-draw-expected.txt: Added. * fast/images/animated-heics-draw.html: Added. * fast/images/animated-heics-verify-expected.txt: Added. * fast/images/animated-heics-verify.html: Added. * fast/images/resources/sea_animation.heics: Added. * fast/images/resources/sticker.heics: Added. * platform/mac-wk2/TestExpectations: Canonical link: https://commits.webkit.org/212002@main git-svn-id: https://svn.webkit.org/repository/webkit/trunk@245280 268f45cc-cd09-0410-ab3c-d52691b4dbfc
2019-05-14 15:13:50 +00:00
Verify HEICS image can animate.
On success, you will see a series of "PASS" messages, followed by "TEST COMPLETE".
Image was loaded successfully.
Image frame: 0 was displayed.
Image frame: 1 was displayed.
Image frame: 2 was displayed.
The HEICS Image was loaded and three frames of it were displayed successfully.
PASS successfullyParsed is true
TEST COMPLETE