summaryrefslogtreecommitdiffstats
path: root/layout/reftests/selection/extend-3g.html
diff options
context:
space:
mode:
Diffstat (limited to 'layout/reftests/selection/extend-3g.html')
-rw-r--r--layout/reftests/selection/extend-3g.html33
1 files changed, 33 insertions, 0 deletions
diff --git a/layout/reftests/selection/extend-3g.html b/layout/reftests/selection/extend-3g.html
new file mode 100644
index 000000000..a1cc8c235
--- /dev/null
+++ b/layout/reftests/selection/extend-3g.html
@@ -0,0 +1,33 @@
+<!DOCTYPE html>
+<html class="reftest-wait">
+<head>
+<body style="white-space:pre"
+><img src="data:image/gif;base64,R0lGODlhEAAQAPAAALuWAAAAACH5BAUIAAEALAMAAwAKAAoAAAIMDI5nye0Po5xutVAAADs="
+><img src="data:image/gif;base64,R0lGODlhEAAQAPAAALuWAAAAACH5BAUIAAEALAMAAwAKAAoAAAIMDI5nye0Po5xutVAAADs="
+><img src="data:image/gif;base64,R0lGODlhEAAQAPAAALuWAAAAACH5BAUIAAEALAMAAwAKAAoAAAIMDI5nye0Po5xutVAAADs="
+><img src="data:image/gif;base64,R0lGODlhEAAQAPAAALuWAAAAACH5BAUIAAEALAMAAwAKAAoAAAIMDI5nye0Po5xutVAAADs="
+><img src="data:image/gif;base64,R0lGODlhEAAQAPAAALuWAAAAACH5BAUIAAEALAMAAwAKAAoAAAIMDI5nye0Po5xutVAAADs="
+><img src="data:image/gif;base64,R0lGODlhEAAQAPAAALuWAAAAACH5BAUIAAEALAMAAwAKAAoAAAIMDI5nye0Po5xutVAAADs="
+><img src="data:image/gif;base64,R0lGODlhEAAQAPAAALuWAAAAACH5BAUIAAEALAMAAwAKAAoAAAIMDI5nye0Po5xutVAAADs="
+><img src="data:image/gif;base64,R0lGODlhEAAQAPAAALuWAAAAACH5BAUIAAEALAMAAwAKAAoAAAIMDI5nye0Po5xutVAAADs="
+><img src="data:image/gif;base64,R0lGODlhEAAQAPAAALuWAAAAACH5BAUIAAEALAMAAwAKAAoAAAIMDI5nye0Po5xutVAAADs="
+><img src="data:image/gif;base64,R0lGODlhEAAQAPAAALuWAAAAACH5BAUIAAEALAMAAwAKAAoAAAIMDI5nye0Po5xutVAAADs="
+>
+<script>
+document.body.offsetTop;
+var t = document.body;
+// Test newfocus = focus < anchor
+var sel = window.getSelection();
+function loaded() {
+ sel.collapse(t, 8); // anchor
+ sel.extend(t, 2); // focus
+}
+function doTest() {
+ sel.extend(t, 2); // newfocus
+ document.documentElement.removeAttribute('class');
+}
+window.addEventListener("load", loaded, false);
+document.addEventListener("MozReftestInvalidate", doTest, false);
+</script>
+</body>
+</html>