Index: LayoutTests/fast/regions/selection/selecting-text-in-empty-region.html |
diff --git a/LayoutTests/fast/regions/selection/selecting-text-in-empty-region.html b/LayoutTests/fast/regions/selection/selecting-text-in-empty-region.html |
index 760fc1aa02760d0a631eb7b8d0987c360f0ed2ef..675b47ba93ff21b140c33fe249d4c2e9ae6a5b80 100644 |
--- a/LayoutTests/fast/regions/selection/selecting-text-in-empty-region.html |
+++ b/LayoutTests/fast/regions/selection/selecting-text-in-empty-region.html |
@@ -1,6 +1,7 @@ |
<!doctype html> |
<html> |
<head> |
+ <script src="../resources/helper.js"></script> |
<style> |
body { font: 20px/1 monospace; margin: 20px; } |
#region { -webkit-flow-from: undefined; width: 100px; height: 100px; border: 10px solid blue; } |
@@ -23,10 +24,7 @@ |
var endPositionX = startPositionX + 100; |
var endPositionY = startPositionY + 100; |
- eventSender.mouseMoveTo(startPositionX, startPositionY); |
- eventSender.mouseDown(); |
- eventSender.mouseMoveTo(endPositionX, endPositionY); |
- eventSender.mouseUp(); |
+ selectContentByRange(startPositionX, startPositionY, endPositionX, endPositionY); |
document.getElementById("result").innerHTML = (selection.toString().length == 0) ? "PASS" : "FAIL"; |
} |