Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(369)

Unified Diff: LayoutTests/inspector/timeline/timeline-animation-frame.html

Issue 399043002: DevTools: switch Timeline frontend into buffered mode and remove the corresponding experiment. (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: timeline-websocket-event rebaselined Created 6 years, 5 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
Index: LayoutTests/inspector/timeline/timeline-animation-frame.html
diff --git a/LayoutTests/inspector/timeline/timeline-animation-frame.html b/LayoutTests/inspector/timeline/timeline-animation-frame.html
index c545b55402f0d11100726d2021a12e623f656932..ddfa1f3335f662d9298a988e5ccef935109542b5 100644
--- a/LayoutTests/inspector/timeline/timeline-animation-frame.html
+++ b/LayoutTests/inspector/timeline/timeline-animation-frame.html
@@ -4,23 +4,20 @@
<script src="../../http/tests/inspector/timeline-test.js"></script>
<script>
-function performActions()
+function performActions(callback)
{
var element = document.getElementById("animation");
var requestId = window.requestAnimationFrame(animationFrameCallback, element);
function animationFrameCallback()
{
window.cancelAnimationFrame(requestId);
+ callback();
}
}
function test()
{
- InspectorTest.startTimeline(function() {
- InspectorTest.evaluateInPage("performActions()");
- });
-
- InspectorTest.waitForRecordType("CancelAnimationFrame", finish);
+ InspectorTest.invokeAsyncWithTimeline("performActions", finish);
function finish()
{

Powered by Google App Engine
This is Rietveld 408576698