Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(301)

Unified Diff: LayoutTests/fast/regions/selection/selecting-text-in-empty-region.html

Issue 25761004: [CSS Regions] Helper functions for selection layout tests (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@master
Patch Set: Created 7 years, 2 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
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";
}

Powered by Google App Engine
This is Rietveld 408576698