Index: LayoutTests/inspector/timeline/timeline-layout-autosize.html |
diff --git a/LayoutTests/inspector/timeline/timeline-layout-autosize.html b/LayoutTests/inspector/timeline/timeline-layout-autosize.html |
index 81f7808150d545aa29a520be6afac8abb2125491..5ce20e7d35c67b84873f503a2339698a7cc2c2f9 100644 |
--- a/LayoutTests/inspector/timeline/timeline-layout-autosize.html |
+++ b/LayoutTests/inspector/timeline/timeline-layout-autosize.html |
@@ -10,11 +10,8 @@ |
} |
</style> |
<script> |
- |
-function prepare() |
-{ |
+if (window.internals) |
window.internals.settings.setTextAutosizingEnabled(true); |
-} |
function performActions() |
{ |
@@ -30,15 +27,13 @@ function invalidateAndForceLayout(element) |
function test() |
{ |
- InspectorTest.evaluateInPage("prepare()", function() { |
- InspectorTest.performActionsAndPrint("performActions()", "AutosizeText"); |
- }); |
+ InspectorTest.performActionsAndPrint("performActions()", "AutosizeText"); |
} |
</script> |
</head> |
-<body onload="runTest()"> |
+<body onload="runTestAfterDisplay()"> |
<p> |
Tests the Timeline API instrumentation of a Layout event with Text Autosizing enabled. |
</p> |