Index: third_party/WebKit/LayoutTests/fast/scrolling/scrollbar-tickmarks-styled-after-onload.html |
diff --git a/third_party/WebKit/LayoutTests/fast/scrolling/scrollbar-tickmarks-styled.html b/third_party/WebKit/LayoutTests/fast/scrolling/scrollbar-tickmarks-styled-after-onload.html |
similarity index 86% |
copy from third_party/WebKit/LayoutTests/fast/scrolling/scrollbar-tickmarks-styled.html |
copy to third_party/WebKit/LayoutTests/fast/scrolling/scrollbar-tickmarks-styled-after-onload.html |
index 298efe0c8a28ed3e0ef591854b3924fa2af43ebd..1e959c090eb628fa9c4f3423d408c5ba4297297d 100644 |
--- a/third_party/WebKit/LayoutTests/fast/scrolling/scrollbar-tickmarks-styled.html |
+++ b/third_party/WebKit/LayoutTests/fast/scrolling/scrollbar-tickmarks-styled-after-onload.html |
@@ -1,5 +1,6 @@ |
<!DOCTYPE html> |
<head> |
+<script src="../../resources/run-after-layout-and-paint.js"></script> |
<script src="../../resources/ahem.js"></script> |
<style> |
html { |
@@ -31,7 +32,7 @@ function highlight() |
} |
</script> |
</head> |
-<body onload="highlight();"> |
+<body onload="runAfterLayoutAndPaint(highlight, true)"> |
<div style="height:600px"></div> |
<span id="elt" style="position:absolute; top:300px"> </span> |