Index: third_party/WebKit/LayoutTests/fast/shapes/shape-outside-floats/shape-outside-insert-svg-shape.html |
diff --git a/third_party/WebKit/LayoutTests/fast/shapes/shape-outside-floats/shape-outside-insert-svg-shape.html b/third_party/WebKit/LayoutTests/fast/shapes/shape-outside-floats/shape-outside-insert-svg-shape.html |
index 3f897dabba9bb5e16494c2bc52859108ee05e3d1..00c6c0a091b46d8d782148ca817c3b719532ae17 100644 |
--- a/third_party/WebKit/LayoutTests/fast/shapes/shape-outside-floats/shape-outside-insert-svg-shape.html |
+++ b/third_party/WebKit/LayoutTests/fast/shapes/shape-outside-floats/shape-outside-insert-svg-shape.html |
@@ -1,6 +1,7 @@ |
<html> |
<head> |
<script src="../../../resources/ahem.js"></script> |
+<script src="../../../resources/run-after-layout-and-paint.js"></script> |
<style> |
.container { |
font: 50px/1 Ahem, sans-serif; |
@@ -16,10 +17,12 @@ |
</style> |
<script> |
window.onload = function() { |
+ runAfterLayoutAndPaint(function() { |
var container = document.querySelector('.container'); |
var shape = document.createElement('div'); |
shape.className = 'shape-outside'; |
container.insertBefore(shape, container.firstChild); |
+ }, true); |
} |
</script> |
</head> |