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

Unified Diff: LayoutTests/inspector/tracing/timeline-event-causes.html

Issue 1178903002: DevTools: deflake timeline-event-causes.html (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Created 5 years, 6 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
« no previous file with comments | « no previous file | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: LayoutTests/inspector/tracing/timeline-event-causes.html
diff --git a/LayoutTests/inspector/tracing/timeline-event-causes.html b/LayoutTests/inspector/tracing/timeline-event-causes.html
index 226e37fa6a406a7ae1988dd14a0a1cc85fb7964c..1426ba2e99926d2c668f58026c62322fd7b50f93 100644
--- a/LayoutTests/inspector/tracing/timeline-event-causes.html
+++ b/LayoutTests/inspector/tracing/timeline-event-causes.html
@@ -67,18 +67,18 @@ function test()
function testStyleRecalc(next)
{
- function styleRecalcFunction(callback)
+ function styleRecalcFunction()
{
var element = document.getElementById("testElement");
element.style.backgroundColor = "papayawhip";
- callback();
+ var forceLayout = element.offsetWidth;
}
var source = styleRecalcFunction.toString();
source += "\n//@ sourceURL=styleRecalcFunction.js";
InspectorTest.evaluateInPage(source);
- InspectorTest.invokeAsyncWithTimeline("styleRecalcFunction", finishAndRunNextTest);
+ InspectorTest.evaluateWithTimeline("styleRecalcFunction()", finishAndRunNextTest);
function finishAndRunNextTest()
{
var linkifier = new WebInspector.Linkifier();
@@ -95,19 +95,18 @@ function test()
function testLayout(next)
{
- function layoutFunction(callback)
+ function layoutFunction()
{
var element = document.getElementById("testElement");
element.style.width = "200px";
var forceLayout = element.offsetWidth;
- callback();
}
var source = layoutFunction.toString();
source += "\n//@ sourceURL=layoutFunction.js";
InspectorTest.evaluateInPage(source);
- InspectorTest.invokeAsyncWithTimeline("layoutFunction", finishAndRunNextTest);
+ InspectorTest.evaluateWithTimeline("layoutFunction()", finishAndRunNextTest);
function finishAndRunNextTest()
{
var linkifier = new WebInspector.Linkifier();
« no previous file with comments | « no previous file | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698