Index: LayoutTests/fast/regions/selection/selection-direction-expected.html |
diff --git a/LayoutTests/fast/regions/selection/selection-direction-expected.html b/LayoutTests/fast/regions/selection/selection-direction-expected.html |
index 63750894e4eb24fad030b45b4d0e6052b7b69cf9..b18d682672be3491f689d1c990bdf8759609a826 100644 |
--- a/LayoutTests/fast/regions/selection/selection-direction-expected.html |
+++ b/LayoutTests/fast/regions/selection/selection-direction-expected.html |
@@ -1,5 +1,6 @@ |
<html> |
<head> |
+ <script src="../resources/helper.js"></script> |
<style> |
#region { |
height: 100px; |
@@ -25,19 +26,8 @@ |
top: 200px; |
} |
</style> |
- <script> |
- function selectText() { |
- if (window.testRunner) { |
- eventSender.mouseMoveTo(100, 10); |
- eventSender.mouseDown(); |
- |
- eventSender.mouseMoveTo(100, 110); |
- eventSender.mouseUp(); |
- } |
- } |
- </script> |
</head> |
-<body onload="selectText();"> |
+<body onload="selectContentByRange(100, 10, 100, 110);"> |
<div id="region">inside region inside region inside region inside region</div> |
<div id="outside">outside region outside region outside region outside region</div> |
<div id="description"> |