haikuwebkit/LayoutTests/animations/suspend-resume-animation-ex...

7 lines
497 B
Plaintext
Raw Permalink Normal View History

2010-08-10 Chris Marrin <cmarrin@apple.com> Reviewed by Oliver Hunt. Add suspendAnimations/resumeAnimation API to DRT https://bugs.webkit.org/show_bug.cgi?id=43733 Qt specific API. Missing symbian symbol defines in: WebKit/qt/symbian/bwins/QtWebKitu.def WebKit/qt/symbian/eabi/QtWebKitu.def * WebCoreSupport/DumpRenderTreeSupportQt.cpp: (DumpRenderTreeSupportQt::suspendAnimations): (DumpRenderTreeSupportQt::resumeAnimations): * WebCoreSupport/DumpRenderTreeSupportQt.h: 2010-08-10 Chris Marrin <cmarrin@apple.com> Reviewed by Oliver Hunt. Add suspendAnimations/resumeAnimation API to DRT https://bugs.webkit.org/show_bug.cgi?id=43733 Gtk specific API. * webkit/webkitprivate.h: * webkit/webkitwebframe.cpp: (webkit_web_frame_suspend_animations): (webkit_web_frame_resume_animations): 2010-08-10 Chris Marrin <cmarrin@apple.com> Reviewed by Oliver Hunt. Add suspendAnimations/resumeAnimation API to DRT https://bugs.webkit.org/show_bug.cgi?id=43733 Win specific API * Interfaces/IWebFramePrivate.idl: * WebFrame.cpp: (WebFrame::suspendAnimations): (WebFrame::resumeAnimations): * WebFrame.h: 2010-08-10 Chris Marrin <cmarrin@apple.com> Reviewed by Oliver Hunt. Add suspendAnimations/resumeAnimation API to DRT https://bugs.webkit.org/show_bug.cgi?id=43733 Mac specific API. Plumbs suspendAnimations/resumeAnimations down to WebCore. * WebView/WebFrame.mm: (-[WebFrame _suspendAnimations]): (-[WebFrame _resumeAnimations]): * WebView/WebFramePrivate.h: 2010-08-10 Chris Marrin <cmarrin@apple.com> Reviewed by Oliver Hunt. Add suspendAnimations/resumeAnimation API to DRT https://bugs.webkit.org/show_bug.cgi?id=43733 This tests suspend and resume of animations. Transitions are currently broken due to https://bugs.webkit.org/show_bug.cgi?id=43792. I will add transition tests and tests of transition and animation interaction with that fix. * animations/animation-test-helpers.js: (matrixStringToArray): * animations/suspend-resume-animation-expected.txt: Added. * animations/suspend-resume-animation.html: Added. 2010-08-10 Chris Marrin <cmarrin@apple.com> Reviewed by Oliver Hunt. Add suspendAnimations/resumeAnimation API to DRT https://bugs.webkit.org/show_bug.cgi?id=43733 Adds suspendAnimations() and resumeAnimations() to LayoutTestController. Calls functions with the same names on AnimationController for the mainFrame. * DumpRenderTree/DumpRenderTree.xcodeproj/project.pbxproj: * DumpRenderTree/LayoutTestController.cpp: (suspendAnimationsCallback): (resumeAnimationsCallback): (LayoutTestController::staticFunctions): * DumpRenderTree/LayoutTestController.h: * DumpRenderTree/chromium/LayoutTestController.cpp: (LayoutTestController::LayoutTestController): (LayoutTestController::suspendAnimations): (LayoutTestController::resumeAnimations): * DumpRenderTree/chromium/LayoutTestController.h: * DumpRenderTree/gtk/LayoutTestControllerGtk.cpp: (LayoutTestController::suspendAnimations): (LayoutTestController::resumeAnimations): * DumpRenderTree/mac/LayoutTestControllerMac.mm: (LayoutTestController::suspendAnimations): (LayoutTestController::resumeAnimations): * DumpRenderTree/qt/LayoutTestControllerQt.cpp: (LayoutTestController::suspendAnimations): (LayoutTestController::resumeAnimations): * DumpRenderTree/qt/LayoutTestControllerQt.h: * DumpRenderTree/win/LayoutTestControllerWin.cpp: (LayoutTestController::suspendAnimations): (LayoutTestController::resumeAnimations): * DumpRenderTree/wx/LayoutTestControllerWx.cpp: (LayoutTestController::suspendAnimations): (LayoutTestController::resumeAnimations): Canonical link: https://commits.webkit.org/55909@main git-svn-id: https://svn.webkit.org/repository/webkit/trunk@65107 268f45cc-cd09-0410-ab3c-d52691b4dbfc
2010-08-11 01:03:58 +00:00
This test shows suspend and resume of a box moving to the right 500px. If running inside DumpRenderTest the box should stop at 200px after 500ms and then continue to complete the move in another 750ms
PASS - "webkitTransform" property for "box" element at 0.6s saw something close to: 1,0,0,1,200,0
PASS - "webkitTransform" property for "box" element at 0.9s saw something close to: 1,0,0,1,200,0
PASS - "webkitTransform" property for "box" element at 1.5s saw something close to: 1,0,0,1,400,0