haikuwebkit/LayoutTests/transitions/hang-with-bad-transition-li...

41 lines
1.0 KiB
HTML
Raw Permalink Normal View History

<html>
<head>
<style>
span {
background: blue;
color: white;
opacity: .666;
-webkit-transition: opacity, .25s, .15s ease-out;
}
</style>
<script>
function checkRunning()
{
Kill suspendAnimation(), resumeAnimation() and numberOfActiveAnimations() from DRT/WTR; use Internals https://bugs.webkit.org/show_bug.cgi?id=108741 Patch by Benjamin Poulain <bpoulain@apple.com> on 2013-02-04 Reviewed by Tony Chang. .: * Source/autotools/symbols.filter: Source/WebCore: Move suspendAnimations and resumeAnimations to group all the animation related code together. Add support for numberOfActiveAnimations, similarily to the feature previously defined in TestRunner. * testing/Internals.cpp: (WebCore::Internals::numberOfActiveAnimations): (WebCore): (WebCore::Internals::suspendAnimations): (WebCore::Internals::resumeAnimations): * testing/Internals.h: (Internals): * testing/Internals.idl: Source/WebKit/efl: * WebCoreSupport/DumpRenderTreeSupportEfl.cpp: * WebCoreSupport/DumpRenderTreeSupportEfl.h: Source/WebKit/gtk: * WebCoreSupport/DumpRenderTreeSupportGtk.cpp: * WebCoreSupport/DumpRenderTreeSupportGtk.h: (DumpRenderTreeSupportGtk): Source/WebKit/mac: * WebView/WebFrame.mm: * WebView/WebFramePrivate.h: Source/WebKit/qt: * WebCoreSupport/DumpRenderTreeSupportQt.cpp: * WebCoreSupport/DumpRenderTreeSupportQt.h: Source/WebKit/win: * WebKit.vcproj/WebKitExports.def.in: Source/WebKit2: Suspending and resuming application has been useless for a one. Someone just "forgot" WebKit2. * WebProcess/InjectedBundle/API/c/WKBundleFrame.cpp: * WebProcess/InjectedBundle/API/c/WKBundleFramePrivate.h: * WebProcess/WebPage/WebFrame.cpp: * WebProcess/WebPage/WebFrame.h: (WebFrame): Tools: Remove all support for suspendAnimation(), resumeAnimation() and numberOfActiveAnimations(). * DumpRenderTree/TestRunner.cpp: (TestRunner::staticFunctions): * DumpRenderTree/TestRunner.h: (TestRunner): * DumpRenderTree/blackberry/TestRunnerBlackBerry.cpp: * DumpRenderTree/chromium/TestRunner/src/TestRunner.cpp: (WebTestRunner::TestRunner::TestRunner): * DumpRenderTree/chromium/TestRunner/src/TestRunner.h: (TestRunner): * DumpRenderTree/efl/TestRunnerEfl.cpp: * DumpRenderTree/gtk/TestRunnerGtk.cpp: * DumpRenderTree/mac/TestRunnerMac.mm: * DumpRenderTree/qt/TestRunnerQt.cpp: * DumpRenderTree/qt/TestRunnerQt.h: (TestRunner): * DumpRenderTree/win/TestRunnerWin.cpp: * DumpRenderTree/wx/TestRunnerWx.cpp: * WebKitTestRunner/InjectedBundle/Bindings/TestRunner.idl: * WebKitTestRunner/InjectedBundle/TestRunner.cpp: * WebKitTestRunner/InjectedBundle/TestRunner.h: (TestRunner): LayoutTests: Update the tests to use WebCore Internals instead of the TestRunner. * animations/animation-controller-drt-api.html: * transitions/hang-with-bad-transition-list.html: * transitions/remove-transition-style.html: * transitions/repeated-firing-background-color.html: * transitions/zero-duration-with-non-zero-delay-end.html: Canonical link: https://commits.webkit.org/127108@main git-svn-id: https://svn.webkit.org/repository/webkit/trunk@141849 268f45cc-cd09-0410-ab3c-d52691b4dbfc
2013-02-05 04:21:13 +00:00
var current = internals.numberOfActiveAnimations();
if (current == 0)
document.getElementById('result').innerHTML = "Number of active animations before transition is (0) as expected";
else
document.getElementById('result').innerHTML = "Number of active transitions is (" + current + ") but was expecting (0)";
testRunner.notifyDone();
}
if (window.testRunner) {
testRunner.dumpAsText();
testRunner.waitUntilDone();
window.setTimeout(checkRunning, 300);
}
</script>
</head>
<body>
<span id="doomSpan">If you can see this then we didn't hang!!!</span>
<script type="text/javascript" charset="utf-8">
document.getElementById("doomSpan").style.opacity=1;
</script>
<div id="result">
</div>
</body>
</html>