Index: LayoutTests/paint/selection/invalidation-rect-includes-newline.html |
diff --git a/LayoutTests/paint/selection/invalidation-rect-includes-newline.html b/LayoutTests/paint/selection/invalidation-rect-includes-newline.html |
index 0dd07e0d331e51287fddc3952b729e6ed048063a..5fed1477371ba78d2bf051bfb4c9682d8a7330d8 100644 |
--- a/LayoutTests/paint/selection/invalidation-rect-includes-newline.html |
+++ b/LayoutTests/paint/selection/invalidation-rect-includes-newline.html |
@@ -1,15 +1,11 @@ |
<!DOCTYPE html> |
<script src="../../resources/ahem.js"></script> |
<script src="../../fast/repaint/resources/text-based-repaint.js"></script> |
+<script src="resources/selection.js"></script> |
<script> |
// Selects two lines and expects a newline to be represented. |
function repaintTest() { |
- if (window.internals) |
- window.internals.setSelectionPaintingWithoutSelectionGapsEnabled(true); |
- var range = document.createRange(); |
- range.setStart(container, 0); |
- range.setEnd(container, 1); |
- window.getSelection().addRange(range); |
+ selectRange(container, 0, container, 1); |
}; |
window.onload = runRepaintTest; |
</script> |