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

Unified Diff: LayoutTests/fast/regions/selection/selecting-text-through-different-region-flows-2.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-through-different-region-flows-2.html
diff --git a/LayoutTests/fast/regions/selection/selecting-text-through-different-region-flows-2.html b/LayoutTests/fast/regions/selection/selecting-text-through-different-region-flows-2.html
index e283e026662e78a0f93c0f158c1e9300cb6ee6c9..9b083b2d03d7823cc3aaaaec8724bcccdd4d364e 100644
--- a/LayoutTests/fast/regions/selection/selecting-text-through-different-region-flows-2.html
+++ b/LayoutTests/fast/regions/selection/selecting-text-through-different-region-flows-2.html
@@ -1,6 +1,7 @@
<!DOCTYPE html>
<html>
<head>
+<script src="../resources/helper.js"></script>
<style>
body { width: 600px; }
@@ -30,21 +31,7 @@ body { width: 600px; }
</div>
<script>
-if (window.testRunner) {
- // We are positioning the mouse to the center of the contentText and start holding the mouse down
- var start = document.getElementById("start");
- var xStartPosition = start.offsetLeft + 0;
- var yStartPosition = start.offsetTop + start.offsetHeight / 2;
- eventSender.mouseMoveTo(xStartPosition, yStartPosition);
- eventSender.mouseDown();
-
- // We are positioning the mouse to the center of the footNote (what is a different region flow) and release the button
- var end = document.getElementById("end");
- var xEndPosition = end.offsetLeft + 0;
- var yEndPosition = end.offsetTop + end.offsetHeight / 2;
- eventSender.mouseMoveTo(xEndPosition, yEndPosition);
- eventSender.mouseUp();
-}
+selectContentByIds("start", "end");
</script>
</body>
</html>

Powered by Google App Engine
This is Rietveld 408576698