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

Unified Diff: LayoutTests/fast/regions/selection/selecting-text-through-different-region-flows-2-expected.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-expected.html
diff --git a/LayoutTests/fast/regions/selection/selecting-text-through-different-region-flows-2-expected.html b/LayoutTests/fast/regions/selection/selecting-text-through-different-region-flows-2-expected.html
index b2aeb5e16aee420b152a35a189e30a13d53ac49a..700ac2413c494f7f34e5a1aad7928fc5092b4563 100644
--- a/LayoutTests/fast/regions/selection/selecting-text-through-different-region-flows-2-expected.html
+++ b/LayoutTests/fast/regions/selection/selecting-text-through-different-region-flows-2-expected.html
@@ -1,23 +1,13 @@
<!DOCTYPE html>
<html>
<head>
+<script src="../resources/helper.js"></script>
<style>
body { width: 600px; }
#footNote { font-size: 13px; }
</style>
-<script>
-function selectText()
-{
- var selection = window.getSelection();
-
- var start = document.getElementById("start");
- var end = document.getElementById("end");
-
- selection.setBaseAndExtent(start, 0, end, 0);
-}
-</script>
</head>
-<body onload="selectText()">
+<body onload="selectBaseAndExtent('start', 0, 'end', 1)">
<div id="content">
<h1 style="margin-top: 0px">Selecting text through different CSS-Region flows</h1>
<div>

Powered by Google App Engine
This is Rietveld 408576698