diff options
Diffstat (limited to 'layout/reftests/selection/extend-3e.html')
-rw-r--r-- | layout/reftests/selection/extend-3e.html | 33 |
1 files changed, 33 insertions, 0 deletions
diff --git a/layout/reftests/selection/extend-3e.html b/layout/reftests/selection/extend-3e.html new file mode 100644 index 0000000000..9cd8aa5b2f --- /dev/null +++ b/layout/reftests/selection/extend-3e.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 anchor < focus < newfocus +var sel = window.getSelection(); +function loaded() { + sel.collapse(t, 2); // anchor + sel.extend(t, 6); // focus +} +function doTest() { + sel.extend(t, 8); // newfocus + document.documentElement.removeAttribute('class'); +} +window.addEventListener("load", loaded); +document.addEventListener("MozReftestInvalidate", doTest); +</script> +</body> +</html> |