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> |